11 March 2016 - Forum Rules
Started by amback, December 28, 2015, 08:01:01 AM
Quote from: FAST6191 on December 28, 2015, 10:59:02 AMDo you mean you want something like http://www.romhacking.net/utilities/296/ but for this game or do you mean you just want some general tools for hacking, albeit ones that work with the quirks of the N64, and some N64 specific tools?For the former that is actually a big ask, for the latter then I guess I/we/someone can help you put together a basic toolkit. N64 text is not that different to other consoles though so things you have there will likely carry over to here. Not sure what the kids are using as a N64 debugger these days (project64 and mupen64plus (the one used in retroarch) are the emulators of choice it seems, debuggers seem to come and go from them and get added back in all sorts of custom versions) and I think we are suggesting http://www.romhacking.net/forum/index.php/topic,18868.0 for an assembler these days.Would you view yourself as more of a translator then?
def decompressCB(data): out = bytearray() out_sz = int.from_bytes(data[0:4], 'little') src = iter(data[4:]) cmd = 0x10000 while len(out)<out_sz: if cmd>0xFFFF: cmd = 0x100 | next(src) if cmd & 0x80: p = next(src) if p&0x80: l = (p>>4)&7 l+=1 p<<=8 p|= next(src) p&=0xFFF else: l = 2 p+=1 for i in range(l): out.append(out[-p]) else: out.append(next(src)) cmd<<=1 # Amusingly, they overshoot sizes and cut at the final size. # Simply allowing the decompression and resizing should be okay though. return bytes(out[:out_sz])
mame n64 -debug -cart [filename]
Page created in 0.310 seconds with 19 queries.