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
1 registered members (AndrewAMD), 1,248 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[Newton] Problem with starting from script #48443
06/27/05 21:16
06/27/05 21:16
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
Hi,
I want to give a model a newton-action by script and so I have to include the newton wdls to my main wdl instead of using the "Add script" function in WED.

But when I start the engine I get an error that says something like newton.dll isn't an confirmed engine dll or something (I deleted the include-code).

How can I fix this problem??


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48444
06/27/05 23:33
06/27/05 23:33
Joined: Jan 2003
Posts: 1,142
California
Daedelus Offline
Senior Developer
Daedelus  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,142
California
Quote:

(I deleted the include-code).




Howcome you dont want to include them manually as seperate .wdls?
include <newton.wdl>;
include <newtonScript2.wdl>;

Can you show us the error msg?


Formula Games - A place to buy and sell Indie games.
Re: [Newton] Problem with starting from script [Re: Daedelus] #48445
06/28/05 07:09
06/28/05 07:09
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
Yes I want because I need the code of these wdls in my script and not in WED.

Ok, I'll recreat my horrible code and post the message


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48446
06/28/05 07:38
06/28/05 07:38
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
Ok, here the error message:

"newton.dll - no valid Acknex dll"

Maybe I can't include the scripts manually but that's the only way I can set pointers to the newton objects, isn't it??

Now the way I included these scripts:

I copied these lines to my globals under the string of my level

Code:

BMAP splashscreen = <newtonsplash.tga>;

ifdef USE_NEWTON_GAME_DYNAMICS;
string newtonLevel_cls = <level001.CLS>;
endif;



Then I copied these lines to my main function under the level_load command:

Code:

ifdef USE_NEWTON_GAME_DYNAMICS;
wait(1);
dll_handle = newtonHandle;
NewtonAddMap (str_Level001, splashscreen);
endif;



Also I include the two Newton scripts:

Code:

include <newton.wdl>;
include <NewtonScript2.wdl>;




A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48447
06/28/05 08:24
06/28/05 08:24
Joined: Jan 2003
Posts: 1,142
California
Daedelus Offline
Senior Developer
Daedelus  Offline
Senior Developer

Joined: Jan 2003
Posts: 1,142
California
Strange, because according to the Newton manual, that appears correct.
Is the newton.dll in the correct directory?
Sorry if I could't be more helpful with this. Im still learning Newton too


Formula Games - A place to buy and sell Indie games.
Re: [Newton] Problem with starting from script [Re: Daedelus] #48448
06/28/05 08:41
06/28/05 08:41
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
Yes it is, I made myself a newton directory where I placed everything in:

newton.dll
newtonsplash.tga
newton.wdl
newtonScript2.wdl
click.wav
door_op.wav
hit.wav

Btw, the newton manual says that I have to add the scripts in WED. If I do so everything works fine but I can't access the actions by script.


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48449
06/28/05 09:03
06/28/05 09:03
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
I copied the newton code from the car demo into my main script but still the same error. No valid Acknex dll


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48450
06/28/05 10:42
06/28/05 10:42
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
I HAVE IT!!!

The newton files have to be in the same folder as the main wdl so the error message wasn't very informative

Anyway I'm glad to got it working!


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Re: [Newton] Problem with starting from script [Re: Asse] #48451
06/28/05 11:06
06/28/05 11:06
Joined: Sep 2001
Posts: 375
Hamburg, Germany / Springfield...
Andreas C Offline
Senior Member
Andreas C  Offline
Senior Member

Joined: Sep 2001
Posts: 375
Hamburg, Germany / Springfield...
Quote:

Yes it is, I made myself a newton directory where I placed everything in:

newton.dll
newtonsplash.tga
newton.wdl
newtonScript2.wdl
click.wav
door_op.wav
hit.wav





Make sure that the PATH to that directory is defined in your WDL file. Otherwise the compiler won't know where to look for the files.

Cheers,
Andreas


____________________________________________________
GameCore / Unity / UDK
Lightwave 9.6 / Blender / Fragmotion / ZBrush 3.5
TextureMaker / PSP-X
Re: [Newton] Problem with starting from script [Re: Andreas C] #48452
06/28/05 12:01
06/28/05 12:01
Joined: Feb 2005
Posts: 728
Germany, Berlin
Asse Offline OP
Developer
Asse  Offline OP
Developer

Joined: Feb 2005
Posts: 728
Germany, Berlin
I have defined the path but I have to put these files (the .dll and so on) into the folder of my main wdl.

Now I can create Newton entities by script But up to now they fall through level-blocks.


A6.31.4 Commercial AMD Athlon XP 2400+ Radeon 9800Pro 512MB DDR-Ram Windows XP Professional SP2 3D GameStudio Magazin
Page 1 of 2 1 2

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