gogii games

Textures, recreate headers, conversions, algorithms and parsing of image files
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

gogii games

Post by PsyXo »

Hi guys!, please help with unpacking and packing the font texture , preferably with conversion to an editable PNG, DDS, or some other format , so that you can work in photoshop.

link:
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Whispered Legends: Tales of Middleport (*.jem)

Post by Acewell »

here is bms script to decompress your rgba8888 samples and add dds header to the data. :D
*script updated March 7, 2020*
WhisperedLegendsTalesofMiddleport_jem.zip

supports lzma compressed rgba8888 and a8(?)
Last edited by Acewell on Sat Mar 07, 2020 4:41 pm, edited 2 times in total.
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Acewell

Thank you so much for your help. The script does not convert back, gives an error, after uncompressing and converting to DDS, photoshop gives an error, an incorrect document type. :(
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: gogii games

Post by Acewell »

okay i corrected a silly mistake i made in the script, they should open in Photoshop now. :)
reimport is not really my thing but i guess you'd need to comment out all the memory_file
related stuff from bms script and remove the dds header from your edited rgba8888 image.
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Acewell

Thank you , photoshop now opens. I'm not 100% sure, but maybe the JEM texture, it's actually a BMP texture, it's difficult for me to understand the reimport myself , since I'm not a programmer, and I don't understand all the nuances, I can say for sure that the reimport is not possible , but the original texture. I also found more JAM textures , and they differ from these, the script does not unpack them , I attached a link to the file, if You do not want to do further, I will understand you and will not insist.

link
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: gogii games

Post by Acewell »

okay i quickly updated the script again, give it a try and see how it works for you. :)
if you upload more samples you can just attach the zip to your post instead of off-site.
i'm still not 100% about the a8 format, could be r8 etc, will look into more later. :oops:
in "Raw texture cooker" r8_uint looks pretty good, but there is an "a" in the sample name
that likely denotes "alpha".
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Acewell

reimport still does not work, other textures, the ones that I threw off last, are unpacked, but photoshop does not open them, referring to some kind of failure, without a working reimport, there is no point in doing something, since the game does not see other formats, when the program reimports, the next window will appear with a warning that 0% of the files are Packed back, here is a screenshot.


Image
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Whispered Legends: Tales of Middleport (*.jem)

Post by Acewell »

i have done nothing about reimport and all your samples so far open fine in Photoshop for me.
i think you are not using reimport correctly too, looks like you
running the dds file through the exe instead of the original jem file.
and there should not even be mention of dds because you were
supposed to remove the 128 byte header from your edited image before reimport.
anyway i think lzma_dynamic is not supported by reimport so you might have to compress
to lzma by another script or tool and overwrite the original compressed data with it.
i am focused on getting the formats correct more than anything at this point.
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: gogii games

Post by Allen »

Hi Acewell and PsyXo.
Thanks Acewell for the credit.
I wrote a dds2jem script here, I hope it will help and improve this post topic.
Maybe the game will recognize it, or it won't, just try it.

Edit:fix
gogii games dds2jem.zip
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Allen

Thank you , but your BMS script doesn't unpack the JEM file.
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: gogii games

Post by Allen »

PsyXo wrote:Allen

Thank you , but your BMS script doesn't unpack the JEM file.

Unpack uses Acewell's script. :D What I did was just add the conversion function based on this.
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Allen

I don 't quite understand what your script does , what do I need to do?, unpack with Acewell's script , edit, then convert the file with your script, and then pack it back with Acewell's scritp ?
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: gogii games

Post by Allen »

PsyXo wrote:Allen

I don 't quite understand what your script does , what do I need to do?, unpack with Acewell's script , edit, then convert the file with your script, and then pack it back with Acewell's scritp ?


Use Acewell's script to convert jem to dds. Then edit the DDS. Then use my script to convert the DDS back to jem.

WhisperedLegendsTalesofMiddleport_jem.bms: jem -> dds.
<Edit dds>
gogii games dds2jem.bms: dds -> jem.(Note : When you run bms,that you need to select the edited dds file here)
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Allen

I'm running quickbms.exe, select your BMS script, then select the edited version of the texture , and save to the same folder, the cmd window writes that 0 files are done, if necessary, attach the edited texture, my texture remains unchanged.

linq

P/S: sorry for the link, but files with the DDS extension are prohibited by the administration for attaching to the topic.
P/SS: perhaps, after editing, and saving the texture through photoshop, some changes occur, and your script does not understand them, it converts the original texture normally.
Allen
Posts: 156
Joined: Tue Sep 01, 2015 9:44 am

Re: gogii games

Post by Allen »

You should save dds as argb32 format.(NO MIP maps)
Image
PsyXo
Posts: 41
Joined: Sun Jan 08, 2017 7:17 pm

Re: gogii games

Post by PsyXo »

Allen Acewell
thank you very much for your help!, the texture is normally converted and works in the game.