Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (Ayumi), 1,170 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[SOLVED]game_save() not creating a save file #362109
03/06/11 18:51
03/06/11 18:51
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
I have the following code:

function test_save()
{ STRING* save_str = " ";
STRING* num_str = " ";
str_cpy(save_str,"save ");
str_for_num(num_str,sys_month);
str_cat(save_str,num_str);
str_cat(save_str,"/");
str_for_num(num_str,sys_day);
str_cat(save_str,num_str);
str_cat(save_str,"/");
str_for_num(num_str,sys_year);
str_cat(save_str,num_str);
str_cat(save_str," ");
str_for_num(num_str,sys_hours);
str_cat(save_str,num_str);
str_cat(save_str,":");
str_for_num(num_str,sys_minutes);
str_cat(save_str,num_str);
str_cat(save_str,":");
str_for_num(num_str,sys_seconds);
str_cat(save_str,num_str);
str_cat(save_str," ");
game_save(save-str,1,SV_VARS);
}

When I call test_save(), there is no .sav file created by game_save(). Am i doing somehthing wrong? Why would it not create a save file?

Last edited by Caermundh; 03/06/11 21:23.
Re: game_save() not creating a save file [Re: Caermundh] #362110
03/06/11 18:53
03/06/11 18:53
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline
User
TheShooter  Offline
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
Which version do you use?


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: game_save() not creating a save file [Re: TheShooter] #362111
03/06/11 18:58
03/06/11 18:58
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
I'm using Pro 7.82 atm. I havent upgraded to 8 becuase when I did before, i'd go to run the game, the compile window would come up and then immidiatly crash out. I've always had problems when i upgrade mid-project - so im sticking with 7.82 until i have this current game finished.

please dont tell me that not creating the save game file is a known bug of 7.82........

Re: game_save() not creating a save file [Re: Caermundh] #362116
03/06/11 19:16
03/06/11 19:16
Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
TheShooter Offline
User
TheShooter  Offline
User

Joined: Jul 2010
Posts: 974
United Arab Emirates, Dubai
mhmhmh, thats crazy. It should work. It worked by me. Why dont by you?? lol

mfG

Sry for my english xD


Staub ist das neue Prime!!

Programming is like sex:
One mistake and you have to support it for the rest of your life.

Aktuelles Projekt: http://thisiswargame.bplaced.net/index.html

A8 Commercial *freu*
Re: game_save() not creating a save file [Re: TheShooter] #362121
03/06/11 19:40
03/06/11 19:40
Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
txesmi Offline
Serious User
txesmi  Offline
Serious User

Joined: Jun 2007
Posts: 1,337
Hiporope and its pain
/ & : are not allowed in windows file names.

it can be the problem

Salud!

Re: game_save() not creating a save file [Re: txesmi] #362145
03/06/11 21:22
03/06/11 21:22
Joined: Aug 2005
Posts: 238
Caermundh Offline OP
Member
Caermundh  Offline OP
Member

Joined: Aug 2005
Posts: 238
Good Catch txesmi. That was exactly the problem.

now i feel just foolish....

thank you for the help.


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