Page 1 of 1
[Help!] Corrupt StaticObjects.Con
Posted: 2008-10-10 22:52
by Terror_Terror_Terror
Somehow my static objects con seems to think there's a million instances of each object when there isn't. In the editor it looks fine, in the actual con file it looks fine, but it crashes on loading when it hit's 15% and in the debugger I get what appear to be a billion errors for objects that don't exist. Any ideas?
Maybe there is an evil object corrupting my young and innocent objects con or something worse!
Here's the first 8 error messages I get out of literally a billion (all similar to the ones shown but relating to different objects). There are only 2 actual instances of the object in the examples both in the editor and the con file.

Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-10 23:52
by J.F.Leusch69
it looks like they are all about "house_small_ruin", so i guess that you should delete them (bevor that of cours back up!) and then test it again. but you said that there are more "errors" so take a look which objects do not work and delete them step by step.
and did you tried to test your level without the statics?!
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-11 00:06
by Terror_Terror_Terror
Unfortunately it's every object not just that one. But one of the things is in the examples there are 3 instances but in the con there are only 2. There are about 50 or more errors for that object alone pertaining to many different instances but there are only 2 instances in actuality.
I do have an older working version of the .con but not only has a significant amount of work taken place but I had this problem on an old StaticObjects.con for the same map but I discarded it because 0.8 came out and made new one (this one).
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-11 00:21
by CodeRedFox
This is the editor correct? A freash install of the editor is sometimes required. What about your daily backups?
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-11 00:24
by Rhino
search for thous values in your staticobjects.con file and you will find some messed up lines of code they belong to, delete them by hand.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 00:19
by Terror_Terror_Terror
[R-DEV]coderedfox wrote:This is the editor correct? A freash install of the editor is sometimes required. What about your daily backups?
Everything is fine in the Editor and my Editor seems ok, i think it's something to do with the map.
[R-DEV]Rhino wrote:search for thous values in your staticobjects.con file and you will find some messed up lines of code they belong to, delete them by hand.
The values don't exist in the StaticObjects.con!
1/2 Hawk recons it's something to do with using custom statics! We have added 2 of Ghosts statics in there.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 00:26
by Rhino
look its not hard, you do a search in the staticobjects.con file for the value from the error, ie, one error has the position of one of the statics, so go ctrl+f and type in the pos in the box you want it to find ie: 351.917/25.000/-347.809
then you will find out what area of code or the object its on about the error is coming from...
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 00:29
by Terror_Terror_Terror
Yeah I did that several times to make sure but those values don't exist in the file.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 00:32
by Rhino
Terror_Terror_Terror wrote:Yeah I did that several times to make sure but those values don't exist in the file.
then your doing something wrong cos the errors dont make up the values.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 00:38
by Terror_Terror_Terror
Ok I just did it again now exactly as you said, exactly as I did it before, with two different sets of values and the result was the same. Check out what 1/2 Hawk said it may make more sense to you than me but it seems like he's come across similar:
Corrupt Staticobjects.con Help! - Official BF Editor Forums
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 01:31
by Terror_Terror_Terror
I just tried some different errors and it found them but I still have unresolved ones. I'm not sure finding the errors changes that much though, basically I'm pretty sure that every object has errors relating to it but there appear to be errors that relate to objects that aren't actually there. There are literally a billion errors maybe more I kid you not, in one debugging run I went through all the error messages with an auto clicker to try and see how many there were and it lasted for over 5 minutes at 5 milliseconds per click, that's 200 clicks per second!

Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 01:44
by Rhino
upload your staticobjects.con file, make sure its the one out of the server.zip of your map also.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 13:57
by Rhino
and you are 100% sure this is the same staticobjects.con that is out of your server.zip out of your map correct?
EDIT: if this is the same staticobjects.con that these errors came from then I dunno how the hell you got thous errors, try removing the smalle_house_ruin out of your map since its only used once anyways, see if it works then, and also check your sky.con make sure its loading a skydome in there.
But frankly I do not believe this is the same staticobjects.con file from what thous errors came from since every time I've ever seen a error like that in the past you can trace it right back to something that is wrong in the staticobjects.con file, this one looks fine to me.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 14:24
by Terror_Terror_Terror
The map is not packed yet. I PM'd you the file. I'll check the sky.con. I'm not sure deleting the object solves anything (I mean yes it stops that error but) because the errors just run through every object it moves on to the next object and the next etc until they are all gone.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 14:36
by Rhino
Terror_Terror_Terror wrote:The map is not packed yet. I PM'd you the file. I'll check the sky.con. I'm not sure deleting the object solves anything (I mean yes it stops that error but) because the errors just run through every object it moves on to the next object and the next etc until they are all gone.
they aint related to your staticobjects.con so its not just running though every object, and pack your map up before testing...
also are you running in the debugger or just normal?
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 14:41
by Terror_Terror_Terror
Debugger.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-12 14:45
by Rhino
Terror_Terror_Terror wrote:Debugger.
....
it would help if you didn't use the debugger...
can't believe I didn't see the "only available in debug builds" at the bottom of the error too...
These errors are probably from anouther map or something else, not at all related to your map and not causing problems to your map, the debugger reports lots of stuff that are for the most part are not a problem for anything, you only run the debugger when you need to find a problem that is causing issues with the normal version...
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-20 17:32
by Terror_Terror_Terror
Ok here it is. I tried removing gate.con in the editor and the StaticObjects.con file but I still get the same message.

Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-20 17:44
by Rhino
your putting a buggy object into your map via a static which dont work, search it up on the editor forums its been dealt with many times there but removing it, saving your staticobjects.con and then repacking it will fix it.
Re: [Help!] Corrupt StaticObjects.Con
Posted: 2008-10-20 18:24
by Terror_Terror_Terror