Inori / FuckGalEngine

My tools to crack galgame
822 stars 146 forks source link

Hello,please help me unpack and Repack .pna #56

Closed WOOVYWOOVY closed 2 years ago

WOOVYWOOVY commented 2 years ago

i'm really new and never used .cpp and stuffs before,what i know is i have to use comand prompt right...? I want to use ahdprc to unpack my .pna files and repack it back,but i dont know how to use the .cpp and stuffs.

Could anyone kindheartly teach me the ways how to use it.Thank you !

Inori commented 2 years ago

@sgqy

WOOVYWOOVY commented 2 years ago

Pls help...

sgqy commented 2 years ago

Hello. You should run in cmd.exe. Press Win + R, input cmd.exe and press Enter.

If your staff.pna is stored in F:\mydocs, copy the ahdprc.exe into that folder. In command prompt, input cd /d F:\mydocs. Then, ahdprc.exe pna -u staff.pna. Expected behavior is that the staff folder is created. Do not modify the file staff\_cht.bin. After your edition, run ahdprc.exe pna -r staff. Expected behavior is that there will be a new file called staff.pna (or rewritten).

Note that the tool is so old, may cannot satisfy what you need. Best wishes.

WOOVYWOOVY commented 2 years ago

Hello.I'm sorry but,i don't know where the ahdprc.exe is,when i tried to compile the cpp there's a fatal error on #include no such file or directory.But i've already put the princess.h in the same directory.I don't know what to do with that.

I use g++ compiler.Thank you.

WOOVYWOOVY commented 2 years ago

Help me pls...

sgqy commented 2 years ago

Oh... the library is a private library, which is made by CodeBlocks with GCC(MinGW) 4.7.1 in Windows OS. It was a library made for basic I/O operations, but with too old years, I missed it, unfortunately. Try these commands to build. (for example)

g++ -c -o main.o main.cpp
g++ -c -o package.o package.cpp
# other source files ...
g++ -o main.exe main.o package.o $other_obj_files libprincess.a
WOOVYWOOVY commented 2 years ago

IMG20220413225001

Still can't,uh,if you don't mind could you just give me a link to download the ahdprc.exe because i've wasted many time for this one actually :) Thank you !

Inori commented 2 years ago

Still can't,uh,if you don't mind could you just give me a link to download the ahdprc.exe because i've wasted many time for this one actually :) Thank you !

Don't you think you are wasting the time of the developer?

sgqy commented 2 years ago

If you want to #include something. The command should be like this. g++ -c -o main.o main.cpp -Ilib

WOOVYWOOVY commented 2 years ago

Ah...yeah,sorry if that wasting your time,but i'll keep trying,thanks for your time man,i got new experience from that,i'll try that command.Thanks again.