| |
Mario Teaches Kana, this is not a content update
exenefevex |
|
Regular
![Super Happy Heart Badge [*]](https://archive.mfgg.net/html/badges/shappyheart.gif) ![Minigame Comp Winner Badge (1) [*]](https://archive.mfgg.net/html/badges/mcg1.gif) ![Secret Santa Badge [*]](https://archive.mfgg.net/html/badges/present.gif)

Group: Members
Posts: 258
Member No.: 3660
Joined: 19-April 07
Status: (0d)
![[--]](style_images/mfgg2_skin/warn_nosuspend.gif)

|
Right, a bugfix of this magnitude requires a new version number and a bump.
I've spent most of the day working on this desync problem. Files would always play correctly if they were created on the first run through the game. I suspected that it was because some variables weren't getting reset properly upon returning to the title screen. Well, that was true, but...
The actual problem was much worse.
I figured that the problem must be in some variable that was calling my custom RNG function (which is absolute trash btw, but it gets the job done). To see if I could figure out what wasn't getting reset, I added a debug.print statement to the RNG to output both the random number and the frame that it was called on.
I noticed something. For both runs through the game -- one after loading, one after softreset -- the RNG displayed the same numbers for about 1400 frames, then mysteriously desynced. Aha! Something between frames 1300-1500 must not be resetting properly. So I added more debug statements, hoping to catch the offending variable... nothing. Everything was working, only to break suddenly at frame 1400.
Then, completely by accident, I stumbled across this:
...
Well, there's the problem right there.
See, when I went to implement my custom RNG function, I ran a search-and-replace on all instances of the word "Rnd()". Only problem is, I only checked for the parenths. There were still "Rnd"s in there -- at least ten places were causing a desync. D'oh.
So, I've uploaded the new v1.3 which will (hopefully) solve the desync problem once and for all. This means, unfortunately, that any record files created during v1.2 won't work.
This post has been edited by xn--e5x on Sep 24 2007, 11:04 PM
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
[ Script Execution time: 0.0761 ] [ 13 queries used ] [ GZIP Enabled ] [ Server Load: 1.05 ]
| |