[fixed] "Thing_SetGoal" Argument 4 Problem

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

[fixed] "Thing_SetGoal" Argument 4 Problem

Post 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 :()
User avatar
Phobus
Posts: 227
Joined: Sat Sep 03, 2005 11:48
Location: Orpington, Kent, England
Contact:

Post 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.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post by Graf Zahl »

Ugh...

Stupid typo.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
User avatar
Phobus
Posts: 227
Joined: Sat Sep 03, 2005 11:48
Location: Orpington, Kent, England
Contact:

Post 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.
User avatar
Tormentor667
Stronghold Team
Posts: 3555
Joined: Sun Nov 13, 2005 23:15
Location: Germany
Contact:

Post by Tormentor667 »

Graf Zahl wrote:Ugh...
Stupid typo.
Great, so it's fixed :) New version when? ;) *Mr.Impatience*
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Post 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.
Locked

Return to “Closed Bugs”