Battlezone Universe

Battlezone Universe => Archive Vault => Public 1.3 Beta 4 Archive => Topic started by: Zero Angel on June 13, 2008, 09:16:09 AM

Title: SOLVED: Can't get PB4 working on Linux install
Post by: Zero Angel on June 13, 2008, 09:16:09 AM
PB3 worked fine for me, but this is the output that I get when I try to run my PB4 launcher script in the terminal
Quotedave@icarus:~/Programs/Battlezone2$ ./Launchbz2.sh
Launching Battlezone 2
ALSA lib pcm_dmix.c:874:(snd_pcm_dmix_open) unable to open slave
err:dbghelp_msc:pdb_process_types -Unknown type info version 20040203
<duplicate entries removed>
err:dbghelp_msc:pdb_process_types -Unknown type info version 20040203
wine: Call from 0x7b844b20 to unimplemented function dbghelp.dll.SymRefreshModuleList, aborting
wine: Unimplemented function dbghelp.dll.SymRefreshModuleList called at address 0x7b844b20 (thread 0009), starting debugger...
Unhandled exception: unimplemented function dbghelp.dll.SymRefreshModuleList called in 32-bit code (0x7b844b96).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:7b844b96 ESP:022bf578 EBP:022bf5dc EFLAGS:00200212(   - 00      - -IA1)
EAX:7b82eb09 EBX:7b8b3884 ECX:00000000 EDX:00400000
ESI:00400000 EDI:01e76470
Stack dump:
0x022bf578:  022bf604 00000008 7e201360 00110014
0x022bf588:  80000100 00000001 00000000 7b844b20
0x022bf598:  00000002 7e1fe3e0 7e1fe769 022bf5e4
0x022bf5a8:  7bc42887 00110048 7e1da320 ffffffff
0x022bf5b8:  7e1ff074 ffffffff 7bca2788 00000001
0x022bf5c8:  00000000 00000000 00110000 00000002
Backtrace:
=>1 0x7b844b96 in kernel32 (+0x24b96) (0x022bf5dc)
  2 0x7e1fe365 in dbghelp (+0x2e365) (0x022bf60c)
  3 0x7e1d82ec in dbghelp (+0x82ec) (0x022bf6a8)
0x7b844b96: movl        0xfffffffc(%ebp),%ebx
Modules:
Module  Address                 Debug info      Name (122 modules)
PE        400000- 1ebc000       Deferred        bzone
<... list of enabled DLLs removed (it's long) ...>
ELF     b7f7e000-b7f9a000       Deferred        ld-linux.so.2
Threads:
process  tid      prio (all id:s are in hex)
00000008 (D) Z:\home\dave\Programs\Battlezone2\bzone.exe
        00000009    0 <==
0000000c
        00000013    0
        00000012    0
        0000000e    0
        0000000d    0
0000000f
        00000015    0
        00000014    0
        00000011    0
        00000010    0
Backtrace:
=>1 0x7b844b96 in kernel32 (+0x24b96) (0x022bf5dc)
  2 0x7e1fe365 in dbghelp (+0x2e365) (0x022bf60c)
  3 0x7e1d82ec in dbghelp (+0x82ec) (0x022bf6a8)
wine: Call from 0x7b844b20 to unimplemented function dbghelp.dll.SymSetHomeDirectory, aborting

What is this dbghelp.dll file? And is there a way to disable the debugger?

My linux version is Kubuntu 8.04 (Hardy Heron) using Wine 1.0 RC4. If that even matters.
Title: Re: Can't get PB4 working on Linux install
Post by: Zero Angel on June 13, 2008, 09:36:53 AM
FOUND A SOLUTION:

I tried to see what happens if I overrode the DLL for dbghelp.dll -- so I went to winecfg --> libraries --> create new entry 'dbghelp' --> and made sure its set to (native, builtin)

And BZ2 just miraculously worked! :)

I had to set halftexel correction to 0 in render.cfg (in the bz2 folder) so that my shell fonts werent screwed up, but it was not a problem. One thing I noticed is that sound actually works in 1.3 now.

I also noticed that PB4 erased all my previous setup control configs, which is a minor annoyance, but one I can live with. The important thing is that SOUND ACTUALLY WORKS.

What does this 'weapons linking' and 'weapon multi select' thing do?
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: Nielk1 on June 13, 2008, 10:19:32 AM
Weapon linking reffers to one touch linking of similar HPs (I think) only for certain units.

Multi Select is using shift to select multiple weapons one by one.
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: TheJamsh on June 13, 2008, 11:06:07 AM
so in short are you saying that the player can fire more than one weapon at a time :S?
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: bigbadbogie on June 13, 2008, 11:08:20 AM
yeah - in a unit with more than one weapon, say a sabre tank - hold down shift, and right-click as if to change weapons

keeping shift pressed, left click and then the weapons should be linked - right click again and it is lost

you might be able to link every weapon in a unit this way
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: Warfreak on June 13, 2008, 01:07:16 PM
You can..... Jsut word of advice, DONT link cannons/guns/rockets to mortars/specials.... not very effective. Try it and you'll see what i mean.  :|
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: lucky_foot on June 13, 2008, 01:14:09 PM
Imagine weapon linking style in Battlezone 1. That's about the same thing except in the BZ2 engine. :)
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: Commando on June 13, 2008, 01:35:08 PM
Zero Angel, how did you get Ubuntu working?  I have the os working but I can't get either creative labs or nvidia's drivers to install.

That and how do you get pb4 to actually execute?  I have the files installed on my Ubuntu partition, I just can't get either bz2 to work or those drivers.
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: GSH on June 13, 2008, 05:08:17 PM
dbghelp.dll is a Microsoft-supplied DLL, which helps translate addresses into symbol names for crash dumps. It's a far more accurate approach than the old .sym files; that's why there's .pdb files. WinXP and the like have shipped with really old dbghelp.dll; BZ2 uses a newer one. WINE, if it's doing things correctly should be loading DLLs from the current directory first. Because that's what Windows does.

And as to the audio issues, this is WINE not being bug-for-bug compatible with Windows. http://msdn.microsoft.com/en-us/library/ms712181(VS.85).aspx (http://msdn.microsoft.com/en-us/library/ms712181(VS.85).aspx) describes the function that I changed this week. It seems that Windows safely ignores MMIO_ALLOCBUF when passed a memory buffer. WINE blew chunks. You can consider this a bug report that should be filed with the WINE devs.

-- GSH
Title: Re: SOLVED: Can't get PB4 working on Linux install
Post by: Zero Angel on June 13, 2008, 05:51:39 PM
Quote from: Commando on June 13, 2008, 01:35:08 PM
Zero Angel, how did you get Ubuntu working?  I have the os working but I can't get either creative labs or nvidia's drivers to install.

That and how do you get pb4 to actually execute?  I have the files installed on my Ubuntu partition, I just can't get either bz2 to work or those drivers.
Well, I was lucky, Ubuntu 'just worked' for me without any major messing around with things. Creative drivers should work without too much tweaking as well, since creative chipsets are rather common. But if I were you i'd try to apt-get the program called 'envy', which should install the proprietary nvidia drivers. linux-restricted-modules-`uname -r` should also install the 3D accelerated drivers, but 'envy' uses the latest nvidia ones.

As far as getting PB4 to execute, that was easy. I wrote a shell script to launch it, and then made it executable.
Quote#! /bin/bash
# launch bz2
echo "Launching Battlezone 2"
cd /home/dave/Programs/Battlezone2
wine bzone.exe -poweruser
exit 0
A fellow named "No Name" AKA "French_Killer" also got BZ2 working in Ubuntu. He made a topic about it here (http://www.timedisruptor.com/forum/viewtopic.php?t=3134)