[TUT] Fix the stacking problem with your furniture!

Results 1 to 9 of 9
  1. #1
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    [TUT] Fix the stacking problem with your furniture!

    Especially people who run a Europian server or host their hotel on their Europian PC/Laptop have the problem that furniture doesn't keep it's place where it's stacked once a room is reloaded. There can be two factors which cause this problem:
    1. Your MySQL is in strict mode. (causes TRUNCATED errors)
    2. Your decimal notation is a , instead of a .

    So how the 2@(*&*(# are we going to solve this issue? Well, it's pretty simple.
    1. Run this SQL in your database:
    PHP Code:
    SET @@global.sql_mode ''
    And restart your MySQL and emulator. After you've done this, you should check if it worked!!!11!!
    Run this SQL in your database:
    PHP Code:
    SELECT @@global.sql_mode
    If your result looks something like this, you're allright, YEAH YEAH YEAH.
    If it didn't, then continue with reading this step.
    Go to C:\Program Files\MySQL\MySQL Server 5.1 and click on the my.ini file. Hit CTRL+F and search for 'sql-mode'. It should come up with:
    PHP Code:
     sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" 
    Change that to:
    PHP Code:
     sql-mode="NO_STRICT_TRANS_TABLES, NO_ENGINE_SUBSTITUTION" 
    Hit save, restart your MySQL and your emulator and you're fine!
    2. Go to start -> Control panel -> View by: small icons -> Region(some servers may call it Region & Language) -> Set the Format: to English(United States).
    Restart your WEBSERVER (not your whole server, no no no, that’s not necessary) and your emulator and you’re done.
    (This is not going to affect the language your keyboard is set to or your Windows is set to)


    I hope this was a helpful tutorial for you guys, if you need some extra help, make sure to leave a reaction! (:


  2. #2
    Apprentice XenonS is offline
    MemberRank
    Jan 2013 Join Date
    SNOWLANDLocation
    18Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Thanks guy!

  3. #3
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Quote Originally Posted by XenonS View Post
    Thanks guy!
    As a matter of fact, I'm not a guy, but you're welcome. :P

  4. #4
    Proficient Member Matthew-the-man is offline
    MemberRank
    Aug 2009 Join Date
    Canada, OntarioLocation
    175Posts

    ! Re: [TUT] Fix the stacking problem with your furniture!

    Nice, Tutorial but this didn't work for me after I changed the sql mode it won't let me start the server now.... It says

    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 3 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 2 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 1 user: 'root'

    Also, I'm having some issues with my PHPRetro when somebody register's it doesn't save their account in the Database... And I can't seem to start my HoloGraph...

    This what I get when I try starting my Emulator!

    untitled.png1.png

    Thanks,
    Matthew

  5. #5
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Quote Originally Posted by Matthew-the-man View Post
    Nice, Tutorial but this didn't work for me after I changed the sql mode it won't let me start the server now.... It says

    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 3 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 2 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 1 user: 'root'

    Also, I'm having some issues with my PHPRetro when somebody register's it doesn't save their account in the Database... And I can't seem to start my HoloGraph...

    This what I get when I try starting my Emulator!

    untitled.png1.png

    Thanks,
    Matthew
    I'm sorry to disappoint you, but I'm really not into Holograph Emulator, I don't know the solution to your problems. ):

  6. #6
    Proficient Member Matthew-the-man is offline
    MemberRank
    Aug 2009 Join Date
    Canada, OntarioLocation
    175Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Quote Originally Posted by BaasHotel View Post
    I'm sorry to disappoint you, but I'm really not into Holograph Emulator, I don't know the solution to your problems. ):
    Aw :(

  7. #7
    Novice Tim Jwzz is offline
    MemberRank
    Feb 2013 Join Date
    3Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    need your a backup??? than can you backup import or maybe install the same version on your PC and extract the. ini file from that folder from arte rest on your vps and then you do differently than those that mysql does;)

  8. #8
    Gaby is offline
    MemberRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Quote Originally Posted by Tim Jwzz View Post
    need your a backup??? than can you backup import or maybe install the same version on your PC and extract the. ini file from that folder from arte rest on your vps and then you do differently than those that mysql does;)
    Ehm.. What did you say?

  9. #9
    Account Upgraded | Title Enabled! flx5 is offline
    MemberRank
    Nov 2009 Join Date
    GMT+1Location
    294Posts

    Re: [TUT] Fix the stacking problem with your furniture!

    Quote Originally Posted by Matthew-the-man View Post
    Nice, Tutorial but this didn't work for me after I changed the sql mode it won't let me start the server now.... It says

    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 3 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 2 user: 'root'
    [Warning] C:/Program Files/MySQL/MySQL Server 5.5/bin\mysqld: Forcing close of thread 1 user: 'root'

    Also, I'm having some issues with my PHPRetro when somebody register's it doesn't save their account in the Database... And I can't seem to start my HoloGraph...

    This what I get when I try starting my Emulator!

    untitled.png1.png

    Thanks,
    Matthew
    For the first problem, perhaps this helps:
    MySQL: Forcing close of thread 756 user: 'root'? - Yahoo! Answers
    If it doesn't, just backup your database and reinstall MySQL completly, but select to disable Strict Mode when installing...

    Just had a look at Holograph and the funny thing is, the column minrank is a integer and not a boolean, so I am really confused what they are trying to do by converting a Integer into an Boolean and then into a Byte?!
    (EDIT1: Just looked it up, it's a tinyint, so it's probably the MySQL equivalent of an boolean, but I don't know how the required rank is being set???)
    (Perhaps it's just the info that THERE IS a minrank, but not which???)

    So I just had a look at the MSDN and found this:
    Holograph was originally compiled against a .NET Framework <= 3.5, and until 3.5 the bool.parse function did the following:
    If the String is equivalent to the String "true" then the function returned true, else false.

    Since .NET 4 it returns true if the String is equals "true" and false if the string is equals "false".
    But if the string is neither "true" nor "false" the function just fails and throws an exception.

    So just replacing
    Code:
    objPage.minRank = Convert.ToByte(bool.Parse(pageData[1]));
    (line 73 in Source/Managers/catalogueManager.cs at my version)

    with
    Code:
    objPage.minRank = Convert.ToByte((pageData[1] == "1"));
    should do the trick

    EDIT2: Just found out what they are doing and this leads to the fact, that my upper solution is wrong.
    The devlopers of Holograph tread the tinyint as a (U)INT8, which is equivalent to exactly one byte...
    Going to dig further to find a solution...

    EDIT3:
    Found it, and it was quite easy, but I can't test right now, as I haven't got any dcr's anymore...
    You will have to replace
    Code:
    objPage.minRank = Convert.ToByte(bool.Parse(pageData[1]));
    (line 73 in Source/Managers/catalogueManager.cs at my version)
    with

    Code:
    objPage.minRank = Convert.ToByte( Int32.Parse(pageData[1]));
    Which is quite funny, because now we're parsing a String into a Int32 and from there back into a UInt8/byte
    Last edited by flx5; 28-09-13 at 11:23 PM.



Advertisement