Apeirogon wrote:You add string CVAR in cvarinfo?
Yes, all the CVARs are defined properly
- Code: Select all • Expand view
server noarchive string Slot1 = Soulsphere;
worldendDominator wrote:I think the error if that the engine doesn't know that function in the first place.
Are you running it in Zandronum? If you are, then does the same happen in fresh GZDoom?
I actually tested it in ZDoom 2.8.1, to make sure the code is right, before seeing if it's Zan-compatible
However, running it in the newest nightly of GZ
did produce new results, and I think I see the issue there, but that doesn't help for my situation...
gzdoom-g3.3pre-64-g0e706bf wrote:Script error, "DoakEngine.pk3:decorate" line 23:
Invalid global identifier 'Soulsphere'
Script error, "DoakEngine.pk3:decorate" line 24:
Invalid global identifier 'Megasphere'
-----------------------------------------------------------------------------------------------------------------------------------------
New engine, new problems
- Code: Select all • Expand view
ACTOR PowerupSpawn
{
Radius 1
Height 1
States
{
Spawn:
PICO N 0
Goto CVARSrch
CVARSrch:
TNT1 A 0 A_JumpIf(GetCVar(Slot1) == "Soulsphere", "Soulsphere")
TNT1 A 0 A_JumpIf(GetCVar(Slot1) == "Megasphere", "Megasphere")
Stop
Soulsphere:
TNT1 A 0 A_SpawnItemEx ("Soulsphere")
Stop
Megasphere:
TNT1 A 0 A_SpawnItemEx ("Megasphere")
Stop
}
}
Now produces
gzdoom-g3.3pre-64-g0e706bf wrote:Script error, "DoakEngine.pk3:decorate" line 23:
Incompatible operands for == comparison
Script error, "DoakEngine.pk3:decorate" line 24:
Incompatible operands for == comparison