Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
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
0 registered members (), 1,209 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
PHYSICS Save and game_Load doesn't Work #74486
05/17/06 03:38
05/17/06 03:38
Joined: Oct 2003
Posts: 130
Wollongong Australia
J
Jethro Offline OP
Member
Jethro  Offline OP
Member
J

Joined: Oct 2003
Posts: 130
Wollongong Australia
Like the subject states when saving a physics game with game_save, specifying SV_All+SV_PHYSICS. When loading this game with game_Load I get an error message stating that the object executing the physics instruction is not a physics object.
Note Marcos car demo does the same if you enable the load and save instructions at the end of main.wdl.

A6.314 Pro.

Note the obsolete save and load functions actually work from within the same level, but do strange things when executed from another level.

Jethro.

Re: PHYSICS Save and game_Load doesn't Work [Re: Jethro] #74487
05/17/06 04:53
05/17/06 04:53
Joined: Oct 2003
Posts: 130
Wollongong Australia
J
Jethro Offline OP
Member
Jethro  Offline OP
Member
J

Joined: Oct 2003
Posts: 130
Wollongong Australia
OK. I'm answering my own question, but could Marco please comment if this is a safe way to do this.

It works if I don't use SV_PHYSICS, and one tick after loading the save game, I re-set the gravity. with Ph_Setgravity.

Why have the SV_PHYSICS, when it actually brakes the command.
Or am I missing something?

Jethro.

Re: PHYSICS Save and game_Load doesn't Work [Re: Jethro] #74488
05/17/06 21:32
05/17/06 21:32
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
SV_ALL already contains SV_PHYSICS. If you add (+) SV_PHYSICS to the bitmask it won't work. To be explicit you could do SV_ALL|SV_PHYSICS.
In prior versions SV_ALL did not contain SV_PHYSICS.

Re: PHYSICS Save and game_Load doesn't Work [Re: Marco_Grubert] #74489
05/17/06 23:34
05/17/06 23:34
Joined: Oct 2003
Posts: 130
Wollongong Australia
J
Jethro Offline OP
Member
Jethro  Offline OP
Member
J

Joined: Oct 2003
Posts: 130
Wollongong Australia
Thanks Marco, one more question.

Why do you have to re-set the gravity with ph_Setgravity, after a load game.

Jethro.

Re: PHYSICS Save and game_Load doesn't Work [Re: Jethro] #74490
05/18/06 00:36
05/18/06 00:36
Joined: Sep 2003
Posts: 3,236
San Diego, CA
M
Marco_Grubert Offline
Expert
Marco_Grubert  Offline
Expert
M

Joined: Sep 2003
Posts: 3,236
San Diego, CA
You shouldn't have to. I am running 6.40.5 here and there's no need to call ph_setgravity.


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