Jump to content
Sign in to follow this  
Retrofan

Colors, colors, colors

Recommended Posts

Hi, I need some help for changing colors in RiverRaid and Defender II. Without help I can't do it because disassembling and reassembling is to difficult for me, yet. I want new playfield and sprite colors in RiverRaid and a new ship color in Defender II. Any help???

 

(RiverRaid graphics are weired coded. It's difficult to change something more than the own plane. What's the trick?)

Share this post


Link to post
Share on other sites

IIRC, River Raid uses interlaced graphics...so you would need to study the disassembly to see how those sprites are reconstructed by the program (i.e. the data is not in a straight line). Here's a VERY rough disassembly with a config file. Keep in mind that until jump points are identified, you should refrain from altering the number of bytes used in any area...and if you delete program code, fill up the "hole" it creates by using NOP instructions.

 

Defender II is an 8k game, so the binary would need to be split in half first by using a filesplitter (like the free programs MasterSplitter or HJsplit)...and THEN disassembled (also using .cfg files to identify where program and data exist).

 

To change colors, what you would be looking for in the program is values that are saved to the COLUP0 and COLUP1 registers. If these values are coming from another ram address, you need to backtrack and search the program for areas that values are saved to those addresses.

river_raid_disassembly.zip

Share this post


Link to post
Share on other sites

...and here's Defender II (again, a VERY rough disassembly). This zip includes the .cfg files as well as the split binary. If you want to edit it an re-assemble, you need to do both halves seperately using Dasm, and then join the files together (either by using the aforementioned splitting programs or by using the Dos COPY command including the /b switch...like this...

 

COPY /B D2_001.BIN+D2_002.BIN D2HACK.BIN

 

...that would create the file called D2HACK.BIN from the two halves.

defender2_disassembly.zip

Share this post


Link to post
Share on other sites

I can confirm that working with River Raid is a nightmare. :)

 

Death Race is a hack of River Raid.

 

screenshot.gif

 

It is really hard to animate anything with River Raid. It is better just to use static graphics(no animation).

Share this post


Link to post
Share on other sites
Here's a VERY rough disassembly with a config file.

Why didn't you just check The "New" Dig!? I have published a complete River Raid disassembly ~2.5 years ago.

Share this post


Link to post
Share on other sites

I would have...but I didn't know how to get there ;) :lol:

 

 

(sorry Al...I had to sneak that one in there)

Share this post


Link to post
Share on other sites
I would have...but I didn't know how to get there ;) :lol:

:idea: Google: dig stella

 

Or search the [stella] mailing list.

Share this post


Link to post
Share on other sites

Nono...that was a joke. ;) AA's link has been corrected for some time now.

 

Truth be told, I was just preoccupied to think of looking there.

* goes back to girlsintightpanties.net

Share this post


Link to post
Share on other sites
It is really hard to animate anything with River Raid. It is better just to use static graphics(no animation).

:idea: Check my disassembly. It shouldn't be that hard then.

Share this post


Link to post
Share on other sites
It is really hard to animate anything with River Raid. It is better just to use static graphics(no animation).

:idea: Check my disassembly. It shouldn't be that hard then.

 

:thumbsup:

Share this post


Link to post
Share on other sites

Thank you for the disassemblies. I'll try to read it but I think I don't understand very much of the assembler code. And the sprite graphics are not better in the disassemblies than in the hack-o-matic code.

 

I will read the code and then I post my results ...

Share this post


Link to post
Share on other sites

If I don't dis- and reassemble Defender II why is it broken if I only change one bit in the graphics with hack-o-matic?

 

And - is anybody able to say, if I could change the ship color without changing the background color (both are red) without reading the disassembly 2 weeks?

Share this post


Link to post
Share on other sites

Probably the same reason that other hacks won't run on emulators...the emulator can't identify it to determine what bankswitching scheme is being used after it runs a checksum (changing even one byte would effect the checksum). So you need to use Z26 and "force" the emulator to use a certian scheme. Use -g2 as part of the command line.

 

Also, keep in mind that the bitmaps shown in the disassemblies are just comments (ignored by the assembler). Just changing the placement of the X's in those lines will have no effect whatsoever.

 

 

BTW here's a puzzler...

http://www.classic-games.com/atari2600/bankswitch.html

That page states that DefenderII/Stargate uses 16k, but both the roms here are only 8k :?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...