File Packer

Posted By: Sorrowful

File Packer - 06/13/12 21:28

How can I do game.wrs to game.abc?
Posted By: Tonyjack221

Re: File Packer - 06/13/12 23:20

This is impossible
Posted By: Ch40zzC0d3r

Re: File Packer - 06/14/12 05:04

Normally impossible, try finding the pack/unpack virtual calls in olly and rename manually the strings to *.abc from *.wrs. Note that this could damage the engine.
Posted By: 3dgs_snake

Re: File Packer - 06/14/12 05:43

Hi,
Perhaps I don't understand what you want to achieve, but I think it is possible to rename a wrs to somewhat else and use add_resource to load it, because the engine won't load it automatically.

Best regards.
Posted By: Sorrowful

Re: File Packer - 06/14/12 08:05

I tried but I could not...Can you give an example?
Posted By: 3dgs_snake

Re: File Packer - 06/14/12 09:08

Hi,

Copy th following files from 3dgs samples folder in a another one :
- samples.wrs
- knights_on_wheels.c
- skycube+6.dds
- terrain.hmp

Rename samples.wrs to samples.abc tongue

Add the following code in main function after "on_esc=quit":
Code:
add_resource("samples.abc");



You can aloso do (but I think you need to free the buffer when not needed anymore):
Code:
char *buffer = file_load("samples.abc", NULL, NULL);	add_resource(buffer);



Best regards.
Posted By: Sorrowful

Re: File Packer - 06/14/12 16:14


Posted By: MasterQ32

Re: File Packer - 06/14/12 17:28

simply press yes grin
the packer wants to pack this file to the resource file (adding itself to itself grin )
simply ignore this message and press yes
Posted By: Sorrowful

Re: File Packer - 06/14/12 17:40

not,failed...
Posted By: Germanunkol

Re: File Packer - 06/17/12 07:51

You're loading the add_resource after loading the level-> intenional? Shouldn't add_resource be one of the first things to call in the main function?
I might be wrong...
Posted By: Sorrowful

Re: File Packer - 06/18/12 12:10

I don't understand...
© 2024 lite-C Forums