Page 1 of 2
Corrupted lvl files?
Posted: Sun Jul 27, 2014 12:08 am
by SMBXxer
So umm.....
One of my levels is corrupted, please help.
If you need anything(Like the level), just ask.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 12:17 am
by FanofSMBX
Try saving it in WohlEditor, and then reloading it.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 1:00 am
by SMBXxer
FanofSMBX wrote:Try saving it in WohlEditor, and then reloading it.
Won't open in Wohlstand's editor, corrupted as well.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 5:42 am
by RudeGuy
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.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 9:16 pm
by SMBXxer
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.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 9:45 pm
by Kyo
What exactly do you mean with corrupted? Does it fail loading due to a SMBX runtime error? If yes, which one?
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 9:51 pm
by SMBXxer
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.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 10:10 pm
by Kyo
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.
Re: Corrupted lvl files?
Posted: Sun Jul 27, 2014 11:23 pm
by SMBXxer
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".
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 2:53 am
by Kevsoft
If you give me the lvl file, I can step it through Wohl's editor and maybe see what it makes currupted!
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:38 am
by RudeGuy
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.
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:57 am
by Kevsoft
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!
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 9:34 am
by Wohlstand
@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
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 9:42 am
by Kyo
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.
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 10:18 am
by Kevsoft
Like Wohlstand said, we need the LVL file to analyze the problem!
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 5:42 pm
by SMBXxer
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.
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:00 pm
by Wohlstand
@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:
Fixed value:

Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:02 pm
by SMBXxer
Alright, Wohlstand fixed it.
Yes, he fixed the unfixable error.
He is a god.
Would uprep if could.
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:09 pm
by zioy
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.
Re: Corrupted lvl files?
Posted: Mon Jul 28, 2014 6:09 pm
by SMBXxer
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.