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
0 registered members (), 18,580 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
need help: error at startup #62554
01/21/06 14:25
01/21/06 14:25
Joined: Jul 2004
Posts: 38
Germany, NRW
B
Black_Sheep Offline OP
Newbie
Black_Sheep  Offline OP
Newbie
B

Joined: Jul 2004
Posts: 38
Germany, NRW
hi,

iam going to programm a dice script similar to "throwing something" in black an white, but ive a problem at the beginning.

the dice modle is placed in WED and i attach this action to it:

action dice
{
phent_settype(my, ph_rigid, ph_box); // Registiert den Würfel für die PhysicEngine und deklariert ihn als Box
phent_setmass(my, 0.003, ph_box); // Ich bin etwa 3 Gramm schwer
phent_setfriction(my, 50); // Reibungsfaktor
phent_setdamping(my,0, 50); // Dämpfungsfaktor, z.B. Luftreibung
temp.x = 0;
temp.y = 0;
temp.z = -380; // Gravitationskonstante, -380 = 9.81 m/s2
ph_SetGravity(temp); // Setze Schwerkraft
dice1_pointer = me; // Zeiger für spätere Scripts
}

the values are maybe mistaken but i cant testing. At engine start i got this error for every line which start witch "phent":
Error(0): Bad or missing parameter unknown function

it cant imagine what that error is going to tell, so iam here.
iam working witch a6.31 com

thx for help


A7 Commercial.
Re: need help: error at startup [Re: Black_Sheep] #62555
01/21/06 14:39
01/21/06 14:39
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
I don't know if it HAS to be this way, but I set my gravity first, and I set it outside of the function for the object, so maybe create a function like PhysicsINI and put those things like PH_SetGravity, in there. Call that function from the start of main.

Also think about giving your actions / functions more useful names, and to ensure you don't conflict with other functions, although im sure there isn't a 'dice' function...

Here's the code

Code:

// Set Physics
phent_settype(my, PH_RIGID, PH_BOX);
phent_enable(my, 1 ); // - You dont seem to have this in your script above
phent_setmass(my, 5, PH_BOX;
phent_setfriction(my,50);
phent_setdamping(my,0,0);
phent_setelasticity(my, 20,0);
phent_setmaxspeed( my, 10000, 10000);



Last edited by indiGLOW; 01/21/06 14:40.

The Art of Conversation is dead : Discuss
Re: need help: error at startup [Re: indiGLOW] #62556
01/21/06 19:32
01/21/06 19:32
Joined: Jul 2004
Posts: 38
Germany, NRW
B
Black_Sheep Offline OP
Newbie
Black_Sheep  Offline OP
Newbie
B

Joined: Jul 2004
Posts: 38
Germany, NRW
hmm... iam calling the gravity now in the main() function with no difference. i get still this error.

btw do i have to include a physic template file?


A7 Commercial.
Re: need help: error at startup [Re: Black_Sheep] #62557
01/21/06 20:03
01/21/06 20:03
Joined: Jul 2004
Posts: 38
Germany, NRW
B
Black_Sheep Offline OP
Newbie
Black_Sheep  Offline OP
Newbie
B

Joined: Jul 2004
Posts: 38
Germany, NRW
ive found the error... iam actuelly not using the comerzial eddition... ive forgotten to upgrade... sry for that =)


A7 Commercial.
Re: need help: error at startup [Re: Black_Sheep] #62558
01/22/06 09:15
01/22/06 09:15
Joined: Oct 2003
Posts: 1,550
United Kingdom
indiGLOW Offline
Serious User
indiGLOW  Offline
Serious User

Joined: Oct 2003
Posts: 1,550
United Kingdom
That will be it then


The Art of Conversation is dead : Discuss

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