Page 1 of 1

I can't open my World Map

Posted: Wed Nov 12, 2014 4:51 pm
by H-pyttoSS
I'm having a problem. I can't open my world map anymore. Everytime I try to open it, this appears:

Run-time error '13':

Type mismatch


Anyone have a solution to this problem? Help me!

Re: I can't open my World Map

Posted: Wed Nov 12, 2014 11:37 pm
by lighthouse64
H-pyttoSS wrote:I'm having a problem. I can't open my world map anymore. Everytime I try to open it, this appears:

Run-time error '13':

Type mismatch


Anyone have a solution to this problem? Help me!
Maybe it's because your custom scenery is above 32x32 px

Re: I can't open my World Map

Posted: Thu Nov 13, 2014 5:51 am
by HeroLinik
lighthouse64 wrote:
H-pyttoSS wrote:I'm having a problem. I can't open my world map anymore. Everytime I try to open it, this appears:

Run-time error '13':

Type mismatch


Anyone have a solution to this problem? Help me!
Maybe it's because your custom scenery is above 32x32 px
No, it's got nothing to do with the dimensions of CGFX on the world map. It's actually because you have CGFX on the map beyond scene-32 (?), which crash the game. To get around this, make a backup of the original graphics folder and then replace the CGFX in the original folder.

Re: I can't open my World Map

Posted: Thu Nov 13, 2014 8:07 am
by Veudekato
if its about 'CGFX on the map beyond scene-32' (as said castlewars) Please give me world file. Or download PlatGenWohl Open your world - delete this scenes with name 32+ (or what) and save world

Re: I can't open my World Map

Posted: Thu Nov 13, 2014 9:33 am
by Imaynotbehere4long
castlewars wrote: It's actually because you have CGFX on the map beyond scene-32 (?), which crash the game.
I thought that lead to a different runtime error, something like "Run Time error 300-something, control array element __ does not exist."

Go ahead and try to open the map file without CGFX anyway. That may still be the problem.

Re: I can't open my World Map

Posted: Thu Nov 13, 2014 11:36 am
by H-pyttoSS
Castlewars,
I replaced only scene-8 and scene-14, no more. The other CGFXs on the map are all tiles and level graphics.


Veudekato,
here's the world's file - https://www.sendspace.com/file/94lkhk

Re: I can't open my World Map

Posted: Thu Nov 20, 2014 9:34 am
by Wohlstand
I just tested and found: bug is dumb:
You just used quotes in the string values (here in the 'credits' fields), they are makes any SMBX files broken.

PGE always tell you, WHERE file have a wrong line:
Image

what's means?

Let's open notepad and look for 12'th line:

Image

Yes, this is a WLD format violation, string values should be "some text", but not "hello, my "toilet" is flooded".

Takes all broken strings:

Code: Select all

"Level and World Map Design by ""H-pyttoSS"""
"Custom Graphics partially by ""Valtteri's Graphics Pack"""
"Custom Graphics partially by ""SMB1 Expanded GFX-Pack 2.0 - Sednaiur"""
"Custom Graphics partially by ""H-pyttoSS"""
and replace with:

Code: Select all

"Level and World Map Design by 'H-pyttoSS'"
"Custom Graphics partially by 'Valtteri's Graphics Pack'"
"Custom Graphics partially by 'SMB1 Expanded GFX-Pack 2.0 - Sednaiur'"
"Custom Graphics partially by 'H-pyttoSS'"
and we getting this view:
Image

After changes, save file and reopen them in the PGE or in the SMBX Editor:

and voila, world file just opened correctly: ;)
Image

Also, when you will save files in the PGE, it will always remove all wrong characters from strings to prevent any damages of SMBX file format

If you don't wanna fixing it yourself, take fixed file back:
http://engine.wohlnet.ru/docs/_files_fo ... _11_20.zip