• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

WebGame [Webgame] 问仙ol - Ask fairy Online

Joined
Aug 14, 2009
Messages
2,304
Reaction score
1,189
The game works fine :D. But translation you need to recompile the whole thing :/. I've done the main.swf but the rest I can't get it working. I'm stuck at an error refered to:
MultiLangConfig.as <-- File doesn't exists in the archive I've got.

EDIT:

Fixed all compilation problems :):

 
Last edited:
Joined
Aug 14, 2009
Messages
2,304
Reaction score
1,189
I highly recommend to not run the precompiled server on a Public environment. You can control the server with a few simple C# lines.

Example:
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(new Uri("http://127.0.0.1:7171"));
request.Method = WebRequestMethods.Http.Post;
request.ContentType = "application/x-www-form-urlencoded";

//string postData = "key=addGm&name=admin123";
string postData = "key=" + comboBox1.Items[comboBox1.SelectedIndex] + textBox1.Text;
request.ContentLength = postData.Length;

StreamWriter postStream = new StreamWriter(request.GetRequestStream(), System.Text.Encoding.ASCII);
postStream.Write(postData);
postStream.Close();

HttpWebResponse response = (HttpWebResponse) request.GetResponse();
textBox2.Text = convertStreamToString(response);

So I can give myself GM rights. Open GM Commands to everyone. stop the server ect.

If you want to find out more look in the source of the server under:
wuSheng\game\mmo\game\GameService.java
 
Joined
Sep 24, 2012
Messages
405
Reaction score
63
plizz help change fonts

The game does not recognize the space between words.
Scartet Moon - [Webgame] 问仙ol - Ask fairy Online - RaGEZONE Forums





The script fix problem the space !!

text-text-text-text



LangConfig.as

package mmo.config
{
import flash.utils.Dictionary;

/**
* 多语言管理
* @author chenyong
*
*/
public class LangConfig
{
private static var langDic : Dictionary = new Dictionary();
/**
* 国际化语言的获取
* @param name
* @return
*
*/
public static function getName(key : String):String
{
//return ResourceManager.getInstance().getString("citian",key);
return langDic[key];
}

/**
* 解析国际化字符
* @param content
*
*/
public static function parse(content : String):void
{
var pattern1 : RegExp = / +/g;
var pattern2 : RegExp = /\r+/g;
var pattern3 : RegExp = /\n+/g;
var newStr1 : String = content.replace(pattern1,"");
var newStr2 : String = newStr1.replace(pattern2,"");
var newStr3 : String = newStr2.replace(pattern3,"\n");
var contentAry : Array = newStr3.split("\n");
var len : int = contentAry.length;
for(var i : int = 0; i < len; i++)
{
var keyValue : String = contentAry;
if(keyValue.indexOf("#")==-1)
{
var keyValueAry : Array = keyValue.split("=");
var key : String = keyValueAry[0];
var value : String = keyValueAry[1];
if (!value)
{
continue;
}
while(value.indexOf("&n") != -1)
{
value = value.replace("&n","\n")
}
/**html转化 by liudi*/
// value = value.replace("&*","#") //转译#
value = value.replace("-"," ")
// value = value.replace("&&","=") //转译=
langDic[key] = value;
}
}
}
}
}
 
Last edited:
Joined
Sep 24, 2012
Messages
405
Reaction score
63
The game has a problem to translate.
Example:
String Translated
Ingame:
StringTranslated

The game does not recognize the space between words.
 
Last edited:
Initiate Mage
Joined
Nov 2, 2013
Messages
3
Reaction score
0
Hello.
I have full english version of this game.
Our team translated it (all text & graphic) to English.
Also we have nice website (with html5 & autoregistering)
Who want to buy [English version + sources + site + soft to edit] contact me in skype: vadim1katya
 
Last edited:
Back
Top