Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
WOOVYWOOVY opened this issue Apr 8, 2022 · 10 comments
Closed

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

WOOVYWOOVY opened this issue Apr 8, 2022 · 10 comments

Comments

@WOOVYWOOVY
Copy link

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
Copy link
Owner

Inori commented Apr 8, 2022

@sgqy

@WOOVYWOOVY
Copy link
Author

Pls help...

@sgqy
Copy link
Collaborator

sgqy commented Apr 11, 2022

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
Copy link
Author

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 <princess.h> 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
Copy link
Author

Help me pls...

@sgqy
Copy link
Collaborator

sgqy commented Apr 13, 2022

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
Copy link
Author

WOOVYWOOVY commented Apr 13, 2022

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
Copy link
Owner

Inori commented Apr 13, 2022

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?

@Inori Inori closed this as completed Apr 13, 2022
@sgqy
Copy link
Collaborator

sgqy commented Apr 14, 2022

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

@WOOVYWOOVY
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants