Skybird Groups & Rooms Issue

Results 1 to 16 of 16
  1. #1
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Skybird Groups & Rooms Issue

    Hello,


    Im running skybird released by Johno, but i have come across 2 issues one of them i know how to fix the other i don't.
    In the emu it says Error in Query Caught, when i check the MYSQLerror logs i come across these two issues;


    Groups;
    Error in query:
    INSERT INTO groups (`name`, `desc`,`badge`,`owner_id`,`created`,`room_id`,`colour1`,`colour2`) VALUES(@[USER=7391]name[/USER], @desc, @badge, 2, UNIX_TIMESTAMP(), 75,'bd2121','ffffff')
    MySql.Data.MySqlClient.MySqlException (0x80004005): Incorrect integer value: 'bd2121' for column 'colour1' at row 1
    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
    at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
    at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteScalar()
    at Database_Manager.Database.Session_Details.QueryAdapter.insertQuery() in e:\Documents\Emulator [L]\Emulator [L]\Plus Emulator\DatabaseManager\Database_Manager\Database\Session_Details\QueryAdapter.cs:line 164


    Which i have no idea how to fix but i have the feeling its somthing similer to this issue,


    Rooms;
    This happens when a user moves furni, picks up furni, rotates furni & places furni.
    Error in query:
    UPDATE items SET user_id = 2, room_id='' WHERE id = 4334;UPDATE items SET user_id = 2, room_id='' WHERE id = 4333;UPDATE items SET user_id = 2, room_id='' WHERE id = 4332;UPDATE items SET user_id = 2, room_id='' WHERE id = 4331;UPDATE items SET user_id = 2, room_id='' WHERE id = 4335;UPDATE items SET user_id = 2, room_id='' WHERE id = 4337;UPDATE items SET user_id = 2, room_id='' WHERE id = 4336;UPDATE items SET user_id = 2, room_id='' WHERE id = 0
    MySql.Data.MySqlClient.MySqlException (0x80004005): Incorrect integer value: '' for column 'room_id' at row 1
    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
    at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
    at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
    at Database_Manager.Database.Session_Details.QueryAdapter.runQuery() in e:\Documents\Emulator [L]\Emulator [L]\Plus Emulator\DatabaseManager\Database_Manager\Database\Session_Details\QueryAdapter.cs:line 193
    Error in query: UPDATE items SET user_id = 33, room_id='' WHERE id = 5345
    MySql.Data.MySqlClient.MySqlException (0x80004005): Incorrect integer value: '' for column 'room_id' at row 1
    at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
    at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int32& insertedId)
    at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
    at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
    at MySql.Data.MySqlClient.MySqlCommand.ExecuteNonQuery()
    at Database_Manager.Database.Session_Details.QueryAdapter.runQuery() in e:\Documents\Emulator [L]\Emulator [L]\Plus Emulator\DatabaseManager\Database_Manager\Database\Session_Details\QueryAdapter.cs:line 193



    This one i researched and found this said by Sledmore,
    Just CTRL + F for all results that come up for 'room_id='' WHERE' and change them to '`room_id` = '0' WHERE'.

    But my problem is i don't know were to look for that.


    Any help with both these issues would be greatful, thanks.
    Josh

    - - - Updated - - -

    I searched all the files for 'room_id='' WHERE' and could find nothing.
    Last edited by Diddy; 04-01-14 at 11:47 AM.


  2. #2
    Enthusiast feyestan is offline
    MemberRank
    Jan 2009 Join Date
    HollandLocation
    44Posts

    Re: Skybird Groups & Rooms Issue

    Disable MySQL strict mode and the errors will go away I guess.

  3. #3
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by feyestan View Post
    Disable MySQL strict mode and the errors will go away I guess.
    Iv'e Already done that.

  4. #4
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Bump need this sorted asap, ill be willing to pay if anyone can actually fix these.

  5. #5
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: Skybird Groups & Rooms Issue

    Where is the source for your emu, i have a few minutes so i can take a look....

  6. #6
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by leenster View Post
    Where is the source for your emu, i have a few minutes so i can take a look....
    Its on my vps a private one given to me by Boom Would you like to tv?

  7. #7
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by Diddy8000 View Post

    I searched all the files for 'room_id='' WHERE' and could find nothing.
    search for UPDATE ITEMS instead and you will find them


    setting the room_id column to allow a null value in the database might also fix the problem but im not a 100% sure

  8. #8
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by leenster View Post
    search for UPDATE ITEMS instead and you will find them


    setting the room_id column to allow a null value in the database might also fix the problem but im not a 100% sure
    Searched & nothing found
    also think the table is already allowing null http://gyazo.com/85cff88ab94d01849fc53d0821647cec

  9. #9
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by Diddy8000 View Post
    Searched & nothing found
    also think the table is already allowing null http://gyazo.com/85cff88ab94d01849fc53d0821647cec
    make sure the default value for that field is set to NULL

  10. #10
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by leenster View Post
    make sure the default value for that field is set to NULL
    Where? :P

  11. #11
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: Skybird Groups & Rooms Issue

    for the field room_id in the items table.

  12. #12
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by Diddy8000 View Post
    Where? :P
    we can do TV for a minute if you want

  13. #13
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by leenster View Post
    we can do TV for a minute if you want
    Yeah Sure Reply When Your Free Man.

  14. #14
    [̲̅$̲̅(̲̅1̲̅)̲̅$ ̲̅] leenster is offline
    MemberRank
    May 2008 Join Date
    KanaadaLocation
    992Posts

    Re: Skybird Groups & Rooms Issue

    backup your db and then try this..... (untested)

    ALTER TABLE items CHANGE room_id room_id INT DEFAULT NULL;

  15. #15
    Account Upgraded | Title Enabled! Diddy is offline
    MemberRank
    Jun 2011 Join Date
    United KingdomLocation
    275Posts

    Re: Skybird Groups & Rooms Issue

    Quote Originally Posted by leenster View Post
    backup your db and then try this..... (untested)

    ALTER TABLE items CHANGE room_id room_id INT DEFAULT NULL;
    Did that, Still no change.

  16. #16
    is it me or is it just .. duckietm is offline
    MemberRank
    Oct 2010 Join Date
    339Posts

    Re: Skybird Groups & Rooms Issue

    I am having the same problem, but if i look in the DB Colour1 and Colour2 in groups are set to INT(11) this will not allow to insert 'bd2121'.

    So we Changed it to VARCHAR(255) but that will not allow you to login anymore :
    PHP Code:
    Bug duing user loginSystem.InvalidCastExceptionSpecified cast is not valid.
       
    at Silverwave.HabboHotel.Groups.GroupManager.GetGroup(UInt32 GroupId)
       
    at Silverwave.HabboHotel.Rooms.RoomData.Fill(DataRow Row)
       
    at Silverwave.HabboHotel.Rooms.RoomManager.FetchRoomData(UInt32 RoomIdDataRow dRow)
       
    at Silverwave.HabboHotel.Users.UserDataManagement.UserDataFactory.GetUserData(String sessionTicketString ipByteerrorCode)
       
    at Silverwave.HabboHotel.GameClients.GameClient.tryLogin(String AuthTicket
    so there is where the error is The group.cs & groupmanager.cs have color1 & color2 set to INT wich do not allow the characters to be read :(

    No how can we fix this .........



Advertisement