Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,008 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
paths and packers #144459
07/30/07 16:47
07/30/07 16:47
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Hello dear Fellows and Community,
Im trying to implement a screenshot-function, I've defined a save directory with:

SAVEDIR "\\screenshots";

and using:

file_for_screen("shot.png",123);

to actually make the screenshot.

However this works fine. Even the folder "screenshots" is created when it doesnt already exist.
My problem is, when I use a packer to pack my data and make a single exe file out of my project (3dgsPurePacker, nacasi etc.), the things are going wrong.
The taken screenshots are not saved at the right place anymore.

Did I miss something? or why do my screenshots end up in the folder c:\windows\temp?

I've tried to use SAVEDIR "%EXE_DIR%\\screenshots"; but this didnt work either.
As soon as I use a packer my screenshots/saved-data end up in the windows\temp folder

Can anyone tell me what I have missed please?

Zwecklos

Re: paths and packers [Re: zwecklos] #144460
07/30/07 16:57
07/30/07 16:57
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Have you tried SAVEDIR "screenshots"; ?


Always learn from history, to be sure you make the same mistakes again...
Re: paths and packers [Re: Uhrwerk] #144461
07/30/07 17:25
07/30/07 17:25
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Hi Zeitwerk,
Thanks for your help.
Unfortunately it didnt work out, still the same problem.
I also tried to work with

str_cmp(save_dir, "\\screenshots");

with and without the unc signs, with no success.

Are you using a packer and are you able to save screenshots or any kind of game-data in the desired folder? when yes, how?

Re: paths and packers [Re: zwecklos] #144462
07/30/07 18:36
07/30/07 18:36
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Unfortunately I do't have the pro version, so I can't give you detailed information. You could try the following:

str_cpy(save_dir,work_dir);
str_cat(save_dir,"\\screenshots");
diag(save_dir); // just to be sure the path is set correctly.


Always learn from history, to be sure you make the same mistakes again...
Re: paths and packers [Re: zwecklos] #144463
07/30/07 21:20
07/30/07 21:20
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
nacasi 3dgspurepacker gstpacker use the same technique for packing and unpacking (Temporary folders).
GSTPacker has an option to save the files created during gameplay.
Quote:

copy files from app folder
all files in the app folder are copied and after game exit all all files stored during gameplay are restored (i.e. Screenshots, *.sav files). The game must store these files in the same folder as the game.exe (NO -dir command in command line !!)



For better protection use molebox.


Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
Re: paths and packers [Re: nfs42] #144464
07/31/07 10:50
07/31/07 10:50
Joined: Sep 2005
Posts: 274
Switzerland - Zurich
zwecklos Offline OP
Member
zwecklos  Offline OP
Member

Joined: Sep 2005
Posts: 274
Switzerland - Zurich
Thanks guys this will help me out
I will try out the gspacker as soon as possible.

thx again and cheers

zwecklos

Last edited by zwecklos; 07/31/07 10:55.
Re: paths and packers [Re: nfs42] #144465
12/26/07 22:14
12/26/07 22:14
Joined: Aug 2005
Posts: 186
Beneath the Surface
alpha12 Offline
Member
alpha12  Offline
Member

Joined: Aug 2005
Posts: 186
Beneath the Surface
Quote:

nacasi 3dgspurepacker gstpacker use the same technique for packing and unpacking (Temporary folders).
GSTPacker has an option to save the files created during gameplay.
Quote:

copy files from app folder
all files in the app folder are copied and after game exit all all files stored during gameplay are restored (i.e. Screenshots, *.sav files). The game must store these files in the same folder as the game.exe (NO -dir command in command line !!)



For better protection use molebox.




have u tried yourself with molebox? i have tried all possible option always got "exe damaged" when running the packed files... if you managed to packed using molebox what is your option?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1