Mount&Blade in linux

Rongar

Master Knight
M&BWB
Best answers
0
Interesting.
I tried to change dir to home and run with  wineprefix. I never did it before.
It didn't run, but error log when I run with wineprefix differ from error log when I run directly. The first is the same as JoaquimP gave above. The second looks similar, but it differs.

Code:
[email protected]:~/.wine/drive_c/Program Files/Mount&Blade> wine mount\&blade.exe
fixme:reg:GetNativeSystemInfo (0x9352c56) using GetSystemInfo()
fixme:toolhelp:CreateToolhelp32Snapshot Unimplemented: heap list snapshot
fixme:thread:NtSetInformationThread info class 17 not supported yet
fixme:imagehlp:CheckSumMappedFile (0xa5f0000, 4370428, 0x93b5ba6, 0x93b5baa): stub
fixme:debugstr:CheckRemoteDebuggerPresent (0xffffffff)->(0x93bc352): Stub!
wine: Unhandled page fault on read access to 0x0a4e1ca0 at address 0xa31682e (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x0a4e1ca0 in 32-bit code (0x0a31682e).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
 EIP:0a31682e ESP:09abf244 EBP:09abf2d0 EFLAGS:00210246(   - 00      -RIZP1)
 EAX:00000000 EBX:0abb1e20 ECX:00000000 EDX:00000010
 ESI:0a4e1ca0 EDI:0b84fee0
Stack dump:
0x09abf244:  0b22d198 0a4c4880 000003d8 00000000
0x09abf254:  000000c8 000000c8 00000258 00180001
0x09abf264:  0a5b0000 00000000 000000c8 000000c8
0x09abf274:  00000258 00180001 0a5b0000 00000000
0x09abf284:  0019a108 09abf2b8 7ebde278 001474c8
0x09abf294:  0000006c 000003cc 0a4c4880 000003e8
Backtrace:
=>1 0x0a31682e in skinmagic (+0x1682e) (0x09abf2d0)
  2 0x0a31e590 in skinmagic (+0x1e590) (0x09abf300)
  3 0x0a324a2c in skinmagic (+0x24a2c) (0x09abf324)
  4 0x0a31b180 in skinmagic (+0x1b180) (0x09abf384)
  5 0x0a31a0b9 in skinmagic (+0x1a0b9) (0x09abf3bc)
  6 0x0a30ae1f in skinmagic (+0xae1f) (0x09abf3dc)
  7 0x004c7680 in mount&blade (+0xc7680) (0x00400000)
  8 0x00000003 (0x00905a4d)
  9 0x00000000 (0x00000000)
0x0a31682e: movw        0x0(%esi),%dx
Modules:
Module  Address                 Debug info      Name (95 modules)
PE        400000- 96c8000       Export          mount&blade
PE       9fa0000- a036000       Deferred        fmod
PE       a040000- a2a7000       Deferred        d3dx9_31
PE       a300000- a38b000       Export          skinmagic
PE      10000000-10071000       Deferred        newton
ELF     77abf000-77b0a000       Deferred        riched20<elf>
  \-PE  77ad0000-77b0a000       \               riched20
ELF     77b2a000-77bcd000       Deferred        oleaut32<elf>
  \-PE  77b40000-77bcd000       \               oleaut32
ELF     77bcd000-77ce1000       Deferred        shell32<elf>
  \-PE  77be0000-77ce1000       \               shell32
ELF     7b800000-7b92e000       Deferred        kernel32<elf>
  \-PE  7b820000-7b92e000       \               kernel32
ELF     7b96b000-7b9b6000       Deferred        dsound<elf>
  \-PE  7b970000-7b9b6000       \               dsound
ELF     7b9b6000-7ba10000       Deferred        shlwapi<elf>
  \-PE  7b9c0000-7ba10000       \               shlwapi
ELF     7ba10000-7ba48000       Deferred        dinput<elf>
  \-PE  7ba20000-7ba48000       \               dinput
ELF     7bafd000-7bc00000       Deferred        wined3d<elf>
  \-PE  7bb10000-7bc00000       \               wined3d
ELF     7bc00000-7bca5000       Deferred        ntdll<elf>
  \-PE  7bc10000-7bca5000       \               ntdll
ELF     7bcb8000-7bcd0000       Deferred        imagehlp<elf>
  \-PE  7bcc0000-7bcd0000       \               imagehlp
ELF     7bcd0000-7bd00000       Deferred        d3d9<elf>
  \-PE  7bce0000-7bd00000       \               d3d9
ELF     7be07000-7be2e000       Deferred        netapi32<elf>
  \-PE  7be10000-7be2e000       \               netapi32
ELF     7be2e000-7be5b000       Deferred        ws2_32<elf>
  \-PE  7be40000-7be5b000       \               ws2_32
ELF     7be5b000-7bf00000       Deferred        ole32<elf>
  \-PE  7be70000-7bf00000       \               ole32
ELF     7bf00000-7bf04000       Deferred        <wine-loader>
ELF     7bf24000-7bf37000       Deferred        libresolv.so.2
ELF     7bf37000-7bf98000       Deferred        rpcrt4<elf>
  \-PE  7bf40000-7bf98000       \               rpcrt4
ELF     7bf98000-7c000000       Deferred        msvcrt<elf>
  \-PE  7bfb0000-7c000000       \               msvcrt
ELF     7c0cb000-7c0e4000       Deferred        dinput8<elf>
  \-PE  7c0d0000-7c0e4000       \               dinput8
ELF     7c0e4000-7c0ff000       Deferred        wsock32<elf>
  \-PE  7c0f0000-7c0ff000       \               wsock32
ELF     7c0ff000-7c11e000       Deferred        iphlpapi<elf>
  \-PE  7c110000-7c11e000       \               iphlpapi
ELF     7c11e000-7c132000       Deferred        shfolder<elf>
  \-PE  7c120000-7c132000       \               shfolder
ELF     7e4ab000-7e4c0000       Deferred        midimap<elf>
  \-PE  7e4b0000-7e4c0000       \               midimap
ELF     7e4c0000-7e4d8000       Deferred        msacm32<elf>
  \-PE  7e4d0000-7e4d8000       \               msacm32
ELF     7e50d000-7e5c9000       Deferred        libasound.so.2
ELF     7e5c9000-7e600000       Deferred        winealsa<elf>
  \-PE  7e5d0000-7e600000       \               winealsa
ELF     7e600000-7e693000       Deferred        winmm<elf>
  \-PE  7e610000-7e693000       \               winmm
ELF     7e693000-7e6c7000       Deferred        uxtheme<elf>
  \-PE  7e6a0000-7e6c7000       \               uxtheme
ELF     7e6c7000-7e6cd000       Deferred        libxfixes.so.3
ELF     7e6cd000-7e6d7000       Deferred        libxcursor.so.1
ELF     7e6d7000-7e6de000       Deferred        libxrandr.so.2
ELF     7e6de000-7e6e7000       Deferred        libxrender.so.1
ELF     7e6e7000-7e6eb000       Deferred        libxinerama.so.1
ELF     7e6eb000-7e70c000       Deferred        imm32<elf>
  \-PE  7e6f0000-7e70c000       \               imm32
ELF     7e70c000-7e725000       Deferred        libxcb.so.1
ELF     7e725000-7e728000       Deferred        libxcb-xlib.so.0
ELF     7e728000-7e843000       Deferred        libx11.so.6
ELF     7e843000-7e852000       Deferred        libxext.so.6
ELF     7e852000-7e86b000       Deferred        libice.so.6
ELF     7e86b000-7e903000       Deferred        winex11<elf>
  \-PE  7e880000-7e903000       \               winex11
ELF     7ea8a000-7eaab000       Deferred        libexpat.so.1
ELF     7eaab000-7ead7000       Deferred        libfontconfig.so.1
ELF     7ead7000-7eaea000       Deferred        libz.so.1
ELF     7eaea000-7eb59000       Deferred        libfreetype.so.6
ELF     7eb59000-7ebab000       Deferred        advapi32<elf>
  \-PE  7eb70000-7ebab000       \               advapi32
ELF     7ebab000-7ec47000       Deferred        gdi32<elf>
  \-PE  7ebc0000-7ec47000       \               gdi32
ELF     7ec47000-7ed8f000       Deferred        user32<elf>
  \-PE  7ec60000-7ed8f000       \               user32
ELF     7ed8f000-7ee4f000       Deferred        comctl32<elf>
  \-PE  7eda0000-7ee4f000       \               comctl32
ELF     7efb4000-7efd9000       Deferred        libm.so.6
ELF     7efd9000-7f000000       Deferred        msacm32<elf>
  \-PE  7efe0000-7f000000       \               msacm32
ELF     f7ca3000-f7ca7000       Deferred        libdl.so.2
ELF     f7ca7000-f7dda000       Deferred        libc.so.6
ELF     f7dda000-f7df1000       Deferred        libpthread.so.0
ELF     f7df3000-f7df7000       Deferred        libxau.so.6
ELF     f7df7000-f7e00000       Deferred        libsm.so.6
ELF     f7e11000-f7e17000       Deferred        libxxf86vm.so.1
ELF     f7e18000-f7f4e000       Deferred        libwine.so.1
ELF     f7f4f000-f7f6b000       Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) C:\Program Files\Mount&Blade\mount&blade.exe
        00000033    2
        00000032   15
        00000031    0
        00000030   15
        0000002d    2
        0000002c    2
        0000002b    2
        0000002a    2
        00000029    2
        00000028    2
        00000027    2
        00000026    2
        00000025    2
        00000024    2
        00000023    2
        00000022    2
        00000021    2
        00000020    2
        0000001f    2
        0000001e    2
        0000001d    0
        0000001c    0
        0000001b    0
        0000001a    0
        00000019    0
        00000018    0
        00000017    0
        00000016    0
        00000009    0 <==
0000000c
        00000013    0
        00000012    0
        0000000e    0
        0000000d    0
0000000f
        00000015    0
        00000014    0
        00000011    0
        00000010    0
0000002e
        0000002f    0
Backtrace:
=>1 0x0a31682e in skinmagic (+0x1682e) (0x09abf2d0)
  2 0x0a31e590 in skinmagic (+0x1e590) (0x09abf300)
  3 0x0a324a2c in skinmagic (+0x24a2c) (0x09abf324)
  4 0x0a31b180 in skinmagic (+0x1b180) (0x09abf384)
  5 0x0a31a0b9 in skinmagic (+0x1a0b9) (0x09abf3bc)
  6 0x0a30ae1f in skinmagic (+0xae1f) (0x09abf3dc)
  7 0x004c7680 in mount&blade (+0xc7680) (0x00400000)
  8 0x00000003 (0x00905a4d)
  9 0x00000000 (0x00000000)
fixme:winmm:MMDRV_Exit Closing while ll-driver open
err:seh:raise_exception Unhandled exception code c0000005 flags 0 addr 0xa31682e
Seems running without preffix changes some thing. 

I found m&b in wine appDB. They wrote they did not test sieges and quest, but all other works.
I'm going crazy. I can't even run. I don't understand what I could do wrong.
 

Priapus

Regular
Best answers
0
What version are using?  And also this may sound like a silly question but have you tried clicking on the icon that M&B installed?
 

Rongar

Master Knight
M&BWB
Best answers
0
Now wine 1.0-rc5 and  M&B .955. I have suse 10.3 if it matter.
I also have tried several other combination. The only one that gave another result was .890. This version poped up message that It could not run due to themida.

I tried click on icon maybe once or twice some time ago then I began trying to run M&B on wine.  Since it did not work and did not give me any information I forget about this method.
Now I clicked again and did get any positive result. 

Edit:
The problem was with my NVIDIA drivers. I've updated them and now all works fine. 
 

Lomendil

Regular
Best answers
0
Glad you got it to work :smile:

The main problem now is that mouse bug... I don't know on which side is the problem : M&B or Wine ? I don't think waiting will fix anything ... So, if someone has an idea about it, share it :smile:
 

Tinan

Veteran
Best answers
0
Hi,

It's a known problem with Wine. Lookie here for one similar report for a different game:

http://forum.winehq.org/viewtopic.php?t=55&highlight=

and here for the actual bug report at Wine HQ:

http://bugs.winehq.org/show_bug.cgi?id=6971

The problem boils down to Wine losing track of the cursor when it leaves the game window (or halting when playing full screen): you can see this happening for yourself by running the game in windowed mode, and also by escaping to the options menu to see where the cursor lies when you reach the right and leftmost limits of your mouselook (it'll be at the very left and right edge of the screen, I'll bet).

Of course, this shouldn't be happening, but it does, even with Wine config told to let DX applications to stop the cursor from leaving the window.

There is a hacky patch available as an attachment to the bug report at Wine HQ (link above), but that means compiling Wine and I don't have time to test this just right now (maybe, *maybe* later tonight). This would provide the environment option WINEFORCEMOUSEWARP to be passed and hopefully solve the problem, but it is just a hack and there's a good chance it won't work. But it's worth testing.

On a related note, this has been a bugbear for all sorts of Quake engine games, but they have an easier fix. See, for example, Medal of Honor Allied Assault:

http://appdb.winehq.org/objectManager.php?sClass=version&iId=882

They can just open the console and change an environment variable there, or change it directly in a config file. I checked out some of the config files in my M&B folders but sadly found nothing that even looked worth fiddling with, and AFAIK there is no console to be opened in M&B. Really, a dev would need to guide us as to any quick fixes that might be available.

On a slightly brighter note, this is a bug which effects quite a number of games and as such is likely to be reasonably high on the list of priorities the Wine devs have to work on.

Hope that helps but worried it won't.

Scott "Mouse Trapped" Anderson.
 

zehnan

Recruit
Best answers
0
Tinan said:
There is a hacky patch available as an attachment to the bug report at Wine HQ (link above), but that means compiling Wine and I don't have time to test this just right now (maybe, *maybe* later tonight). This would provide the environment option WINEFORCEMOUSEWARP to be passed and hopefully solve the problem, but it is just a hack and there's a good chance it won't work. But it's worth testing.
The patch works all right. I tested on Wine 1.0. There is a side effect when mouse wraps also in non-mouselook mode, but that's hardly a problem. Combat is now very much playable. Many thanks for the info.
 

F50

Sergeant
Best answers
0
I also am having trouble with the mouse bug, but that's just about it. I'm just happy it's working.
 

Tinan

Veteran
Best answers
0
zehnan said:
The patch works all right.
Glad it works! I'm guessing you posted the info to the App DB, thanks for that  :smile:

One day I'll get round to patching my own Wine...  :neutral:
 

SirKarl

Recruit
Best answers
0
I have downloaded M & B today and got addicted. Mouse bug is really a bug (in WINE probably, as reported in here), but it may be solved easily without doing recompilation or depending on someone else's (non-official) binary debs.

All you have to do is to change mouse sensitivity to MAXimal value. It helps, because you can turn around few times before the mouse hits the limit (and stops working - or so it appears, but then you just have to turn around in opposite direction few times... :wink:

Other than that, latest binary (0.960) works great (except delays when switching between opponents/talk mode with teacher in training grounds).

Can't wait to get "real" credit card so I could pay for the full version. And how about real, linux binaries for download? (refer to vegastrike.sourceforge.net for reference: they pack 32-bit, 64-bit and debug-enabled static(?) binaries in one blob.)

----
Debian GNU/Linux Lenny (testing/frozen), Wine 1.0.0 (official testing deb), Athlon XP 2400+, 1536 MB RAM, GF 7600 GS, SB Live! 5.1 Digital.
 

Darian

Sergeant Knight at Arms
M&BWB
Best answers
0
Mount&Blade makes use of DirectX; while it doesn't use it as extensively as the likes of Oblivion or Crysis (which is probably why it runs better in Wine) it would still be quite a task to port it to OpenGL. I honestly wouldn't expect to see a port any time soon, if ever. On the plus side, the Windows version runs well under Wine anyway.

As for buying the game, it will be in stores on September 16 in North America (September 19 in Europe). The retail release will cost more than a key currently does, but you get a map and manual with Ganbat's art (as seen in the loading screens and menus and so forth). If you can bear to hold out that long you might prefer that option. :smile:
 

SirKarl

Recruit
Best answers
0
Mount&Blade makes use of DirectX; while it doesn't use it as extensively as the likes of Oblivion or Crysis (which is probably why it runs better in Wine) it would still be quite a task to port it to OpenGL. I honestly wouldn't expect to see a port any time soon, if ever. On the plus side, the Windows version runs well under Wine anyway.
It runs well under WINE because of its low hardware requirements; not because of WINE or anything like that. The only reasons for payment for the game would be 1) it's addictive and I like it much enough to pay instead of using google to find a serial; 2) there's higher possibility to see real linux binaries (with OpenGL port:wink: when you hear a request like that from a paying customer, not anonymous freeloader :wink:

As for buying the game, it will be in stores on September 16 in North America (September 19 in Europe). The retail release will cost more than a key currently does, but you get a map and manual with Ganbat's art (as seen in the loading screens and menus and so forth). If you can bear to hold out that long you might prefer that option. :smile:
That's BAD - I can print manual and map myself (and there's always room for your own hand-drawn map) and paying more for a game in the US (plus shipping and handling and taxes and border duties etc) is enough of a problem to ask someone else to pay with his credit card (I got one but it is not 'real' visa so I cannot pay for the game myself... yet. Have to wait for bank to send me new card over the Snail Mail :/) before Day Zero :smile:

So to make long story short: all I need is a nice game (working one, no DRM, no bugs, no DRM, no hangs, no DRM, playable, no DRM, with decent performance and playability, no DRM and -- didn't I menton it already? NO DRM :wink: for fair price. And I am willing to pay for that. First time for a long time ...since I saw "Frontier" and "Frontier: First Encounters" from David Braben :smile:

 

Archonsod

Marquis
M&BWBWF&S
Best answers
0
SirKarl said:
That's BAD - I can print manual and map myself (and there's always room for your own hand-drawn map) and paying more for a game in the US (plus shipping and handling and taxes and border duties etc) is enough of a problem to ask someone else to pay with his credit card
You'll not be paying for shipping and the like, unless you're buying from Amazon or something. Should be about $30 at your local game store.
 

Serician

Recruit
Best answers
0
Looks like the new GIT for Wine doesn't work. I had tried the registry hack (without success), and now I can't navigate the menus at all... mouse is always stuck in the center. The game will probably play fine now, but I just can't get back into it.

Any chance we could get M&B to allow the use of the keyboard to negotiate the menu?

- Currently using 9.60, with Wine 1.13 (with bug 6971 workaround), on Ubuntu 8.04
 

James Merciless

Recruit
Best answers
0
What will change between the current version and the release version? Anything that might break its performance under Linux?

The game runs incredibly well for me right now. For all intents and purposes, it runs like a native Linux app. So I went ahead and paid the thirty-five bucks for a serial because I didn't want to get stopped at level six, but now I'm wondering what happens if the release version doesn't work well under Linux and the current version is no longer available for download? Anybody have any insight as to what to expect?
 

Zilberfrid

Sergeant Knight
Best answers
0
I think versions run increasingly good on 'nux, though better wines might have something to do with that, no reason to expect a decrease in this, but I'll see. I paid 12 dollars for my key...
 

Archonsod

Marquis
M&BWBWF&S
Best answers
0
No idea. Might be worth asking Armagan himself to be honest, but I suspect it would be impossible to say without knowing more about how WINE actually works.

On the plus side though I'd guess the game itself would be a lot more stable post 1.0. Barring any last minute patches once you get WINE working happily with Mount & Blade there's little chance of an update (to M&B anyway) breaking it.
 

Zilberfrid

Sergeant Knight
Best answers
0
I think it is inside WINE, but that program has a good trackrecord of fixing problems in my opinion.
 

Dilettante

Recruit
WBWB
Best answers
0
Mount & Blade mouse dinput problem quick fix

- download the hacked dinput.dll.so from: http://bugs.winehq.org/attachment.cgi?id=15550
- overwrite dinput.dll.so found in /usr/lib32/wine on 64bit machines (or maybe /usr/lib/wine on 32bit) with the hacked one
- use export WINEFORCEMOUSEWARP=yes before starting m&b or:
- launch M&B application with these commands:

cd /home/user/.wine/drive_c/Program Files/Mount&Blade  **or the path of the folder the exe is locate into**
export WINEFORCEMOUSEWARP=yes; wine ./mount\&blade.exe

you can find the thread where i found the fix here: http://bugs.winehq.org/show_bug.cgi?id=6971

happy blading!


JanBielanski, i think it would be a good idea to put this in the wiki.
 

dryhte

Sergeant
M&BWBWF&S
Best answers
0
Hi,

I'm having trouble getting M&B to work in Wine. My Wine install works fine with Deus Ex, and I managed to install M&B allright. When I try to run it (textures at lowest setting, shadows at low) the game crashes after trying to load the textures. The debug info from Wine reads (about a thousand times) like:

fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
err:d3d:CheckTextureCapability Unhandled format = unrecognized
fixme:d3d:debug_d3dformat Unrecognized 909201952 (as fourcc: R16) WINED3DFORMAT!
fixme:d3d:getFormatDescEntry Can't find format unrecognized(909201952) in the format lookup table
Killed

(ok, so Killed shows up only once of course)

Any ideas? I'd love to play M&B on my Ubuntu EEEpc...

Oh by the way, I tried both Dx7 and Dx9, same errors.