Page 1 of 1
Debugging "too many statemasks" error
Posted: Sat Apr 17, 2010 11:28 am
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

.
Re: Debugging "too many statemasks" error
Posted: Sat Apr 17, 2010 5:29 pm
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.

Re: Debugging "too many statemasks" error
Posted: Sat Apr 17, 2010 9:47 pm
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...