Final Fantasy VII PSX Replacing models creating new

  • Thread starter Thread starter ff7rules
  • Start date Start date
Status
Not open for further replies.
Why presume high quality model mods?  :-)
Can keep it low and still do some pretty cool stuff! (Monster modding!!)
Yeah but remember they have to  have same animations and everything and because of file sizes there isn't much we can change :(
 
Well you could simplify a complex one, and still make it interesting.......
 
Well you could simplify a complex one, and still make it interesting.......
Maybe, That data before was the battle formations my bad  :lol: I will keep looking though!
 
Last edited:
So the goal is to improve model poly count, while keeping it the same size to avoid addressing issues?

Wouldn't it be easier to debug the game with ePSXe and find out the memory codes for in-battle and world models and replace world models with in-battle ones using 'gameshark' ?
 
So the goal is to improve model poly count, while keeping it the same size to avoid addressing issues?

Wouldn't it be easier to debug the game with ePSXe and find out the memory codes for in-battle and world models and replace world models with in-battle ones using 'gameshark' ?
That sounds easy? Im pretty sure gameshark can't do that afterall its only hex editing.
 
im pretty sure, and this may not be the case, but im sure battle models use a different compression method to Field ones. and even if they didn't, The Battle ones would be WAY too large for the field, and the difference in filesize would surely crash the game.
 
I'm beginning to think that the LZS compression method on the wiki is incomplete. It works for compressing the first 4K bytes with no problem, but when it gets larger than that it gets strange. After position 4406 in that file you gave me, the compressed reference doesn't make sense. (it's byte 0xBB0 in Cloud.lzs). That byte corresponds to position 4406 in Cloud.DEC, but the decoded address points to 0xEEF which is neither the first, nor closest, match that the compression should reference. It does match, but I can't tell why it's using that address. Same thing happens later too.

It's going to take a little longer. :(
 
When I was playing around with it, nearly a year ago  :-o
i found all models use same compression, but could not be edited due to game reading disc address instead of directories.

But did anyone try to the demo?
Since the FF7 demo came on over 3 different disks, it could be entirely directory based.

Please correct me if I'm wrong.
 
I think I know why my method isn't working. Basically, I could be compressing over bytes that have a better match. That doesn't make much sense so here goes:

I have a byte-series at the point where I'm compressing:

Code: [Select]
Code:
05 21 95 A5 4B FF 00 32 43 85 AB CD EF
and somewhere in the file is the following:

Code: [Select]
Code:
05 21 95
However, somewhere else in the file is

Code: [Select]
Code:
21 95 A5 4B FF 00
So my compressed code turns into:

Code: [Select]
Code:
FC XX X0 XX X1 32 43 85 AB CD EF
So the game's code compresses it like this:

Code: [Select]
Code:
FD 05 XX X3 32 43 85 AB CD EF
So it got compressed that block into fewer bytes than I did.

So I got to tackle this differently later today, but that means it's going to take longer to compress. Decompression is still real-time. By the time you've read the compressed file to the end you can have the original file.
 
Last edited:
Awesome man nice work! So itll compress back to its orginal file once you figure all this  out?
 
Awesome man nice work! So itll compress back to its orginal file once you figure all this  out?
beats me :D I'm just screwing around with it right now. ATM, I compressed the file TOO much and everything's wrong. XD
 
Awesome man nice work! So itll compress back to its orginal file once you figure all this  out?
beats me :D I'm just screwing around with it right now. ATM, I compressed the file TOO much and everything's wrong. XD
Ok cool, it sounds like your enjoying yourself while doing it lol.
 
When I was playing around with it, nearly a year ago  :-o
i found all models use same compression, but could not be edited due to game reading disc address instead of directories.
...
Please correct me if I'm wrong.
Sorry. I wasn't ignoring you, but now I know what you're saying. You are correct. It is, for the most part, physical disc address referencing. However, it only points to the start of the file. The goal is to take the compressed file, uncompress it, edit it, then re-compress it to be smaller than or equal to the size of the original compressed file, then inject it back into the disc image. This is a working method and has been done with other files that are accessed in this way.
The trick is that the file that the compressed file begins by telling the loading process its own file length so it's not dependent on the FAT to tell how big the file is. So long as it doesn't overwrite the next physical file it can be safely injected.
 
When I was playing around with it, nearly a year ago  :-o
i found all models use same compression, but could not be edited due to game reading disc address instead of directories.
...
Please correct me if I'm wrong.
Sorry. I wasn't ignoring you, but now I know what you're saying. You are correct. It is, for the most part, physical disc address referencing. However, it only points to the start of the file. The goal is to take the compressed file, uncompress it, edit it, then re-compress it to be smaller than or equal to the size of the original compressed file, then inject it back into the disc image. This is a working method and has been done with other files that are accessed in this way.
The trick is that the file that the compressed file begins by telling the loading process its own file length so it's not dependent on the FAT to tell how big the file is. So long as it doesn't overwrite the next physical file it can be safely injected.
Sounds about right lol, if it reads the same start of the adrdress since it only points to that the game will think its the same file even though it has  been edited? It needs to be compressed to the length only at the start of the point? if so thenit might be possible to edit the battle models after all but only small things like hair changes and attire changes nothing drastic as file size is limited. I changed the Cloud in the game with the one in the demo and it didn't crash or hang he was just invisible.
 
I changed the Cloud in the game with the one in the demo and it didn't crash or hang he was just invisible.
Weird... Maybe the models are different? Probably referencing textures that aren't there or labeled something else

LZS Update:
I am very close. My compressed file is 625 bytes (0.94%) larger than the one you gave me (I'm using a two-pass comparison and making some things smaller). That's a compression ratio of 31.56% instead of 32.2%. This is probably small enough for this particular file (they'll each take 33 2K blocks), but for files that are on the edge of their blocks that's insufficient. I'm still working on it so don't fret.
 
I changed the Cloud in the game with the one in the demo and it didn't crash or hang he was just invisible.
Weird... Maybe the models are different? Probably referencing textures that aren't there or labeled something else
Yeah it would be missing alot of animations and file size is alot smaller i just did it really to see if it even loaded the battle and it does. Just thniking if we can get this to work is there a chanceof converting pc models to work with it?
 
LZS Update:
I am very close. My compressed file is 625 bytes (0.94%) larger than the one you gave me (I'm using a two-pass comparison and making some things smaller). That's a compression ratio of 31.56% instead of 32.2%. This is probably small enough for this particular file (they'll each take 33 2K blocks), but for files that are on the edge of their blocks that's insufficient. I'm still working on it so don't fret.
Now I believe I have finished this. I emailed it to ff7rules (at least I think I have) about 15 hours ago, but he hasn't gotten back to me about it. Granted, that's hardly enough time for him to reliably check his email and test it. If anyone else would like a go at an LZS compressor/decompressor, send me a PM or email me.
 
LZS Update:
I am very close. My compressed file is 625 bytes (0.94%) larger than the one you gave me (I'm using a two-pass comparison and making some things smaller). That's a compression ratio of 31.56% instead of 32.2%. This is probably small enough for this particular file (they'll each take 33 2K blocks), but for files that are on the edge of their blocks that's insufficient. I'm still working on it so don't fret.
Now I believe I have finished this. I emailed it to ff7rules (at least I think I have) about 15 hours ago, but he hasn't gotten back to me about it. Granted, that's hardly enough time for him to reliably check his email and test it. If anyone else would like a go at an LZS compressor/decompressor, send me a PM or email me.
I just got on now and saw the email lol. I haven't been on much have had to train for a boxing match so i haven't had much time i will test it now though and reply with the results thanks again man.

EDIT First 10 minutes of using it everything seems to work  :-) decompression is perfect i haven't tried compression yet though, but yeah everything seems great thanks allot!

EDIT2: WOW it works in game but there is one problem! look at the screenshots to see it

itworks-tX8YO.png


Hes petrify because of stone glare nothing to do with the mod. Speaking of mods i guess you just made one the no weapon mod :D First mod ever for the PSX version its a start ;) Anyway it all works except his victory dance but I'm guessing thats something to do with him not having a weapon to he starts to swing nothing then disappears. BUT what is really promising is again NO crashes no hangs it just loads it.

EDIT3 :
thisgetsbetterandbetter-HSqy1.png
AWESOME this really is getting good everything works except his limits but i think if i changed him to Vincent that wouldn't be an issue.

EDIT4: This is really getting to awesome to describe in words so ill let the screenshot do it.
whatselenadoingthere-ndMGI.png

Yep she works but only that stance nothing more.
 
Last edited:
This is great! :-D
You guys are officially the first successful PSX-FF7-Modders!
 
This is great! :-D
You guys are officially the first successful PSX-FF7-Modders!
I wouldn't say we are the first but i think we are definetly getting somewhere just replaced sephiroth with vincent works 100% you could play the whole game with him in battle..... if you disable his limit breaks.
 
Status
Not open for further replies.
Back
Top