Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Saving Games #377065
07/09/11 18:20
07/09/11 18:20
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Hi together!

Can anyone tell me how to change the path for saving games into something like this:

C:\Users\<username>\Saved Games

???

Re: Saving Games [Re: preacherX] #377070
07/09/11 19:35
07/09/11 19:35
Joined: May 2008
Posts: 257
D
djfeeler Offline
Member
djfeeler  Offline
Member
D

Joined: May 2008
Posts: 257
Hello !

Read the manual use save_dir

Code:
str_cpy(save_dir,"C:\Users\<username>\Saved Games");



Re: Saving Games [Re: djfeeler] #377083
07/09/11 23:43
07/09/11 23:43
Joined: Dec 2008
Posts: 1,660
North America
Redeemer Offline
Serious User
Redeemer  Offline
Serious User

Joined: Dec 2008
Posts: 1,660
North America
djfeeler, your code will cause the save directory to become a directory that only exists on the preacherX's PC!

@preacherX: AFAIK, you can't point the A7 engine to the current user's directory, but if a directory starts with "%EXE_DIR%" than the directory will be a sub folder of the game's directory. If you need your files to be stored in the user's directory, I guess you'll have to suggest that feature to JCL.


Eats commas for breakfast.

Play Barony: Cursed Edition!
Re: Saving Games [Re: Redeemer] #377085
07/10/11 00:42
07/10/11 00:42
Joined: Aug 2008
Posts: 482
B
bart_the_13th Offline
Senior Member
bart_the_13th  Offline
Senior Member
B

Joined: Aug 2008
Posts: 482
Maybe what he means with <username> is the user name of the game, not the PC User. Maybe he was creating a game with multiple user
Not sure though grin


Last edited by bart_the_13th; 07/10/11 00:51.
Re: Saving Games [Re: Redeemer] #377113
07/10/11 09:49
07/10/11 09:49
Joined: Sep 2005
Posts: 352
Germany
preacherX Offline OP
Senior Member
preacherX  Offline OP
Senior Member

Joined: Sep 2005
Posts: 352
Germany
Yeah, I want to save games in the save game folder of
windows 7 or vista and not only on my pc.

Iīve heard from GameStudio support that you could do that with an plugin and API functions like SHGetFolderPath(…).

But I donīt know how to make it working...
Any ideas?


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

Gamestudio download | chip programmers | 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