"Type mismatch" error

Need help with any SMBX game-related issues? Ask your questions here.
User avatar
[]Yaroslav269[]
Spiny
Spiny
Posts: 40
Joined: Wed Feb 25, 2015 11:10 am
Current Project: Luigi is Missing!
Chat Username: Yaroslav269

"Type mismatch" error

Postby []Yaroslav269[] » Wed Mar 16, 2016 9:14 am

I made a level in PGE editor, but, when I run this level in SMBX editor, it crashes with a message:
Spoiler: show
Image
What it means? How I can fix error?
If you need, I can send a level
This is a block of text that can be added to posts you make. There is a 999 character limit.
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7927
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: "Type mismatch" error

Postby Enjl » Wed Mar 16, 2016 9:31 am

Did you by chance save one of your graphics as .png and rename it to .gif afterwards?
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
bossedit8
Banned
Posts: 6846
Joined: Fri Dec 20, 2013 12:35 pm
Current Project: Airship Attack 2
Chat Username: <3 bossedit8 <3
Contact:

Re: "Type mismatch" error

Postby bossedit8 » Wed Mar 16, 2016 10:38 am

This happens if a NPC text file has a Code in it that does not match to the whole coding system.

For example, if I have a Code that looks like this:

Code: Select all

speed=,5
It crashes SMBX with the Error Message "Type Mismatch". There are like unlimited possibilities that let it happen so make sure that everything you have typed in your NPC Text Files are correct.

Code: Select all

speed=5
Oh and I surely do not recommended to use Decimals in your code like this:

Code: Select all

speed=0.5
Or else it goes either incredible fast or it crashes with a error message. Check this Forum Topic Link for further Information on Decimals: http://www.supermariobrosx.org/forums/v ... =69&t=1659

Make sure that you have checked every NPC Text Files to prevent "misleaded" codes that doesn't match with SMBX. This is why the Error is called "Type Mismatch".

If that's not the issue, let us know!

User avatar
Kevsoft
Ripper II
Ripper II
Posts: 374
Joined: Sun Jul 27, 2014 8:03 am

Re: "Type mismatch" error

Postby Kevsoft » Wed Mar 16, 2016 12:29 pm

bossedit8 wrote:

Code: Select all

speed=0.5
Or else it goes either incredible fast or it crashes with a error message. Check this Forum Topic Link for further Information on Decimals: http://www.supermariobrosx.org/forums/v ... =69&t=1659
But it should work fine with SMBX 2.0 / most recent LunaLua

User avatar
[]Yaroslav269[]
Spiny
Spiny
Posts: 40
Joined: Wed Feb 25, 2015 11:10 am
Current Project: Luigi is Missing!
Chat Username: Yaroslav269

Re: "Type mismatch" error

Postby []Yaroslav269[] » Wed Mar 16, 2016 1:03 pm

Enjl wrote:Did you by chance save one of your graphics as .png and rename it to .gif afterwards?
Nope.
This is a block of text that can be added to posts you make. There is a 999 character limit.
Image

User avatar
[]Yaroslav269[]
Spiny
Spiny
Posts: 40
Joined: Wed Feb 25, 2015 11:10 am
Current Project: Luigi is Missing!
Chat Username: Yaroslav269

Re: "Type mismatch" error

Postby []Yaroslav269[] » Wed Mar 16, 2016 1:05 pm

bossedit8 wrote:This happens if a NPC text file has a Code in it that does not match to the whole coding system.

For example, if I have a Code that looks like this:

Code: Select all

speed=,5
It crashes SMBX with the Error Message "Type Mismatch". There are like unlimited possibilities that let it happen so make sure that everything you have typed in your NPC Text Files are correct.

Code: Select all

speed=5
Oh and I surely do not recommended to use Decimals in your code like this:

Code: Select all

speed=0.5
Or else it goes either incredible fast or it crashes with a error message. Check this Forum Topic Link for further Information on Decimals: http://www.supermariobrosx.org/forums/v ... =69&t=1659

Make sure that you have checked every NPC Text Files to prevent "misleaded" codes that doesn't match with SMBX. This is why the Error is called "Type Mismatch".

If that's not the issue, let us know!
Oh, thank you :D
I changed speed of Bully in PGE NPC editor. Probably, it saved this wrong.
This is a block of text that can be added to posts you make. There is a 999 character limit.
Image

User avatar
h2643
Ludwig von Koopa
Ludwig von Koopa
Posts: 2881
Joined: Sat Dec 21, 2013 7:23 am
Flair: Украинец
Current Project: RL
Chat Username: h/hnumbers

Re: "Type mismatch" error

Postby h2643 » Wed Mar 16, 2016 1:39 pm

No, it's the fault of SMBX and how it recognizes speed NPC codes.

User avatar
bossedit8
Banned
Posts: 6846
Joined: Fri Dec 20, 2013 12:35 pm
Current Project: Airship Attack 2
Chat Username: <3 bossedit8 <3
Contact:

Re: "Type mismatch" error

Postby bossedit8 » Wed Mar 16, 2016 2:31 pm

Kevsoft wrote:But it should work fine with SMBX 2.0 / most recent LunaLua
Right... kinda forgot that this was a thing recently. I even made a video of it by having actual decimals on NPC codes:



Original link: http://www.youtube.com/watch?v=t1JjF49kmRY


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest