Gamestudio Links
Zorro Links
Newest Posts
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
2 registered members (Akow, tomaslolo), 1,536 guests, and 12 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19058 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Menu system? #395382
02/23/12 00:41
02/23/12 00:41
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
Hey guys.

I'm using rpg's menu system, everything works fine with the save but when try to load saved game: character can only walk but can't navigate 360 with the mouse, weapons and bullets don't get saved and menu_pan stays on while game_started = 1.

So far the only thing that works is the saved position in the game.

Can anyone help with this?


Honesty will get you far, were dishonesty will get you only so far in life.

Re: Menu system? [Re: Siwler] #395386
02/23/12 05:45
02/23/12 05:45
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Write yourself a save function and save all variables you need.
For example in a txt file:
[gamesave001]
live=100
weapons=1+4

Last edited by Ch40zzC0d3r; 02/23/12 05:45.
Re: Menu system? [Re: Ch40zzC0d3r] #395582
02/24/12 22:32
02/24/12 22:32
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
I get error "Malfunction W1508 can't load main1.SAV"

how can I fix this?


Honesty will get you far, were dishonesty will get you only so far in life.

Re: Menu system? [Re: Siwler] #395591
02/25/12 08:36
02/25/12 08:36
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
You have even the file main1.SAV in your work-folder?

Re: Menu system? [Re: Ch40zzC0d3r] #395634
02/25/12 19:09
02/25/12 19:09
Joined: Nov 2009
Posts: 70
Siwler Offline OP
Junior Member
Siwler  Offline OP
Junior Member

Joined: Nov 2009
Posts: 70
Yes its in the same folder as the rest of the files that will be used.

But this fallowing code saves and loads game while game started:

Test code:

Code:
while(level_load)
{
if(key_9 == 1){game_save("main", 1, SV_ALL);}
if(key_8 == 1){game_load("main",1);}
wait(1);
}



As you can see, I can save game by pressing 9 key and loading it by pressing 8 key, it works during game run.
I can even save game on contact with entity and by clicking on save_pan in main menu but I have to load the game by pressing 8 key after game started(new game starts) to successfully game_load.

If I try to game_load by click on a load_game_pan button or any other way I get lots of errors when trying to load game before game starts. Pretty much a new game has to start first every time and then only then if try to game_load then it's successful.

How can I fix this?


Honesty will get you far, were dishonesty will get you only so far in life.


Moderated by  HeelX, rvL_eXile 

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