Home » MODDING HQ 1.13 » v1.13 General Development Talk » Debugging
Debugging[message #251726] Mon, 17 May 2010 02:34 Go to next message
Hague is currently offline Hague

 
Messages:9
Registered:October 2008
I'm debugging my version of HAMSTOMP 3.6 and I've encountered some interesting bugs. I get a debug error that reads: FAILED: ADD STRUCT INFO FOR MERC # (NAME) AT *position* DIRECTION (6)

I noticed that it prevents the AI from even knowing that the merc is even there. They will move toward the enemy but they won't fire. Anyone encounter this before and is there anything I can do about it?

Also, when the merc entered the area, his palette swapped to purple. Is this an issue with using Wildfire content?

Report message to a moderator

Private
Re: Debugging[message #251727] Mon, 17 May 2010 02:56 Go to previous messageGo to next message
Headrock

 
Messages:1760
Registered:March 2006
Location: Jerusalem
Quote:
I get a debug error that reads: FAILED: ADD STRUCT INFO FOR MERC # (NAME) AT *position* DIRECTION (6)


That's one of the oldest bugs I know, I've been seeing it around ever since as I learned how to run Debug mode. I think it has something to do with the game picking an illegal gridno, but I've never thoroughly explored it.

Quote:
I noticed that it prevents the AI from even knowing that the merc is even there. They will move toward the enemy but they won't fire. Anyone encounter this before and is there anything I can do about it?


So you're saying that this is part of DecideActionBlack? It occurs during AI computations? I always thought it had something to do with placements... Could you explain more thoroughly what the program is trying to do and what happens when it fails?

Quote:

Also, when the merc entered the area, his palette swapped to purple. Is this an issue with using Wildfire content?


Yes, the wildfire palettes are hacked to make enemies with different uniforms. Every color's been shifted around. It's no longer required now that HAM 3.6's uniform externalization is available, but WildFire still comes packaged with that altered palette for some reason.

Report message to a moderator

Sergeant Major

Re: Debugging[message #251729] Mon, 17 May 2010 03:07 Go to previous message
Hague is currently offline Hague

 
Messages:9
Registered:October 2008
Quote:
So you're saying that this is part of DecideActionBlack? It occurs during AI computations? I always thought it had something to do with placements... Could you explain more thoroughly what the program is trying to do and what happens when it fails?


I haven't explored it fully. All I noticed was that the AI would refuse to attack the merc because it didn't recognize his structure data. From what I gather, the enemy didn't seem to "know" that the merc was there on the roof because they didn't fire at him, even from 2 tiles away. They would simply run to the edge of the building. This might be an issue with other things but it seems likely that if the game doesn't properly apply the multi-tiling to the merc's struct, then the game won't recognize that they are there and can't aim at them. At least, that's a guess. Razz

Addendum: The error message was thrown whenever a unit would climb up to a higher level. It even threw the message when the enemy soldier climbed up a nearby roof as well.

[Updated on: Mon, 17 May 2010 03:13] by Moderator

Report message to a moderator

Private
Previous Topic: Does The 7.62x39 C-mag Adapter Work?
Next Topic: Realistic Explosives
Goto Forum:
  


Current Time: Sun May 19 00:09:00 GMT+3 2024

Total time taken to generate the page: 0.01048 seconds