Kuribo64
Views: 19,856,685 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-29-24 01:06 PM
Guest:

0 users reading PyJPC v0.2 Release Thread (Technical Details Inside) | 1 bot

Main - Archived forums - SMG hacking tools development - PyJPC v0.2 Release Thread (Technical Details Inside) Hide post layouts | New reply

Pages: 1 2 3 4 5
NWPlayer123
Posted on 01-20-15 11:54 PM (rev. 4 of 02-24-15 09:47 PM) Link | #54792

PyJPC v0.2 by NWPlayer123


Download Links:
PyJPC v0.1: Download
PyJPC v0.2: Download

This a tool that allows for the extraction/repacking of JPC files.
If you feed it a JPC file (as the only input), it extracts it into a folder named the same as the file. Particles.jpc > /Particles. Inside is all the JPA files from the archive, with their various TEX1 sections added.

It should be noted that the format does not match up with games like Super Mario Sunshine. It has 0xAB(«) padding. Sections in SMS are padded to 16 bytes automatically, and padding is not in the JPC file.

There are two additional sections that are not used in normal JPA files - TDB1 which details information about what TEX1 entry to use and more (currently unknown), and then NWP1 which is a custom section I made to store the initial data from JPC entries, more details on the Wiki page.

To generate an order for the JPA/TEX1 entries it uses ParticleData.bcsv and /TEX1/TEX1DATA.bcsv - you can edit them to add, delete, or rearrange files.

Have fun! ;)

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 12:45 AM Link | #54798
Wow, full release! I can't wait to play around with this. Does the script print the command syntax (or whatever it's called) somehow? If not, it'd be nice to see that stuff listed somewhere. Even in a readme, or in this thread...

Posted by NWPlayer123
NWP1


Not hard to tell where you got that name xD

NWPlayer123
Posted on 01-21-15 12:56 AM Link | #54799
Yes, if the number of arguments doesn't equal 2 (PyJPC.py file.jpc) it'll print debug. So if you have it set up correctly (forgot to note it only needs python 2) you can drag-and-drop a JPC or a folder on it.

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 01:00 AM Link | #54802
Posted by NWPlayer123
Yes, if the number of arguments doesn't equal 2 (PyJPC.py file.jpc) it'll print debug. So if you have it set up correctly (forgot to note it only needs python 2) you can drag-and-drop a JPC or a folder on it.

Oh, drag and drop. That's a lot easier.

Python 2...does that include 2.6 or 2.7?

NWPlayer123
Posted on 01-21-15 01:30 AM (rev. 2 of 01-21-15 01:30 AM) Link | #54812
Any and all, 2.0-2.7.4 or whatever the latest is

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 01:31 AM Link | #54815
Posted by NWPlayer123
Any and all, 2.0-2.7.4 or whatever the latest is

Oh, okay. Glad to know I don't have to install a 4th version of Python :D

KoopaTroopaMan
Posted on 01-21-15 06:12 AM (rev. 2 of 03-16-15 07:15 PM) Link | #54829
Yay now we finally can edit particles!

If I know right, to extract you have to type
PyJPC.py Particles.jpc
and to repack you have to drag and drop the folder on PyJPC.py?

shibboleet
Posted on 01-21-15 12:03 PM Link | #54833
or drag and drop the JPC itself into the program.

____________________
a

KoopaTroopaMan
Posted on 01-21-15 02:27 PM Link | #54848
I just get TEX1 files. How do I edit them?

SunakazeKun
Posted on 01-21-15 02:28 PM Link | #54849
Posted by Rainbow Mario
Yay now we can edit particles finally!

Editing the effects actually was possible, but pyJPC just makes it possible to edit/create/add new textures!



Youtube | Github | Neo Mario Galaxy | Super Mario Galaxy & Super Mario 3D Land Modding


KoopaTroopaMan
Posted on 01-21-15 02:33 PM (rev. 2 of 03-16-15 07:18 PM) Link | #54850
Textures? Wait, I thought particles was just animating images. texextract gives BTI files, that can be edited. So should the BTIs be repacked to TEX1 IN the JPC file?

NWPlayer123
Posted on 01-21-15 03:22 PM Link | #54854
The textures are only a small part of the JPA file, the rest is just as significant. If you want to edit the JPAs generated, you can edit all of them except the TEX1 section, which is read from the /TEX1/*.tex1 files. So if you want to edit the textures for particles, edit those files, otherwise, edit the sections in the JPA. If you wanna turn a .tex1 into a .bti, just delete the first 32 (0x20) bytes.

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 03:23 PM Link | #54855
Posted by Rainbow Mario
Textures? Wait, I thought particles was just animating images. textextract gives BTI files, that can be edited. So should the BTIs be repacked to TEX1 IN the JPC file?

Textures are images, loosely speaking.

NWPlayer123
Posted on 01-21-15 03:24 PM Link | #54856
Yes, in this case the words are interchangable.

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 03:50 PM Link | #54857
Posted by NWPlayer123
Yes, in this case the words are interchangable.

*runs around cheering like an insane moron who just saw his favorite sports team win some major thing*
I FINALLY GOT SOMETHING RIGHT! YESSS!!!



That metaphor does not mean I like watching Sports. I don't. I don't like playing them either.

KoopaTroopaMan
Posted on 01-21-15 04:02 PM Link | #54858
Posted by NWPlayer123
The textures are only a small part of the JPA file, the rest is just as significant. If you want to edit the JPAs generated, you can edit all of them except the TEX1 section, which is read from the /TEX1/*.tex1 files. So if you want to edit the textures for particles, edit those files, otherwise, edit the sections in the JPA. If you wanna turn a .tex1 into a .bti, just delete the first 32 (0x20) bytes.

I already got all BTI files from TexExtract. I want to convert them to TEX1 and then put in the JPC file.

NWPlayer123
Posted on 01-21-15 04:23 PM (rev. 2 of 01-21-15 04:23 PM) Link | #54859
then look at the name of the BTI, find the TEX1 file with the same name, then add those 32 bytes I mentioned (it has the "TEX1", the size of the file, the /name/ of the file, and a bit of padding)
EDIT: I can write a simple script if you want.

____________________
"I hate playing musical chats" ~ Quote of the month

Splitwirez
Posted on 01-21-15 04:26 PM Link | #54860
Posted by NWPlayer123
EDIT: I can write a simple script if you want.

Uh...not sure if it's my place to say this, but...

...PLEASE DO THAT!!!!!

All this hex editing is way beyond me.

KoopaTroopaMan
Posted on 01-21-15 04:46 PM Link | #54861
Yes do a script. It would help me a lot and a lot of other people.

Jesse
Posted on 01-21-15 06:09 PM Link | #54864
its literally dumping some hex lines into a file. Its not as hard as curing cancer or something like that.
Pages: 1 2 3 4 5

Main - Archived forums - SMG hacking tools development - PyJPC v0.2 Release Thread (Technical Details Inside) Hide post layouts | New reply

Page rendered in 0.029 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 233/233, time: 0.010 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.