View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0003962 | GemX | [All Projects] General | public | 2018-09-20 23:15 | 2018-09-22 21:23 | ||||||||
Reporter | Harry | ||||||||||||
Assigned To | StingRay | Project Info | Gem'X (Demonware/Kaiko) http://www.whdload.de/games/GemX.html | ||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | resolved | Resolution | fixed | ||||||||||
Summary | 0003962: Hello Stingray, the latest WinUAE and FS-UAE have the problem that getting the | ||||||||||||
Description | GameVersion: english,1 disk, original release SlaveVersion: all Hello Stingray, the latest WinUAE and FS-UAE have the problem that getting the HPOS ($dff007) is not random enough to serve as random generator, resulting in mostly the same mine sequence played in WHDLoad. The next mine is determined at $5ade, the location $5aea MOVE.W (A5, $6),D0 ;4 Bytes long, A5 is $dff000 would be a good place to patch to return a random value. A random generator of a variant I used in Fourmaze is: *** GETBYTERANDOM bsr.s random LSR.L #3,D0 AND.B #$FF,D0 rts random MOVE.L RANDOM1(PC),D0 ADD.L RANDOM2(PC),D0 MOVE.L D0,RANDOM1 ROR.L #$04,D0 SUB.W RANDOM2(PC),D0 EOR.L D0,RANDOM2 ADD.L #$56565311,RANDOM1 RTS RANDOM1 DC.L $3F3F751F RANDOM2 DC.L $17179834 *** For best results, call it also every VBI for the internal side effects so playing time is incorporated and the results are not in a certain sequence. A good place to insert in the VBI is $7594 LEA.L $DFF000,A5 ;6 Bytes long Thanks, Harry. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Machine | UAE | ||||||||||||
CPU | 68020 | ||||||||||||
CPUSpeed | 14 | ||||||||||||
ChipSet | AGA | ||||||||||||
GFXCard | None | ||||||||||||
ChipMem | 2 MB | ||||||||||||
FastMem | 16 MB | ||||||||||||
Workbench | OS 3.1 | ||||||||||||
KickROM | 40 - Kick 3.1 | ||||||||||||
KickSoft | None | ||||||||||||
WHDLoad | 18.3 | ||||||||||||
imported | yes | ||||||||||||
Attached Files |
|
Notes | |
StingRay (developer) 2018-09-21 14:47 |
That's one excellent bug report, thanks Harry! It never was a good idea to rely on the raster beam for random numbers so this is not an UAE problem but rather a problem with faster CPU's. I'll fix this in an update. |
StingRay (developer) 2018-09-21 15:44 |
Patch updated, random generator recoded not to rely on the raster beam and in-game timing fixed as well. |
Denis (reporter) 2018-09-22 21:23 |
Hello Sting, I encounter a big problem about this new slave. I have upgraded to Whdload 18.4, and GemX simply locks up my A1200 on the highscore screen. The only way for me to exit is to do CTRL+A+A. Can you check what happens or better indicate me how can i help you ? Thanks :) |
Issue History | |||
Date Modified | Username | Field | Change |
---|---|---|---|
2018-09-20 23:15 | administrator | New Issue | |
2018-09-20 23:15 | administrator | Status | new => assigned |
2018-09-20 23:15 | administrator | Assigned To | => StingRay |
2018-09-21 14:47 | StingRay | Note Added: 0006377 | |
2018-09-21 15:44 | StingRay | Note Added: 0006379 | |
2018-09-21 15:44 | StingRay | Status | assigned => resolved |
2018-09-21 15:44 | StingRay | Resolution | open => fixed |
2018-09-22 21:23 | Denis | Note Added: 0006383 |