Actor extension ability

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

Moderator: GZDoom Developers

Actor extension ability

Postby Major Cooke » Wed Jan 16, 2019 12:29 pm

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.
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: Actor extension ability

Postby D2JK » Tue Jun 18, 2019 10:04 am

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).
D2JK
 
Joined: 30 Aug 2014

Re: Actor extension ability

Postby Graf Zahl » Tue Jun 18, 2019 10:32 am

The blocker is that the compiler cannot combine parts of different translation units without screwing things up badly.
User avatar
Graf Zahl
Lead GZDoom Developer
Lead GZDoom Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: Actor extension ability

Postby Major Cooke » Wed Jun 19, 2019 11:14 am

Different translation units?
User avatar
Major Cooke
Do unto others as you would have unto you. Judge yourself first.
 
Joined: 28 Jan 2007

Re: Actor extension ability

Postby Apeirogon » Wed Jun 19, 2019 11:41 am

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.
Apeirogon
I have a strange sense of humour
 
Joined: 12 Jun 2017


Return to Feature Suggestions

Who is online

Users browsing this forum: Toberone and 0 guests