Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Bug with String object  (Read 2284 times)

0 Members and 1 Guest are viewing this topic.

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Bug with String object
« on: August 26, 2011, 03:19:47 PM »

Hi Mnemonic,

I have the following code:

Code: WME Script
  1. on "LeftClick"
  2. {
  3.                 var str = new String(this.Name);
  4.                
  5.                 var name = str.Substr(3);
  6.  
  7.                 Game.Msg("Name:" + str + " Region:" + name);
  8.                
  9.                 Scene.RegionClicked(name);
  10. }
  11.  

On WME it shows eg.:

Name: Reg19
Region: 19

on WME lite it shows:
Name: Reg19
Region:


It seems that the string logic hasn't been implemented. Any advice, or should I change this logic in the game?

Thank you!



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

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: Bug with String object
« Reply #1 on: August 26, 2011, 05:56:24 PM »

Just for the records. Fixed in the latest svn commit.
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.2 seconds with 18 queries.