Actor extension ability
Moderator: GZDoom Developers
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Actor extension ability
Just so this isn't forgotten. I understand priorities are currently elsewhere so this is just here as a reminder, seeing as Actor now has the path cleared.
Re: Actor extension ability
If you don't mind me asking; what stopped the progress on this feature? In a related discussion over six months ago, Graf said he was "almost done exporting PlayerPawn which is the last remaining blocker for allowing user-side extends of class Actor" (source).
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49066
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Actor extension ability
The blocker is that the compiler cannot combine parts of different translation units without screwing things up badly.
- Major Cooke
- Posts: 8175
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: Actor extension ability
Different translation units?
Re: Actor extension ability
Like how, for example? Actor class, defined in gzdoom pack, definition turns into mess from code from all files?Graf Zahl wrote:compiler screwing things up badly
Roughly speaking, single zscript file is a single translation unit which gzdoom translate (turn text in it to bytecode) using magic. Different translation units -> different zscript files.Major Cooke wrote:Different translation units?
I dont know how exactly zscript compiler work, but I think it translate each file separately and then combine it into one single file, which cause conflicts between "extended" and "default" actors.