Author Topic: Kujata (dangarfield fork) Universal HRC/RSD/P/A to GLTF parser function  (Read 199 times)

flarespire

  • *
  • Posts: 5
    • View Profile
Hi, I have recently been playing around with dangarfields branch of kujata to export HRC models to gltf, but have only been able to do so for the supported lgp files (like battle.lgp or char.lgp). I was wondering if it would be possible to have a function added to that fork that lets you specify an extracted LGP's folder (say chocobo.lgp) and have it parse the hrc's and appropriate files to gltf at a specified output location?

If this is currently not a planned feature or is out of scope that is fine and I understand completely, it would just be a useful thing to have for further file exploration.

flarespire

  • *
  • Posts: 5
    • View Profile
Forgot to say this in the initial post but I did try opening a pull request for this but github kept defaulting to the original branch and then just wouldn't let me make the PR.

dangarfield

  • *
  • Posts: 31
    • View Profile
Hi, yes, it's possible, but I haven't coded it to do so. There are subtle differences between the battle.lgp and char.lgp contents and I don't know how the chocobo.lgp looks.
What specifically are you looking for, the chocobo minigame?

I haven't looked at this at all yet, but I do think someone made a post here recently. It'll be possible if the format is the same, but not with the existing cli

flarespire

  • *
  • Posts: 5
    • View Profile
To be specific, im interested in seeing how the chocobo races are put together as a whole on the visual side of things and maybe finding the coloursets used for the chocobo's in the races (but thats a secondary thing) from a cursory inspection using MakouReactor and other such tools I believe the formats are the same or are very similar. I'm also interested in the summon models from magic.lgp (especially Bahamut ZERO) which also seem to be a similar format, but using a .D extension instead (it still calls .P, .RSD, .A/.A00 and .TEX files in the same way for the completed model).

I have all the LGP's unpacked if you need me to confirm whats in them from a raw files standpoint. also curiously theres 2 or 3 duplicate chocobo minigame LGP's.

Thanks for getting back to me!

flarespire

  • *
  • Posts: 5
    • View Profile
For further clarification, the chocobo lgp's all look like this when extracted, same formats, just a different naming scheme using only 2 characters instead of 4 for the filenames with the exception of chocobo.wat:


Magic.lgp looks like this when extracted, the ff7 folder contains a data folder which contains the various effects used for magic, enemy skill and summons, separated into sub folder, the formats seem to be mostly identical, the only differences as far as I can tell is the models are with a .d extension as mentioned previously and the animations seem to end with the .a00 extension. the tex files are identical to others found in the game and the p models seem to be the same format, with each p file needed for a model following the following extension structure .p, .p00, .p01, etc. rsd files are still there in the same format too. only things im not sure about are the .s files which may be scripts and the .b files, which I have no idea what they could contain.



as for the other archives, the ones that dont contain media files (.mid, .ogg and the like) or other misc/binary files, seem to use the common formats mentioned above, with naming schemes with as little as 2 character filenames to 4 character filenames for things that arent .tex files, .bin files etc, with the world lgp's using 3 character filenames for its p, hrc and a files.

I hope this information is helpful!
« Last Edit: 2025-01-11 17:49:34 by flarespire »