Page 1 of 1
Coding differences by World Location
Posted: Sun Mar 16, 2014 8:40 am
by bossedit8
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).
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:
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.
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).
Re: Coding differences by World Location
Posted: Sun Mar 16, 2014 8:45 am
by Emral
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.
Re: Coding differences by World Location
Posted: Sun Mar 16, 2014 8:51 am
by bossedit8
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.
Re: Coding differences by World Location
Posted: Sun Mar 16, 2014 8:53 am
by Emral
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.
Re: Coding differences by World Location
Posted: Wed Mar 19, 2014 8:07 am
by Reign
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.
Re: Coding differences by World Location
Posted: Wed Mar 19, 2014 8:57 am
by icemario12
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.
Re: Coding differences by World Location
Posted: Wed Mar 19, 2014 1:09 pm
by bossedit8
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.
Re: Coding differences by World Location
Posted: Fri May 02, 2014 9:36 pm
by Kley
That explains a lot. Strange that your computer would react differently to a decimal or odd numbers with an American-made program.
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 6:45 am
by bossedit8
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.
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 7:03 am
by lighthouse64
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???
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 7:07 am
by bossedit8
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.
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 7:33 am
by lighthouse64
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.
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 11:55 am
by Julia Pseudo
Mm, so I guess this explains why decimal NPC codes don't work for some people, huh? Well, this is interesting. Nice find bossedit!
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 3:39 pm
by Axiom
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?
Re: Coding differences by World Location
Posted: Thu Aug 21, 2014 11:30 pm
by lighthouse64
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.