ACS_NamedExecute()

Discuss all aspects related to modding Zandronum here.
Post Reply
Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

ACS_NamedExecute()

#1

Post by Galaxy_Stranger » Wed May 28, 2014 8:01 pm

Can ACS_NamedExecute be called from within a decorate actor via Thing_SetSpecial? ACS_Execute works.

I'm really asking for Zandronum 2.x.

User avatar
TheMightyHeracross
Forum Regular
Posts: 176
Joined: Mon Aug 26, 2013 3:50 pm
Location: Philadelphia, PA

RE: ACS_NamedExecute()

#2

Post by TheMightyHeracross » Wed May 28, 2014 8:06 pm

This is a a ZDoom 2.6.0 feature IIRC. Don't expect it for a very long time.
THE MIGHTY HERACROSS

Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

RE: ACS_NamedExecute()

#3

Post by Galaxy_Stranger » Wed May 28, 2014 8:17 pm

Oh, it's not even in GZDoom yet?

Klofkac
Forum Regular
Posts: 481
Joined: Sat Jun 09, 2012 1:31 pm
Location: Ask Grandvoid servers

RE: ACS_NamedExecute()

#4

Post by Klofkac » Wed May 28, 2014 8:21 pm

It is in both ZDoom and GZDoom. Not in Zandronum.
𝕂𝕝𝕠𝕗𝕜𝕒𝕔

User avatar
TheMightyHeracross
Forum Regular
Posts: 176
Joined: Mon Aug 26, 2013 3:50 pm
Location: Philadelphia, PA

RE: ACS_NamedExecute()

#5

Post by TheMightyHeracross » Thu May 29, 2014 9:47 pm

GZDoom is always up to date with ZDoom. Graf Zhal himself is a codeveloper of ZDoom as well, which probably helps.
THE MIGHTY HERACROSS

Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

RE: ACS_NamedExecute()

#6

Post by Galaxy_Stranger » Thu May 29, 2014 10:42 pm

Is there any plan to add this to Zandronum 2.x?

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: ACS_NamedExecute()

#7

Post by Vincent(PDP) » Sat May 31, 2014 7:50 am

Galaxy_Stranger wrote: Is there any plan to add this to Zandronum 2.x?
Maybe... I think Zandronum 2.0 backported ZDoom 2.5.0. And it seems like named scripts were added in ZDoom 2.6.0.

But correct me if I'm wrong. :#
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: ACS_NamedExecute()

#8

Post by Lollipop » Sat May 31, 2014 1:22 pm

Well, to work around this you could use a numbered script that got a executes to the named script, so it works as a database. You just pass a value for the first script parameter with your acs_execute. (I am far from being a pro at ACS, though I do believe this should work)
Spoiler: code (Open)
script 1 (SOMETHING) {
if(SOMETHING==1){
acs_namedexecute(parameters here)
}
if(SOMETHING==2){
acs_namedexecute(other parameters here)
}
if(SOMETHING==1){
acs_namedexecute(you got the idea by now)
}}

Do not hang me up on it though
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

User avatar
TheMightyHeracross
Forum Regular
Posts: 176
Joined: Mon Aug 26, 2013 3:50 pm
Location: Philadelphia, PA

RE: ACS_NamedExecute()

#9

Post by TheMightyHeracross » Sat May 31, 2014 1:30 pm

That will not work- the entire point is that there are no named scripts yet. That includes from another script.
Last edited by TheMightyHeracross on Sat May 31, 2014 1:31 pm, edited 1 time in total.
THE MIGHTY HERACROSS

Lollipop
Zandrone
Posts: 1124
Joined: Tue Jul 24, 2012 10:34 am
Location: Denmark

RE: ACS_NamedExecute()

#10

Post by Lollipop » Sat May 31, 2014 1:51 pm

Named scripts worked last time I tested it? I am pretty sure they work, or maybe I tried in zdoom without noticing it :razz:
Combinebobnt wrote:i can see the forum league is taking off much better than the ctf ones
GalactusToday at 1:07 PM
are you getting uncomfortable jap
feeling something happen down there

Galaxy_Stranger
 
Posts: 21
Joined: Fri Oct 19, 2012 7:05 pm
Contact:

RE: ACS_NamedExecute()

#11

Post by Galaxy_Stranger » Sat May 31, 2014 4:03 pm

They work on the 2.0 del builds.

I just don't want to structure all my scripts that way if I don't have to.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: ACS_NamedExecute()

#12

Post by Torr Samaho » Sat May 31, 2014 4:07 pm

Galaxy_Stranger wrote: Is there any plan to add this to Zandronum 2.x?
Right now, upgrading to ZDoom 2.6.0 is not planned for Zandronum 2.0.

Post Reply