Welcome!

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!

BCStorm [R63B] CHAT BUBBLES / GROUPS / MULTIPLE MORE FEATURES

Status
Not open for further replies.
Newbie Spellweaver
Joined
Nov 2, 2006
Messages
95
Reaction score
27
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
 
[̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅]
Joined
May 4, 2008
Messages
831
Reaction score
741
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.

How about taking a few minutes out of your life to post some fixes. I am sure we could learn a lot from that.
 
Initiate Mage
Joined
Nov 4, 2012
Messages
2
Reaction score
0
Speech not work -.- Help Please

i'm search a speech fix -.- i can not talk in my room

Error code log:

Error in packet [1548] BODY: [0]lol[0][0][0][0][0][0][0][0]:
TokenID: 0System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
bei Butterfly.Core.LanguageLocale.FilterSwearwords(String original) in C:\Users\Meik\Desktop\emulator neu\Butterfly\Core\LanguageLocale.cs:Zeile 21.
bei Butterfly.HabboHotel.Rooms.RoomUser.Chat(GameClient Session, String Message, Boolean Shout, Int32 TextColor) in C:\Users\Meik\Desktop\emulator neu\Butterfly\HabboHotel\Rooms\RoomUser.cs:Zeile 221.
bei Butterfly.Messages.GameClientMessageHandler.Talk() in C:\Users\Meik\Desktop\emulator neu\Butterfly\Messages\GameClientMessageHandler.cs:Zeile 6273.
bei Butterfly.Messages.StaticMessageHandlers.SharedPacketLib.Talk(GameClientMessageHandler handler) in C:\Users\Meik\Desktop\emulator neu\Butterfly\Messages\StaticMessageHandlers\SharedPacketLib.cs:Zeile 985.
bei Butterfly.Messages.StaticMessageHandlers.StaticClientMessageHandler.HandlePacket(GameClientMessageHandler handler, ClientMessage message) in C:\Users\Meik\Desktop\emulator neu\Butterfly\Messages\StaticMessageHandlers\StaticClientMessageHandler.cs:Zeile 26.
bei Butterfly.Messages.GameClientMessageHandler.HandleRequest(ClientMessage request) in C:\Users\Meik\Desktop\emulator neu\Butterfly\Messages\GameClientMessageHandler.cs:Zeile 2811.
bei Butterfly.HabboHotel.GameClients.GameClient.parser_onNewPacket(ClientMessage Message) in C:\Users\Meik\Desktop\emulator neu\Butterfly\HabboHotel\GameClients\GameClient.cs:Zeile 136.
 
Skilled Illusionist
Joined
Jul 4, 2009
Messages
363
Reaction score
65
speech not work -.-
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)
            {

            }
        }
    }
}

iRaged - BCStorm [R63B] CHAT BUBBLES / GROUPS / MULTIPLE MORE FEATURES - RaGEZONE Forums


How can I fix?
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
 
Experienced Elementalist
Joined
Oct 17, 2008
Messages
293
Reaction score
64
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

But what do I change it too?
 
Retired
Loyal Member
Joined
May 5, 2007
Messages
497
Reaction score
665
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
 
"(still lacks brains)"
Loyal Member
Joined
Sep 2, 2011
Messages
2,371
Reaction score
1,361
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

Evolution? You mean re-name, just like Butterfly is a re-name of Uber.
 
Newbie Spellweaver
Joined
Sep 20, 2011
Messages
52
Reaction score
0
My group badge images not working, how can I fix it?

- Whriten
 
Retired
Loyal Member
Joined
May 5, 2007
Messages
497
Reaction score
665
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
 
Joined
Jul 29, 2010
Messages
720
Reaction score
515
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 o_O
 
Retired
Loyal Member
Joined
May 5, 2007
Messages
497
Reaction score
665
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 o_O

It is true that its hard to get something as fast as the speed of DONG. Only software from DONG Inc. is able to do that.

- Martin
 
Run, but I'll find you.
Joined
Jan 29, 2011
Messages
777
Reaction score
327
Personally I would recommend closing this thread, and redirecting everyone to the newer version of this emulator. This emulator contains exploit, the newer version has these fixed.
 
Status
Not open for further replies.
Back
Top