Replacing graphics in Car Jamboree

صفحة 3/4
1 | 2 | | 4

بواسطة Grauw

Ascended (10768)

صورة Grauw

10-01-2023, 00:32

Manuel wrote:

https://github.com/openMSX/debugger/actions for the latest builds (probably only available when logged into GitHub).

Using nightly.link should work without a GitHub account:
https://nightly.link/openMSX/debugger/workflows/nightly.yaml...

بواسطة MetallicaSepultura

Supporter (13)

صورة MetallicaSepultura

10-01-2023, 20:59

Perfecto.
Anyway, how do you load it on OpenMSX?

بواسطة Briqunullus

Hero (665)

صورة Briqunullus

10-01-2023, 21:34

Start both applications separately. In the debugger hit the connect button to establish a connection between the two.

بواسطة NYYRIKKI

Enlighted (6067)

صورة NYYRIKKI

10-01-2023, 23:56

Hmm... It seems that there are lots of comments, but no real instructions. Smile

I will try to reply using Hex-numbers and file offsets (Add #4000 to get memory addresses)

First you have to swap outlook of the sprites:

#3091 - #30B0 Player sprite (Up/Down)
#30F1 - #3110 Green player (Up/Down)
#3131 - #3150 Player sprite (Left/Right)
#3191 - #31B0 Green player (Left/Right)

Then you need to swap colors of the sprites:

#3028, #303C, #3050, #3064 = Yellow (#0A) => Green (#02)
#3034, #3048, #305C, #3070 = Green (#02) => Yellow (#0A)

BTW what you are supposed to do in this game?

بواسطة MetallicaSepultura

Supporter (13)

صورة MetallicaSepultura

11-01-2023, 20:57

What do you mean that i should add 4000? It means, for example, that 3091 become 7091, or the hexadecimal equivalent?

بواسطة thegeps

Paragon (1189)

صورة thegeps

12-01-2023, 01:53

4000h + 3091h = you are lucky, result is 7091h

4000h is the ROM base address. Adding the offsets you know where data are located in memory

NYYRIKKI provided to you the file offsets (you need only to modify their contents using a hex editor to get desired result)

بواسطة MetallicaSepultura

Supporter (13)

صورة MetallicaSepultura

12-01-2023, 22:22

Ok. I've swapped the addresses and colors, but for some reason it didn't changed it.
I've used HxD hex editor.

بواسطة gdx

Enlighted (6215)

صورة gdx

13-01-2023, 01:41

NYYRIKKI's patch works well except when the car jumps from the springboard.

بواسطة thegeps

Paragon (1189)

صورة thegeps

13-01-2023, 02:22

MetallicaSepultura wrote:

Ok. I've swapped the addresses and colors, but for some reason it didn't changed it.
I've used HxD hex editor.

Swapped addresses?

You simply have to:
Copy all the data in the interval
(Start) #3091 - (end) #30B0 Player sprite (Up/Down)
(Remember that these are file offset so they are the n-th bytes)
To this interval
(Start)#30F1 - (end) #3110 Green player (Up/Down)
And viceversa (so before move first block ro this one do a copy/paste to save this block away)

Do the same with these 2 blocks
#3131 - #3150 Player sprite (Left/Right)
#3191 - #31B0 Green player (Left/Right)

Then you need to swap colors of the sprites:
So all these bytes (that have value #0A) have to be changed to value #02
#3028, (#3028th byte of the file=12328th byte of the file)
#303C, #3050, #3064 = Yellow (#0A) => Green (#02)
And here change them to #0A
#3034, #3048, #305C, #3070 = Green (#02) => Yellow (#0A)

Obviously you need to save the changes when done...

بواسطة MetallicaSepultura

Supporter (13)

صورة MetallicaSepultura

13-01-2023, 14:12

Sorry, i expressed myself in a bad way.
I swapped the parts of hex code which were needed but... it didn't worked. They are still the same, even with colours.

صفحة 3/4
1 | 2 | | 4