Actor extension ability

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Actor extension ability

Post by Major Cooke »

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.
D2JK
Posts: 543
Joined: Sat Aug 30, 2014 8:21 am

Re: Actor extension ability

Post by D2JK »

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).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49056
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Actor extension ability

Post by Graf Zahl »

The blocker is that the compiler cannot combine parts of different translation units without screwing things up badly.
User avatar
Major Cooke
Posts: 8170
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Actor extension ability

Post by Major Cooke »

Different translation units?
User avatar
Apeirogon
Posts: 1605
Joined: Mon Jun 12, 2017 12:57 am

Re: Actor extension ability

Post by Apeirogon »

Graf Zahl wrote:compiler screwing things up badly
Like how, for example? Actor class, defined in gzdoom pack, definition turns into mess from code from all files?
Major Cooke wrote:Different translation units?
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.
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.
Post Reply

Return to “Feature Suggestions [GZDoom]”