Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - eborr

Pages: 1 [2] 3 4
16
Technical forum / Animate sprites in windows
« on: March 27, 2012, 11:58:11 AM »
I have set up a static control in a window
The image for the static control is an animated sprite.
The animated sprite looping attribute is set to no
The animated sprite works fine once, so I have attempted to set it performing 5 loops, I have done this by using the methods Play() and Reset()
When I run the program I get cannot associate method with object for both Play() and Reset(). I have tried both methods , with a reference to both the control objects and a reference to the control objects image, neither can accept the method, any ideas

Code: WME Script
  1. if (questwin == null)
  2.   {
  3.  
  4.  questwin = Game.LoadWindow("interface\questlog\questlog.window");
  5.  
  6.  }
  7.    
  8. questwin.Visible = false;
  9.  
  10.  var showcrystal = statuswindow.GetControl("crystal"); //gets the static control crystal
  11.  var cryspic = showcrystal.GetImage();    // gets a reference to the static control sprite
  12.  //Game.Msg(cryspic); 
  13.  Debug();
  14.  var leftpage = questwin.GetControl("pageleft");
  15.  leftpage.SetImage("data\interface\questlog\qj1.png");
  16. rightpage = questwin.GetControl("pageright");
  17.  rightpage.SetImage("interface\questlog\q1start.png");
  18. // global log_but_stat = 1;
  19. showcrystal.Visible = true;
  20. for (var n =1;n < 4; n=n+1)
  21.  {
  22.    // sets image visible
  23.    cryspic.Play();   // plays the animation
  24.    
  25.    Sleep(1280);
  26.    cryspic.Reset();   // resets the animation
  27.    }
  28.  
  29.  showcrystal.Visible = false;
  30.   }
  31.  

17
Technical forum / Persitence in Windows
« on: March 23, 2012, 12:51:57 PM »
Quick question, if I change a value - say the sprite image in a window control, unload the window, and subsequently reload the window, does the image revert to the orginal, or will the changed image persist in the same way that if I change an image in a scene node it will persist

18
Technical forum / Line Spacing
« on: March 18, 2012, 07:38:15 PM »
I am using a truetype font to show speech text, it seems to want to throw an extra line feed when it is formating text within a defined area, any explanations as to why ?

Even more useful how do I make it stop

It does not happen with a bitmap font.

hmm  it's ok with Arial as well !!!

The font is gabriola any ideas

its a font feature folks it has a huge line space nfa required

19
Technical forum / Just a sanity check with scroll speed
« on: March 13, 2012, 06:20:09 PM »
I am trying to get smother faster movement in one scene. However if I change Scroll speed or scroll pixels at all the actor charater is very jerky, nb get a similar result when using deaulrt molly.
I am asssuming iro scroll speed low is faster and for the Scroll pixels command high is faster

any thoughts

20
Probably and obvious one, but how can I query the engine to test is a dynamically created entity is still valid/active, the scenario is that I have a method running which wants to carry even though I have left the scene, and it try to issue a SkipTo directive to an entity which has been destroyed as the entity is created by the Scene object.

21
Technical forum / Version Control
« on: February 26, 2012, 12:18:17 PM »
I am working on a project with other people, currently I am the sole code developer, but in time others might be involved, I have used CVS in the past and found it to be a pain, and that was only as a user. Can anyone suggest a simple version control solution than integrates with the Scitec code editor, which is gui driven, and can use a local repository, I don't really have the inclination to work with another cli

It would be great if any of you folks could make a recommendation based on your experince of working with wme projects that would be great. - plus also some guidance of how to integrate with the code editor.

22
Technical forum / Game Interactive
« on: January 27, 2012, 03:05:29 PM »
Hello - can you please confirm that keyboard activity superseeds Game.Interactive.

If this the case is there anyway I can avoid creating my own keyboard buffer to manage mutliple keystrokes

23
Technical forum / Spank the hero
« on: January 24, 2012, 05:33:44 PM »
Hello

when searching for help on using the keyboard to control actors, I came across a reference to "spank the hero" unfortunately the link was dead. Same link also appears in the resources page on the wiki. I don't suppose anyone has a copy they could share with me

24
Technical forum / Windows 7 and Permissions
« on: October 03, 2011, 03:12:35 PM »
Good afternoon

I am a trying to set up WME on a windows 7 machine in a college environment. We are able to install the software and to create/load projects, when we try to test the project a windows  message box with text "unknown parameters" is displayed, this happens with both new projects and demo projects.

We are pretty sure that it's a windows permissions issue.  We are creating the projects on the D: drive, is there anything that is written to the C drive, or to the registry that might cause an issue under windows 7, or indeed any suggestions as to where the problem might be.

thanks

25
Technical forum / Fonts and edit boxes
« on: May 02, 2011, 11:51:42 AM »
Hello I have made some cosmetic changes to the menu system, largely leaving the existing menu scripts alone, altering the colouring of the tile and changing the fonts.

All appeared to work well, until I tried to save a game, and then I couldn't edit the text. Subsequent investigation narrowed the issue to changing fonts from the sserif font to any other - with sserif all is well, without it the editor loose focus and cannot take a cursor.  I have probably missed something really obvious

26
Scripts, plugins, utilities, goodies / Enigma Machine
« on: April 12, 2011, 09:52:52 AM »
I have benefitted from the generousity of other folks on this board for a couple of years now, so I am attempting to give a little bit back. I really like the idea of creating artefacts which can be used in games, and one of my ambitions in my currect game was to create an enigma machine. So some caveats, the programming is probably not very good, and most folks here could have made a better/'more efficient job than I did, similarly I struggle as a graphic artist.

In terms of the application, I have not attempted to code the working of the enigma in Wintermute script, that would certainly be possible, as there are a number of software enigma's availalbe on the web, maybe some will even be open source, my choice was to create something which gave the appearance of a working enigma. In order to make things simple I have ignored the front patch panel and confined the variable to the rotors.

To get it working the rotors need to be set  at IBM.  The correct code for the message is x j l p, which should display the sequence TEST. You can change the code in the script file enigma meths.  The translation is contained in the script file keyboard_select.

Naturally there are no warranties with this, expressed, supplied or to be inferred, so use it at your own risk, and if your house burns down, or your offspring have two heads, then I am not responsible.
 
I have only supplied this as source code.

I place no formal restrictions on re-use of this IP, however my hope is that it will serve as inspiration, rather than raw material. It will appear in Column 22

http://www.filefactory.com/file/cba9f45/n/enigma.zip

www.eborr.com


27
Game design / Can anyone suggest a primer on 3D
« on: December 31, 2010, 12:34:05 PM »
I have got a number of different free 3D drawing programmes, and I am at the level of being able to create boxes and cones but I get stuck beyond that.

What I could really do with is some guidance on a decent free starter software which also has easy to use tutorials which take you beyond the spinning cube.

It would also help if the tuts introduced a bit of the general 3d theory as opposed to how they manage to hack 3d objects out of their application.

thx

28
Technical forum / Open.Document problem
« on: October 31, 2010, 12:52:40 PM »
When I try to use open document to run a third party application I get the following error message. The message box title says Init error and the message itself is "unknown genre", there is nothing in the wme log so my expectation is that the problem comes from the tp application.  However if any one has any insight in to what the error might be I would be gratefull

29
Technical forum / stop scrolling
« on: October 11, 2010, 10:34:22 PM »
been pulling my hair out with scrolling today, basically what happens is that objects in a window are scrolling in sympathy to the main screen. I have tried using GoExclusive and all that happens is the objects don't appear.  Currently I am fiddling about with setting the main object to null which sort of works but if the scrolling is still underway the objects move in sympathy with the last move of the main object. Is there a function which just stops the sreen from scrolling ?

The odd thing is that when I used static controls in the window this wasn't an issue, it's only become a problem now that I have moved to entity containers.

30
Technical forum / Escaping a warning to the feeble minded
« on: September 30, 2010, 09:08:31 PM »
If like me you suffer from a high degree of stupidity then might I share this warning with you.  Today I managed to disable the capability to use either escape of F1 to launch the main menu. I spent a good hour investigating this problem, including copying over the scripts folder, creating a vanilla project, inspecting the main game loop file to see what I had done.  It seemed the only way I could get escape to function was to insert a Debug() call.

Then I found out my error, there is a widget in the top left hand corner of the debug screen which allows you to keep it permanently on tap. I had in error pressed it.  One of the features of selecting this option is that it apparently disables escape and F1. I am sure this is documented somewhere, but for those of us with fading memories who may not recall everything I have ever read , please take this post as a health warning

Pages: 1 [2] 3 4

Page created in 0.028 seconds with 22 queries.