Debugging "too many statemasks" error

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Debugging "too many statemasks" error

Post by Senshi »

Well, long story short: I compiled a new mod version and now have the error stated above. I know it's related to the Networkableinfos (problem only occurs when connecting on local dedi or "real" online server). Problem is, I have no idea where the problem originates.

Any tips on how to debug this sucker? bf1942_r.exe doesn't work on dedes, and as the error only occurs there, this option is dead :( .
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Debugging "too many statemasks" error

Post by Apache Thunder »

This error is the result of one of your vehicles having too many networked objects on it. (too much network info basically).


Only way to debug it is to remove vehicles one at a time until you find the culprit. :(
ImageImageImage
I have cameras in your head!
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Debugging "too many statemasks" error

Post by Senshi »

Yeah, I know what causes this error...but I hoped there was an easier way to debug for the specific code that causes it. Coolest thing would be a way to make the debugger work on dedi servers too...Like creating a debugger dedi server, connecting with debugger...that would be extremly helpful...

I found the problematic vehicle. Took me 4 hours :( . Once again I broke the golden rule: Test your build regularly...I really should know better by now...

In my case the problem was the Sdkfz251-R (Hanomag "Stuka zu Fuß" with 6 artillery rocket launchers). I wanted to "merge" the gunner and driver position (driver being able to fire the rockets).

As every rocket has to be coded seperatly (can't be bundled, because they rotate independently), I merged them and addtemplated the rocketracks to the complex:

Code: Select all

ObjectTemplate.create Bundle SdKfz251-1RComplex
ObjectTemplate.loadSoundScript Sounds/SdKfz251-1RTrack.ssc
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.addTemplate lodSdKfz251-1RCockpit
ObjectTemplate.addTemplate SdKfz251-1RSeat
ObjectTemplate.setPosition -0.31/0.49/0.67
ObjectTemplate.addTemplate SdKfz251-1RCamera
ObjectTemplate.setPosition -0.414/1.1/0.83
ObjectTemplate.addTemplate SdKfz251-1REntry
ObjectTemplate.setPosition 0.0/0.0/1.7
ObjectTemplate.addTemplate SdKfz251-1REntry
ObjectTemplate.setPosition 0.0/0.0/-1.2
rem ObjectTemplate.addTemplate SdKfz251-1R_Gunner_PCO1
ObjectTemplate.addTemplate SdKfz251-1R_MG34_PCO2
ObjectTemplate.addTemplate SdKfz251-1R_Passenger_PCO3
ObjectTemplate.addTemplate SdKfz251-1R_Passenger_PCO4
ObjectTemplate.addTemplate SdKfz251-1R_Passenger_PCO5

ObjectTemplate.addTemplate SdKfz251-1RWheelFR
ObjectTemplate.setPosition 0.87/-0.23/2.76
ObjectTemplate.addTemplate SdKfz251-1RWheelFL
ObjectTemplate.setPosition -0.87/-0.23/2.76
ObjectTemplate.addTemplate SdKfz251-1REngine
ObjectTemplate.addTemplate SdKfz251-1RRocketRack
rem ---
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation5
ObjectTemplate.setPosition -1.075/1.037/-1.902
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation6
ObjectTemplate.setPosition 1.059/1.037/-1.902
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation1
ObjectTemplate.setPosition -1.075/0.595/0.657
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation2
ObjectTemplate.setPosition 1.059/0.595/0.657
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation3
ObjectTemplate.setPosition -1.075/0.814/-0.633
ObjectTemplate.addTemplate SdKfz251-1RRocketRackRotation4
ObjectTemplate.setPosition 1.059/0.814/-0.633
Guess I'll have to experiment a bit to find a way to make this work...
Post Reply