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: Actor wont budge!  (Read 6383 times)

0 Members and 1 Guest are viewing this topic.

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Actor wont budge!
« on: April 09, 2006, 05:27:25 PM »

I am pretty new to the scripting thing, but I have managed to build a 2,5d scene from scratch, loaded the trinity actor, scaled her and made her walk to the desired position before stopping, but she will not walk an inch when I try to click her somewhere or use the arrow keys... ???

Where is the error?  from the log file I get this:

21:20: CBImage::GetImageInfo - file 'actors\new_actor\' is an unknown image type
21:20: Error opening file 'actors\new_actor\'
21:20: CBSurfaceD3D::Create failed for file 'actors\new_actor\' - error loading file
21:21:
21:21: Shutting down...
21:21: Shutting down scripting engine
« Last Edit: April 09, 2006, 06:16:40 PM by xerilon »
Logged

Nihil

  • Supporter
  • Addicted to WME forum
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 528
  • Fear me! I'm evil!
    • View Profile
    • Order of Dagon
Re: Actor wont budge!
« Reply #1 on: April 09, 2006, 08:51:57 PM »

Looks like some wrong path, maybe in the definition-file? Did you perhaps forget to state the name of the texture-file?

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Re: Actor wont budge!
« Reply #2 on: April 09, 2006, 09:22:43 PM »

definition-file as in the .act3d file ? No, have not changed it from the default settings and not the names of the textures either... :-\

Anyway, the actor looks fine when I run the game, but poor Trinity, she will not walk  :'(

game.script has correct path for the actor
scene.script is default
anymore scripts that need attention?
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: Actor wont budge!
« Reply #3 on: April 10, 2006, 08:28:47 AM »

looks like a problem with hidden geometry. It happens if you position your actor out of HG or into
blocked region. Double check that your hidden geometry is ok.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Re: Actor wont budge!
« Reply #4 on: April 10, 2006, 12:15:53 PM »

Thanks for advice, but HG seems perfect..

Have a looksie at the HG from sceneedit
http://home.no.net/xerilon/bad/trouble1.jpg

..and in game mode (yeah I know the proportions are a little out hehe!)
http://home.no.net/xerilon/bad/trouble2.jpg

I have even rechecked the names of the 3d objects in the .3ds file, AND converted every object into polygon objects (a function in Cinema4d)   :-\
« Last Edit: April 10, 2006, 12:18:04 PM by xerilon »
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: Actor wont budge!
« Reply #5 on: April 10, 2006, 12:22:48 PM »

if you put into scene_init.script this:

Scene.ShowGeometry = true;

is it still ok?

Also did you make any changes to game.script?
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Actor wont budge!
« Reply #6 on: April 10, 2006, 01:02:15 PM »

Make sure the "scene.script" is attached to the scene (see the "Properties" tab in SceneEdit and click "Scripts...").
Also make sure the background image doesn't have the "Interactive" property checked, otherwise it would be "eating up" the mouse clicks.
Other than that, the geometry seems to be ok.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Re: Actor wont budge!
« Reply #7 on: April 10, 2006, 02:14:03 PM »

Yes the "scene.script" is attached as with all scenes :)  The background image has "Interactive" unchecked but I tried putting Scene.ShowGeometry = true; into the scene.init.script and got this result:

http://home.no.net/xerilon/bad/trouble3.jpg

In sceneedit under 3d properties I have set game resolution to 1024x710 to get the geometry to align correctly with the background image. Although it shows incorrectly in the game... :-\

Only changes to the game.script is the loadactor3d part which I have changed since first post without different results. It looks like this

// load our main actor
actor = Game.LoadActor3D("actors\trinity\trinity.act3d");
Game.MainObject = actor;

Did I mention that the cursor is "dead"? It moves but do not change on hotspots even though the region entities have their own scripts to get the actor walk there and change the scene... I am sure it is nothing serious but could it be that the actor wont listen to the mouse clicks?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Actor wont budge!
« Reply #8 on: April 10, 2006, 03:55:48 PM »

Could you upload the project somewhere for me? I'll see what may be wrong.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Re: Actor wont budge!
« Reply #9 on: April 10, 2006, 05:03:18 PM »

OK, You`ve got mail!  ;D
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Actor wont budge!
« Reply #10 on: April 10, 2006, 10:22:45 PM »

Ok, I know what the problem is. Your scene(s) have an additional foreground layer, and this layer has the "close-up" property enabled. Close-up layers disable the underlying scene (they are intended for item close-ups). So, simply select the "frame" layer, click the properties button and uncheck "Close-up" check-box. That will make your scenes interactive again.

One more tip: to set the letterbox resolution of the scenes, better use the "Viewport" setting in ProjectMan. It's intended for this very purpose.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

xerilon

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 21
    • View Profile
    • Castle Xerilon
Re: Actor wont budge!
« Reply #11 on: April 10, 2006, 11:14:19 PM »

OK Ill fix that!!  Thank you very much for your help Mnemonic  ;D ::rock
Logged
 

Page created in 0.045 seconds with 20 queries.