Qhimm.com Forums
Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: Bert on 2010-06-09 19:53:20
-
Hi guys,
i'm new to this forum and i found a lot of very interesting discussions here (which brought me to register ;))
I had a question about an old LGP thread that i consulted:
http://forums.qhimm.com/index.php?topic=8641.0 (http://forums.qhimm.com/index.php?topic=8641.0)
I was wondering if and if yes how it is possible to use an LGP file (created with Highwind 1.21 program) in a C++ project.
And by using it i mean taking an image (address) and put it in a SDL_Surface for example.
Regards,
B.
-
You should post this is Tech related.
-
Why are you using Highwind?
-
He is talking about using highwind for LGP creation for something other then for use in FF7. So the 'use lgp/unlgp' may not apply here.
-
Good morning.
Sorry for not having posted my message in the correct section ! Thanks for the modification.
About the question, I am using highwind because i could add my own files (images/text files/etc.) so create a custom LGP archive.
The problem I am facing is that I don't know (in terms of C++ src code) how to get for instance 1 element of this archive and use it in a program.
I am using LGP because of the very performant compression it provides :)
Regards
Edit: I analyzed the lgp /unlgp source code but I doesn't seem that my answer is in there. Correct me if I mistake ;)
-
The LGP format doesn't provide any kind of compression at all.
I have to agree that it's very "performant" though, doing nothing is usually quite fast.
-
That's very interesting what you just said, and thanks for the help!
Knowing now that it's not a compression file but it regroups many of them, how du you access to one of them?
For instance, it doesn't work when you just search in the repertory LGP(file)/"resource name"
Do you need to open the file and then search the resource file using FILE functions (like in lgp.cpp and unlgp.cpp ) ?
Thanks for your help
-
Sorry for up, after 4 days waiting it should be okay i guess..?
Maybe that nobody knows the answer to the question but I'm tryin a last time : ) :
Does anyone know how to use an image included in a LGP file in C++?
Regards