Skip to content

BGEE on WINE for GNU/Linux

tomty89tomty89 Member Posts: 47
An unwelcome title, is it? LOL

Well basically I get the game run on WINE by using a...perhaps illegal, but very official way. No cracks, no Windows.
Anyway that's not the point of this post. The problem I have come across is, I can get into the game, very smoothly, but what I can't get are all those damn good pre-rendered backgrounds. GUI, characters, cursors, flying birds are all fine.

I did see someone says they run the game on WINE (perfectly) fine. Is this because I haven't get through the holy DRM (I saw a decrypt.dll there in the game folder)? Or it's just a WINE setting/dependency issue?

P.S. Just to mention that I did pay twenty bucks to buy the game, though I recognize that support in WINE is not included. But I just don't understand why the evil .NET things is needed even for the standalone installer. Yet another kind of DRM, maybe?
Post edited by tomty89 on

Comments

  • bbearbbear Member Posts: 1,180
    I think you are talking about WINE for Ubuntu linux. I also hope there is support for linux OS since I recently installed the Linux OS after my window 7 OS crashed in my laptop.
  • tomty89tomty89 Member Posts: 47
    edited December 2012
    After seeing you post, I finally understand why there is the "wine joke".

    Anyway, what I've mentioned seems not to be the only problem. Another is that I can save but not load. Empty load slots. I saw save folders there but I didn't check if there was any save files inside. LOL

    So I just give up and deleted all stuff. It's hard for me to figure all these out without a Windows installation, which I would probably NEVER get back into ANY of my machine. Hope that the Linux version would pop out someday. After all I am having great fun with the orginal from GOG.
  • bbearbbear Member Posts: 1,180
    I suggest you search google on how other ppl dealt with the save/load problem. Frankly, I can play bg2 on my linux laptop with wine, but the game is laggy since wine is after all an emulator for window programs (although wine stands for not a window emulator).
  • tomty89tomty89 Member Posts: 47
    edited December 2012
    I can hardly google ANY technical solution for BGEE sor far, maybe I am not skilful enough.

    Playing the originals in WINE is totally fine for me. Only for BG2 you need a better machine/graphic card, but basically it's the same case in Windows. Other than that, it could be some setting/dependency issue. Make sure you have the 32-bit DRI things installed.
  • russinkungenrussinkungen Member Posts: 1
    edited December 2012
    Got the same issue here, no background. Only white, and a gray field of vision. Been googling like a crazy person but unfortunately in vain. I'm thinking it's related to my Intel HD card not being supported so the logical question for me is: Are you running on Intel HD? :)

    Edit: might as well mention that I'm running the cracked release by skidrow. Bought the game though but as you mentioned the Beamdog-launcher wasn't too Linux-friendly. Also I'm running Lubuntu if that's of any use for you.
  • lurimaxlurimax Member Posts: 28
    There will be an official version for Linux in not too long. Just keep your pants on :p
  • tomty89tomty89 Member Posts: 47
    edited December 2012
    I am using an ATI Radeon. Perhaps we got a different issue. I thought it could be a dependency issue later after some other tests with wine, especially while my distro is Arch. But then I failed to get the game again through that "official but perhaps illegal" way. And I can't rule out anything since I also got the load/save problem.

    I am waiting. But even if there would be one, I can't be sure if it is a good one yet. Please don't ask me to install mono. (While I think this is probably going to happen.) Stick to those universal and up-to-date libraries. Don't ask me to get it from Ubuntu Store. LOL
  • CuritaCurita Member Posts: 7
    Hi! I'm also having the same problems (I'm on archlinux x86_64, with an intel 4000 gpu).
    I've got both problems: black background while playing (Or white background with some shadows if I set 'Graphics', 'OpenGL Version', '1' in the .ini config), and the load/save problem.

    I tried with the latest git version of the intel drives (xf86-video-intel-git in AUR) and mesa (mesa-git) but there was no difference. I'm also thinking I'm missing some library, but there's no dependency error when I'm playing (Maybe there's some other log?).

    I'm going to try in an ubuntu partition and see if anything changes.
  • tomty89tomty89 Member Posts: 47
    edited December 2012
    My guess now is the DRM, which requires mono. Did you have mono installed (both in Arch and when you start wine for the first time)?
    Actually I got the game by using the torrent only. But I doubt that that part could run standalone without those those files installed by the installer.
    I think I've been misled by some posts which states that the game itself don't need .net stuff. I still need some time to test it. Good luck for me. LOL
  • tomty89tomty89 Member Posts: 47
    fixme:win:EnumDisplayDevicesW ((null),0,0x32f9b4,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW (L"\\\\.\\DISPLAY1",0,0x32f9b4,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW (L"\\\\.\\DISPLAY1",1,0x32f9b4,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW ((null),1,0x32f9b4,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW ((null),0,0x32f9b4,0x00000000), stub!
    fixme:win:EnumDisplayDevicesW ((null),1,0x32f9b4,0x00000000), stub!
    fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList
    fixme:imm:ImmReleaseContext (0x10068, 0x12ad38): stub
    fixme:ole:CoCreateInstance no instance created for interface {3e90ade3-7594-4cb0-bb58-69628f5f458c} of class {529a9e6b-6587-4f23-ab9e-9c7d683e3c50}, hres is 0x80004002
    fixme:imm:NotifyIME NI_CLOSECANDIDATE
    err:msctf:ThreadFocusHookProc Hook proc but no ThreadMgr for this thread. Serious Error
    AL lib: ReleaseALC: 1 device not closed

    These are what I got from running wine Baldur.exe
  • CuritaCurita Member Posts: 7
    I tried the same .iso in a 64bits ubuntu an it runs fine :/ But the wine apt-get package has more dependencies. so I installed all opt dependencies of wine in arch. I tried SKIDROW crack version (sorry guys, but I'm running out of ideas). I also got mono installed in my arch partition, and there's no difference.

    (Are you in a 32 or 64 bits system? Maybe there's some 32/64bits incorrect use of libraries, I don't know).

    I also got the same log message.
  • CuritaCurita Member Posts: 7
    Actually, ubuntu's log has not this line: err:msctf:ThreadFocusHookProc Hook proc but no ThreadMgr for this thread. Serious Error.

    My arch's log has that line. I'm going to try some more things.
  • tomty89tomty89 Member Posts: 47
    I am in a 64bit. Are you saying that you can run BGEE successfully in Ubuntu?
  • CuritaCurita Member Posts: 7
    Yes. Actually, I just tried and I can run it successfully in 32 bits Arch (With an nvidia gpu, but i think the video card it's not the problem). So i'm guessing we're missing some lib32 dependency in the multilib repository, or some of the lib32 dependencies are broken.

    With the 32bits arch, I narrow these required libraries when running the game (I looked in the opened files by the process):

    alsa-lib
    glibc 2.16.0-5
    libogg 1.3.0-1
    libvorbis 1.3.3-1
    flac 1.2.1-3
    libsndfile 1.0.25-2
    dbus 1.6.8-6
    libpulse 2.1-1
    json-c 0.9-1
    libpulse 2.1-1
    gcc-libs 4.7.2-2
    libvorbis 1.3.3-1
    nvidia-utils 310.19-1
    libxfixes 5.0-2
    libxcursor 1.1.13-1
    libxi 1.6.1-1
    libxcomposite 0.4.3-2
    libxrandr 1.4.0-1
    libxcb 1.9-1
    util-linux 2.22.1-3
    libice 1.0.8-1
    libx11 1.5.0-1
    libxext 1.3.1-1
    bzip2 1.0.6-4
    freetype2-infinality 2.4.10-1
    libasyncns 0.8-4
    nvidia-utils 310.19-1
    openal 1.14-1
    libxrender 0.9.7-1
    zlib 1.2.7-1
    libxdmcp 1.1.1-1
    libxxf86vm 1.1.2-1
    libsm 1.2.1-1
    libxinerama 1.1.2-1
    libxau 1.0.7-1
    wine 1.5.18-1

    (Nvidia drivers, pulseaudio and infinality are obviously optional).

    Currently I can't test anymore with the 64bits arch (It's in a laptop that run out off battery, and I forgot the charger in a friend's house, lucky me). When I get it I want to check if the game it's using all those libraries or their corresponding 32 bit version.

    Sorry for the delay, I think we're in different timezones :P
  • tomty89tomty89 Member Posts: 47
    It seems to me that what I don't got is only lib32-libxcomposite.
    But then I would like to ask, can you save successfully in Ubuntu or 32bit Arch? (By successfully I mean you can load it again) Because that is obviously not something to do with xorg.
    It's fine. I leave as soon as I post what I want to post. I won't wait for you. :P
  • CuritaCurita Member Posts: 7
    Ubuntu can load saved games, but that's not the case in the 32bits Arch. (Although both address the black background issue).

    I looked into the Ubuntu dependecies:
    libasyncns0:i386
    libc6:i386
    libdbus-1-3:i386
    libdrm-intel1:i386
    libdrm2:i386
    libexpat1:i386
    libflac8:i386
    libfontconfig1:i386
    libfreetype6:i386
    libgcc1:i386
    libgl1-mesa-dri:i386
    libgl1-mesa-glx:i386
    libglapi-mesa:i386
    libice6:i386
    libjson0:i386
    libogg0:i386
    libopenal1:i386
    libpciaccess0:i386
    libpulse0:i386
    libsm6:i386
    libsndfile1:i386
    libstdc++6:i386
    libtxc-dxtn-s2tc0:i386
    libuuid1:i386
    libvorbis0a:i386
    libvorbisenc2:i386
    libwrap0:i386
    libx11-6:i386
    libx11-xcb1:i386
    libxau6:i386
    libxcb-glx0:i386
    libxcb1:i386
    libxcomposite1:i386
    libxcursor1:i386
    libxdamage1:i386
    libxdmcp6:i386
    libxext6:i386
    libxfixes3:i386
    libxi6:i386
    libxinerama1:i386
    libxrandr2:i386
    libxrender1:i386
    libxxf86vm1:i386
    wine1.4
    wine1.4-i386
    zlib1g:i386

    I'll try to search the corresponding archlinux packages, but they look very similar to the 32bits arch dependecies. :/
  • tomty89tomty89 Member Posts: 47
    edited December 2012
    For the save/load issue, I can't believe that it's kind of the same as the one once happened to me in bg2, which could be found in wine's appdb. (default.tot issue)

    But I don't know the real reason since it seems there is only workaround but no explanation. I don't even know how the workaround could pop out.

    However, it only happened to me for some while. I don't even need to use that workaround now, no matter for the gog version or the original 4 cd-rom version. What changes that? No idea.

    But one thing seems different. The save time is messed up. Any problem other than that with the saves? I don't know. I can't play the game with black background.
  • dimakeydimakey Member Posts: 19
    Skidrow version works perfectly with wine 1.4.1 on Debian testing with Nvidia geforce gtx 460. But black background (or white with 'Graphics', 'OpenGL Version', '1') on my netbook with intel gpu.
  • CuritaCurita Member Posts: 7
    I've been looking for similar errors on wine games and i found a solution (It works for me):

    Set 'force_s3tc_enable=true' before you run the game. It should solve the black background issue.

    I still haven't found a solution for the save game problem.
  • tomty89tomty89 Member Posts: 47
    edited January 2013
    I've actually thought about it might be related to s3tc because the libtxc-dxtn package on your list above of Ubuntu but not Arch (In Arch, it's of no one's dependency), but I am not sure if I have tried to install it to see if it could solve the problem.

    However if you manage to solve it only by setting the env var, maybe it has nothing to do with the package. Anyway, it's odd that only Wine in 64bit Arch doesn't work. (But it works in 64bit Ubuntu, right?)

    Currently, I can't help in testing anything because I have not keep BGEE in my machine and the torrent is horribly slow. Yet it's still thrilled to heard that you found a solution.

    By the way, I have been using an ATI Evergreen with open source driver. Don't know if it matters.

    About the save issue, I have completely no idea. Mysterious issue, mysterious workaround. Maybe we should ask the devs here what exactly does that default.tot do.
  • CuritaCurita Member Posts: 7
    Ok, I found a workaround to the save problem. I don't know really why it works (I guess it's something with the initial AutoSave but I'm not sure).

    * First get someone else save files (I used these http://www.2shared.com/complete/PTmNudV0/000000133-Upload.html).

    * Copy the folder in the save directory (~/Baldur's Gate - Enhanced Edition/save).

    * Start the game and load that save.

    * Go to Settings -> Save, and save the game on an empty slot.

    And that's it. Both saves can be deleted afterwards, and you'll be able to start (and save) a new game.
  • HesseHesse Member Posts: 27
    lurimax said:

    There will be an official version for Linux in not too long. Just keep your pants on :p

    Is that true? That would be great...
  • tomty89tomty89 Member Posts: 47
    edited January 2013
    FInally I got BGEE again.

    In my tests, force_s3tc_enable=true doesn't work no matter it's set in terminal before running the game or in .drirc manually (There isn't an option for it in driconf for my ATI Cypress/Evergreen).
    Yet installing lib32-libtxc_dxtn does make the game work. No extra setting is needed.
    According to http://www.x.org/wiki/RadeonFeature it means that BGEE need full S3TC (But it could be also the case that S3TC decompression is not build into the drivers at all in Arch).
    S3TC is some sort of not-so-good patented tech, it could be one of the reasons which cause the troubles in Windows too. Honestly I don't really like the choices of the devs here. dotNET, S3TC, perhaps some more...wonder if they are necessary.

    And then for the save issue. I don't know if I should be glad or sad. It's gone mysteriously again just like the one in BG2. No workaround, no manual fix, just gone. I am just kind of worried that one day it would happen again. But I did had reinstalled the whole system before and everything is kind of clean and up-to-date.
    It seems to me that in both cases, the auto-generated save folder is named "Save" when the bug is there, but when it's not, the folder is named "save". But I am not so sure about it. Just some blur memory. Renaming the folder doesn't reproduce the bug too.

    Another thing I found interesting is, I can't run the Baldur.exe in terminal with the full path generated by dragging it's icon to the terminal. An error message would pop up. I have to cd to its location and run "wine Baldur.exe". Weird that it's not the case for other programs.

    @Heese It's true. But be prepared to WAIT.
    Post edited by tomty89 on
  • ivanovioivanovio Member Posts: 6
    edited February 2013
    works for me on debian SID with mesa 8 and wine 1.5.22 (liquorix). Just don't forget to install libtxc_dxtn package for the background textures rendering (i386 package for x64 users with x32 wine version, of course)

    http://appdb.winehq.org/objectManager.php?sClass=version&iId=27341
  • xinleibirdxinleibird Member Posts: 1
    Easy way to save it...... in a terminal, cd the game path, run "LANG=en_US.UTF-8 wine Baldur.exe", and now can save file natural.
  • AnduinAnduin Member Posts: 5,745
    BG:EE will work fine but only using the 32 bit architecture. 64 was a complete meltdown running BG:EE on my comp. Check out this thread. It will explain some issues and how they were solved.

    http://forum.baldursgate.com/discussion/12905/a-workable-solution-to-intel-graphic-chipset-problems

  • hummer010hummer010 Member Posts: 95
    I've been running BG:EE with wine on a 64-bit system without any problems. I'm running Ubuntu 12.10 with multiarch enabled.
Sign In or Register to comment.