| We hope you enjoy your visit. You're currently viewing the Ultimate 3D Community as a guest. This means that you can only read posts, but can not create posts or topics by yourself. To be able to post you need to register. Then you can participate in the community active and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you are already a member please log in to your account to access all of our features: |
| problem with .dll | |
|---|---|
| Tweet Topic Started: Mar 21 2009, 04:11 PM (469 Views) | |
| koso | Mar 21 2009, 04:11 PM Post #1 |
|
Newbie
![]() ![]() ![]()
|
i have small problem with u3d v.2.1.1 . when i run game it says this "ERROR in action number 1 of Create Event for object hora01_manager: Error defining an external function. ERROR in action number 1 of Create Event for object hora01_manager: Error defining an external function. ERROR in action number 1 of Create Event for object hora01_manager: Error defining an external function. ERROR in action number 1 of Create Event for object hora01_manager: In script GetTerrainHeightAtPos: Error in code at line 4: return external_call(global.u3d_get_terrain_height_at_position,argument0.u3d_index,argument1,argument2); at position 75: Unknown variable u3d_index ERROR in action number 1 of Step Event for object camera: In script Step: Error in code at line 65: if(textureprevious!=texture at position 9: Unknown variable textureprevious ERROR in action number 1 of Step Event for object camera: In script Step: Error in code at line 65: if(textureprevious!=texture at position 9: Unknown variable textureprevious with2.0 version is no problem.i think it'sproblem with u3d.dll but when i re-download SDK it was same. pls help |
![]() |
|
| MysteriXYZ | Mar 21 2009, 04:26 PM Post #2 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
A number of scripts have been changed/added/removed since version 2.0, so make sure to update those as well (see "Updating Ultimate 3D projects" in the help file for more info). |
| U3D is like candy; after extensive consumption, it's Best to brush. | |
![]() |
|
| koso | Mar 21 2009, 06:19 PM Post #3 |
|
Newbie
![]() ![]() ![]()
|
i download SDK v2.1.1 so it should be okay.but it still show the same errors
Edited by koso, Mar 21 2009, 06:20 PM.
|
![]() |
|
| MysteriXYZ | Mar 21 2009, 07:15 PM Post #4 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You're probably calling a script that no longer exists or is changed in version 2.1. And you're getting the "Unknown variable" errors because since version 2.1 beta, all variables must have a value before you can use them (they are no longer treated as value zero when uninitialized). Make sure you call GetTerrainHeightAtPos(...) AFTER the terrain is created. But I have no idea what the Step() script is doing in the Step Event of the camera object, because you should have MoveCamera() there. |
| U3D is like candy; after extensive consumption, it's Best to brush. | |
![]() |
|
| koso | Mar 21 2009, 07:20 PM Post #5 |
|
Newbie
![]() ![]() ![]()
|
i dont have any character for this time, only camera.Step() is there because i have collision checking for camera and after that script must be Step() .How i can change value of that variables, for instance u3d_index, and to what?
Edited by koso, Mar 21 2009, 07:25 PM.
|
![]() |
|
| MysteriXYZ | Mar 21 2009, 07:49 PM Post #6 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Step() can be called by primitives, models and lights only. To move or rotate the camera, you have to call MoveCamera(). When you create a U3D object, the u3d_index and some other "hidden" U3D-specific variables are set automatically, so you should never have to worry about them. Just make sure those objects have been created (by calling their creation script) before doing something with them, and there should be no problems. |
| U3D is like candy; after extensive consumption, it's Best to brush. | |
![]() |
|
| koso | Mar 21 2009, 08:14 PM Post #7 |
|
Newbie
![]() ![]() ![]()
|
but it shows error at position 75: Unknown variable u3d_index what i should do? |
![]() |
|
| MysteriXYZ | Mar 21 2009, 08:39 PM Post #8 |
|
Master Matrix Masher
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
If you added the terrain to your game with Game Maker's Room Editor, delete it from the room. Then, in the Create Event of the hora01_manager object, use instance_create(...) to create the terrain BEFORE the call to GetTerrainHeightAtPos(...). Adding objects to your game with code will always give you more control than when you add them with the Room Editor. |
| U3D is like candy; after extensive consumption, it's Best to brush. | |
![]() |
|
| koso | Mar 21 2009, 08:41 PM Post #9 |
|
Newbie
![]() ![]() ![]()
|
thanks for help i did it!!!
|
![]() |
|
| « Previous Topic · Questions about Ultimate 3D · Next Topic » |





![]](http://z1.ifrm.com/static/1/pip_r.png)



4:40 PM Jul 11