I will work on that tomorrow. I have some school work to finish. You might also have to use English furnidata and productdata. There is some 4000 items in each of the tables, so it might take a while..
Yeah, I'll see on what I can do
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!I will work on that tomorrow. I have some school work to finish. You might also have to use English furnidata and productdata. There is some 4000 items in each of the tables, so it might take a while..
This is just terrible, I had a quick look over features that contain critical section code blocks (such as the LTD purchasing), and nothing is synchronized, or locked to ensure that there is no corruption between clients purchasing those objects at the same time for instance.
0/10, would not recommend.
fix for speech:speech not work -.-
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Database_Manager.Database.Session_Details.Interfaces;
using System.Data;
using System.Text.RegularExpressions;
namespace Butterfly.Core
{
class LanguageLocale
{
private static Dictionary<string, string> values;
internal static bool welcomeAlertEnabled;
internal static string welcomeAlert;
private static List<string> swearwords;
internal static void Init()
{
values = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/locale.ini"));
InitWelcomeMessage();
}
internal static void InitSwearWord()
{
swearwords = new List<string>();
DataTable dTable;
using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor())
{
dbClient.setQuery("SELECT word FROM room_swearword_filter");
dTable = dbClient.getTable();
}
string swearWord;
foreach (DataRow dRow in dTable.Rows)
{
swearWord = (string)dRow[0];
swearwords.Add(swearWord);
}
}
private static void InitWelcomeMessage()
{
Dictionary<string, string> configFile = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/welcome_config.ini"));
welcomeAlertEnabled = configFile["welcome.alert.enabled"] == "true";
if (welcomeAlertEnabled)
{
welcomeAlert = File.ReadAllText(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/welcome_message.ini"));
}
}
private static string ReplaceEx(string original,
string pattern, string replacement)
{
int count, position0, position1;
count = position0 = position1 = 0;
string upperString = original.ToUpper();
string upperPattern = pattern.ToUpper();
int inc = (original.Length / pattern.Length) *
(replacement.Length - pattern.Length);
char[] chars = new char[original.Length + Math.Max(0, inc)];
while ((position1 = upperString.IndexOf(upperPattern,
position0)) != -1)
{
for (int i = position0; i < position1; ++i)
chars[count++] = original[i];
for (int i = 0; i < replacement.Length; ++i)
chars[count++] = replacement[i];
position0 = position1 + pattern.Length;
}
if (position0 == 0) return original;
for (int i = position0; i < original.Length; ++i)
chars[count++] = original[i];
return new string(chars, 0, count);
}
internal static string FilterSwearwords(string original)
{
foreach (string word in swearwords)
{
original = ReplaceEx(original, word, "subba");
}
return original;
}
internal static string GetValue(string value)
{
if (!values.ContainsKey(value))
{
throw new MissingLocaleException("Missing language locale for [" + value + "]");
}
return values[value];
}
class MissingLocaleException : Exception
{
public MissingLocaleException(string message)
: base(message)
{
}
}
}
}
butterfly have a diffrent sso then phoenix
How can I fix?
fix for speech:
put this in your LanguageLocale.cs:
Code:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; using Database_Manager.Database.Session_Details.Interfaces; using System.Data; using System.Text.RegularExpressions; namespace Butterfly.Core { class LanguageLocale { private static Dictionary<string, string> values; internal static bool welcomeAlertEnabled; internal static string welcomeAlert; private static List<string> swearwords; internal static void Init() { values = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/locale.ini")); InitWelcomeMessage(); } internal static void InitSwearWord() { swearwords = new List<string>(); DataTable dTable; using (IQueryAdapter dbClient = ButterflyEnvironment.GetDatabaseManager().getQueryreactor()) { dbClient.setQuery("SELECT word FROM room_swearword_filter"); dTable = dbClient.getTable(); } string swearWord; foreach (DataRow dRow in dTable.Rows) { swearWord = (string)dRow[0]; swearwords.Add(swearWord); } } private static void InitWelcomeMessage() { Dictionary<string, string> configFile = IniReader.ReadFile(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/welcome_config.ini")); welcomeAlertEnabled = configFile["welcome.alert.enabled"] == "true"; if (welcomeAlertEnabled) { welcomeAlert = File.ReadAllText(System.IO.Path.Combine(System.Windows.Forms.Application.StartupPath, @"System/welcome_message.ini")); } } private static string ReplaceEx(string original, string pattern, string replacement) { int count, position0, position1; count = position0 = position1 = 0; string upperString = original.ToUpper(); string upperPattern = pattern.ToUpper(); int inc = (original.Length / pattern.Length) * (replacement.Length - pattern.Length); char[] chars = new char[original.Length + Math.Max(0, inc)]; while ((position1 = upperString.IndexOf(upperPattern, position0)) != -1) { for (int i = position0; i < position1; ++i) chars[count++] = original[i]; for (int i = 0; i < replacement.Length; ++i) chars[count++] = replacement[i]; position0 = position1 + pattern.Length; } if (position0 == 0) return original; for (int i = position0; i < original.Length; ++i) chars[count++] = original[i]; return new string(chars, 0, count); } internal static string FilterSwearwords(string original) { foreach (string word in swearwords) { original = ReplaceEx(original, word, "subba"); } return original; } internal static string GetValue(string value) { if (!values.ContainsKey(value)) { throw new MissingLocaleException("Missing language locale for [" + value + "]"); } return values[value]; } class MissingLocaleException : Exception { public MissingLocaleException(string message) : base(message) { } } } }
butterfly have a diffrent sso then phoenix
so if you use a cms withe the phoenix sso it doesn't work
you need to fix it for butterfly ;p
Whats up with the name of the server? ButterStorm is an evolution of Butterfly, where they added lots of stuff so it became fat, slow and buggy, at the same time there's lots of it => Storm of butter (Butter = fat) => ButterStorm? Kinda funny speculations though.
- Martin
But what do I change it too?
Why did you stole DONG ?!?!I am not able to see your point. Butterfly is totally different from Uber. If I named it UberFly it would have been different, but that just sounds nasty, haha!
- Martin
Why did you stole DONG ?!?!
Anyway Martin is true, the currently releases from butterfly/stormwhatever are pretty.... bad?
Butterfly r104 (don't know the current version) but its fast like DONG