Grouped action specials in DECORATE

Moderator: GZDoom Developers

User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Grouped action specials in DECORATE

Post by Graf Zahl »

I don't think so. DDF and DECORATE have deviated too much so an easy conversion is not really possible. Besides, EDGE never was that popular to begin with...
HavoX
Posts: 272
Joined: Wed Apr 11, 2012 10:31 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10 Pro 21H1
Graphics Processor: nVidia with Vulkan support
Location: St. Louis, MO

Re: Grouped action specials in DECORATE

Post by HavoX »

Yeah, I only used it to play Immoral Conduct (and some of Don's Challenge), and nothing else.
User avatar
Xaser
 
 
Posts: 10774
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Grouped action specials in DECORATE

Post by Xaser »

Major Cooke wrote:Sadly, Xaser...
Graf Zahl wrote:Syntax rejected. Since this will have to be a stand-in for a scripted function each line must end with a semicolon. And the goto is a complete no-go. The scripting language won't allow a goto, it also won't allow A_Jump constructs, but real script syntax instead. In this area the main objective will be: no stopgap measures. Period.
BTW, if Randi continues his work on the scripting branch and manages to merge it this might not be so far away - but don't expect anything unless the scripting framework is in.
But on the bright side, that means its a lot more powerful.
This thread was re-tagged "[Yes]" (presumably by Randy) at some point after Graf made the quoted post. The final syntax will most likely be different, judging from posts that have been made, but I was trying to show an example of its usefulness; of course it's not 100% accurate to what the final code would look like.
Graf Zahl wrote:You won't get a 'CustomAF', of course, but the long term plan is to be able to add custom code to actors - not just action functions, but also extensions to internal methods.
This part is confusing me a bit. This sounds like you're saying we won't be able to define custom action functions at all, which doesn't seem right. Or were you commenting on the fact that the Doomscript code would exist elsewhere than the DECORATE lump?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Grouped action specials in DECORATE

Post by Graf Zahl »

No, I was impling that the suggested syntax won't happen. How precisely it will look I can't say, but most likely close to C++.
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Grouped action specials in DECORATE

Post by Major Cooke »

As in, like C++ but without all the harder stuff like having to do the nightmare that is C++ pointers such as (AActor*) and type conversion, etc. A more simplified version, right?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Grouped action specials in DECORATE

Post by Graf Zahl »

Since pointers are an essential part of how Doom works (think of target, tracer, master...) it won't be able completely without them, but it'll be a bit more like Java where you only have objects and don't need to think about the difference between an actual object and a pointer referencing it.
Edward-san
Posts: 1774
Joined: Sat Oct 17, 2009 9:40 am

Re: Grouped action specials in DECORATE

Post by Edward-san »

So let's say they are a sort of 'references', but with pointer arrow syntax?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Grouped action specials in DECORATE

Post by Graf Zahl »

You have to ask Randi. But my guess is it'll be struct syntax, just like Java and C#
User avatar
Major Cooke
Posts: 8209
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: Grouped action specials in DECORATE

Post by Major Cooke »

Graf Zahl wrote:... and don't need to think about the difference between an actual object and a pointer referencing it.
Yeah, that's what I meant. That'll be perfect.
User avatar
randi
Site Admin
Posts: 7749
Joined: Wed Jul 09, 2003 10:30 pm
Contact:

Re: Grouped action specials in DECORATE

Post by randi »

Oh, look! I did a thing.
User avatar
Nash
 
 
Posts: 17499
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Grouped action specials in DECORATE

Post by Nash »

That's such a game changer as far as plain old DECORATE is concerned. Thanks Randi!
User avatar
Fishytza
Posts: 792
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: They/Them
Contact:

Re: Grouped action specials in DECORATE

Post by Fishytza »

Brilliant!

Now, it would be even better if one could 'package' a set of action functions that are in a certain order into a single function so that it can be used by multible actors without having to copy-paste everything.
(It would also stop making me feel guilty for using CustomInventory derived "fake action functions" because I wouldn't have to use CustomInventory for such purposes anymore.)
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49231
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Grouped action specials in DECORATE

Post by Graf Zahl »

Guess what the scripting stuff is for...
User avatar
Fishytza
Posts: 792
Joined: Wed Feb 23, 2011 11:04 am
Preferred Pronouns: They/Them
Contact:

Re: Grouped action specials in DECORATE

Post by Fishytza »

*facepalm* yeah... I just noticed that the commit was for the scripting branch, not the main one like I thought. I didn't notice it before because I got over-excited. I'm an idiot. >.<
User avatar
Snarboo
Posts: 2599
Joined: Tue Nov 29, 2005 4:37 am

Re: Grouped action specials in DECORATE

Post by Snarboo »

Will grouped action functions be added to the main branch, or will we need to wait for DoomScript before we see this change added?
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”