Page 1 of 1

BF on Ubuntu 8.04

Posted: Fri Jan 30, 2009 3:56 am
by johns
I just found your game today and decided to give it a try.

When I tried to run the game, the first issue I run across is the "Failed to initialize direct audio". message. not a biggie, I don't need sound right now. After a bit of a delay, the menus screen appears, but it is not fluid. kinda choppy. After a few moments, the screen stop. When I try to click on the screen, there is no mouse. If I click with the mouse (best guess) the screen go blank and thats it. nothing else happens.

I found a tread which describes these issues dating back to Oct 2007, but there does not appear to be a resolution.

I am currently running Ubuntu 8.04 with wine 1.1.13. The computer is a Gateway MX 8738 Laptop that has an intel 945GM video.

When I run the program from terminal, I get this:

john@john-laptop:~/.wine/drive_c/Program Files/Battleships Forever$ wine BattleshipsForever.exe
fixme:advapi:RegisterEventSourceA ((null),"FirebirdGuardianDefaultInstance"): stub
fixme:advapi:RegisterEventSourceW (L"",L"FirebirdGuardianDefaultInstance"): stub
fixme:advapi:ReportEventA (0xcafe4242,0x0001,0x0000,0x000000d4,(nil),0x0001,0x00000000,0x7e123e40,(nil)): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x000000d4,(nil),0x0001,0x00000000,0x141ac0,(nil)): stub
err:eventlog:ReportEventW L"The registry information is missing.\r\nPlease run the Firebird Configuration Utilitto launch the server thread. errno : 1055"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
fixme:actctx:parse_depend_manifests Could not find dependent assembly L"Microsoft.Windows.Common-Controls"
fixme:richedit:ME_HandleMessage WM_STYLECHANGING: stub
fixme:richedit:ME_HandleMessage WM_STYLECHANGED: stub
fixme:winspool:OpenPrinterW PRINTER_DEFAULTS ignored => (null),(nil),0x00000008
fixme:richedit:ME_HandleMessage EM_SETLANGOPTIONS: stub
fixme:richedit:ME_HandleMessage WM_STYLECHANGING: stub
fixme:richedit:ME_HandleMessage WM_STYLECHANGED: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:winspool:OpenPrinterW PRINTER_DEFAULTS ignored => (null),(nil),0x00000008
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_DISPLAYBAND: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:winspool:OpenPrinterW PRINTER_DEFAULTS ignored => (null),(nil),0x00000008
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_DISPLAYBAND: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:winspool:OpenPrinterW PRINTER_DEFAULTS ignored => (null),(nil),0x00000008
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_DISPLAYBAND: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:winspool:OpenPrinterW PRINTER_DEFAULTS ignored => (null),(nil),0x00000008
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage EM_DISPLAYBAND: stub
fixme:richedit:ME_HandleMessage EM_FORMATRANGE: stub
fixme:richedit:ME_HandleMessage WM_STYLECHANGING: stub
fixme:richedit:ME_HandleMessage WM_STYLECHANGED: stub
fixme:dsalsa:IDsDriverBufferImpl_SetVolumePan (0x1d5ff70,0x53b8a10): stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32f714,0x00000000), stub!
fixme:d3d:WineD3D_ChoosePixelFormat Add OpenGL context recreation support to SetDepthStencilSurface
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(640,480)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:mciwave:MCIWAVE_DriverProc Unsupported yet command [2115]
fixme:mciwave:MCIWAVE_DriverProc Unsupported yet command [2115]
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:mciwave:MCIWAVE_DriverProc Unsupported yet command [2115]
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)
fixme:mciwave:MCIWAVE_DriverProc Unsupported yet command [2115]
fixme:d3d:IWineD3DSwapChainImpl_Present Unhandled present rects (0,0)-(1024,768)/(0,0)-(1024,768)

I hope this helps and thanks.

John.

Posted: Fri Jan 30, 2009 4:13 am
by Arcalane
What do you expect? GM and BSF weren't exactly made with being run on WINE in mind. I doubt there will be any resolution for some time to come, beyond the games being remade in a more cross-platform compatible format.

Posted: Fri Jan 30, 2009 4:26 am
by natan_j
The main problem stems from the fact that GameMaker uses purely DirectX graphics, which effectively makes it windows-only. Until BSF 2 comes out, you're on your own, as we can't change the fact that GM uses DirectX, and the author of GM has said many times that he won't rewrite it to be cross-platform friendly.
Sorry. :(

Posted: Fri Jan 30, 2009 6:29 am
by Grath
For now, it might be possible to use a VM and a full Windows install to run BSF, but I'm not sure if even that will work. Honestly, if you want to play games your best bet is to dual-boot. Emulation gives a performance hit, especially for non-crossplatform-friendly programs.

Posted: Fri Jan 30, 2009 9:29 am
by th15
In the ini file you need to set surfaces = 0, and music volume to 0. Surfaces uses texture manipulation which emulators typically don't handle, and the music uses direct audio which also doesn't emulate well. You might have to twiddle a little with screen resolutions to get it to work too.

Ubuntu

Posted: Tue Feb 10, 2009 5:05 am
by johns

th15-


Your forum has been useful so far, but nothing seems to help to a point of resolution.

I did try setting the game setting down as suggested, and things did improve a little, but its not quite there.The graphics act as if they are overloaded. Very jumpy. I also tried to set the resolution down to 800x600, but just ended up with missing the lower part of the main screen.

just as an fyi, I am using a Gateway mx8738 laptop with Pent Dual 1.7, 1 G mem, and it as the Mobile Intel 945GM Express chips. I am aware that there has been issues with Linux Distros and Intel driver, but I believe that is now resolved. Other games (openGL mainly) and other programs seem to be working ok.

the system is now dual boot with Vista? Mojave? or what ever MS wants to call it. I am trying to avoid having any MS junk in the end. Dual boot is the only way to have everything work now while I learn Ubuntu.

Arcalane - I don't expect anything at this point. Ubuntu and wine are are still young, even though they are making great progress. There is no way of knowing if its there yet unless you try. In fact, someone has tried with older version of Ubuntu 8.04 wine. BSF is posted on the AppDB for wine. (some good some bad).

I have only been playing with Ubuntu and wine for just a few months now. I do not know everything there is to know about programing or computers or gaming. I know enough to keep myself out of big trouble and to dig family members out. I do know that sometimes the only place to find information is to search the web and ask questions in forums.

I am hoping that one day soon I will be able to drop the Microsoft all together. I have only two programs left and I will have that ability. I'd rather do a few little tweaks and get it done than to have to wait another year hoping that someone decided to do a native Linux version. All eight of the programs I use were designed for an MS OS. Six will work on Ubuntu with wine

natan_j - Thanks for the info - you may have just pointed me in a direction. I will start checking DirectX. Is there a specific version I need? I have been running 9 through one of Kegel's winetricks. Considering system requirements wants Win 98, I would think 9 would be good enough. I have not seen anything as far as in any of the documentation yet.

Grath - I have considered a VM, but was hoping to drop all of my MS dependencies. I am running a dual-boot for now just to keep up and running.

Thanks for everyones input.

Posted: Tue Feb 10, 2009 9:35 am
by derekiv
I think someone managed to get it to work on Ubuntu a while ago:
http://www.wyrdysm.com/phpBB2/viewtopic ... ght=ubuntu

Ubuntu

Posted: Tue Feb 10, 2009 9:55 pm
by johns
Yeah, I had already found this and tried the changes they made without success. The problem lies is a few places:
1. Wine has yet to perfect their DirectX > OpenGL translation. Something broke between then and now and I think its with Direct3d.
2. GM seems to require Direct3d compatibility even if the game does not use it. Which I believe is where wine is having a hard time.
3. I have seen a program like Google earth gives an option for DirectX or OpenGL. GM forces directX (so developer have no choice.)
4. GM is a fair tool to get people started in the gaming industry. So the folks like the ones with Wyrdsm can get their great ideas out there on the market very quickly, but there is a cost. When you have tools that make things easy, you loose capability such as making choices (aka - directx versus OpenGL), Code optimization and several things that I won't get into now. Its just the nature of the beast.

I did not expect Wine and Ubuntu to work with everything, so I guest this is one that it doesn't (just need it to give it some more time).

Thats why there is dual-boot :)

Thanks