Author Topic: Debug Warnings?  (Read 6601 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
It is a safety check that makes sure code wont divide by zero. That is afterburner - if defined - must have an amount of fuel defined for it as well. In other words +Aburn Fuel: must be defined.

That's probably a good case for using an Assertion rather than an Assert then. I'll update that now.

EDIT : Actually it should be a Warning not an Assert since there is no check that the value wasn't zero.
« Last Edit: February 22, 2010, 07:44:06 pm by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
This bugs me...I still have 16 warnings to fix, but this is the first one that pops up and FS2 debug closes after that. Until I deal with this, I can't fix other errors.

Also, reverse AB doesn't seem to work: Z + TAB and I get the afterburner sound, the ship shakes, but I ain't moving at all.
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Trashman, make (or clear) empty 'debug_filter.cfg' file into the main data directory and run debug. Then upload the log somewhere and post a link here.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Try this debug build. It should tell you which ship is the problem.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Thanx..I'll have to wait till Friday till I try it out tough... :blah:
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Here's hte FS2 log (with this latest build).

I get some really strange errors. This one again:


Code: [Select]
Assert: count < max_ints
File: parselo.cpp
Line: 2213

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes

And a inverted bounding box error for EVERY submodel that makes hte Phoenix...PCS screwed something up?

It never got to the Afterburner error, but it might be because I removed the Phoenix table entry. I'm positive it's the culprit, because I got it before I removed it.

Code: [Select]
ships.tbl(line 1172:
Error: Required token = [#End], [$Subsystem:], [$Name], or [$Template], found [$Rear Velocity: 50].

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes


[attachment deleted by admin]
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Code: [Select]
Found root pack 'E:\GAMES\Freespace 2\mediavps\ma-sdrvfix.vp' with a checksum of 0xeb53ee0a
Found root pack 'E:\GAMES\Freespace 2\mediavps\MV_Complete.vp' with a checksum of 0x31df7754

Please update.

Code: [Select]
ASSERTION: "count < max_ints" at parselo.cpp:2213
Freeing all existing models...

Without a call stack, it's hard to tell where this error originated, but I assume that there is an int list in your tbl somewhere (An int list is a list of ints, taking the form ( 1 2 3 ) for example) that has one or more arguments too many, or that does not have a closing bracket.

Code: [Select]
FreeSpace version: 3.6.13
Where did you get this?
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Kajorama, 3 posts up.

I'm trying to find where that error could possibly be, but so far nothing..
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Am not getting that error anymore..

BUT..I am not getting any ships either. It's like the whole ships table is ignored.
The techroom is empty.
In FRED, only waypoitns and the AtenMk2 (added with a tbm) appear.



All I did was to remove the Phoenix from the tables, and fiddle with the Armageddon, LB and Claymore entris...and nothing strikes me as wrong:
Code: [Select]
$Allowed PBanks:        ( "Redeemer") ( "Gurthang HL-9R" "Akheton SDG" "Morning Star" "Prometheus S" "Maxim" )
$Allowed Dogfight PBanks:  ("Redeemer" ) ( "Gurthang HL-9R" )
$Default PBanks:        ( "Redeemer" "Prometheus S" )
$PBank Capacity: ( 500, 100 )
$Allowed SBanks:        ( "Tempest" "Judgment Day" "Tornado" "Trebuchet" "Piranha" "Stiletto II" "Cyclops" "Cyclops#short" "Helios" "EMP Adv." "Infyrno" )
$Allowed Dogfight SBanks:        ( )
$Default SBanks:        ( "Judgment Day" "Judgment Day" "Tempest" )
$SBank Capacity:        ( 160, 160, 80 )



$Allowed PBanks: ( "Prometheus S"  "Lamprey" "Phalanx" "Maxim" "Gurthang HL-9R" ) ( "Obliderator" )
$Allowed Dogfight PBanks: ( "Gurthang HL-9R" ) ( "Obliderator" )
$Default PBanks: ( "Gurthang HL-9R" "Obliderator" )
$Pbank Capacity: ( 200, 400 )
$Allowed SBanks: ( "Rockeye"  "Tornado" "Trebuchet" "Stiletto II" "Piranha" "Cyclops" "Cyclops#short"  "EMP Adv." "Infyrno" )
$Allowed Dogfight SBanks: ( )
$Default SBanks: ( "Infyrno" "Tempest" )
$SBank Capacity: ( 80, 80 )



$Allowed PBanks: ( "Redeemer" )
$Allowed Dogfight PBanks: ( "Gurthang HL-9R" )
$Default PBanks: ( "Redeemer" "Redeemer" )
$Pbank Capacity: ( 400, 400 )
$Allowed SBanks: ( "Rockeye" "Tornado" "Trebuchet" "Stiletto II" "Piranha" "Cyclops" "Cyclops#short" "EMP Adv." "Infyrno" "Balista" "HMMOA-3" )
$Allowed Dogfight SBanks: ( )
$Default SBanks: ( "Cyclops" )
$SBank Capacity: ( 180 )
« Last Edit: February 27, 2010, 04:57:54 am by TrashMan »
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Code: [Select]
ASSERTION: "count < max_ints" at parselo.cpp:2213
Freeing all existing models...

Without a call stack, it's hard to tell where this error originated, but I assume that there is an int list in your tbl somewhere (An int list is a list of ints, taking the form ( 1 2 3 ) for example) that has one or more arguments too many, or that does not have a closing bracket.
The count < max_ints is annoying as it doesn't show which data or even which table it was processing. However.. looking at his fs_open2.log it seems like the error is coming from the 'obt' tbm or in something else after it...

To detect which one i specifically asked him to run with emptied 'debug_filter.cfg' file which he has not done.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Where can I find that file? It's not in the FS directory, nor hte the FS2/Data
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
You need to create one. Just make an empty text file in your fs2\data folder, and rename it to debug_filter.cfg.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Here's the log with the debug_filter file

[attachment deleted by admin]
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Thank you. Now. Can you make it crash again and post THAT log? Because AFAICT, everything went right in that runthrough...
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
It went right? Must be because I removed the Phoenix entry. So it WAS the culprit.

But if everything is OK in that runtrough, why don't I have any ships in the techroom or FRED? Why can't I select the campaign?

I added the Phoenix in, but it didn't crash (could be because I removed the $Rear Velocity entry). Still nothing showing up in the TR or FRED.


EDIT:
I found what was wrong. The very beginning of hte ship.tbl got messedup. Dunno how. the cursor must have jumped while I was typing, because hte first line was

so#Default Player Ship

How that "so" got there, I have no idea.

Anyway, now that it goes trough the table again, I run it trough a debug with a clean log and got some mroe errors....the ints one was there.

Attached the log.

[attachment deleted by admin]
« Last Edit: February 27, 2010, 01:54:42 pm by TrashMan »
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Code: [Select]
Stuffed string = [GTSG Hydra]
Ship name -- GTSG Hydra
Stuffed string = [TSSGun]
Ship short name -- TSSGun
Stuffed string = [Terran]
Ship species -- Terran
Here's the partial wad of text:
XSTR("The latest word in small
Found required string [$end_multi_text]
Stuffed string = [The latest word in small stati]
Stuffed string = [SSG.pof]
Stuffed int: 0
Stuffed int: 100
Stuffed int: 500
Stuffed bool: true
Stuffed float: 1.000000
Ship density --   1.000
Stuffed float: 0.200000
Ship damp --   0.200
Stuffed float: 0.200000
Ship rotdamp --   0.200
Ship Class 'GTSG Hydra' delta_bank_const --   0.500
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 20.000000
Stuffed float: 20.000000
Stuffed float: 20.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed bool: true
Stuffed float: 0.000000
Found required string [$SBank Capacity:]
Stuffed float: 1200.000000
Stuffed float: 5.000000
Stuffed float: 0.000000
Stuffed float: 0.000000
Stuffed float: 800.000000
Stuffed string = [General]
Stuffed bool: true
Stuffed int: 0
Stuffed int: 2000
Stuffed string = [-1]
Stuffed float: 0.000000
Stuffed float: 0.500000
Stuffed float: -20.000000
Stuffed float: 0.500000
Stuffed string = [genericshield]
Stuffed int: 6
Found required string [$Subsystem:]
Found required string [$Subsystem:]
Stuffed string = [Turret01]
Stuffed float: 20.000000
Stuffed float: 1.000000
ASSERTION: "count < max_ints" at parselo.cpp:2213
Freeing all existing models...

Please learn how to interpret a log. Look for the GTSG Hydra entry. Check if the data supplied for the turret01 subsystem is actually valid.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Also, reverse AB doesn't seem to work: Z + TAB and I get the afterburner sound, the ship shakes, but I ain't moving at all.

As mentioned elsewhere, I forget to state that "$Rear Velocity:" is required. I just now updated the wiki to reflect that in both '$Rear Velocity:' and in '+Aburn_Max_Reverse_Vel:'.

Code: [Select]
#Ship Classes

$Name: GTF Ulysses
+nocreate
$Afterburner: YES
+Aburn Max Reverse Vel: 40.0
+Aburn Rev accel: 2.0
#End

That wont work. This will:

Code: [Select]
#Ship Classes

$Name: GTF Ulysses
+nocreate
$Rear Velocity: 20.0
$Afterburner: YES
+Aburn Max Reverse Vel: 40.0
+Aburn Rev accel: 2.0
#End
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
Thank you..

I found it:


$Subsystem:                     Turret01, 20, 1.0
   $Default PBanks:        ( "Vulcan" "Vulcan" "FighterKiller" "FighterKiller" )
$Subsystem:                     Turret02, 20, 1.0
   $Default PBanks:        ( "Vulcan" "Vulcan" "FighterKiller" "FighterKiller" )


Thjis entry was the problem.


B.t.w. - how do Thruster Indexes work? I get a index warning when adding maneuvreing thrusters.
Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Which warning exactly?
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline TrashMan

  • T-tower Avenger. srsly.
  • 213
  • God-Emperor of your kind!
    • FLAMES OF WAR
My entry for reverse thrusters:

Code: [Select]
$Thruster:
+Index: 1
+Used For: ("Reverse")
+Position: (0.8 -0.22 10.9)
+Normal: (0 0 1)
+Texture: thruster02-01
+Radius: 0.5
+Length: 1
$Thruster:
+Index: 2
+Used For: ("Reverse")
+Position: (-0.8 -0.22 10.9)
+Normal: (0 0 1)
+Texture: thruster02-01
+Radius: 0.5
+Length: 1




and the debug warnings:


Code: [Select]
For 'RailgunImpact', 3 of 4 LODs are missing!
<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes



Invalid index (1) specified for maneuvering thruster on ship GTF Phoenix
<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes



Invalid index (2) specified for maneuvering thruster on ship GTF Phoenix
<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes



ships.tbl(line 10289:
Warning: Error parsing id# in XSTR() tag XSTR(
"The Hydra is the smallest shivan fighter we observed. It's usually fielded in great numbers, intended to swarm the enemy. While unusually fragile, it is also well armed." -1)

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes


Pbank capacity specified for non-ballistic-primary-enabled ship GTF Ares Pimp.
Resetting capacities to 0.

<no module>! KiFastSystemCallRet
<no module>! WaitForSingleObject + 18 bytes
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! <no symbol>
<no module>! RegisterWaitForInputIdle + 73 bytes


Nobody dies as a virgin - the life ****s us all!

You're a wrongularity from which no right can escape!