Notes |
|
(0017842)
|
Fused
|
2017-06-19 06:02
|
|
A clientsided actor+script combination should always behave the same offline/online, since technically there's no difference for them. I can't check your PK3, but you should check if there's anything serversided involved, like accidental serversided parts or functions that are serverside, but you put clientside. |
|
|
(0017843)
|
Dark-Assassin
|
2017-06-19 06:25
(edited on: 2017-06-19 06:26) |
|
The actors have +CLIENTSIDEONLY, check use A_JumpIf with ACS_NamedExecuteWithResult and all scripts are CLIENTSIDE. Other similar scripts in here work fine though.
If I remove CLIENTSIDE from one specific script, it'll work fine. It's commented in the ACS source in the pk3.
|
|
|
(0017844)
|
Korshun
|
2017-06-19 12:46
(edited on: 2017-06-19 12:47) |
|
Your ACS has 7 clientsided named scripts, but the disassembly shows this:
script=-1 flags=clientside
script=-2 flags=clientside
script=-3 flags=clientside
script=-6 flags=clientside
script=-7 flags=clientside
scripts -4 (RegisterParticle) and -5 (UnRegisterParticle) are not clientside. And calling a serverside script clientside will return 0 without executing the script.
Recompiling the script with ACC yields this:
script=-1 flags=clientside
script=-2 flags=clientside
script=-3 flags=clientside
script=-4 flags=clientside
script=-5 flags=clientside
script=-6 flags=clientside
script=-7 flags=clientside
|
|
|
|
I swear I recompiled it just before I uploaded.
So, is there no way to make global variables clientsided? I want the particles to spawn based on the client's r_particles count rather than the server's. |
|
|
(0017846)
|
Korshun
|
2017-06-19 13:14
(edited on: 2017-06-19 13:15) |
|
Global variables ARE clientsided. Your compiler is broken. What compiler do you use?
The server and the client have separate copies of global variables.
|
|
|
(0017848)
|
Dark-Assassin
|
2017-06-19 13:50
(edited on: 2017-06-19 13:51) |
|
I use acc v1.55
Either way, if said scripts are clientsided, it simply does not work.
When they are not clientsided, they do work.
I just screwed up with the attached pk3, that's all.
I reattached it with the compiled script matching the source as particle2.pk3
|
|
|
|
How do I spawn the particles using this example wad?
Using "summon" is not an option, as "summon" spawns the actor serverside regardless of its flags. |
|
|
|
This one is summon. In the mod it's used in: A_SpawnItemEx("ParticleActor",0,0,0,0,0,0,0,SXF_NOCHECKPOSITION)
If I have the flag SFX_CLIENTSIDE, it'll just not spawn at all, even with all the destroying checks commented out. |
|
|
|
It works if the particle is spawned clientside. See example wad (summon ParticleSpawner).
Also, SXF_CLIENTSIDE is useless with +CLIENTSIDEONLY actors. It's only useful to force-spawn clientside an actor that is normally serverside. |
|
|
|
This can be closed. It was a user error much deeper in my code. |
|