Difference between revisions of "NPC & Enemy Sprite Insertion Guide"

From Chrono Compendium
Jump to: navigation, search
(Created page with "Mage's NPC & Enemy Sprite Insertion Guide: First, my friend, you need a copy of Sprite Graphics Offsets. That can be found here under the alphabetical topic list: https://www...")
 
m (Formatting fixes.)
Line 1: Line 1:
 
Mage's NPC & Enemy Sprite Insertion Guide:
 
Mage's NPC & Enemy Sprite Insertion Guide:
  
First, my friend, you need a copy of Sprite Graphics Offsets. That can be found here under the alphabetical topic list: https://www.chronocompendium.com/Term/Modification.html
+
First, my friend, you need a copy of Sprite Graphics Offsets. That can be found here under the alphabetical topic list: [[Modification]]
  
 
==Decompression==
 
==Decompression==
Line 7: Line 7:
 
For the purposes of this guide, we'll just replace Sorrin with Middle Ages Castle Guard (600 AD). You'll find this in the first tab.
 
For the purposes of this guide, we'll just replace Sorrin with Middle Ages Castle Guard (600 AD). You'll find this in the first tab.
  
[[File:Sprite chart.png]]
+
[[File:Sprite chart.png|600px]]
  
  
Line 14: Line 14:
 
Once there we are going to go to Column C, and we get 19B008.
 
Once there we are going to go to Column C, and we get 19B008.
  
[[File:Sprite chart 2.png]]
+
[[File:Sprite chart 2.png|600px]]
  
 
So then we go to Temporal Flux. Then file; compression. Under the address, we type 19B008
 
So then we go to Temporal Flux. Then file; compression. Under the address, we type 19B008
Line 24: Line 24:
 
We could name it Sorrin for example.  You'll hit open. It will take you back to the screen you were on before, and then you hit decompress and should see this:  
 
We could name it Sorrin for example.  You'll hit open. It will take you back to the screen you were on before, and then you hit decompress and should see this:  
  
[[File:Compression 2.png]]
+
[[File:Compression 2.png|600px]]
  
  
Then you'll want to open Tile Molester. If you don't have it, get it here: [[Utilities_(Chrono_Trigger)]]
+
Then you'll want to open Tile Molester. If you don't have it, get it here: [[Utilities (Chrono Trigger)]]
  
as well as the java runtimes, it won't run without java.
+
as well as the java runtimes, it won't run without java.
  
 
Open tile molester, (tm.jar) then hit file open. Change files of type to all files and go to the folder where you decompressed our guard. Sorrin.bin.
 
Open tile molester, (tm.jar) then hit file open. Change files of type to all files and go to the folder where you decompressed our guard. Sorrin.bin.
Line 37: Line 37:
 
Click it and you should get this:
 
Click it and you should get this:
  
[[File:Tile molester 2.png]]
+
[[File:Tile molester 2.png|600px]]
  
 
Doesn't look very pretty, but, this is a good sign, we can already tell it's the sprite we are looking to replace. Go to view, codec, and click 4bpp planar composite 2 by 2 bppp (towards the bottom).
 
Doesn't look very pretty, but, this is a good sign, we can already tell it's the sprite we are looking to replace. Go to view, codec, and click 4bpp planar composite 2 by 2 bppp (towards the bottom).
Line 49: Line 49:
 
then in tile molester, go to palette, import from; another file. Change Files of type to ZSNES savestates and open up the save state like so:
 
then in tile molester, go to palette, import from; another file. Change Files of type to ZSNES savestates and open up the save state like so:
  
[[File:Tile molester 3.png]]
+
[[File:Tile molester 3.png|600px]]
  
 
You should get this:
 
You should get this:
  
[[File:Tile molester 4.png]]
+
[[File:Tile molester 4.png|600px]]
  
 
Gorgeous right? Mine might look a little different than yours because I had it in the wrong mode. Anyways, Now click the right arrow on the bottom until it looks like this:
 
Gorgeous right? Mine might look a little different than yours because I had it in the wrong mode. Anyways, Now click the right arrow on the bottom until it looks like this:
Line 77: Line 77:
 
Number 58 has the same sprite assembly of the middle ages guard, and honestly, I just found it first and was too lazy to look for our actual guard.
 
Number 58 has the same sprite assembly of the middle ages guard, and honestly, I just found it first and was too lazy to look for our actual guard.
  
[[File:Chronocharviewer 1.png]]
+
[[File:Chronocharviewer 1.png|600px]]
  
 
You can see how the sprites are assembled by hitting the arrows for the animations to the left or right. It changes the red squares which make up the sprite's assembly.
 
You can see how the sprites are assembled by hitting the arrows for the animations to the left or right. It changes the red squares which make up the sprite's assembly.
Line 85: Line 85:
 
Basically, this is to help get a visual on how to place the pieces of Sorrin over the guard.
 
Basically, this is to help get a visual on how to place the pieces of Sorrin over the guard.
  
It appears as if each red square is 8 by 8. So by looking at this program, you can start to manually construct where the pieces of Sorin should go to assemble properly in MS paint.
+
It appears as if each red square is 8 by 8. So by looking at this program, you can start to manually construct where the pieces of Sorin should go to assemble properly in MS paint.
  
 
Sprite assembly would probably make our lives easier here, but, that is something I have little understanding in. :(
 
Sprite assembly would probably make our lives easier here, but, that is something I have little understanding in. :(
Line 92: Line 92:
  
  
[[File:Tile molester 7.png]]
+
[[File:Tile molester 7.png|600px]]
  
 
if you save it and open it up in MS paint it might make things a little clearer.
 
if you save it and open it up in MS paint it might make things a little clearer.
Line 110: Line 110:
 
Now on the first page, we find Middle Ages Castle Guard (600 AD), 1st tab, and we go to sprite palette index. (Column D) For Middle Ages Castle guard, that number is 133. Then we go over to the Palettes tab. We find number 133 in Column A, and we get 240C78 as our starting Palette address (Column C).
 
Now on the first page, we find Middle Ages Castle Guard (600 AD), 1st tab, and we go to sprite palette index. (Column D) For Middle Ages Castle guard, that number is 133. Then we go over to the Palettes tab. We find number 133 in Column A, and we get 240C78 as our starting Palette address (Column C).
  
Now NPC's are 12 colors plus the transparency color. Now if you follow this (https://www.chronocompendium.com/Term/Changing_the_status_menu_portraits.html) guide it will explain so much better then I can how to work SNESpal and Ifranview and edit palettes.
+
Now NPC's are 12 colors plus the transparency color. Now if you follow this ([[Changing the status menu portraits]]) guide it will explain so much better then I can how to work SNESpal and Ifranview and edit palettes.
  
 
You can pick up both these tools on the Modification page I linked earlier.
 
You can pick up both these tools on the Modification page I linked earlier.
Line 120: Line 120:
 
==Compression==
 
==Compression==
  
Go back into tile molester, and open up the file we decompressed earlier; (Sorrin.bin) make sure it's in 4Bpp planar composite 2 x 2 bpp and for visual purposes import the palette from that save file again.  
+
Go back into tile molester, and open up the file we decompressed earlier; (Sorrin.bin) make sure it's in 4Bpp planar composite 2 x 2 bpp and for visual purposes import the palette from that save file again.  
  
 
Now go to edit, paste from, and choose sorintest.png. Now for some dang reason that I can't figure out for the life of me, it cuts off a portion when you paste it. If anyone can tell me what i'm doing wrong, let me know, here's a picture of it:
 
Now go to edit, paste from, and choose sorintest.png. Now for some dang reason that I can't figure out for the life of me, it cuts off a portion when you paste it. If anyone can tell me what i'm doing wrong, let me know, here's a picture of it:
  
[[File:Tile molester 8.png]]
+
[[File:Tile molester 8.png|600px]]
  
 
You gotta play with it and eventually, you'll get it. (even if you have to paste from two separate files) and make sure you don't accidentally make it bigger or it will write over something once we compress and put it into the rom and we will get garbled messes and glitches. (ALWAYS BACK UP YOUR ORIGINAL ROM.)
 
You gotta play with it and eventually, you'll get it. (even if you have to paste from two separate files) and make sure you don't accidentally make it bigger or it will write over something once we compress and put it into the rom and we will get garbled messes and glitches. (ALWAYS BACK UP YOUR ORIGINAL ROM.)
  
Now save as Sorrin.bin. Or something else if you prefer in case your afraid you messed up and you don't want to have to re-decompress that file.
+
Now save as Sorrin.bin. Or something else if you prefer in case your afraid you messed up and you don't want to have to re-decompress that file.
  
 
Now we go back to Temporal Flux. Go to file, compression Under the address, we type 19B008
 
Now we go back to Temporal Flux. Go to file, compression Under the address, we type 19B008

Revision as of 01:26, 30 May 2018

Mage's NPC & Enemy Sprite Insertion Guide:

First, my friend, you need a copy of Sprite Graphics Offsets. That can be found here under the alphabetical topic list: Modification

Decompression

For the purposes of this guide, we'll just replace Sorrin with Middle Ages Castle Guard (600 AD). You'll find this in the first tab.

Sprite chart.png


What we are looking for is the GFX Pack Pointer, and for our castle guard, that number is 30. Then, we are going to go to GFX Packs tab on the bottom and look for 30 under collum A, GFX Pack Pointers Index (Dec).

Once there we are going to go to Column C, and we get 19B008.

Sprite chart 2.png

So then we go to Temporal Flux. Then file; compression. Under the address, we type 19B008

then we hit that little square with the 3 dots, and you'll name your file.

Compression 1.png

We could name it Sorrin for example. You'll hit open. It will take you back to the screen you were on before, and then you hit decompress and should see this:

Compression 2.png


Then you'll want to open Tile Molester. If you don't have it, get it here: Utilities (Chrono Trigger)

as well as the java runtimes, it won't run without java.

Open tile molester, (tm.jar) then hit file open. Change files of type to all files and go to the folder where you decompressed our guard. Sorrin.bin.

Tile molester 1.png

Click it and you should get this:

Tile molester 2.png

Doesn't look very pretty, but, this is a good sign, we can already tell it's the sprite we are looking to replace. Go to view, codec, and click 4bpp planar composite 2 by 2 bppp (towards the bottom).

Right it still looks like garbage, but it's better garbage! Next, we want to load up the palette. The easiest way to do that is to get it straight from the ROM.

Grab a savestate here: https://fantasyanime.com/squaresoft/ctsaves.htm. I take the ZST files from Jacki's saved files. Pick one around the middle ages (I chose the 2nd one, queen returns) and put the zst save file where you have a playable rom. Name the save file after the rom (example Chrono trigger.zst). Then load up the rom in ZSNES, run up to one of the castle guards in 600 AD and make a savestate with the guard on the screen like so:

State save.png

then in tile molester, go to palette, import from; another file. Change Files of type to ZSNES savestates and open up the save state like so:

Tile molester 3.png

You should get this:

Tile molester 4.png

Gorgeous right? Mine might look a little different than yours because I had it in the wrong mode. Anyways, Now click the right arrow on the bottom until it looks like this:

Tile molester 5.png

Huzzah! Now comes (for me) the most frustrating part - replacing the actual sprites. go ahead and print screen that and paste it in MS paint (or whatever you use). I had to zoom out twice to get the right size before print screening.

Now we are going to manually place the sprites matching the garbled mess before us (because I do not know how to edit sprite assembly)

It is only now that I noticed Sorrin has a weapon and would probably be best to replace an enemy not an NPC... however the process is exactly the same so I'm going to keep going with what we have.

So, in MS paint we get something like this;

Tile molester 6.png

to avoid confusion that last image was in MS paint, not tile molester. Anyways, this looks nasty and its hard to figure out exactly how the sprites are supposed to be assembled and where to put what.

That's where ChronoCharView comes in. I don't remember where I picked that up, so I've attached it.

Install and open that up and open up your CT Rom. (Make sure the ROM is unheadered, remove it in Temporal Flux).

Number 58 has the same sprite assembly of the middle ages guard, and honestly, I just found it first and was too lazy to look for our actual guard.

Chronocharviewer 1.png

You can see how the sprites are assembled by hitting the arrows for the animations to the left or right. It changes the red squares which make up the sprite's assembly.

That sentence hurt my head.

Basically, this is to help get a visual on how to place the pieces of Sorrin over the guard.

It appears as if each red square is 8 by 8. So by looking at this program, you can start to manually construct where the pieces of Sorin should go to assemble properly in MS paint.

Sprite assembly would probably make our lives easier here, but, that is something I have little understanding in. :(

BUT once you divide all the sprites up 8 by 8 it's less tedious - if you can follow my madness here (from left to right) I hope it makes some sort of sense:


Tile molester 7.png

if you save it and open it up in MS paint it might make things a little clearer.

Keep editing the sprites until satisfied, and save it, make sure the size is the same as it was in tile molester, like so:


Sprite packet.png

Now save it, let's say we call it Sorrintest.png.


Palette

Now before we insert our new NPC, we need to fix the palette, or Sorrin will have the guard's palette. So to find our little guard's palette we go back to our ChronoTriggerUnheaderedSpriteInfo doc that we got earlier. (Sprite Graphics Offsets).

Now on the first page, we find Middle Ages Castle Guard (600 AD), 1st tab, and we go to sprite palette index. (Column D) For Middle Ages Castle guard, that number is 133. Then we go over to the Palettes tab. We find number 133 in Column A, and we get 240C78 as our starting Palette address (Column C).

Now NPC's are 12 colors plus the transparency color. Now if you follow this (Changing the status menu portraits) guide it will explain so much better then I can how to work SNESpal and Ifranview and edit palettes.

You can pick up both these tools on the Modification page I linked earlier.

Sorrin comes already with only 12 colors so we don't have to do that first part with lowering colors in Ifranview, just the SNESpal part.

But our number to insert into SNESpal is 240C78 :) and its 12 colors long, not 15 otherwise, the guide sums up what we need to do for our 12 colors.

Compression

Go back into tile molester, and open up the file we decompressed earlier; (Sorrin.bin) make sure it's in 4Bpp planar composite 2 x 2 bpp and for visual purposes import the palette from that save file again.

Now go to edit, paste from, and choose sorintest.png. Now for some dang reason that I can't figure out for the life of me, it cuts off a portion when you paste it. If anyone can tell me what i'm doing wrong, let me know, here's a picture of it:

Tile molester 8.png

You gotta play with it and eventually, you'll get it. (even if you have to paste from two separate files) and make sure you don't accidentally make it bigger or it will write over something once we compress and put it into the rom and we will get garbled messes and glitches. (ALWAYS BACK UP YOUR ORIGINAL ROM.)

Now save as Sorrin.bin. Or something else if you prefer in case your afraid you messed up and you don't want to have to re-decompress that file.

Now we go back to Temporal Flux. Go to file, compression Under the address, we type 19B008

then we hit that little square with the 3 dots, and you'll click Sorrin.bin (or whatever you named the edited file) and compress!

Load up your save file, walk out of the map and back in and our guard should be Sorrin. Here's mine, only when the guard stands still is he Sorrin, for I am lazy. :) He's also ugly because I didn't change the palette.

In game test.png

Any questions let me know and happy sprite inserting!