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
3 registered members (AndrewAMD, Ayumi, NewbieZorro), 14,141 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
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 | 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