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.

Messages - HIman

Pages: 1 [2]
16
#include "something/something" or #include "something\something"
Both will work.

Alright, that was a mistake of mine, but I was pointing at the "inculde" vs. "nclude"

Thanks for "ncude" but it only a mistake in a forum and in the program "include"  ;)

17
[If I get you right you copied global MenuObject from your menu.script to base.inc? If yes, check if global MenuObject is defined in a script that includes base.inc, in that case it would be defined twice which I causes an error.
Does WME.log give out any errors?
global MenuObject it is determined only once.

It would be quite good to add search in WME Project Manager  ::)

I have not copied, and have transferred definition of a variable
From interface\menu\menu.script
In scripts\base.inc
Mistakes in WME.log are not present, but does not work :(

18
Greetings!

  Three questions, I in fact only study:)

The first:

   In an example wme_demo
From interface\menu\menu.script
In scripts\base.inc
Has transferred a line global MenuObject,
Mistakes are not present but after start the black screen, why?

The second question:
    In an example wme_demo after successful insert Edit in
interface\menu\menu.window
Example of a code
Code: [Select]
EDIT
  {
    NAME = "desc"
    BACK = "ui_elements\editor.image"
    FONT = "fonts\outline_green.font"
    FONT_SELECTED = "fonts\outline_red.font"
    SCRIPT = "scripts\parser.script"
    X = 0
    Y = 100
    WIDTH = 250
    HEIGHT = 20
    FRAME_WIDTH = 4
    TEXT = " "
    MAX_LENGTH = 200
    PARENT_NOTIFY = TRUE
    CURSOR_BLINK_RATE = 300
}
Has created scripts\parser.script with a code
Code: [Select]
#include "scripts\base.inc"
#nclude "scripts\keys.inc"

  var Editor = self. GetWidget ("desc");
  Editor. Text = self.xDescription;
  Editor. SelStart = 0;
  Editor. SelEnd = 200;

on "Keypress"
{
 self. Close ();
 if (Keyboard. KeyCode == VK_RETURN)
  {
    actor. Talk (Editor. Text);
}
  MenuObject = null;
}
  error opening script 'interface\menu\parser.script'
Why? I have obviously specified a way and what script will process EDIT.

The third question:
I have created parser.script in 'interface\menu\parser.script' with code look above.
Has specified what script will be will be executed:
Code: [Select]
EDIT
  {
     ..
    SCRIPT = "interface\menu\parser.script"
     ..
After start:
 Error. Call to undefined method 'GetWidget.' Ignored.

I have absolutely got confused: (

19
Technical forum / Re: What do I do not so?
« on: August 23, 2005, 05:37:48 AM »
Thanks Mnemonic
All works  :D

20
Technical forum / Re: What do I do not so?
« on: August 22, 2005, 11:38:02 AM »
Ok,
I have followed an example wme_demo and in interface\menu\menu.window have inserted
Code: [Select]
  EDIT
  {
    NAME = "desc"
    BACK = "ui_elements\editor.image"
    FONT = "fonts\outline_green.font"
    FONT_SELECTED = "fonts\sserif_sel.font"
    X = 0
    Y = 140
    WIDTH = 250
    HEIGHT = 20
    FRAME_WIDTH = 2
    TEXT = ""
    MAX_LENGTH = 100
    PARENT_NOTIFY = TRUE
  }
After start to insert the text it is not possible.
Why?

21
Technical forum / Re: What do I do not so?
« on: August 22, 2005, 11:20:05 AM »
Strange,
I have looked as is made in interface\system\savename.window
Also has repeated on the button in the basic menu of game and it works.
I insert the same piece into the menu which it is caused by the right pressing of a mousy object (there where to look, tell, take) does not work.
Who can tell to me why?

22
Technical forum / Re: What do I do not so?
« on: August 21, 2005, 06:26:11 PM »
If quickly to click with a mousy on a window of the menu
That the text to enter it is possible but it appears hardly
And in heading of a window.

Excuse I communicate through the translator

23
Technical forum / Re: What do I do not so?
« on: August 21, 2005, 06:22:29 PM »
   Thanks, for a prompt reply,
in the documentation turns out not an exact example of the program for EDIT
   But the problem was resolved not up to the end.
Game does not crash, but in the appeared menu
It is impossible to enter or insert anything through the buffer of an exchange.

Excuse for my English.

24
Technical forum / What do I do not so?
« on: August 21, 2005, 04:00:59 PM »
Greetings!

In an example applied to a cursor wme_demo,
I have created menu1.window and have inserted the program

Code: [Select]
WINDOW
{
  NAME = "WINDOW"
  IMAGE = "interface\menu\menu.bmp"
  SCRIPT = "interface\menu\menu1.script"
  MENU = TRUE

EDIT
  {
  NAME = "MyEditor"
  ;TEMPLATE = "templates\MyTemplate.editor"

  ; position and size (relative to the window position)
  X = 100
  Y = 100
  WIDTH = 200
  HEIGHT = 50

  ; editor state
  VISIBLE = TRUE
  DISABLED = FALSE

  ; text
  TEXT = "My brand new editor" 
 
  ; background
  BACK = "ui_elements\win_inactive.image"
 
  IMAGE = "interface\menu\menu1.sprite"
 
 
  ; fonts 
  FONT = "fonts\outline_white.font"
  FONT_SELECTED = "fonts\outline_red.font"

 
  ; script
  ;SCRIPT = "path\menu1.script"
 
  ; cursor
  ;CURSOR = "path\beam.sprite"
 
  ; extended properties
  PARENT_NOTIFY = TRUE
  MAX_LENGTH = 100
  FRAME_WIDTH = 2
  CURSOR_BLINK_RATE
  }   
}

Preview gives out crach
Run game gives out crach

Example of component EDIT to take from the Documentation
What do I do not so?
HELP  ???

Pages: 1 [2]

Page created in 0.035 seconds with 19 queries.