Help me Plz

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Help me Plz

Post by sober » Sat Jan 07, 2006 10:15 am

I can't get unicode string work with script.

Code: Select all

function main()
{
	echo "火球术"
	echo ${Me.Name}
}
The first line doesn't work, the second line works fine. Me.Name is unicode string too.So I cant use spell name (unicode character sets) for the Castspell.I dont know how to solve it. Please help me.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sat Jan 07, 2006 12:46 pm

LavishScript supports UTF-8, but not particularly Unicode. If you save the script as UTF-8, it SHOULD work fine. If not, tell me what about it does not work fine. Does it not display correctly? Does it display something at all?

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Sat Jan 07, 2006 10:38 pm

:D I save the script as UTF-8, it work fine. Thanks a lot.
There is another problem, the "echo ${Me.Name}" displays correctly, but if I type "mkdir ${Me.Name}" in console, the dir name doesn't display correctly. I wrote a tes script with "mkdir ${Me.Name}" ,the directory name displays incorrectly too, it is something I can't read.Any ideas?

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sun Jan 08, 2006 2:45 pm

I took the time to address this issue this morning for you. The problem had to do with the Windows API apparently not properly supporting UTF-8 for creating directories. I tried about 45 different ways before I found one that works, and I've updated Inner Space to make this fix available to you. Update to build 3363, and it should correctly make the directory :)

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Sun Jan 08, 2006 8:37 pm

:D
Thank you so much. Your response is so quick.

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Sun Jan 08, 2006 9:28 pm

Lax wrote:I took the time to address this issue this morning for you. The problem had to do with the Windows API apparently not properly supporting UTF-8 for creating directories.
Another question, how about the creating file supporting UTF-8 file name?
I mean I can't create new file with UTF-8 file name.

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sun Jan 08, 2006 10:14 pm

Well, nobody mentioned that until now. So I will check on that next :)

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sat Jan 28, 2006 12:15 pm

Sorry for the delay getting to this one. I fixed this yesterday and the fix is in the next build

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Fri Feb 10, 2006 10:36 am

Now the file creation is ok, but there is another problem. After the UTF-8 name file created, the scripts can't find it, so it will create the same files every time.I think the

Code: Select all

if !${SettingFile.PathExists}
condition is true although the file already exist. Is it ISXWoW's bug or IS's?

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Fri Feb 10, 2006 10:47 am

IS's. Now I'll have to fix all the lines that check if a file exists ;) Thanks for continuing to report the problems

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Fri Feb 10, 2006 11:17 am

Fixed in build 3459, currently up as unstable patch.

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Fri Feb 10, 2006 11:18 pm

Thanks for your support. I will test the unstable version and report bugs here. :D

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Sat Feb 11, 2006 11:16 am

After patched to 3459 ,the problem still exist.And the config file with UTF-8 string such inventory,food etc... does not work correctly.I think it is the same problem. :D

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Sat Feb 11, 2006 11:47 am

After patched to 3459 ,the problem still exist.And the config file with UTF-8 string such inventory,food etc... does not work correctly.I think it is the same problem.
Something else is going on if you're having this problem with 3459. I'll update to 3460 just in case though.

Here's my test script, which works correctly.

Code: Select all

function main()
{
  log æsshole
  log off
  declare Path filepath æsshole
  Path:MakeAbsolute
  echo ${Path} ${Path.PathExists} 
}

sober
GamingTools Subscriber
Posts: 28
Joined: Thu Nov 17, 2005 8:40 pm

Post by sober » Sun Feb 12, 2006 9:22 pm

I cant patch to the build 3460, it freeze at the file _ISUI.dll.What 's the problem? :?

Post Reply