11 March 2016 - Forum Rules
Started by theflyingzamboni, December 05, 2018, 01:56:49 PM
Quote from: Mugi on December 05, 2018, 02:52:00 PMmaybe i just misunderstood something here but it seems to me that if you can othervise produce functional files but they're just smaller than the originals, then why not just pad the end of the files with zeroes ? that would make the next block or file or whatever start where it's supposed to, and if the new file which is smaller than ther original othervise works, i would imagine stuffing zeroes to it's end does it no harm.
Quote from: FAST6191 on December 05, 2018, 06:35:10 PMWhat is there in the original compressed section? It is uncommon to see an end of file/compression marker (I would usually expect that sort of thing in the header or decompression instruction/function) but it is not entirely unknown a concept.I would not expect executable code to magically be there, however if it is then maybe rather than simple 00/FF padding go with NOPs or something. Though I just looked at http://www.mrc.uidaho.edu/mrc/people/jff/digital/MIPSir.html and NOOP is encoded as 0000 0000 0000 0000 0000 0000 0000 0000 apparently.
Quote from: Mugi on December 19, 2018, 01:48:56 PMi think im still just misundestanding here but i understood that you have a linear sequence of compressed blocks and you simply took one bock (or few blocks) from the middle of the sequence, and made it smaller and then padded the end of that block with zeroes.my though was to take all the blocks, and modify what you need, and then linearily arrange them back, then reinsert the entire sequence of blocks to the game and pad the end of the last block only with zeroes. (from a programmatical standpoint, doing this should not be too hard as you could propably fairly easily implement a way to fetch the compressed size of the block you compress and write it's size in it's place.)this way the entire sequence would stay intact and unless the compressed sequence actually contains something that makes it seek anything specific at the end of of the sequence, by all means it has no reason to not work.either way, it's good to hear you got it working (whatever it was that caused it to not work to begin with)
Page created in 0.117 seconds with 20 queries.