Gamestudio Links
Zorro Links
Newest Posts
Camera always moves upwards?
by clonman. 11/13/25 14:04
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
Training with the R bridge does not work
by frutza. 11/05/25 00:46
Zorro 2.70
by opm. 10/24/25 03:44
Alpaca Plugin v1.4.0
by TipmyPip. 10/20/25 18:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Grant, AndrewAMD, ozgur, Quad, TipmyPip), 29,980 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sheliepaley, Blueguy, blobplayintennis, someone2, NotEBspark
19177 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