SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
427
Reaction score
174
First Language
Dutch
Primarily Uses
RMMV
Why does it store 1 instead of 1.08? It put it on the topmost part of my script. No strict-mode or other 'nonsense'.

var Imported = Imported || {};Imported.SILV_Minimap = 1.08;console.log(Imported.SILV_Minimap); // prints 1Imported.SILV_Minimap = parseFloat(1.08);console.log(Imported.SILV_Minimap); // prints 1So I tried putting this exact same code in another script. Also on the top. Now it prints 2x: 1.08

... I do not understand? (Yes I saved my script before running it in MV)

After more tests I found out that this code worked for some scripts, and not for others, completely at random. Even empty scripts with nothing but those lines of code and the header, will sometimes print 1 and sometimes 1.08.

Solution:

After a lot of messing around I couldn't figure it out. I decided to restart RPG Maker MV. And what? It now prints 1.08 correctly?

This is the 3rd case 4th already where restarting MV or using a different platform/PC produces different script-results.

Cases (for me) where restarting MV or using a different platform/PC changed the outcome of the exact same code:

- strict mode (no it's not the scope)

- assigning a float to a variable

- changes in code not applying to the game (yes I saved the scripts). Restarting the game does not fix it. Fixed by restarting MV entirely.

- Darn I forgot the 4th one now... There was another case.

Darn I should have recorded this on video... Nobody will believe me again I guess. But now I'm 100% sure it's not me. There are some rare bugs in MV.
 
Last edited by a moderator:

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
866
First Language
German
Primarily Uses
I have to say i've never encountered any of your problems...
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,593
Reaction score
3,812
First Language
Java's Crypt
Primarily Uses
RMMZ
Are you testing it on a browser?

The only explanation I can find is that the game didn't get the updated script, but a cached one or something.
 

SilverDash

Veteran
Veteran
Joined
Oct 11, 2015
Messages
427
Reaction score
174
First Language
Dutch
Primarily Uses
RMMV
Only the strict-mode was tested on both a browser&Windows 7, the rest only on Windows 7.

But all of the bugs (strict mode excluded) are super super rare. Like after ~200 hours of MV, this is the first time I encountered this bug. Also the scripts not refreshing, I had it a couple of times but only shortly after the MV-release. Never occurred anymore ever since.
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Barthdry wrote on tln143's profile.
Hello tln143 Welcome to the RPG Maker Forum. We wish you enjoy and make good rpg games
Barthdry wrote on 00cassiesmells's profile.
Hello 00casiemells Welcome to the RPG Maker Forum. We wish you enjoy and make good rpg games
Remember guys: Drink water and workout is important too! Don't stay too much time on the PC working! :D
Ami
--- Quest For Female ---

Guild Leader: Ladies,you got a Job for today. You have to Battle with Marauder,only Female must to this Job.
F.Magic Knight: So,only Female can do this?
Heroine: I can't wait for this!
Gunner Lady: Well,i can use the Seduction Skill to them,It's effective for Male Target
F.Knight: You always use that?
RPG Maker MZ just crashed, please tell me I didn't just lose 4 hours of progress.

Forum statistics

Threads
109,034
Messages
1,041,471
Members
141,517
Latest member
Nilero
Top