Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Scooby_Doo on May 01, 2013, 03:55:50 am

Title: Any idea what this error is?
Post by: Scooby_Doo on May 01, 2013, 03:55:50 am
I'm getting this error, only thing I understand is it's dealing with the hud and something about initialized positions :confused: No idea where the error is occuring in the table though.

Code: [Select]
Assert: x >= 0 && y >= 0
File: hud.cpp
Line: 403

ntdll.dll! NtWaitForSingleObject + 12 bytes
KERNELBASE.dll! WaitForSingleObject + 18 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! SCP_DumpStack + 354 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! WinAssert + 194 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! HudGauge::initPosition + 71 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! load_gauge_damage + 1599 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! load_gauge + 305 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! parse_hud_gauges_tbl + 2422 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! hud_positions_init + 107 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! game_init + 1716 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! game_main + 519 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! WinMain + 330 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! __tmainCRTStartup + 358 bytes
fs2_open_3_7_0_RC1-DEBUG.exe! WinMainCRTStartup + 15 bytes
KERNEL32.DLL! BaseThreadInitThunk + 14 bytes
ntdll.dll! RtlInitializeExceptionChain + 133 bytes
ntdll.dll! RtlInitializeExceptionChain + 88 bytes
Title: Re: Any idea what this error is?
Post by: niffiwan on May 01, 2013, 04:00:23 am
Can you post the debug log?  Vaguely looks like a hud gauge (damage?) is trying to be drawn off screen.
Title: Re: Any idea what this error is?
Post by: Scooby_Doo on May 01, 2013, 04:06:42 am
Only thing I see offhand there is the $Ship is deprecated.


[attachment deleted by ninja]
Title: Re: Any idea what this error is?
Post by: Scooby_Doo on May 01, 2013, 04:07:52 am
Can you post the debug log?  Vaguely looks like a hud gauge (damage?) is trying to be drawn off screen.

Hmmm damage... I do have the position set to (-5, 0) let me check that.

Yup that's it.. but it shouldn't be classified as a bug, thats about the only way I can get the damage display to show up correctly in the hud texture (the damaged values get clipped off).
Title: Re: Any idea what this error is?
Post by: FUBAR-BDHR on May 01, 2013, 04:16:47 am
Yea negative values aren't allowed there. 
Title: Re: Any idea what this error is?
Post by: Scooby_Doo on May 01, 2013, 04:28:47 am
I know I can enlarge hud gauge sizes by altering the display size, but is it possible to shrink the size of the gauge?  Putting in the opposite values for enlarging just cuts the gauge.