AS extension works under WINXP, not under LINUX

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

User avatar
paco
Posts: 16
Joined: 01 Apr 2005, 19:58
Location: Holland
Contact:

AS extension works under WINXP, not under LINUX

Postby paco » 22 Dec 2005, 15:13

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
User avatar
paco
Posts: 16
Joined: 01 Apr 2005, 19:58
Location: Holland
Contact:

Problem fixed

Postby paco » 22 Dec 2005, 15:32

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
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 22 Dec 2005, 15:49

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 :)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
paco
Posts: 16
Joined: 01 Apr 2005, 19:58
Location: Holland
Contact:

Postby paco » 23 Dec 2005, 09:59

Ok thanx,

always good to know what is going on excactly.

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 52 guests