Replacing graphics in Car Jamboree

ページ 3/4
1 | 2 | | 4

By Grauw

Ascended (10720)

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...

By MetallicaSepultura

Supporter (13)

MetallicaSepultura さんの画像

10-01-2023, 20:59

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

By Briqunullus

Hero (647)

Briqunullus さんの画像

10-01-2023, 21:34

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

By NYYRIKKI

Enlighted (6034)

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?

By 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?

By thegeps

Paragon (1177)

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)

By 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.

By gdx

Enlighted (6122)

gdx さんの画像

13-01-2023, 01:41

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

By thegeps

Paragon (1177)

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...

By 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