Corrupted lvl files?

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Corrupted lvl files?

Postby SMBXxer » Sun Jul 27, 2014 12:08 am

So umm.....
One of my levels is corrupted, please help.
If you need anything(Like the level), just ask.

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: Corrupted lvl files?

Postby FanofSMBX » Sun Jul 27, 2014 12:17 am

Try saving it in WohlEditor, and then reloading it.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Sun Jul 27, 2014 1:00 am

FanofSMBX wrote:Try saving it in WohlEditor, and then reloading it.
Won't open in Wohlstand's editor, corrupted as well.

RudeGuy
Fry Guy
Fry Guy
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: Corrupted lvl files?

Postby RudeGuy » Sun Jul 27, 2014 5:42 am

You can only change your level out of SMBX. Try to open in in a .txt file, then delete all the things you did before it was corrupted.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Sun Jul 27, 2014 9:16 pm

Christian07 wrote:You can only change your level out of SMBX. Try to open in in a .txt file, then delete all the things you did before it was corrupted.
I've tried but it has so many events.

Kyo
Rocky Wrench
Rocky Wrench
Posts: 636
Joined: Fri Dec 20, 2013 2:12 pm

Re: Corrupted lvl files?

Postby Kyo » Sun Jul 27, 2014 9:45 pm

What exactly do you mean with corrupted? Does it fail loading due to a SMBX runtime error? If yes, which one?

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Sun Jul 27, 2014 9:51 pm

Kyo wrote:What exactly do you mean with corrupted? Does it fail loading due to a SMBX runtime error? If yes, which one?
Yes, it does.
Type mismatch.
I deleted some events in the .txt and I'm gonna test it.
EDIT: Nope, didn't work.

Kyo
Rocky Wrench
Rocky Wrench
Posts: 636
Joined: Fri Dec 20, 2013 2:12 pm

Re: Corrupted lvl files?

Postby Kyo » Sun Jul 27, 2014 10:10 pm

Oh, I vaguely remember this one. It's definitely fixable; don't worry about that (but then again, every rte except input past end of file is fixable). I don't exactly remember where I encountered it, though.

A possibility that you might not have considered yet is to remove/rename the graphic folder so smbx can't read it along with the level. That way we could find out whether the graphic folder is the cause or not. If it isn't, then there is something wrong with the level file.

In order to find out whether or not the level file is the cause, backup it and open it as txt file. Then delete the entire content, save, and try opening it with the editor. If it shows an empty level, the cause is likely the level file.

If it is an error that the level file makes when recognizing the graphic folder and/or when the graphic folder recognizes the level file, try to do both of the aforementioned solutions above at the same time. It's unlikely to do anything, though.

One question, you can open other levels, can you?

If nothing works, try reinstalling smbx, and open the level again.

Finally, if everything failed, upload both the level file and graphic folder to let other people try opening it. This way we can find out whether your computer is the cause or not.

And if everyone fails at opening it, then I'm afraid you'll have to give up on your level.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Sun Jul 27, 2014 11:23 pm

Kyo wrote:Oh, I vaguely remember this one. It's definitely fixable; don't worry about that (but then again, every rte except input past end of file is fixable). I don't exactly remember where I encountered it, though.

A possibility that you might not have considered yet is to remove/rename the graphic folder so smbx can't read it along with the level. That way we could find out whether the graphic folder is the cause or not. If it isn't, then there is something wrong with the level file.

In order to find out whether or not the level file is the cause, backup it and open it as txt file. Then delete the entire content, save, and try opening it with the editor. If it shows an empty level, the cause is likely the level file.

If it is an error that the level file makes when recognizing the graphic folder and/or when the graphic folder recognizes the level file, try to do both of the aforementioned solutions above at the same time. It's unlikely to do anything, though.

One question, you can open other levels, can you?

If nothing works, try reinstalling smbx, and open the level again.

Finally, if everything failed, upload both the level file and graphic folder to let other people try opening it. This way we can find out whether your computer is the cause or not.

And if everyone fails at opening it, then I'm afraid you'll have to give up on your level.
Ok, I already did the graphic thing, bossedit8 tried to open the level and it didn't work.
And then, I deleted everything in the level .txt...
It didn't show that runtime error... IT SHOWED ANOTHER ONE!
"Input past end of file".

Kevsoft
Flurry
Flurry
Posts: 375
Joined: Sun Jul 27, 2014 8:03 am

Re: Corrupted lvl files?

Postby Kevsoft » Mon Jul 28, 2014 2:53 am

If you give me the lvl file, I can step it through Wohl's editor and maybe see what it makes currupted!

RudeGuy
Fry Guy
Fry Guy
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: Corrupted lvl files?

Postby RudeGuy » Mon Jul 28, 2014 6:38 am

SMBXxer wrote:Ok, I already did the graphic thing, bossedit8 tried to open the level and it didn't work.
And then, I deleted everything in the level .txt...
It didn't show that runtime error... IT SHOWED ANOTHER ONE!
"Input past end of file".
Probably that's because SMBX can't open the level cause notthing in the file. For now, we know that the problem is in the level. Now try to delete ALL the events, not only one.

@KevSoft, he said that the level is corrupted in Whol's editor as well.

Kevsoft
Flurry
Flurry
Posts: 375
Joined: Sun Jul 27, 2014 8:03 am

Re: Corrupted lvl files?

Postby Kevsoft » Mon Jul 28, 2014 6:57 am

I know, but with the debugger I can see where it is stopping to load, i.e. find the point why it isn't loading. Maybe it is just a small thing!

Wohlstand
Van De Graf
Van De Graf
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Corrupted lvl files?

Postby Wohlstand » Mon Jul 28, 2014 9:34 am

@SMBXxer, quick question: which version of editor you using?
and second: did you put the "magic potion" inside a herb? Few times ago I fixed this bug and you can download working build from laboratory: http://engine.wohlnet.ru/docs/_laboratory/ [Note: before update please, kill the pge_editor.exe process because current version have a zombie bug, and process still in the memory even you close application. This bug already fixed in the laboratory version, but note: world map editor is not done, but you have full support for edit or create them].
If this doesn't help you, you must send me or to Kevin the broken level file. With them We can found bug for fix them.

EDIT:
SMBXxer wrote:
Kyo wrote:What exactly do you mean with corrupted? Does it fail loading due to a SMBX runtime error? If yes, which one?
Yes, it does.
Type mismatch.
I deleted some events in the .txt and I'm gonna test it.
EDIT: Nope, didn't work.
Ouch, skipped this... I think, you made mistakes in the lvl file format.
One question: file must ends by empty line. Did you made them?
...\n
90\n
\n\EOF

Where "\n" - new line character
Where "\EOF" - end of file

Send me your LVL File and I can help you for fix them, I know this format like the palm of the hand ;)

Also, format specification: http://engine.wohlnet.ru/docs/_SMBX64/f ... iption.pdf
Last edited by Wohlstand on Mon Jul 28, 2014 9:45 am, edited 2 times in total.

Kyo
Rocky Wrench
Rocky Wrench
Posts: 636
Joined: Fri Dec 20, 2013 2:12 pm

Re: Corrupted lvl files?

Postby Kyo » Mon Jul 28, 2014 9:42 am

SMBXxer wrote:"Input past end of file".
Crap, that's it. I sincerely feel sorry for you. The unfixable error strikes again. Apparently no one knows what the cause of it is, and out of fear to encounter this error you occasionally backup your file. But there's unfortunately nothing you can do. This error also found one of my levels quite nice, and that was my contest level which was like, finished, one day before deadline. Would be nice if someone would find a cause or solution for this error, but I don't have high hopes for it.

Remember backupping your levels from now on. Sorry.

Kevsoft
Flurry
Flurry
Posts: 375
Joined: Sun Jul 27, 2014 8:03 am

Re: Corrupted lvl files?

Postby Kevsoft » Mon Jul 28, 2014 10:18 am

Like Wohlstand said, we need the LVL file to analyze the problem!

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Mon Jul 28, 2014 5:42 pm

Kyo wrote:
SMBXxer wrote:"Input past end of file".
Crap, that's it. I sincerely feel sorry for you. The unfixable error strikes again. Apparently no one knows what the cause of it is, and out of fear to encounter this error you occasionally backup your file. But there's unfortunately nothing you can do. This error also found one of my levels quite nice, and that was my contest level which was like, finished, one day before deadline. Would be nice if someone would find a cause or solution for this error, but I don't have high hopes for it.

Remember backupping your levels from now on. Sorry.
That really, really sucks...
Fuck.
I spent 8+ months on that level.
It's fine though, I can rebuild it.

Wohlstand
Van De Graf
Van De Graf
Posts: 2008
Joined: Tue Feb 11, 2014 4:44 pm
Flair: [ˈvoːlˌʃtant], 狐エンジニア
Pronouns: he/him
Contact:

Re: Corrupted lvl files?

Postby Wohlstand » Mon Jul 28, 2014 6:00 pm

@SMBXxer, I got file by PM and was fix them. Your mistake is simple: SMBX64 standard disallows using quotes inside LVL data strings. String like ["On" button] - Wrong. I simply replace similar strings into ['On' button] and it was fixed, file successful opened. In just case, I was add protector in the "LVL File format writer" of my editor for escape this mistakes which making wrong level files. The not released yet the LVLX format will allow to use any characters inside values, and this bug must not be appeared.

Error message and wrong value:
Image

Fixed value:
Image
Last edited by Wohlstand on Thu Oct 16, 2014 5:33 am, edited 3 times in total.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Mon Jul 28, 2014 6:02 pm

Alright, Wohlstand fixed it.
Yes, he fixed the unfixable error.
He is a god.
Would uprep if could.

zioy
Birdo
Birdo
Posts: 2760
Joined: Thu Jul 17, 2014 4:47 pm
Pronouns: he/him
Contact:

Re: Corrupted lvl files?

Postby zioy » Mon Jul 28, 2014 6:09 pm

SMBXxer wrote:Alright, Wohlstand fixed it.
Yes, he fixed the unfixable error.
He is a god.
We need to sticky this, so everyone knows to tell Wohlstand to fix unfixable errors.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: Corrupted lvl files?

Postby SMBXxer » Mon Jul 28, 2014 6:09 pm

KoolKat wrote:
SMBXxer wrote:Alright, Wohlstand fixed it.
Yes, he fixed the unfixable error.
He is a god.
We need to sticky this, so everyone knows to tell Wohlstand to fix unfixable errors.
I'll make a topic about it.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 4 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari