HaZardModding / hzm-mohaa-coop-mod

HaZardModding Coop Mod for Medal of Honor Allied Assault and BT
http://HazardModding.com
9 stars 3 forks source link

e1l1 - parade script error #54

Closed Chrissstrahl closed 3 years ago

Chrissstrahl commented 3 years ago

Initializing parade script if ($paradetrigger[local.i].target.target == NIL) //chrissstrahl - it probably is right (global/parade.scr, 103) if ($paradetrigger[local.i].target^

^~^~^ Script Error: There are 0 entities with targetname 'bunkerapproachorigin'. You are using a command that requires exactly one.

parade script origin has no target Initializing parade abort 1 $paradedeletetrigger[local.i] setthread DeleteParadeTrigger (global/parade.scr, 145) $paradedeletetrigger[local.i] ^

^~^~^ Script Error: Failed execution of command 'setthread' for class 'PathNode' Targetname 'paradedeletetrigger'

Chrissstrahl commented 3 years ago

I could not fix this, this could be a multiplayer problem or not. I didn't really bother with it, but it would be nice to not have that error message in the logs.

vs98-dev commented 3 years ago

This check is wrong, should be like this: f ($paradetrigger[local.i].target == NIL)

1337Smithy commented 3 years ago

I assume it's trying to find the target's target i.e. 2 nodes away, so not necessarily wrong. It probably should include a check on the first target though.

1337Smithy commented 3 years ago

$paradetrigger[local.i].target.target is correct.

the check beforehand required was:

if($($paradetrigger[local.i].target) == NULL){ continue }

To check the entity exists. Also included a classname check for dev errors on map.

Should be fixed: https://github.com/Chrissstrahl/hzm-mohaa-coop-mod/commit/32409c598c7412175baff0d2a6321f098d760698