Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, The_Judge, Grant), 898 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[Newton] Level Change !@#$%&*!!! #54759
09/12/05 21:07
09/12/05 21:07
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Newton! !!@$*@^*!#&&@%% ok, cursing done. This function "NewtonRemoveAllBodies();", do I use this before I change levels? I'm trying to get the level to restart when you are upside down on the ground for too long (Where do you find a turtle with no legs? Right where you found him! ). The script causes a crash when I try to restart the level with the newtonaddtyre and setmass or whatever. I know someone knows about this. Apreesh..


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: [Newton] Level Change !@#$%&*!!! [Re: draculaFactory] #54760
09/12/05 21:19
09/12/05 21:19
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline
Serious User
ulf  Offline
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
this works for me, hope it does for you too

here you go:

Code:

freeze_mode = 1;
warn_level = 2;
NewtonRemoveAllBodies();// remove all newton entities

wait(3);
level_load(s_level); // string for wmb
wait(1);
dll_handle = newtonHandle;
NewtonAddMap (s_level, 0); // load map for newton engine
wait(3);

freeze_mode = 0;



Re: [Newton] Level Change !@#$%&*!!! [Re: ulf] #54761
09/12/05 22:47
09/12/05 22:47
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
Ack! No, it doesn't work. Well I don't get the error, but it freezes completely. That probably is good so I'll see if I can get it to work.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.
Re: [Newton] Level Change !@#$%&*!!! [Re: draculaFactory] #54762
09/13/05 07:19
09/13/05 07:19
Joined: Aug 2005
Posts: 1,012
germany, dresden
ulf Offline
Serious User
ulf  Offline
Serious User

Joined: Aug 2005
Posts: 1,012
germany, dresden
be shure to build the .cls for newton bevore you load a new newton lvl. maybe that causes the freeze.

Re: [Newton] Level Change !@#$%&*!!! [Re: draculaFactory] #54763
09/13/05 07:42
09/13/05 07:42
Joined: Nov 2003
Posts: 433
The Netherlands
T
Toon Offline
Senior Member
Toon  Offline
Senior Member
T

Joined: Nov 2003
Posts: 433
The Netherlands
Somntimes it works when you build, save, run, exit, run it again. If not, maybe the published version does work...this are just a few warkarounds maybe they are usefull 2u (if they work) I had these problems 2 but with this workaround it works now.

Re: [Newton] Level Change !@#$%&*!!! [Re: Toon] #54764
09/13/05 16:11
09/13/05 16:11
Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
draculaFactory Offline OP
User
draculaFactory  Offline OP
User

Joined: Feb 2005
Posts: 647
Williamsburg, VA USA
utz yea i know about the cls. I just needed a push in the right direction as to what I needed to do to switch.


Making dreams come true... And being erroneously accused of software piracy by Conitec in the process.

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