Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,672 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
(physX) saving game... #395466
02/23/12 18:50
02/23/12 18:50
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Hallo, I finally added the possibility to level up and learn abilities in my game Tarrox. So I decided to add an quick save function.
The problem is, all my characters (AI, player, monster) are physX based...
This means, if I load a game, the physics won`t work...
Here is how my quick save function looks like know (red is the save function);

Quote:
function test_main()
{
video_mode = 8;
video_depth = 32;
video_screen = 1;

fps_min = 30;
fps_max = 60;

physX_open();
pX_setgravity(vector(0,0,-20));
pX_setccd(1);

level_load(test_level);
leveln();

while(level_load)
{
if(key_1 == 1){game_save("test", 0, SV_ALL);}
if(key_2 == 1){game_load("test",0);}
wait(1);
}

wait(1);
}


Any ideas how I can activate physX after loading a saved game?

PS: I already tryed "physX_open();" in the load code...

Last edited by Random; 02/23/12 18:50.


Re: (physX) saving game... [Re: Random] #395535
02/24/12 14:21
02/24/12 14:21
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
I am sure that everybody will have the same problem if the use physX. (or had)
So how did you guys soulve it?



Re: (physX) saving game... [Re: Random] #395544
02/24/12 15:46
02/24/12 15:46
Joined: Mar 2006
Posts: 1,993
Karlsruhe
PadMalcom Offline
Serious User
PadMalcom  Offline
Serious User

Joined: Mar 2006
Posts: 1,993
Karlsruhe
I've not had that problem so far, but I'm really interested in a solution, too!

Re: (physX) saving game... [Re: PadMalcom] #395574
02/24/12 19:01
02/24/12 19:01
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
See, that is really a pain...




Moderated by  HeelX, Spirit 

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