Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002367Zandronum[All Projects] Bugpublic2015-08-03 04:532016-03-30 03:14
ReporterFascistCat 
Assigned ToDusk 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version2.1 
Target VersionFixed in Version 
Summary0002367: Using ACS_ExecuteWithResult in DECORATE always return 0 in a netgame
DescriptionWhen using the function inside a CustomInventory actor, the return value set by the script (which is different from zero) is returned correctly in single player mode. However, when using the scripts in a net game, the returned value is always zero, no matter what value is set.

Tested in Zand v2.1.2.
Steps To ReproduceWrite a line in DECORATE calling ACS_ExecuteWithResult. Use the result in a A_JumpIf and compare the result to an arbitrary value non equal to zero. Value returned by script will always be zero when in a netgame.
Additional InformationAttached ACS + DECORATE demonstrating the effect.
Attached Files? file icon testExecuteWithResult.pk3 [^] (1,208 bytes) 2015-08-03 04:53

- Relationships

-  Notes
User avatar (0013812)
hjalg (reporter)
2015-11-15 19:32

I agree. Theres something wrong with ACS_ExecuteWithResult and A_JumpIf in a netgame. Somehow this function executes twice in my DECORATE. First execute returns 0, second returns correct value.
User avatar (0013841)
Dusk (developer)
2015-11-18 01:15

Unfortunately Zandronum currently does not handle this kind of combining of A_JumpIf and ACS_ExecuteWithResult at all. The server and the client both call such ACS no matter if it's a clientside script or not currently and we cannot really change it one way or another. So I'm afraid all I can do is say "don't do that".
User avatar (0013843)
Borg (reporter)
2015-11-18 17:43
edited on: 2015-11-18 17:43

Thats very interesting...
I have many decorate actors with ACS_ExecuteWithResult and they all work perfectly. They arent CustomInventory tho, mostly Weapon and Player class.. sometimes plain actor.. like this:

actor YAllmap replaces Allmap
{
states
  {
  Spawn:
    TNT1 A 10
    TNT1 A 0 A_JumpIf(ACS_ExecuteWithResult(820,1)==1,2)
    TNT1 A 1 A_SpawnItem("MAllmap")
    stop
    TNT1 A 1 A_SpawnItem("MUltraSphere")
    stop
  }
}

User avatar (0013844)
Monsterovich (reporter)
2015-11-18 18:20

>I have many decorate actors with ACS_ExecuteWithResult and they all work perfectly.

May be because you have serverside scripts?
User avatar (0013850)
Borg (reporter)
2015-11-18 22:01

I just downloaded the example and noticed the CLIENTSIDE.. Ugh..
Yeah, all of them are server side indeed.. Sorry for trouble.
User avatar (0013877)
Dusk (developer)
2015-11-24 12:53

This will certainly have to be addressed some way or another. Let's hope it doesn't break too many mods, though we can compatflag those if necessary.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: Monsterovich FascistCat S_Andrew_S
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2015-08-03 04:53 FascistCat New Issue
2015-08-03 04:53 FascistCat File Added: testExecuteWithResult.pk3
2015-11-15 19:32 hjalg Note Added: 0013812
2015-11-18 01:15 Dusk Note Added: 0013841
2015-11-18 16:17 Monsterovich Note Added: 0013842
2015-11-18 16:20 Monsterovich Note Deleted: 0013842
2015-11-18 17:43 Borg Note Added: 0013843
2015-11-18 17:43 Borg Note Edited: 0013843 View Revisions
2015-11-18 18:20 Monsterovich Note Added: 0013844
2015-11-18 22:01 Borg Note Added: 0013850
2015-11-24 12:53 Dusk Note Added: 0013877
2015-11-24 12:53 Dusk Assigned To => Dusk
2015-11-24 12:53 Dusk Status new => acknowledged
2016-03-30 01:53 S_Andrew_S Note Added: 0014617
2016-03-30 02:48 S_Andrew_S Note Edited: 0014617 View Revisions
2016-03-30 02:50 S_Andrew_S Note View State: 0014617: private
2016-03-30 02:50 S_Andrew_S Note Edited: 0014617 View Revisions
2016-03-30 03:14 S_Andrew_S Note Edited: 0014617 View Revisions
2016-03-30 03:14 S_Andrew_S Note Deleted: 0014617






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker