Coding differences by World Location

General discussion about Super Mario Bros. X.
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:

Coding differences by World Location

Postby bossedit8 » Sun Mar 16, 2014 8:40 am

So my little discussion I have right there is that on different World Location (example Europe, Africa, USA, Canada, Chinese, ...), the SMBX NPC Codes that you can put in to change functions to the NPC itself behaves a bit different located to the World's Location.

What I found out by that is by specific NPC Coding, it can be very fast, makes the game crash or does not appear at all if it is used on a different world location (my location: Germany).
Spoiler: show
Image

Image

Both of these NPC Windows are working perfectly fine on SMBX.
...but on a specific number and decimals can be leading to errors and different behavours if you use it on something like this:
Spoiler: show
Image

By that, the NPC can be very fast or sometimes (but that is very rare and can be on specific NPC's too) crashes the SMBX with the error message.



Image

With that, the NPC does not appear inside the Level Editor during Testing and on the "Game Start" itself. You can add that but while inside the game, it disappears just for everything that has a code number size to 1, 3, 5, 7, 9, 11, 13, 15, 17, ... (and so on).

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

Re: Coding differences by World Location

Postby Enjl » Sun Mar 16, 2014 8:45 am

Isn't it stupid to have odd numbers for height and width anyways? They should out to you that somewhere there is 1x1 and it shoud be fixed.
Ideas are useless if you can't make them real.
Image

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: Coding differences by World Location

Postby bossedit8 » Sun Mar 16, 2014 8:51 am

Emral wrote:Isn't it stupid to have odd numbers for height and width anyways? They should out to you that somewhere there is 1x1 and it shoud be fixed.
Uhm, that is by adjusting the Hitbox of the NPC but odd numbers are on the general size anyway.

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

Re: Coding differences by World Location

Postby Enjl » Sun Mar 16, 2014 8:53 am

Sorry, I always get confused which height/width commando does what. However, 1 pixel difference in hitbox size doesn't really make a different except for making people like Bossedit and me be able to see the graphic.
Ideas are useless if you can't make them real.
Image

User avatar
Reign
Ripper II
Ripper II
Posts: 320
Joined: Tue Jan 21, 2014 4:22 am
Current Project: Yet untitled.

Re: Coding differences by World Location

Postby Reign » Wed Mar 19, 2014 8:07 am

This is one of the annoying things in SMBX. Some nations use commas, some nations use dots, and then the game very often crashes if you try to play it. The simplest and only solution is to stop making levels with speed=1.4 or speed=1,4. You'll just have to redesign the level and use speed=2/3/4 etc. or have it move at normal or zero speed. Otherwise you are excluding audience from your levels and episodes.
Episodes released:

icemario12
Hoopster
Hoopster
Posts: 157
Joined: Thu Dec 26, 2013 5:49 pm
Current Project: The art of getting good grades
Chat Username: iceyboi
Contact:

Re: Coding differences by World Location

Postby icemario12 » Wed Mar 19, 2014 8:57 am

Reign wrote:This is one of the annoying things in SMBX. Some nations use commas, some nations use dots, and then the game very often crashes if you try to play it. The simplest and only solution is to stop making levels with speed=1.4 or speed=1,4. You'll just have to redesign the level and use speed=2/3/4 etc. or have it move at normal or zero speed. Otherwise you are excluding audience from your levels and episodes.
Righto, mate. Thanks to that I couldn't play 3 episodes. But until now, it never crashed for me with this problem.
Image

HEY, THIS GAME SERIES IS FUN.

You could even say that...
it's li- gets kicked in the shin

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: Coding differences by World Location

Postby bossedit8 » Wed Mar 19, 2014 1:09 pm

Yeah, it is better to not use decimal codes and those wrong coding numbers what so ever in order to work on everyone's location properly.

User avatar
Kley
Edge
Edge
Posts: 690
Joined: Mon Feb 24, 2014 11:00 am
Flair: Robot
Chat Username: Kley

Re: Coding differences by World Location

Postby Kley » Fri May 02, 2014 9:36 pm

That explains a lot. Strange that your computer would react differently to a decimal or odd numbers with an American-made program.

Image


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: Coding differences by World Location

Postby bossedit8 » Thu Aug 21, 2014 6:45 am

Kley wrote:Strange that your computer would react differently to a decimal or odd numbers with an American-made program.
Yeah, it is a strange thing to have but sadly it is true and all.

Also, I still encounter a few SMBX Episodes that has this issue so I still want to let this discussed because the whole changing other peoples SMBX Episodes just for fixing a few codings inside them is not always fun in my opinion.

User avatar
lighthouse64
Mouser
Mouser
Posts: 1820
Joined: Sat Apr 26, 2014 6:28 am
Current Project: Soundtrack stuff

Re: Coding differences by World Location

Postby lighthouse64 » Thu Aug 21, 2014 7:03 am

bossedit8 wrote:
Kley wrote:Strange that your computer would react differently to a decimal or odd numbers with an American-made program.
Yeah, it is a strange thing to have but sadly it is true and all.

Also, I still encounter a few SMBX Episodes that has this issue so I still want to let this discussed because the whole changing other peoples SMBX Episodes just for fixing a few codings inside them is not always fun in my opinion.
Hmm... maybe because your computer is german???
Just your average user...

Oh, and sometimes I arrange stuff like this :P https://www.noteflight.com/scores/view/ ... 25261b1a11

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: Coding differences by World Location

Postby bossedit8 » Thu Aug 21, 2014 7:07 am

lighthouse64 wrote:Hmm... maybe because your computer is german???
Well, it depends more to the Location like "Europe" for the whole "different coding behavour". Maybe it can be the case where the PC was builded up, who has been created or something... I am not entirely sure but yeah.

User avatar
lighthouse64
Mouser
Mouser
Posts: 1820
Joined: Sat Apr 26, 2014 6:28 am
Current Project: Soundtrack stuff

Re: Coding differences by World Location

Postby lighthouse64 » Thu Aug 21, 2014 7:33 am

bossedit8 wrote:
lighthouse64 wrote:Hmm... maybe because your computer is german???
Well, it depends more to the Location like "Europe" for the whole "different coding behavour". Maybe it can be the case where the PC was builded up, who has been created or something... I am not entirely sure but yeah.
No, because I'm in EU and it seems ok.
Just your average user...

Oh, and sometimes I arrange stuff like this :P https://www.noteflight.com/scores/view/ ... 25261b1a11

User avatar
Pseudo
Peach
Peach
Posts: 5543
Joined: Wed Jan 08, 2014 12:04 am
Current Project: ???

Re: Coding differences by World Location

Postby Pseudo » Thu Aug 21, 2014 11:55 am

Mm, so I guess this explains why decimal NPC codes don't work for some people, huh? Well, this is interesting. Nice find bossedit!
its ya girl pseudo and im back on a provisional basis

"sterydy Behemoth expiable novae iconically night owl ticklish turbocharger bactrian riveting . Solidus quits frothy managua scrimper shadowy enthusiastically rearrangement curviness matronliness pinyin piroshki gradual hysterically locker room versed . Horrendous unicorn transnational parka lasso very forbiddingly laborsaving cochabamba hair-raising floozy philter transnational ."
- a spam account, 2016


Axiom
Birdo
Birdo
Posts: 1490
Joined: Tue Dec 24, 2013 2:23 pm
Current Project: learning C through PSP game programming

Re: Coding differences by World Location

Postby Axiom » Thu Aug 21, 2014 3:39 pm

Just came across this thread.

It's due to regional issues with decimals, in certain countries they use the ',' to represent a decimal place. As for odd numbers in NPC's, I'm pretty sure SMBX uses some sort of math equation to come up with hit boxes and such and using odd numbers could potentially result in a decimal or remainder or whatever.

I know in .NET, there's ways to translate the decimal to the region specific code for it. There's no universal solution except to make the program recognise it and translate it.

Speaking of this, I want to test implementing saving the correct decimal form based on region, bossedit, would you be willing to help me test this out?
what am I??? doing

- Yu-Gi-Oh! Duelists of the Roses Unity Remake
- Florida Van Man YouTube Channel, where I DIY repair Sprinter vans.
- 3 small games in development

User avatar
lighthouse64
Mouser
Mouser
Posts: 1820
Joined: Sat Apr 26, 2014 6:28 am
Current Project: Soundtrack stuff

Re: Coding differences by World Location

Postby lighthouse64 » Thu Aug 21, 2014 11:30 pm

Luigifan2010 wrote:Just came across this thread.

It's due to regional issues with decimals, in certain countries they use the ',' to represent a decimal place. As for odd numbers in NPC's, I'm pretty sure SMBX uses some sort of math equation to come up with hit boxes and such and using odd numbers could potentially result in a decimal or remainder or whatever.

I know in .NET, there's ways to translate the decimal to the region specific code for it. There's no universal solution except to make the program recognise it and translate it.

Speaking of this, I want to test implementing saving the correct decimal form based on region, bossedit, would you be willing to help me test this out?
Hey I noticed that they do use commas as decimals on certain websites too.
Just your average user...

Oh, and sometimes I arrange stuff like this :P https://www.noteflight.com/scores/view/ ... 25261b1a11


Return to “General”

Who is online

Users browsing this forum: No registered users and 7 guests