Users browsing this thread: 1 Guest(s)
Xenogears Battle Sprites
#15
(05-06-2020, 06:43 AM)Deathbringer Wrote: Might I ask how you did this and would the technique work on Star Ocean 2?

The idea is just like how you would do it manually.

To reassemble a sprite, using Photoshop:
1) Create a blank canvas.
2) Open the spritesheet with parts.
3) Select "Rectangle Select" tool and hightlight a part. Right click -> Copy.
4) Paste the part onto the blank canvas at the right position.

The script is actually doing the same thing:
1) canvas = new image;
2) source = image.open(filename.png);
3) part = source.copy(sx, sy, w, h);
4) canvas.draw(part, dx, dy)

Right off the bat you'll have six numbers to look for: sx, sy, w, h, dx and dy. So you just look around the data files for the numbers.

Repeat step 3 and 4 until the whole sprite is complete.

To reassemble a sprite, you'll draw the parts _ON TOP_ each other.
To reassemble a map, you'll draw the parts _NEXT TO_ each other.

Beside the six numbers, you'll also encounter other stuff. Like a flag byte for vertical/horizontal flipping, a byte on rotation, palette ID, sheet ID, alpha blending byte, pointers, etc... You can experiment with them later on and figure out what do each byte do.

Then you just write a script to automate the whole thing. I included a copy of the script inside the archive, and uploaded the whole thing here:
https://github.com/rufaswan/Web2D_Games/...s/psxtools

In the end, a game is just a program. You can treat Game.exe as just a DataFileReader.exe, because the assemble instructions are inside DataFile.bin. You just need to find it.

The truth is out there. Somewhere.

Cheers,
- Rufas
Reply
Thanked by:


Messages In This Thread
Xenogears Battle Sprites - by rufaswan - 05-03-2020, 01:24 PM
RE: Xenogears Battle Sprites - by SmithyGCN - 05-03-2020, 02:40 PM
RE: Xenogears Battle Sprites - by Mortifier777 - 05-03-2020, 03:14 PM
RE: Xenogears Battle Sprites - by Barack Obama - 05-03-2020, 06:19 PM
RE: Xenogears Battle Sprites - by Mortifier777 - 05-03-2020, 07:20 PM
RE: Xenogears Battle Sprites - by Ton - 05-03-2020, 08:29 PM
RE: Xenogears Battle Sprites - by rufaswan - 05-04-2020, 05:09 PM
RE: Xenogears Battle Sprites - by Mortifier777 - 05-04-2020, 07:00 PM
RE: Xenogears Battle Sprites - by Barack Obama - 05-04-2020, 07:47 PM
RE: Xenogears Battle Sprites - by SmithyGCN - 05-05-2020, 06:54 PM
RE: Xenogears Battle Sprites - by Mortifier777 - 05-05-2020, 09:38 PM
RE: Xenogears Battle Sprites - by SmithyGCN - 05-05-2020, 10:28 PM
RE: Xenogears Battle Sprites - by Deathbringer - 05-06-2020, 06:43 AM
RE: Xenogears Battle Sprites - by Mortifier777 - 05-06-2020, 01:29 PM
RE: Xenogears Battle Sprites - by rufaswan - 05-07-2020, 05:12 PM
RE: Xenogears Battle Sprites - by Deathbringer - 05-08-2020, 04:33 PM
RE: Xenogears Battle Sprites - by IceManual - 05-13-2020, 04:10 AM
RE: Xenogears Battle Sprites - by rufaswan - 06-20-2020, 06:43 PM
RE: Xenogears Battle Sprites - by rufaswan - 06-29-2020, 05:40 PM
RE: Xenogears Battle Sprites - by Ton - 06-30-2020, 07:20 AM
RE: Xenogears Battle Sprites - by rufaswan - 07-11-2020, 05:59 PM
RE: Xenogears Battle Sprites - by Barack Obama - 07-12-2020, 12:17 PM
RE: Xenogears Battle Sprites - by rufaswan - 10-03-2020, 03:45 PM
RE: Xenogears Battle Sprites - by FormerUser12 - 10-12-2020, 06:46 PM
RE: Xenogears Battle Sprites - by rufaswan - 10-24-2020, 06:23 PM
RE: Xenogears Battle Sprites - by FormerUser12 - 10-24-2020, 08:10 PM
RE: Xenogears Battle Sprites - by Topheryu - 04-16-2022, 09:55 AM
RE: Xenogears Battle Sprites - by rufaswan - 04-16-2022, 06:30 PM
RE: Xenogears Battle Sprites - by Topheryu - 04-16-2022, 08:15 PM
RE: Xenogears Battle Sprites - by rufaswan - 04-17-2022, 02:21 PM

Forum Jump: