Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 662 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Realtime Savedir Directory Change #211146
06/15/08 09:03
06/15/08 09:03
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline OP
Newbie
LaQroix  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
I have made a Profile system like in Need For Speed:Most Wanted using Win32 API. When creating a new profile, a document is bein created with the same name of the profile; which contains options log, and save files of the profile. But since the savedir path cannot be asigned by string, changing save path in realtime is impossible. Because of this i move my save files with Win32 API from game folder to the correct document. Also same method while loading. But .sav files aint that small sized and that makes the things slower. Assigning savedir path by string should do the trick i thnk, but of course if its possible. If its imposibble please add a PRAGMA define for the SAVEDIR also. Adding a new wdl with 2 lines aint that hard but it confuses the user usually because of the same name and same Lite-C symbol. Thats annoyin laugh ... If you can reply my post with ur answer i ll be real glad...
Thanks...

Last edited by LaQroix; 06/15/08 09:07.
Re: Realtime Savedir Directory Change [Re: LaQroix] #211152
06/15/08 09:23
06/15/08 09:23
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
selam prince.
su ana kadar hiç save ile urasmadim ama manualde gördügüm kadariyla save_dir ile str_cmp islemi yapiliyor. dediğim gibi denemedim ama str_cat(save_dir,"\\"); ardindanda str_cat(save_dir,profil_adi); ise yarar büyük ihtimalle.

-->en:

use str_cat to append savedir using profile name.

edit: denedim oluyor. <Turkish chars problem >.< >

Last edited by Quadraxas; 06/15/08 09:25.

3333333333
Re: Realtime Savedir Directory Change [Re: LaQroix] #211154
06/15/08 09:27
06/15/08 09:27
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline OP
Newbie
LaQroix  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
I found another idea. I really dont know if my ideas are possible or not but maybe adding a new paremeter to game_save and game_load should do the trick also. I mean somethn like this :

game_load("Data\\LaQroix",usersave,i);

Or a new function like this:
game_load("Data\\LaQroix\\usersave001.sav");

Re: Realtime Savedir Directory Change [Re: LaQroix] #211155
06/15/08 09:29
06/15/08 09:29
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
str_cat works for changing the directory. You can change it anyway you like.(see my prev post.)

tried it. it works.


3333333333
Re: Realtime Savedir Directory Change [Re: LaQroix] #211156
06/15/08 09:31
06/15/08 09:31
Joined: Jun 2008
Posts: 8
Turkiye
L
LaQroix Offline OP
Newbie
LaQroix  Offline OP
Newbie
L

Joined: Jun 2008
Posts: 8
Turkiye
save_dir olarak degil de savedir olarak denemistim ben :\ .. Bu arada saol Quad isiklandirmadaki gibi kurtandin gene beni wink
--------------------------------------------------------------------------
Eng: i tried it with the char "savedir" not "save_dir" :\ .. Thnx for ur help Quad ...

Last edited by LaQroix; 06/15/08 09:31.

Moderated by  aztec, Spirit 

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