Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, NeoDumont), 761 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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 | 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