Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: can't fingure out 3d char scripting...  (Read 3752 times)

0 Members and 1 Guest are viewing this topic.

thedonstudent

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
can't fingure out 3d char scripting...
« on: March 10, 2006, 12:33:46 PM »

HI there,
Amazing engine, I must say.  Amazing.

Anywho,
I've been using 2d stuff up till now, trying to get 3d scenes to work,
I can't get the 3d actor to work.  Step by step this is what I have done, whats wrong?
I make a new project.
I load my 3d gemoery file and background file in defalut scene.
when I test with the 2dmolly works fine.
I copyover the trinity folder into new project actor folder
Now, if I edit game.script to

actor = Game.LoadActor3D("actors\trinity\trinity.act3d");
Game.MainObject = actor;

the enigne crashs, the 3d demo runs fine, but I can't get my own scene to run.

---------------------------------------------------------
---------- WME crash report: 10-03-2006, 03:20 ----------
---------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module wme.exe at 001B:00414444
EAX=00000000  EBX=FFFFFFFF  ECX=00BF7CD8  EDX=0057D818  ESI=00BF4630
EDI=00BF3E70  EBP=00000000  ESP=0012F938  EIP=00414444  FLG=00010246
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000
Stack trace:
(null)

I've also tried this

actor = Game.LoadActor3D("actors\trinity\trinity.ms3d");
Game.MainObject = actor;

Which produces
03:19: Engine initialized in 62 ms
03:19:
03:19: 'ACTOR3D' keyword expected.
03:19: Error parsing ACTOR3D file 'actors\trinity\trinity.ms3d'
03:19: Runtime error. Script 'scenes\Room\scr\scene_init.script', line 5
03:19:   Call to undefined method 'SkipTo'. Ignored.
03:19: Runtime error. Script 'scripts\scene.script', line 7
03:19:   Call to undefined method 'GoTo'. Ignored.
03:19:
03:19: Shutting down...
03:19: Shutting down scripting engine
03:19: ********** DEBUG LOG CLOSED ********************************************

the game doesn't crash in this case, but the actor doesn't load.

Oh, and I'm running 1.5.002  not the beta

Please bare with me with the neophyte questions, plus I only have a tenuous grasp of java scripting.
Am I doing something wrong? (I'm sure I am)  Or does it have something to do with my blender made imported scene files.  A few guesses are the files are too big, or the actor is trying to load on top of a blk area, or the scale is way to small, but none of these things seem likely, I'm sure I'm just not scripting right.
« Last Edit: March 10, 2006, 12:46:27 PM by thedonstudent »
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: can't fingure out 3d char scripting...
« Reply #1 on: March 10, 2006, 12:43:03 PM »

as the log file correctly says, you have to change the beginning of your  act3d file definition so it will read ACTOR3D

:)
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

thedonstudent

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
Re: can't fingure out 3d char scripting...
« Reply #2 on: March 10, 2006, 12:54:45 PM »

as the log file correctly says, you have to change the beginning of your  act3d file definition so it will read ACTOR3D

:)

[edit]
I'm sorry, I'm not sure I understand you.
you mean the def in game.script file? chane it to
ACTOR3D = Game.Loadactor3D("actors\trinity\trinity.act3d");
Game.MainObject = ACTOR3D;
?
that causes a a blank sceen, and this log
04:09: Compiling script 'scripts\game.script'...
04:09:   Error@line 22: Variable 'ACTOR3D' is referenced but not defined
04:09: Compiling script 'scripts\game.script'...
04:09:   Error@line 23: Variable 'ACTOR3D' is referenced but not defined
04:09: Engine initialized in 103 ms
04:09:
plus when I use act3d it crashes....I only get the log file when I tried .ms3d
« Last Edit: March 10, 2006, 01:15:03 PM by thedonstudent »
Logged

Jerrot

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 690
    • View Profile
Re: can't fingure out 3d char scripting...
« Reply #3 on: March 10, 2006, 01:17:30 PM »

Well, no, don't open the ms3d file with LoadActor3D. Of course the ms3d file doesn't have the ACTOR3D keyword, that's why it complains and it wouldn't work anyway, so

Code: [Select]
actor = Game.LoadActor3D("actors\trinity\trinity.act3d");
Game.MainObject = actor;

is fine as you tried it first and I doubt the crash really is an actor issue. More probably your geometry file is crashing the engine, did you make sure you have at least one camera included? Do you have a walking plane and was it properly named in Blender before exporting it? (e.g. "walk_floor")
Logged
Mooh!

thedonstudent

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
    • View Profile
Re: can't fingure out 3d char scripting...
« Reply #4 on: March 10, 2006, 02:11:12 PM »

More probably your geometry file is crashing the engine, did you make sure you have at least one camera included? Do you have a walking plane and was it properly named in Blender before exporting it? (e.g. "walk_floor")


I think you are right, I think the enigne and camera arn't getting along.   I will work on it after I wake up.
Logged
 

Page created in 0.044 seconds with 20 queries.