Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / PK3 Help

Author
Message
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 20:41
Ive read somwhere that you can use pk3 archives with dark gdk, could somone tell me how,

Thanks

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:00
You would have to find details on how to load a PK3 file. Either (a it's officially supported or (b you have to construct your own implementation of loading it. I would hope for a.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 18th Jun 2008 22:03
PK3's are used to hold BSPs. I think you're using a .X map, so don't worry about it.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:04
Just checked. No official support for PK3. Sorry, but you will have to create your own implementation of loading the file. How much C++ do you know? It will take a fair knowledge, I imagine. Definitely a knowledge of the I/O system.
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 18th Jun 2008 22:05 Edited at: 18th Jun 2008 22:06
Mahoney, take a look at the maps for a QE-run game, like Tremulous. It uses BSPs for maps, but you can look in it's maps directory and not find a single BSP, but plenty of PK3s.

They're loaded with dbLoadBSP, CAJUN.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:10
Really? I was told incorrectly, then. I was told that PK3's were zip files that hold textures.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:10
but pk3 are zips just renamed and id like to have a way to compress all the files into an archive and be able to read directly from the archive

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 18th Jun 2008 22:11
Why do that? It seems like a way to make more lag.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:12
Unless you are making a very large game, compressing everything in a zip for distribution and having it all unzipped for run time is just fine.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:14
how would i go about unzipping it, before the game runs??

Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 18th Jun 2008 22:14
Uh, there's plenty of installer creating programs out there. Try AWInstall.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:15
Is it possible to unzip in c++ because i have a good free install program, but all the files not compressed take up a topn of space

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:16
I meant zip the folder the game is in. The game itself doesn't need to be compress.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:18
well i also dont want users to be able to hack/ mod the game??

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:21
1. There isn't a game that people can't hack/mod. Trust me, they even cracked Mass Effect to run without buying it.

2. Compression doesn't stop modding anyway. That would be encryption.
I LIKE CEREAL
16
Years of Service
User Offline
Joined: 17th Jun 2008
Location:
Posted: 18th Jun 2008 22:23
Love Mass Effect.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:25
Zip files can be password protected so i was just trying to find a way to encrpt my files

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 22:27 Edited at: 18th Jun 2008 22:28
I don't know, but I imagine loading files from a compressed and encrypted zip file would be a little complex. Zuka may know otherwise, though.
CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:31
ill try to write my own method to do so

CAJUN57
16
Years of Service
User Offline
Joined: 29th May 2008
Location:
Posted: 18th Jun 2008 22:33
i know how to use SYSTEM IO in .NET but what about in a dgdk app

Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 18th Jun 2008 23:38
I would use standard C++ I/O instead of DarkGDK functions. I think you'll have to for create/encrypting zips. Here's a good reference:

http://www.cplusplus.com/reference/iostream/
Cellbloc Studios
20
Years of Service
User Offline
Joined: 15th Mar 2004
Location: Atlanta, GA
Posted: 18th Jun 2008 23:44
Cajun57:

I think you are wanting some way to pack the files so people don't easily extract your models/sounds/map/etc files.

Have you looked into this program?
http://www.molebox.com/

There are others, but I want to make sure we are talking the same thing.

Your mod has been erased by a signature
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 19th Jun 2008 00:01 Edited at: 19th Jun 2008 00:02
That looks like a pretty cool app. To bad it cost $100.
Lilith
16
Years of Service
User Offline
Joined: 12th Feb 2008
Location: Dallas, TX
Posted: 19th Jun 2008 00:25
Check out www.codeproject.com. You might find some code there for zipping and unzipping. Better yet, you might consider looking at code for encoding/decoding in RAR format, which may be less of a target for casual hackers. In order to download any of the code samples I think you need to join. But membership is free and it hasn't hurt me these last three years or so.

Lilith, Night Butterfly
I'm not a programmer but I play one in the office

Login to post a reply

Server time is: 2024-09-29 23:34:44
Your offset time is: 2024-09-29 23:34:44