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.

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 - theflash

Pages: [1] 2 3
1
Technical forum / Re: UTF-8 removes Special Characters
« on: April 19, 2010, 12:45:29 AM »
Are you using truetype fonts?

Yes.

Also make sure the string table is saved with BOM so that WME recognizes it as UTF-8 format.

How would I do this? I use Windows' Notepad. I googled it, by didn't find any information on HOW to save with BOM.

2
Technical forum / UTF-8 removes Special Characters
« on: April 16, 2010, 03:48:27 PM »
Hello again my fellow wintermuters,

in what might very well be my last post here I present you the following problem:

We've used an ANSI encoded string.tab for a long time. Recently, we've updated this to an UTF-8 encoded string.tab. Ever since then, some special characters, most notably the German "ä", "ö" and "ü" cannot be displayed, not even by the System font for Game.Msg(). Switching back to the ANSI encoded .tab solves that, so this is definitely an issue with the UTF-8 encoded .tab file. I have no idea how to circumvent that.

3
Technical forum / Re: Very long Scene Change
« on: April 15, 2010, 11:41:05 PM »
No worries, pal. You've done plenty!

4
Technical forum / Re: Very long Scene Change
« on: April 15, 2010, 07:30:05 PM »
Removing all the scripts and solving it with a simple loop like metamorphium suggested does work and is a whole lot more elegant, but it DOES NOT help with the speed (or better the lack thereof) of the loading and saving of that particular scene.  :(

5
Technical forum / Re: Very long Scene Change
« on: April 13, 2010, 02:32:16 PM »
I'll try that. The script attaching was something I did a couple of months ago when I was pretty new to WME. Maybe performance will improve.

6
Technical forum / Re: Very long Scene Change
« on: April 12, 2010, 01:27:18 PM »
Each of the 132 shingle-entities has a script attached. This script is just 7 lines, basically just passing MouseEntry and MouseLeave through to the main.script. Apart from that only one more script, the mainscript for the scene, is attached.

Maybe it's that? Attaching 132 scripts (or better attaching 1 script 132 times) and later having to detach them?

7
Technical forum / Re: Very long Scene Change
« on: April 12, 2010, 11:29:10 AM »
are you loding all the gfx into Scene editor or are you loading them dynamically at the runtime?

They're all loaded in the Scene editor (because of the exact placement).

What happens when you're opening the scene file in SceneEdit? Does it take ages as well?

No, SceneEdit loads it just as fast as any other scene.

8
Technical forum / Re: Very long Scene Change
« on: April 09, 2010, 02:07:04 PM »
For clarification purposes:

The Minesweeper clone is set on a roof. The shingles are the tiles and the "mines" are loose shingles that break/fall if clicked.

To make things difficult, the perspective is not flat, that means the tiles/shingles are not all the same size. Instead, each shingle is pretty much its own graphic and they are NOT interchangable.

I use 132 shingle-entities. Because they're not interchangable, each one has its own sprite, so there are 132 pngs. Each one gets highlighted (Shingle.AlphaColor = ...) when the cursor hovers above it and each one gets darkened, if clicked and it's "safe". Each one is removable if it's a "mine" and clicked on. So each shingle has 4 possible states (normal, highlight, darkened, gone).

On top of that are the 132 number overlays. Each number is a graphic and set as the overlay entity's sprite. The graphics are interchangable, so in total there are just 9 pngs for that (1..8, marked). But their position is not interchangable, because of the non-flat perspective. The numbers are centered on the shingle and for shingles "closer" to the viewer that means different x,y offsets than for shingles further away. Since Wintermute doesn't properly support Entity.Width, it cannot be calculated dynamically.

(To better illustrate that: A small shingle in the back might be 30x32 pixels, so it's center has offsets of 15 and 16. A larger tile in the front might be 64x70, so the offset would be 32x35)

I can't mail you a repro project because I wouldn't know how to do one in reasonable time and I'm afraid my employer won't let me mail you the real project (although it's not commercial...).

9
Technical forum / Very long Scene Change
« on: April 09, 2010, 10:31:13 AM »
Hi y'all,

I have a scene with a lot of entities. A lot! It's a minigame, a clone of Minesweeper (like in Windows). There are about 132 (12x11) entities representing the tiles and an equal number of entities that work as number overlays (like '3 mines adjacent to this tile'). Combined with a few other entities the total number in this scene is close to 300.

A Game.Changescene from this scene to the next takes very long. On slower computers (and the game is aimed to be playable on 1 Ghz single core machines with 256 megs of RAM) it takes a minute or more - which most testers identify as a crash.

My questions: is the long Scene Change linked with the unusually high number of entities? If so, is there anything I can do about it?

10
Technical forum / Re: Keyboard not recognized in Debug mode
« on: March 25, 2010, 10:13:09 AM »
Yes, that was it. But it never did that before and I didn't change any settings. Strange...

11
Technical forum / Keyboard not recognized in Debug mode
« on: March 24, 2010, 02:40:18 PM »
And it's me again...

I've been working with Wintermute for 5 months now and suddenly it stopped recognizing any Keyboard commands. Even if I put a Game.Msg in the very first command of the on "keypress" in game.script, nothing happens. So a friend of mine tells me she had the same problem and could "solve" it by turning off Debug Mode. And it worked.

Why did the Debug mode break the keyboard stuff suddenly without an apparent reason?

12
Technical forum / Re: Button Captions not on top
« on: March 23, 2010, 06:09:55 PM »
That did the trick.

Thanks, as usual!

13
Technical forum / Re: Button Captions not on top
« on: March 23, 2010, 02:59:46 PM »
See, I did not know that :)

Code: [Select]
; generated by WindowEdit

; $EDITOR_PROJECT_ROOT_DIR$ ..\..\..\

WINDOW
{
  NAME="options"
  CAPTION=""
 
  IMAGE="scenes\NewMenu\pic\gestell_gross.png"
 
  TITLE=""
  TITLE_ALIGN="left"
  TITLE_RECT { 5, 5, 235, 45 }
  DRAG_RECT { 0, 0, 215, 25 }
 
  X=0
  Y=0
  WIDTH=1024
  HEIGHT=150
  DISABLED=FALSE
  VISIBLE=TRUE
  PARENT_NOTIFY=TRUE
  TRANSPARENT=FALSE
  PAUSE_MUSIC=TRUE
  MENU=FALSE
  IN_GAME=FALSE
  CLIP_CONTENTS=FALSE
 
  ALPHA_COLOR { 0, 0, 0 }
  ALPHA=0
 
  SCRIPT="scenes\NewMenu\options.script"
 
  EDITOR_PROPERTY
  {
    NAME="Selected"
    VALUE="False"
  }

  BUTTON
  {
    NAME="minispiele"
    CAPTION="Minispiele"
   
    IMAGE="scenes\NewMenu\pic\minispiele.png"
    IMAGE_HOVER="scenes\NewMenu\pic\minispiele_over.png"
    IMAGE_PRESS="scenes\NewMenu\pic\minispiele_over.png"
    IMAGE_FOCUS="scenes\NewMenu\pic\minispiele_over.png"
   
    TEXT=""
    TEXT_ALIGN="center"
   
    X=203
    Y=34
    WIDTH=135
    HEIGHT=75
    DISABLED=FALSE
    VISIBLE=TRUE
    PARENT_NOTIFY=TRUE
    FOCUSABLE=FALSE
    CENTER_IMAGE=FALSE
    PRESSED=FALSE
    PIXEL_PERFECT=FALSE
   
   
    EDITOR_PROPERTY
    {
      NAME="Selected"
      VALUE="False"
    }

  }
  BUTTON
  {
    NAME="einstellungen"
    CAPTION="Einstellungen"
   
    IMAGE="scenes\NewMenu\pic\einstellungen.png"
    IMAGE_HOVER="scenes\NewMenu\pic\einstellungen_over.png"
    IMAGE_PRESS="scenes\NewMenu\pic\einstellungen_over.png"
    IMAGE_FOCUS="scenes\NewMenu\pic\einstellungen_over.png"
   
    TEXT=""
    TEXT_ALIGN="center"
   
    X=377
    Y=36
    WIDTH=120
    HEIGHT=65
    DISABLED=FALSE
    VISIBLE=TRUE
    PARENT_NOTIFY=TRUE
    FOCUSABLE=FALSE
    CENTER_IMAGE=FALSE
    PRESSED=FALSE
    PIXEL_PERFECT=FALSE
   
   
    EDITOR_PROPERTY
    {
      NAME="Selected"
      VALUE="False"
    }

  }
  BUTTON
  {
    NAME="credits"
    CAPTION="Credits"
   
    IMAGE="scenes\NewMenu\pic\credits.png"
    IMAGE_HOVER="scenes\NewMenu\pic\credits_over.png"
    IMAGE_PRESS="scenes\NewMenu\pic\credits_over.png"
    IMAGE_FOCUS="scenes\NewMenu\pic\credits_over.png"
   
    TEXT=""
    TEXT_ALIGN="center"
   
    X=530
    Y=23
    WIDTH=130
    HEIGHT=75
    DISABLED=FALSE
    VISIBLE=TRUE
    PARENT_NOTIFY=TRUE
    FOCUSABLE=FALSE
    CENTER_IMAGE=FALSE
    PRESSED=FALSE
    PIXEL_PERFECT=FALSE
   
   
    EDITOR_PROPERTY
    {
      NAME="Selected"
      VALUE="False"
    }

  }
  BUTTON
  {
    NAME="exit"
    CAPTION="Spiel verlassen"
   
    IMAGE="scenes\NewMenu\pic\exit.png"
    IMAGE_HOVER="scenes\NewMenu\pic\exit_over.png"
    IMAGE_PRESS="scenes\NewMenu\pic\exit_over.png"
    IMAGE_FOCUS="scenes\NewMenu\pic\exit_over.png"
   
    TEXT=""
    TEXT_ALIGN="center"
   
    X=698
    Y=26
    WIDTH=115
    HEIGHT=80
    DISABLED=FALSE
    VISIBLE=TRUE
    PARENT_NOTIFY=TRUE
    FOCUSABLE=FALSE
    CENTER_IMAGE=FALSE
    PRESSED=FALSE
    PIXEL_PERFECT=FALSE
   
   
    EDITOR_PROPERTY
    {
      NAME="Selected"
      VALUE="True"
    }

  }
}


14
Technical forum / Re: Button Captions not on top
« on: March 23, 2010, 02:17:30 PM »
Oh, okay. I thought I was supposed to have a windows.def or something. But how do I post the content of a .windows file? Make a screenshot of it?

15
Technical forum / Re: Button Captions not on top
« on: March 23, 2010, 10:56:09 AM »
Here's a screenshot http://img190.imageshack.us/img190/4969/captionw.jpg

I don't seem to have a window definition  ???

Pages: [1] 2 3

Page created in 0.048 seconds with 23 queries.