1. Green is the new black!


    The latest expansion for Cities: Skylines is now available! Green Cities includes over 200 new buildings, 100s of assets and much much more! Order your copy today!
    Be cool, go green!
    Dismiss Notice
  2. Happy holidays!


    The holidays are upon us and there has never been a better time to bag yourself a great deal! Enjoy great discounts on Stellar games but hurry, sale ends 02/01/18!
    Sale ends 02/01/18 23:59 CET!
    Dismiss Notice

  3. Wake the tiger!


    Waking the Tiger adds new gameplay options for all players, and has a special focus on the Asian front of the deadliest war in human history. Get your copy today!
    Included in the Season Pass!
    Dismiss Notice
  4. Paaaaaarty!


    PDXCon 2018 will be bigger, better and bolder than ever! Mark May 18th-20th in your calendar, we promise you PDXCon 2018 will be a smorgasbord of awesomeness!
    More information is coming "soon"!
    Dismiss Notice

[Linux] essential details (like zones, road previews) not rendered in game [HACK WORKAROUND]

Discussion in 'Support & Bug Reports' started by hurrah, Mar 16, 2015.

  1. feudikbenson Recruit

    Blog Entries:
    0
    Joined:
    Mar 10, 2015
    Messages:
    3
    Tried this brutal hack and ended up with:
    Code:
    ERROR: ld.so: object '/home/ruben/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
    I am running 64 bit arch on Intel laptop. 32/64-bit issue?

    And obviously I have no idea what I am doing....
     
  2. V10lator Second Lieutenant
    Cities in Motion 2 Cities: Skylines

    Blog Entries:
    0
    Joined:
    Mar 13, 2014
    Messages:
    137
    No, Radeon. I just thought it's the same cause it's Mesa, too, and even AndrewT's compendium thread for known fixes states (funny enough without even thinking about Intel) :
    //EDIT:

    This ERROR is there with every single game on steam, just ignore it. What exactly did you try?
     
  3. hurrah Private

    Blog Entries:
    0
    Joined:
    Mar 16, 2015
    Messages:
    13
    To make it clear for everyone, the mesa hack in this thread is for Intel integrated graphics only. Don't bother with it if you have (issues with) discrete graphics.
     
  4. MeinAccount Recruit
    Europa Universalis IV Europa Universalis IV: Rights of Man Stellaris Sign-up Stellaris Europa Universalis IV: Mare Nostrum Europa Universalis IV: Cossacks Europa Universalis IV: Common Sense Europa Universalis IV: El Dorado Cities: Skylines Europa Universalis IV: Res Publica Europa Universalis IV: Wealth of Nations Europa Universalis IV: Conquest of Paradise Europa Universalis IV: Art of War Stellaris: Leviathans Story Pack

    Blog Entries:
    0
    Joined:
    Mar 13, 2015
    Messages:
    9
    @feudikbenson I'm using 64 bit Ubuntu 14.04. Here are some more detailed instructions on how to get the game up and running.
    NOTE: This is only required for users with a single Intel graphics card!
    1. Download Mesa: http://www.mesa3d.org/download.html (e.g. ftp://ftp.freedesktop.org/pub/mesa/10.5.2/mesa-10.5.2.tar.xz)
    2. Download the patch: http://paste.debian.net/165023/
    3. Unpack the Mesa source
    4. Open a terminal and change to the source directory
    5. Apply the patch: patch < ~/Downloads/paste_165023
    6. Run: LIBGL_DEBUG=verbose glxinfo 2>&1 >/dev/null | grep so$
    7. If the output ends with "i965_dri.so", you'll need the i965 drivers
    8. Replace DIR with a path somewhere in your home directory and run the following command: ./configure --prefix=DIR --with-dri-drivers=i965 --with-gallium-drivers=""
    9. Run: make
    10. Run: make install
    11. Set the launch options to: LD_LIBRARY_PATH="DIR/lib:$LD_LIBRARY_PATH" %command%
    12. Enjoy the game :)
     
    • Helpful Helpful x 1
    • Agree Agree x 1
  5. tarator

    tarator Recruit

    Blog Entries:
    0
    Joined:
    Apr 1, 2015
    Messages:
    3
    YOU ARE MY HEROES! Thanks a lot! This hack also works great for me! (Intel HD 4000).
    @developers: Is there a chance that this can be fixed in the game?
     
    Last edited: Apr 9, 2015
  6. V10lator Second Lieutenant
    Cities in Motion 2 Cities: Skylines

    Blog Entries:
    0
    Joined:
    Mar 13, 2014
    Messages:
    137
    This sounds as if they use a different rendering path on Nvidia hardware (NvidiaGL) which seems to be Mesa compatible (this is somehow strange, Mesa is way more strict to the OpenGL standard than Nvidia). So in theory they could detect Mesa/Intel and just treat it the same way.

    BTW: Normally games using an extra Nvidia rendering path have the typical logo at startup:
    [​IMG]
    So I wonder why it's missing here and if the rendering path comes from Unity or the game itself.
     
  7. hurrah Private

    Blog Entries:
    0
    Joined:
    Mar 16, 2015
    Messages:
    13
    There is a less intrusive workaround that works for me with unpatched mesa. Use this environment variable in launch options to disable Unity workarounds:

    Code:
    UNITY_DISABLE_GRAPHICS_DRIVER_WORKAROUNDS=yes %command%
    
    Hat tip to @co_damsku for the suggestion.
     
    • Helpful Helpful x 3
    • Agree Agree x 1
  8. hurrah Private

    Blog Entries:
    0
    Joined:
    Mar 16, 2015
    Messages:
    13
    @AndrewT How about adding this to the known fixes thread as a workaround for running the game on Intel integrated graphics?
     
  9. feudikbenson Recruit

    Blog Entries:
    0
    Joined:
    Mar 10, 2015
    Messages:
    3
    Code:
    UNITY_DISABLE_GRAPHICS_DRIVER_WORKAROUNDS=yes %command%
    works for me too! Thanks!
     
  10. s0r00t

    s0r00t Recruit
    A Game of Dwarves Cities in Motion 2 Magicka

    Blog Entries:
    0
    Joined:
    Apr 2, 2015
    Messages:
    7
    Huzzah! It works!
     
  11. Mannerov Recruit

    Blog Entries:
    0
    Joined:
    Apr 11, 2015
    Messages:
    2
    +1 here too. I guess that info can help the devs find the true fix by passing the info to unity in the game directly
     
  12. s0r00t

    s0r00t Recruit
    A Game of Dwarves Cities in Motion 2 Magicka

    Blog Entries:
    0
    Joined:
    Apr 2, 2015
    Messages:
    7
    I still have no pics on map choosing menu, and the resources GUI under never changed...
    Any fix? Thx!
     
  13. MeinAccount Recruit
    Europa Universalis IV Europa Universalis IV: Rights of Man Stellaris Sign-up Stellaris Europa Universalis IV: Mare Nostrum Europa Universalis IV: Cossacks Europa Universalis IV: Common Sense Europa Universalis IV: El Dorado Cities: Skylines Europa Universalis IV: Res Publica Europa Universalis IV: Wealth of Nations Europa Universalis IV: Conquest of Paradise Europa Universalis IV: Art of War Stellaris: Leviathans Story Pack

    Blog Entries:
    0
    Joined:
    Mar 13, 2015
    Messages:
    9
    @hurrah That workaround is even better! :)
    @s0r00t I'm having the same problem with both workarounds.
     
  14. s0r00t

    s0r00t Recruit
    A Game of Dwarves Cities in Motion 2 Magicka

    Blog Entries:
    0
    Joined:
    Apr 2, 2015
    Messages:
    7
    I saw on another topic that you had to rename a folder, but dunno which folder...
    (also, how did you register C:S to your paradox account? I can't ;-; )
     
  15. MeinAccount Recruit
    Europa Universalis IV Europa Universalis IV: Rights of Man Stellaris Sign-up Stellaris Europa Universalis IV: Mare Nostrum Europa Universalis IV: Cossacks Europa Universalis IV: Common Sense Europa Universalis IV: El Dorado Cities: Skylines Europa Universalis IV: Res Publica Europa Universalis IV: Wealth of Nations Europa Universalis IV: Conquest of Paradise Europa Universalis IV: Art of War Stellaris: Leviathans Story Pack

    Blog Entries:
    0
    Joined:
    Mar 13, 2015
    Messages:
    9
    Renaming a directory doesn't sound like it could resolve such an issue. If it was related to inconsistent capitalization, shouldn't it also affect mac users?
    I registered City Skylines before they switched the forums software. Have you tried it here?
     
  16. s0r00t

    s0r00t Recruit
    A Game of Dwarves Cities in Motion 2 Magicka

    Blog Entries:
    0
    Joined:
    Apr 2, 2015
    Messages:
    7
    Some thing related to PNG (afaik PNG lib) cannot be loaded, because there's an error in the folder. I'll try something.
    And there's no "Cities: Skylines" in the redeem code panel :/
     
  17. tarator

    tarator Recruit

    Blog Entries:
    0
    Joined:
    Apr 1, 2015
    Messages:
    3
    also works for me! great!
     
  18. poolbewohner Recruit

    Blog Entries:
    0
    Joined:
    Apr 10, 2015
    Messages:
    1
    Hi, for me adding

    Code:
    LD_PRELOAD=/lib/x86_64-linux-gnu/libz.so.1
    to the launch options did the trick to have pictures in the map choosing menu (and at various other places).
    I'm using 64-bit Ubuntu and depending on your distribution this file could be located somewhere else. So make sure that this file actually exists. It seems like the game tries to load an incompatible libz.so from the Steam installation without this parameter (but this is spure speculation :))

    Here are my complete launch options:
    Code:
    LD_PRELOAD=/lib/x86_64-linux-gnu/libz.so.1 UNITY_DISABLE_GRAPHICS_DRIVER_WORKAROUNDS=yes %command%
    And also thousand thanks @hurrah, with your workaround I was finally able to play this game!
     
  19. MeinAccount Recruit
    Europa Universalis IV Europa Universalis IV: Rights of Man Stellaris Sign-up Stellaris Europa Universalis IV: Mare Nostrum Europa Universalis IV: Cossacks Europa Universalis IV: Common Sense Europa Universalis IV: El Dorado Cities: Skylines Europa Universalis IV: Res Publica Europa Universalis IV: Wealth of Nations Europa Universalis IV: Conquest of Paradise Europa Universalis IV: Art of War Stellaris: Leviathans Story Pack

    Blog Entries:
    0
    Joined:
    Mar 13, 2015
    Messages:
    9
    This is getting better and better :)
    Thanks for sharing @poolbewohner !
     
  20. V10lator Second Lieutenant
    Cities in Motion 2 Cities: Skylines

    Blog Entries:
    0
    Joined:
    Mar 13, 2014
    Messages:
    137
    @poolbewohner I tried a similar workaround (renaming the files in the runtime, so also forcing the game to use the system libraries) some time back and while it works in most cases it might crash the game randomly at the main menu (which is caused by the steam workshop images scrolling around at the right side of the main menu. If there's "a bad one" it will crash). So if it crashes just remove the workaround for some time. ;)

    More informations on that:
    https://forum.paradoxplaza.com/foru...itors-completely-broken.849604/#post-19167980
    https://forum.paradoxplaza.com/foru...kshop-update-broke-game.851478/#post-19187741
    https://forum.paradoxplaza.com/foru...ux-sigsegv-on-main-menu.850215/#post-19187757

    I'm just posting all this links here as the bug reports are splitted all around the forums and I think CO will have a much easier reading when everything is collected at one place (here, for example).
     

Share This Page