[FIX][Uber] Room loading error

Results 1 to 14 of 14
  1. #1
    Sorcerer Supreme flx5 is offline
    Member +Rank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    config [FIX][Uber] Room loading error

    Hey, I have seen, that sometimes after changeing the Furnidata.txt and using an Script for correct the Id's, sometimes there are Roomloading errors.
    I made an fix for this Issue.

    Open RoomItems.cs and find public RoomItem
    Replace the following code
    Code:
    public RoomItem(uint Id, uint RoomId, uint BaseItem, string ExtraData, int X, int Y, Double Z, int Rot, string WallPos)
            {
                this.Id = Id;
                this.RoomId = RoomId;
                this.BaseItem = BaseItem;
                this.ExtraData = ExtraData;
                this.X = X;
                this.Y = Y;
                this.Z = Z;
                this.Rot = Rot;
                this.WallPos = WallPos;
                this.UpdateNeeded = false;
                this.UpdateCounter = 0;
                this.InteractingUser = 0;
                this.InteractingUser2 = 0;
    
                switch (GetBaseItem().InteractionType.ToLower())
                {
                    case "teleport":
    
                        ReqUpdate(0);
    
                        break;
                }
            }
    with this

    Code:
    public RoomItem(uint Id, uint RoomId, uint BaseItem, string ExtraData, int X, int Y, Double Z, int Rot, string WallPos)
            {
    
                using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
                {
                    int count = dbClient.ReadInt32("SELECT COUNT(id) as count FROM furniture WHERE id = " + BaseItem + "");
    
                    if (count == 0)
                    {
                        dbClient.ExecuteQuery("DELETE FROM room_items WHERE base_item = " + BaseItem + "");
                    }
                    else
                    {
    
                        this.Id = Id;
                        this.RoomId = RoomId;
                        this.BaseItem = BaseItem;
                        this.ExtraData = ExtraData;
                        this.X = X;
                        this.Y = Y;
                        this.Z = Z;
                        this.Rot = Rot;
                        this.WallPos = WallPos;
                        this.UpdateNeeded = false;
                        this.UpdateCounter = 0;
                        this.InteractingUser = 0;
                        this.InteractingUser2 = 0;
    
                        switch (GetBaseItem().InteractionType.ToLower())
                        {
                            case "teleport":
    
                                ReqUpdate(0);
    
                                break;
                        }
                    }
                }
    
            }
    I think it's not the best Fix, but it's a fix
    I have testet it and I was first kicked out of the Hotel, but when I loadet the Room an second time, it worked perfectly...
    So it seems, that you are going to get kicked out of the hotel, but after this it will work ;)

    This was testet with BubbaEmulator by PinkFruit & Technik.Freak.
    I don't know if it will work with other Emus...


  2. #2
    swagggggg Livar is offline
    Grand MasterRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: [FIX][Uber] Room loading error

    Nice release.

  3. #3
    Sorcerer Supreme Mikehunt is offline
    Member +Rank
    Jun 2010 Join Date
    Look behind YouLocation
    332Posts

    Re: [FIX][Uber] Room loading error

    Does this delete the items from a room if it gives an error?

  4. #4
    Sorcerer Supreme flx5 is offline
    Member +Rank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    Re: [FIX][Uber] Room loading error

    Yes because it was unable to find the furniture in the furniture Table.

  5. #5
    Sorcerer Supreme DarkBreakX is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    364Posts

    Re: [FIX][Uber] Room loading error

    flx5 That's gay! Please code the Code better xD

    German: Wieso so gay? Verbesser den Code! Weil wenn es errors gibt sollte ned jeder Raum gelöscht werden bzw. geleert!

  6. #6
    Sorcerer Supreme toperwin is offline
    Member +Rank
    Jan 2009 Join Date
    313Posts

    Re: [FIX][Uber] Room loading error

    Sow, actually it's a fix for peeps who have a uncomplete sql database from nasty friends?

    btw, thanks ;) It is a fix ;p maybe not verry usefull for much persons, but it is a fix and it still works ;)

  7. #7
    Sorcerer Supreme flx5 is offline
    Member +Rank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    Re: [FIX][Uber] Room loading error

    Only the Bugfull furni will be deleted...
    This happens when some people update their Furnidata.txt, so maybe I'll find a posibility to set the base_id correct.

    I am going to make it better ;)

    But it's a start

  8. #8
    Sorcerer Supreme DarkBreakX is offline
    Member +Rank
    Apr 2009 Join Date
    GermanyLocation
    364Posts

    Re: [FIX][Uber] Room loading error

    You mean the catalogfix? Already released and works perfectly...

    -Slaxxer

  9. #9
    Sorcerer Supreme flx5 is offline
    Member +Rank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    Re: [FIX][Uber] Room loading error

    I know but I got the Problem after using it...

  10. #10
    ☮TAKU???? seanrom is offline
    Grand MasterRank
    Nov 2009 Join Date
    1,004Posts

    Re: [FIX][Uber] Room loading error

    its more and help or short tutorial but thanks for share with us!

  11. #11
    Newbie zakite0 is offline
    MemberRank
    Nov 2010 Join Date
    1Posts

    Re: [FIX][Uber] Room loading error

    Gracias me funciono muy bien :D hablo español lo siento si no me entienden de todos modos

    gracias¡¡¡

    in english xD

    Thank You¡¡

  12. #12
    Member HFpr0ducti0ns is offline
    MemberRank
    Dec 2010 Join Date
    United StatesLocation
    29Posts

    Re: [FIX][Uber] Room loading error

    i have that problem with my emulator + cms

  13. #13
    Sorcerer Supreme flx5 is offline
    Member +Rank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    Re: [FIX][Uber] Room loading error

    I want to help you, but I can't see anything on the image...

  14. #14
    Member HFpr0ducti0ns is offline
    MemberRank
    Dec 2010 Join Date
    United StatesLocation
    29Posts

    Re: [FIX][Uber] Room loading error

    please send a private message to me with your skype or msn :D



Advertisement