Page 1 of 1

AS extension works under WINXP, not under LINUX

Posted: 22 Dec 2005, 15:13
by paco
Hi,

This new extension system is really great!
But I have a little problem with it.

I made an extension that makes it keeps track of users (who they challenged for a game of chess,who canceled a challenge, who maybe left the game already, and so on).

The problem is, it doesn't work on a Linux server, I created the ext.as file under winXP, and it was working great on smartfox for winXP.

I have added this to the config.xml

<Zone name="CHESS">
<Rooms>
<Room name="lobby" maxUsers="50" isPrivate="false" isTemp="false" autoJoin="true" />
<Room name="garden" maxUsers="50" isPrivate="false" isTemp="false" />
</Rooms>

<Extensions>
<extension name="challList" className="challList.as" type="script" />
</Extensions>
</Zone>

And the extension also show up in the adminTool.swf

Is this due to the fact that windows writes ext.as files in a way the linux-smartfox server doesn't understand, or is there something else going on I don't know about?


Paco

Problem fixed

Posted: 22 Dec 2005, 15:32
by paco
I got it working now,

I opened the uploaded ext.as file with the winscp text editor and re-saved it.

I qeuss my windows actionscript (SePY) editor writes its files in an un-reconizeble way for linux

I'll be releasing my chess-demo game in 2006, I'll post a new message whenn i'm finished

:D

Posted: 22 Dec 2005, 15:49
by Lapo
Hi paco,
yep maybe the problem was with the text format or encoding.
For example if you save using UTF-8 some editors (SePY is one) will ad the so called "BOM" at the very beginning.

You can read more about this here >> http://en.wikipedia.org/wiki/Byte_Order_Mark

The BOM is not recognized by the extension parser, so it's better to avoid it.
I'll be releasing my chess-demo game in 2006, I'll post a new message whenn i'm finished
Great! Let us know when it's ready :)

Posted: 23 Dec 2005, 09:59
by paco
Ok thanx,

always good to know what is going on excactly.