[Help!] Corrupt StaticObjects.Con

Making or wanting help making your own asset? Check in here
Post Reply
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

[Help!] Corrupt StaticObjects.Con

Post 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.

Image
Image
Image
J.F.Leusch69
Retired PR Developer
Posts: 2988
Joined: 2008-04-23 16:37

Re: [Help!] Corrupt StaticObjects.Con

Post 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?!
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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).
CodeRedFox
Retired PR Developer
Posts: 5919
Joined: 2005-11-08 00:47

Re: [Help!] Corrupt StaticObjects.Con

Post by CodeRedFox »

This is the editor correct? A freash install of the editor is sometimes required. What about your daily backups?
Image
"apcs, like dogs can't look up" - Dr2B Rudd
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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...
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post by Terror_Terror_Terror »

Yeah I did that several times to make sure but those values don't exist in the file.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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!

Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post by Rhino »

upload your staticobjects.con file, make sure its the one out of the server.zip of your map also.
Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Last edited by Rhino on 2008-10-12 14:08, edited 1 time in total.
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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?
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post by Terror_Terror_Terror »

Debugger.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post by Rhino »

Terror_Terror_Terror wrote:Debugger.
....

it would help if you didn't use the debugger... :roll:

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...
Image
Terror_Terror_Terror
Posts: 116
Joined: 2008-01-16 17:56

Re: [Help!] Corrupt StaticObjects.Con

Post 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.

Image
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: [Help!] Corrupt StaticObjects.Con

Post 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.
Image
Post Reply

Return to “PR:BF2 Community Modding”