Offical BCStorm Help Thread

Hmm... Recently setted up a new entire BETA Project.

However... Got some strange errors.. That when i click at the big "H" button. It crashes!
Now i checked my 2 functions and packets.. Sometimes it works.. Sometimes it does not...

Last package id's;
Code:
Incoming.GoToHotelView = 2718;

UNKNOWN PACKET;; 2888


Here is my GoToHotelView;
Code:
internal void GoToHotelView()
        {
            
            if (Session.GetHabbo().InRoom)
            {
                Room currentRoom = ButterflyEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
                if (currentRoom != null)
                {
                    Console.WriteLine("Starting removing user from room...");
                    currentRoom.GetRoomUserManager().RemoveUserFromRoom(Session, true, false);
                    Console.WriteLine("Success! Thread didnt crash?");
                }

                Session.CurrentRoomUserID = -1;
            }
        }

RemoveUserFromRoom();
Code:
internal void RemoveUserFromRoom(GameClient Session, bool NotifyClient, bool NotifyKick)
        {
            try
            {
                if ((Session != null) && (Session.GetHabbo() != null))
                {
                    Session.GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect = 0;
                    if (NotifyClient)
                    {
                        if (NotifyKick)
                        {
                            Session.GetMessageHandler().GetResponse().Init(Outgoing.RoomError);
                            Session.GetMessageHandler().GetResponse().AppendInt32(0xfa8);
                            Session.GetMessageHandler().SendResponse();
                        }
                        Session.GetMessageHandler().GetResponse().Init(Outgoing.OutOfRoom);
                        Session.GetMessageHandler().SendResponse();
                    }
                    RoomUser roomUserByHabbo = this.GetRoomUserByHabbo(Session.GetHabbo().Id);
                    if (roomUserByHabbo != null)
                    {
                        if (roomUserByHabbo.team != Team.none)
                        {
                            this.room.GetTeamManagerForBanzai().OnUserLeave(roomUserByHabbo);
                            this.room.GetTeamManagerForFreeze().OnUserLeave(roomUserByHabbo);
                        }
                        if (roomUserByHabbo.montandoBol)
                        {
                            roomUserByHabbo.montandoBol = false;
                            RoomUser roomUserByVirtualId = this.GetRoomUserByVirtualId((int) roomUserByHabbo.montandoID);
                            if (roomUserByVirtualId != null)
                            {
                                roomUserByVirtualId.montandoBol = false;
                                roomUserByVirtualId.montandoID = 0;
                            }
                        }
                        if (roomUserByHabbo.sentadoBol || roomUserByHabbo.acostadoBol)
                        {
                            roomUserByHabbo.sentadoBol = false;
                            roomUserByHabbo.acostadoBol = false;
                        }
                        this.RemoveRoomUser(roomUserByHabbo);
                        if ((Session.GetHabbo() != null) && !roomUserByHabbo.IsSpectator)
                        {
                            if (roomUserByHabbo.CurrentItemEffect != ItemEffectType.None)
                            {
                                roomUserByHabbo.GetClient().GetHabbo().GetAvatarEffectsInventoryComponent().CurrentEffect = -1;
                            }
                            if (Session.GetHabbo() != null)
                            {
                                if (this.room.HasActiveTrade(Session.GetHabbo().Id))
                                {
                                    this.room.TryStopTrade(Session.GetHabbo().Id);
                                }
                                Session.GetHabbo().CurrentRoomId = 0;
                                if (Session.GetHabbo().GetMessenger() != null)
                                {
                                    Session.GetHabbo().GetMessenger().OnStatusChanged(true);
                                }
                            }
                        }
                        this.usersByUserID.Remove(roomUserByHabbo.userID);
                        if (Session.GetHabbo() != null)
                        {
                            this.usersByUsername.Remove(Session.GetHabbo().Username.ToLower());
                        }
                        roomUserByHabbo.Dispose();
                    }
                }
            }
            catch (Exception exception)
            {
                Logging.LogCriticalException("Error during removing user from room:" + exception.ToString());
            }
        }

Help help guys! Gives me a DC often.

Sincerely yours,
Mikey
 
Upvote 0
Capture1 - Offical BCStorm Help Thread - RaGEZONE Forums

This is what shows up on my emulator.
 
Upvote 0
View attachment 127209

This is what shows up on my emulator.

Error log would help... As I said above.

FIX/REASON FOR COMMON ERRORS
---------------------
NOTES BEFORE YOU START
A reasonable understanding of SQL databases and queries will help you greatly when fixing errors, if you have NO coding experience, you will struggle to setup this emulator. Also last time I checked the SQL provided with the emulator uploads with one or two small bugs which have a 'domino effect' on all the other tables.

ERROR LOG
Your emulator has log files used for logging SQL, packet and other errors. This can be found in \Butterfly Emulator\bin\Debug\Logs. Adding an image of your emulator showing a few lines of errors does not usually provide enough information to fix the problem so make sure you show the text from the log files.
 
Upvote 0
Only certain users are unable to get on to the client? Why is this happening?
Here is the Exception given in the EMU:
TokenID: 0Invalid Dario bug duing user login: System.NullReferenceException: Object reference not set to an instance of an object.
at Butterfly.HabboHotel.Items.UserItem..ctor(UInt32 Id, UInt32 BaseItem, String ExtraData, UInt32 rareid, String groupstring, UInt32 placedBy) in c:\Users\Administrator\Desktop\Bfly\BcStorm\Butterfly\HabboHotel\Items\UserItem.cs:line 32
at Butterfly.HabboHotel.Users.UserDataManagement.UserDataFactory.GetUserData(String sessionTicket, String ip, Byte& errorCode) in c:\Users\Administrator\Desktop\Bfly\BcStorm\Butterfly\HabboHotel\Users\UserDataManagement\UserDataFactory.cs:line 248
at Butterfly.HabboHotel.GameClients.GameClient.tryLogin(String AuthTicket) in c:\Users\Administrator\Desktop\Bfly\BcStorm\Butterfly\HabboHotel\GameClients\GameClient.cs:line 242
 
Upvote 0
Hey, It dosen't say
Connection Recieved... Lets do this!
Since this is a new vps, I don't know whats happening.
James - Offical BCStorm Help Thread - RaGEZONE Forums


I used normal DB I used YESTERDAY. On old VPS.
Same EMU Aswell.
 
Upvote 0
Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\class.engine.php on line 107

Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\class.engine.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\app\class.engine.php:107) in C:\xampp\htdocs\app\tpl\class.html.php on line 32

Help?when i go my localhost thats what i get. every setting is correct
 
Upvote 0
Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\class.engine.php on line 107

Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\class.engine.php on line 107

Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\app\class.engine.php:107) in C:\xampp\htdocs\app\tpl\class.html.php on line 32

Help?when i go my localhost thats what i get. every setting is correct

Not even a BcStorm error.
 
Upvote 0
When connecting I get a black screen after the hotel loads to 100% it only shows a black screen. The emu takes the connection and does nothing with it. Why is my screen just black? Tried with swfs from the official thread.
 
Upvote 0
Alright, my hotel works fine and finishing up things so i can open the hotel.
However, when i go to the staff page or the community page, it says i am online even though i am not logged in!
This happens to all users and i already know it is not updating the online column in the users table when disconnecting or logging out.

Please help!?
 
Upvote 0
When connecting I get a black screen after the hotel loads to 100% it only shows a black screen. The emu takes the connection and does nothing with it. Why is my screen just black? Tried with swfs from the official thread.

Try to clear your cache or use other swfs.

My problem:
Wired is not working, I already added the 2 functions to my db.
 
Upvote 0
I'm using leenster's BCstorm and it's great, but sadly I'm experiencing some problems with furniture that go disappearing out of nowhere. For example: i place them in my room, sign out of the hotel and when i come back they aren't there anymore.

Does anyone have a fix for this?
 
Upvote 0
Back