Author Topic: About LGP files  (Read 3446 times)

Bert

  • Guest
About LGP files
« 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

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.

sl1982

  • Administrator
  • *
  • Posts: 3764
  • GUI Master :P
    • View Profile
Re: About LGP files
« Reply #1 on: 2010-06-10 00:47:09 »
You should post this is Tech related.

DarkFang

  • Pirate
  • *
  • Posts: 730
  • Ponies! <3
    • View Profile
Re: About LGP files
« Reply #2 on: 2010-06-10 00:57:05 »
Why are you using Highwind?

sl1982

  • Administrator
  • *
  • Posts: 3764
  • GUI Master :P
    • View Profile
Re: About LGP files
« Reply #3 on: 2010-06-10 01:09:28 »
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.

Bert

  • Guest
Re: About LGP files
« Reply #4 on: 2010-06-10 09:29:53 »
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 ;)

Aali

  • *
  • Posts: 1196
    • View Profile
Re: About LGP files
« Reply #5 on: 2010-06-10 12:46:50 »
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.

Bert

  • Guest
Re: About LGP files
« Reply #6 on: 2010-06-10 13:01:07 »
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

Bert

  • Guest
Re: About LGP files
« Reply #7 on: 2010-06-14 20:33:18 »
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