Page 1 of 1
[fixed] "Thing_SetGoal" Argument 4 Problem
Posted: Thu May 18, 2006 13:59
by Tormentor667
I found a evil bug

Just test the following wad:
http://home.arcor.de/tormentor667/test2.zip
In the left room, the path nodes and Thing_SetGoal parts are assigned to the thing by Script, in the right room, they are directly assigned to the thing with the special. In the right room it works fine, but in the left room it doesn't (and so it doesn't in Stronghold what's pretty bad
So the problem is obvious: The fourth argument set to 1 only works if the special is directly assigned to a monster, but doesn't work if done via script (so in Stronghold it doesn't work

)
Posted: Thu May 18, 2006 14:08
by Phobus
Just an additional note:
If you edit your zspecial lump to allow you to have 6 arguments on Set_ThingSpecial, it appears not to work anyway (You have to edit it to put a 4th argument in, and make it compile), however that might be because I was having that command followed by another Set_ThingSpecial, so it still doesn't work for Stronghold, or at least my rather dodgy handling of the scripts.
I'll experiment some more before saying this is definite, but it seems to be the case.
Posted: Thu May 18, 2006 14:10
by Graf Zahl
Ugh...
Stupid typo.
Posted: Thu May 18, 2006 14:12
by Graf Zahl
Phobus wrote:Just an additional note:
If you edit your zspecial lump to allow you to have 6 arguments on Set_ThingSpecial, it appears not to work anyway (You have to edit it to put a 4th argument in, and make it compile), however that might be because I was having that command followed by another Set_ThingSpecial, so it still doesn't work for Stronghold, or at least my rather dodgy handling of the scripts.
I'll experiment some more before saying this is definite, but it seems to be the case.
You cannot edit an action special to have more than 5 args. 5 is the limit the engine supports.
Posted: Thu May 18, 2006 14:15
by Phobus
Well, that would explain why it wasn't working then...
Still, judging by this threads new home, I'd say you've fixed it.
Posted: Thu May 18, 2006 15:48
by Tormentor667
Graf Zahl wrote:Ugh...
Stupid typo.
Great, so it's fixed

New version when?

*Mr.Impatience*
Posted: Thu May 18, 2006 16:00
by Graf Zahl
Uploading right now. Please keep in mind that from tomorrow I won't be able to do any more work due to my vacation so if there's another problem you will have to wait until next Sunday.