thesupersonic16 / DALTools

A collection of tools aiming to help modifying files for the DATE A LIVE Visual Novels
MIT License
37 stars 6 forks source link

More Sting game support? #23

Open otomevn opened 3 years ago

otomevn commented 3 years ago

Hello, first I want to thank you for making this tool. We're translating another Sting game, they used the same file type but when I loaded it, the program immediately crashed.

The game's name is Psychedelica of the Black Butterfly. Here are its data files, including database file and script.pck file. I really appreciate it if you can take a look at it when you're free.

Thank you so much in advance!

ToumaKun commented 3 years ago

I cannot write to you until you accept as friends(

thesupersonic16 commented 3 years ago

Then send me a message on Twitter, my DMs are open there.

Cosetto commented 5 months ago

@thesupersonic16 Hey there, I wonder if you can add support for this fnt font? Font.zip

thesupersonic16 commented 5 months ago

@Cosetto What game is those files from?

thesupersonic16 commented 5 months ago

Just pushed some code to handle the file. I have not tested the code. You can download it here.

To load the file, just open the .fnt file, not the .pck file.

Cosetto commented 5 months ago

@Cosetto What game is those files from?

It's this one So there are some questions I would like to ask. Firstly, when I opened the font and made no changes before saving, it resulted in a file which is only 27kb. The same problem when modifying the font then saving. en25px0.zip Is there something wrong? Secondly, when I added new characters, how do I draw new bitmap for them? image

thesupersonic16 commented 5 months ago

@Cosetto What game is those files from?

It's this one So there are some questions I would like to ask. Firstly, when I opened the font and made no changes before saving, it resulted in a file which is only 27kb. The same problem when modifying the font then saving. en25px0.zip Is there something wrong? Secondly, when I added new characters, how do I draw new bitmap for them? image

Might be easier to reuse one of the unused characters. As for drawing, thats a good point, I never made a way to extract and load custom textures.

Can you check if the game accepts the edited font file?

thesupersonic16 commented 5 months ago

Just realised I never wrote the function to save the file. so ignore the last part I said.

Cosetto commented 5 months ago

Hm, this one can draw new bitmap I think, but it doesn't support the game.

thesupersonic16 commented 5 months ago

Added some importing, exporting and saving code. Let me know how it goes.

Download

thesupersonic16 commented 5 months ago

You will need to export the texture and make the edits using any image editing tool, then reimport the png.

I believe by default DALLib saves textures in PNG format which not all games support.

Cosetto commented 5 months ago

My game crashed, and the problem was when importing the texture back. Looks like the game doesn't support png?

thesupersonic16 commented 5 months ago

I was wrong about it using PNG, however it did save without the magic. I have enabled it for the files below, can you check if they load in game?

Font.zip

Cosetto commented 5 months ago

image Yup, it works, but it looks kinda weird

thesupersonic16 commented 5 months ago

Thats expected since I used a gradient in the texture. You can download the updated build here.

Cosetto commented 5 months ago

image It works like a charm. Thank you very much!

Cosetto commented 3 months ago

Thats expected since I used a gradient in the texture. You can download the updated build here.

Hey there, sorry for bothering again. If it's possible, you could add an option to generate characters_list.txt of the font?