Author Topic: AI War on Linux Testing  (Read 14389 times)

Offline arthurp

  • Newbie Mark III
  • *
  • Posts: 28
Re: AI War on Linux Testing
« Reply #15 on: November 02, 2010, 04:30:38 pm »
I got it working under WINE as well. However I had some odd issues so I thought I'd explain them and how to work around them.

I have a dual monitor system so the resolution is 3360x1050. But if an application goes full screen it only gets one monitor at 1680x1050. When I started AI Wars is loaded fine but everything was squished sideways. I think it though it was rendering into a 3360x1050 window but it was actually going into a 1680x1050 window. Also I could not click on anything (probably the mapping from window space to render space was messed up).

So I setup WINE to emulate a 1680x1050 desktop instead of trying to integrate the windows with my Linux desktop. This can be done using winecfg (a screen shot is attached). So I got one big window which AI Wars loaded in and then when it went full screen it filled the 1680x1050 properly and everything worked fine. I think this is because the reported over all screen size and the size of a full screen window are now the same.

I think I might be able to change the AI Wars settings to make it load in a window instead of full screen and then change this back. But I haven't tried.

I hope this helps anyone who gets stuck on this issue.

Offline arthurp

  • Newbie Mark III
  • *
  • Posts: 28
Re: AI War on Linux Testing
« Reply #16 on: November 05, 2010, 05:54:56 am »
One more thing. I was having trouble with WINE audio in that it would fail to start most of the time. This was because it was trying to use the ALSA device directly and that was already opened by the PulseAudio server. Pulse was holding it open because of the flash plugin in firefox was holding an audio connection open so that GChat could go ding when I get a chat. A little silly but there is a good work around: WinePulse (http://art.ified.ca/?page_id=40)

WinePulse allows apps running in WINE to talk to play audio via pulse without knowing about it. It works very well and allows AIWars to start even with flash running and allows me to play my own music in the background (because pulse can do the mixing). The only problem is that I think it introduces a ~1/4sec (or less) latency in the WINE audio play back. This means that the audio and video are out of sync, but for playing AI wars this isn't really in issue (at least for me).

Oh one other thing. If you start AI Wars from a working directory other than the AI Wars directory itself it will fail to find any of it's data files and will play no sound and will render only text. The game actually works but all sprites are just colored boxes instead of textures. To avoid that problem I wrote this script:

#! /bin/sh
cd ~/.wine/drive_c/Program\ Files/AIWar
wine ./AIWar.exe

It just changes into the directory and starts AIWars. It should work on most normal WINE+AIWars installations.

Overall I'm pretty happy with AI Wars in WINE. It's stable and looks good. I have noticed what I think may have been a few rendering glitches, but I'm not really sure they are even glitches (It may just look different than I think in should) and regardless they are probably issues with the WINE 3D support and not AI Wars.

Thanks a lot for switching to Unity.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: AI War on Linux Testing
« Reply #17 on: November 05, 2010, 06:28:51 am »
Nice!  And our pleasure on switching to Unity. :)  It was a job and a half, heh, but definitely well worth it.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline SRombauts

  • Jr. Member Mark III
  • **
  • Posts: 89
Re: AI War on Linux Testing
« Reply #18 on: November 06, 2010, 11:05:01 am »
 I tried the downloaded v4.000 (Trial and Full) under Linux : it works perfectly on my computer 8) !

Update to v4.021 beta v4.029 also worked perfectly fine.
I played a while and did not notice any bug or uncommon slowness :)

- Ubuntu 10.10 "Maverick" up-to-date fresh install with Ubuntu WINE 1.2.1
- Core 2 duo 2.13 MHz
- 2Go RAM
- Nvidia 9800 GT with proprietary binary driver

« Last Edit: November 08, 2010, 03:17:26 am by SRombauts »

Offline SRombauts

  • Jr. Member Mark III
  • **
  • Posts: 89
Re: AI War on Linux Testing
« Reply #19 on: November 06, 2010, 11:17:08 am »
I also tried AI War with the latest version of wine, the 1.3.6, and then filed a new version description and test report on the WineHQ AppDB : http://appdb.winehq.org/objectManager.php?sClass=version&iId=21873

AI War is now rated PLATINIUM, congratulation !

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: AI War on Linux Testing
« Reply #20 on: November 06, 2010, 11:21:20 am »
Out of curiosity, has anyone tried a multiplayer game where some folks are on windows, and some on linux?  For that matter, some on windows, some on linux, and some on mac would be interesting :)

Since all the simulation math has to work out exactly the same for mp to work, cross-platform games like that could potentially have problems, but I haven't heard of any.
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline SRombauts

  • Jr. Member Mark III
  • **
  • Posts: 89
Re: AI War on Linux Testing
« Reply #21 on: November 07, 2010, 05:45:18 am »
Good idea, Linux vs Windows ;) !

I just tried a cross-platform multi-player game between my eeepc (Windows) and my Linux desktop computer, and it worked.
But I was not able to go far on that campaign, because multi-player alone is hard, and not so fun...

Offline Ozymandiaz

  • Hero Member Mark II
  • *****
  • Posts: 813
  • King of kings
Re: AI War on Linux Testing
« Reply #22 on: November 07, 2010, 06:00:17 am »
Good idea, Linux vs Windows ;) !

I just tried a cross-platform multi-player game between my eeepc (Windows) and my Linux desktop computer, and it worked.
But I was not able to go far on that campaign, because multi-player alone is hard, and not so fun...

hehe :P


I love that AI war will be able to run on linux. One of the main advantages of Unity (Imo, I could not care about mac, no offence ;) ).

Been toying with my Ubuntu box a while, and that system I think is really shaping up good. Main thing holding me back from a total converting is games and some minor programs that run under Win alone :).
We are the architects of our own existence

Offline Vinraith

  • Hero Member Mark II
  • *****
  • Posts: 806
Re: AI War on Linux Testing
« Reply #23 on: November 08, 2010, 02:24:55 am »
I'm having trouble making this work under OpenSUSE 11.3. Specifically, I get the following error:

GLContext: failed to share context 1525c0: Success

Screen: could not setup GL for resolution (1280x768 fs=0 hz=0 window = 131106)


This is my first experience with wine, so it's entirely possible I'm doing something incredibly stupid. The actual monitor is 1650x1080, no idea why it's trying to run 1280x768. The graphic card is an Nvidia Quadro 570 FX, with supported Linux drivers from Nvidia. Anyway, any thoughts from the wine vets?
« Last Edit: November 08, 2010, 03:21:49 am by Vinraith »

Offline SRombauts

  • Jr. Member Mark III
  • **
  • Posts: 89
Re: AI War on Linux Testing
« Reply #24 on: November 08, 2010, 03:16:37 am »
What I didn't mention is that you need a graphic card with good graphic drivers : I use the proprietary drivers from Nvidia, not the Linux default driver.

Offline bongotron2000

  • Newbie Mark III
  • *
  • Posts: 48
Re: AI War on Linux Testing
« Reply #25 on: November 08, 2010, 03:23:15 am »
I'm having trouble making this work under OpenSUSE 11.3. Specifically, I get the following error:

GLContext: failed to share context 1525c0: Success

Screen: could not setup GL for resolution (1280x768 fs=0 hz=0 window = 131106)


This is my first experience with wine, so it's entirely possible I'm doing something incredibly stupid. The actual monitor is 1650x1080, no idea why it's trying to run 1280x768. Anyway, any thoughts from the wine vets?

Can you let us know the computer specs and which graphics card driver version and Wine version you have installed?

A useful thing to try is running Wine from the command line, which will produce lots of debug output. Assuming a default install (not Steam) it's:

Code: [Select]
wine .wine/drive_c/Program\ Files/AIWar/AIWar.exe
then paste the output here.

SRombauts's point about the drivers is very true. Trying to run with the default (open-source) drivers is no fun at all.

Offline Vinraith

  • Hero Member Mark II
  • *****
  • Posts: 806
Re: AI War on Linux Testing
« Reply #26 on: November 08, 2010, 03:25:53 am »
Good Lord, I'm a complete idiot. I installed the Quadro drivers and neglected to restart X, on a restart the thing works beautifully. Thanks for the offered assistance, guys, it seems to be working great now.
« Last Edit: November 08, 2010, 03:53:14 am by Vinraith »

Offline cathexis

  • Newbie
  • *
  • Posts: 1
Re: AI War on Linux Testing
« Reply #27 on: November 11, 2010, 11:18:02 am »
I'm not sure how many people are running 64 bit linux and trying to get Wine to work happily, but I've been incapable of getting it to work on 64-bit Ubuntu.  I'm getting context list share failures which I think means that it isn't actually using the video driver, something I'm not terribly surprised about since Wine requires 32-bit libs and I don't have the lib32 nvidia proprietary driver on my desktop. 

I'm going to try compiling 64 bit wine and seeing if it works without the driver hack, otherwise I may have to switch to the FOSS nvidia drivers and compile both a 64 bit and 32 bit edition to run in parallel.  If I get it working I'll post it here.

That said, my Arch laptop (also 64 bit) runs AI War flawlessly in wine once I installed the multilib FOSS ati driver (lib32-ati-dri) along with all the other multilib stuff needed to get wine to start, which really makes me think the Ubuntu issue is due to driver support.


Offline deMangler

  • Full Member Mark II
  • ***
  • Posts: 189
  • om tare tuttare ture soha
Re: AI War on Linux Testing
« Reply #28 on: November 19, 2010, 01:04:33 am »
Hi all,
I was very happy to read that AI War works in wine, so I gave it a go.

I can report that it works on my emachines E-510 laptop running slackware 13.1 - 64 bit and is very playable.
Thanks! At last I can start playing AI War again.

There is one issue - the sound does not work at all. This is odd as the sound in other apps in wine works fine. Is there some special way that AI War accesses the sound functionality of windows that might cause this?


Anyway, great stuff!
dM

<edit>

Typical, spend hours trying to figure something out and then post on forum then find the problem ....

err:mmdevapi:MMDevEnum_Create OpenAL support not compiled in, application will not find sound devices

I only get this message when running AI War so that might well explain it.

<edit>
« Last Edit: November 19, 2010, 03:40:41 am by deMangler »

Offline SRombauts

  • Jr. Member Mark III
  • **
  • Posts: 89
Re: AI War on Linux Testing
« Reply #29 on: November 19, 2010, 02:02:02 am »
Sound worked flawlessly for me with v4.0025.
In winecfg it is ALSA driver that is selected.