News:

Don't forget to visit the main site! There's lots of helpful docs, patches, and more!

Main Menu

I might have bricked my hack with projectiler

Started by Mentlegen, February 14, 2018, 08:45:30 PM

Previous topic - Next topic

Mentlegen

I have applied JAM's Splazma patch and just edited my hack with projectiler. When i shoot, the game freezes. I think i have overwritten something or written something in the wrong place.

How do i restore this?

Quote58

Projectiler assumes the original location for the tables that make up projectile properties. These are indexed by beam type, but since plasma+spazer isn't a beam type in the original, there's no entries for it, and as a result JAM had to repoint all the tables. I don't know offhand whether he used the original space for some of tables or not, but if that's the case it's pretty likely projectiler wrote bad data to one of the tables, making the routines fail to load the sprite data for the projectile.

Mentlegen

Quote from: Quote58 on February 15, 2018, 01:56:07 AM
Projectiler assumes the original location for the tables that make up projectile properties. These are indexed by beam type, but since plasma+spazer isn't a beam type in the original, there's no entries for it, and as a result JAM had to repoint all the tables. I don't know offhand whether he used the original space for some of tables or not, but if that's the case it's pretty likely projectiler wrote bad data to one of the tables, making the routines fail to load the sprite data for the projectile.

Sounds accurate, do you know where these tables are located? if so i can replace them with the correct data from an older version of my backup rom

benox50

Just use the good ol compare files tool in your Hex editor (recommand HxD) between a ROM with no projectiler edits and one with projectiler edits to find where projectiler write the data.