Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 02/21/26 19:15
Camera always moves upwards?
by clonman. 02/21/26 09:29
Zorro version 3.0 prerelease!
by TipmyPip. 02/20/26 13:22
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 02/19/26 13:22
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 6,962 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
alx, ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon
19199 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
game_save problem #315527
03/16/10 12:13
03/16/10 12:13
Joined: Jul 2007
Posts: 620
Turkey, Izmir
Emre Offline OP
User
Emre  Offline OP
User

Joined: Jul 2007
Posts: 620
Turkey, Izmir
Hello jcl,
There is a problem with game_save.
i want to save everything except the info variables, but info variables always saved.
Can you check this code please?
Code:
int testvar_i=10;
void main ()
{
	game_save("save",0,SV_ALL-SV_INFO);//or game_save("save",0,SV_VARS);
	testvar_i = 300;printf("CHANGED!\n\ntestvar_i   = %d", testvar_i);
	if(game_load("save",0) <= 0) { printf("Load Error!"); } 
	if(testvar_i==10){printf("FAILURE!\n\ntestvar_i still  = %d", testvar_i);}
	sys_exit(0);
}



Re: game_save problem [Re: Emre] #316199
03/22/10 10:35
03/22/10 10:35
Joined: Jul 2000
Posts: 28,074
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,074
Frankfurt
Thanks - this looks indeed like a bug. I'll check it with your code.


Moderated by  jcl, Nems, Spirit, Tobias 

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