Linux DLC

Linux DLC

Postby salsadoom on Wed Dec 14, 2011 9:02 pm

Hi guys.

Awesome work on the linux port :) A few little tweaks needed, but it works :) Question though... how do you get DLC for the Linux version?

Also... I notice my version is 1.56, and 1.59 seems to be the latest for windows. That right?

Cheers!
salsadoom
Ships Engineer (junior)
Ships Engineer (junior)
 
Posts: 5
Joined: Wed Dec 14, 2011 7:51 pm

Re: Linux DLC

Postby offsides on Thu Dec 15, 2011 4:01 pm

Immensely enjoying my first exposure to GSB (and running it on Linux earns you likely additional sales!), and other than a couple of minor hiccups getting it running on my system it works like a champ. I'm wondering what it's going to take to run the DLC on Linux, since it's currently only available for Windows and Mac. I'm guessing the different races should be simple, since I'm assuming that there's no code changes needed (and if that's the case, I'd be happy to help you package them for Linux users - I'll even buy them first! :)).

Is the Galactic Conquest add-on similar, or does that require additional code? If the latter, any idea when we might see a Linux version? I really like the idea of it, although I'm sure it'll be a while before I can build up my fleets enough to give it a go...

Anyway, definitely interested in Linux DLC and updates, and happy to help if I can!
offsides
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 19
Joined: Thu Dec 15, 2011 3:02 pm

Re: Linux DLC

Postby Nexus on Thu Dec 15, 2011 6:10 pm

Procedure made with a little help from cliffski

1. Buy DLC for Windows

2. Instal DLC on Windows

3. copy from Windows into Linux installation (for example installed in GSB directory) :

a. directory with DLC to main dir ( GSB/nomads GSB/campaign etc.)
b. data/install/DLC_RELATED into GSB/data/install/DLC_RELATED (from windows installation)
c. data/packages/DLC_RELATED into GSB/data/packades/DLC_RELATED (from windows installation)

4. there is a tricky part: I had to convert ALL .dds files into .png (convert from ImageMagick and some unix magic : )
(I didn't have to delete .dds files - just added the .png ones)

thats all : )
solution isn't perfect but works for me (Ubuntu 64 version 11.10 gnome-shell )

maybe future DLC releases will be ready for Linux without point 4 (or Linux will be ready to manage .dds files : )

Please try and tell if this works (and remember that this is a workaraound for experienced Linux users - not official procedure)
Last edited by Nexus on Thu Dec 15, 2011 7:02 pm, edited 1 time in total.
Nexus
Ships Engineer (junior)
Ships Engineer (junior)
 
Posts: 9
Joined: Thu Dec 15, 2011 5:27 pm

Re: Linux DLC

Postby steven.saus on Thu Dec 15, 2011 6:38 pm

I'm not sure if it's just board reorganization, but it was a bit surprising to find the threads about the Linux version in HIB#4 suddenly gone, and myself without access to the Linux support area.

Is that the case, or is something else going on?
steven.saus
Ships Engineer (junior)
Ships Engineer (junior)
 
Posts: 7
Joined: Tue Dec 13, 2011 10:51 pm

Re: Linux DLC

Postby Thalic on Thu Dec 15, 2011 7:19 pm

steven.saus wrote:I'm not sure if it's just board reorganization, but it was a bit surprising to find the threads about the Linux version in HIB#4 suddenly gone, and myself without access to the Linux support area.

Is that the case, or is something else going on?


Same here, must be permission set incorrectly for normal users of the board software.


EDIT: Now the linux support forum works.
| Ubuntu 11.10 64-bit | Gnome Shell | Unity |

Gratuitous Space Battles now on Linux.
User avatar
Thalic
Plucky Fighter Pilot
Plucky Fighter Pilot
 
Posts: 71
Joined: Thu Oct 07, 2010 4:58 am
Location: Denmark

Re: Linux DLC

Postby offsides on Thu Dec 15, 2011 11:09 pm

Nexus wrote:Procedure made with a little help from cliffski

1. Buy DLC for Windows

2. Instal DLC on Windows

3. copy from Windows into Linux installation (for example installed in GSB directory) :

a. directory with DLC to main dir ( GSB/nomads GSB/campaign etc.)
b. data/install/DLC_RELATED into GSB/data/install/DLC_RELATED (from windows installation)
c. data/packages/DLC_RELATED into GSB/data/packades/DLC_RELATED (from windows installation)

4. there is a tricky part: I had to convert ALL .dds files into .png (convert from ImageMagick and some unix magic : )
(I didn't have to delete .dds files - just added the .png ones)

thats all : )
solution isn't perfect but works for me (Ubuntu 64 version 11.10 gnome-shell )

maybe future DLC releases will be ready for Linux without point 4 (or Linux will be ready to manage .dds files : )

Please try and tell if this works (and remember that this is a workaraound for experienced Linux users - not official procedure)


Thanks for this starting point, but I have 2 questions and one bone to pick. First the questions:

1) What is the ImageMagick command you used to do the conversion? I've never worked with .dds files before (what are they? I've never seen the extension before, though they're obviously some sort of image format...).
2) Does this work for the Galactic Conquest expansion as well, or just the new races?

Now the bone - is there a way to extract the files from the Windows installer without running the actual install? While I can jump through hoops to install GSB + DLC on Windows, I run Linux (Fedora, currently F16) as my ONLY OS on my PC (I'm a Linux admin, and I don't use Windows if I can avoid it :)). I suppose I can install via WINE, but that's still less than satisfactory. That being said, I also recognize that this is a VERY new Linux port, and that this is a mostly one-man shop, and that these things can take a little time. My offer to assist is still open, if nothing else I have lots of experience creating RPMs, which covers half of the standard package manager formats :)

Once I see your response on how to convert the .dds files, I'll probably go ahead and buy at least the new races.

Thanks in advance!
offsides
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 19
Joined: Thu Dec 15, 2011 3:02 pm

Re: Linux DLC

Postby urkle on Thu Dec 15, 2011 11:18 pm

offsides wrote:
Once I see your response on how to convert the .dds files, I'll probably go ahead and buy at least the new races.

Thanks in advance!


it's the image magic "convert" program.
Code: Select all
convert image.dds  image.png


through some mighty magic with find we can automate that more so (completely untested, but gets across the general idea)
Code: Select all
for x in `find . -name "*.dds"`; do convert $x `dirname $x`/`basename $x .dds`.png; done
Developing away on one of
Mac Pro Dual 2Ghz, 14GB RAM, Snow Leopard, nVidia 8800 512MB.
Linux, 8-core AMD, 8GB RAM, Fedora 18, nVidia 450 1GB
User avatar
urkle
Admiral
Admiral
 
Posts: 107
Joined: Thu Dec 15, 2011 2:27 pm

Re: Linux DLC

Postby Nexus on Fri Dec 16, 2011 12:10 am

offsides wrote:
1) What is the ImageMagick command you used to do the conversion? I've never worked with .dds files before (what are they? I've never seen the extension before, though they're obviously some sort of image format...).


convert file.dds file.png

2) Does this work for the Galactic Conquest expansion as well, or just the new races?

Looks like Galactic Conquest works fine - just main title screen is white (and there are some OpenGL errors but nothing serious)

New races works without any known problems

but I played this only a few minutes.. : )
Nexus
Ships Engineer (junior)
Ships Engineer (junior)
 
Posts: 9
Joined: Thu Dec 15, 2011 5:27 pm

Re: Linux DLC

Postby offsides on Fri Dec 16, 2011 12:48 am

OK, cool! I don't know if I'll have time to purchase the various DLC before I go away for a long weekend tomorrow, but I'll definitely be buying it when I get back! After all, the best way to encourage more Linux support is do buy stuff :)
offsides
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 19
Joined: Thu Dec 15, 2011 3:02 pm

Re: Linux DLC

Postby offsides on Fri Dec 16, 2011 3:34 pm

Nexus wrote:Looks like Galactic Conquest works fine - just main title screen is white (and there are some OpenGL errors but nothing serious)

New races works without any known problems

but I played this only a few minutes.. : )


Bought the DLC last night and even managed to make RPMs for myself of each of them (I'll post them when I get back from vacation, just about to drop offline for a while). I'd love to figure out why the background in the menu is white, but that's the only problem I saw in a _very_ quick check. strace didn't show me anything odd trying to access the titlescreenXXXX.jpg, so it has to be deeper than that. Again, when I get back :)
offsides
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 19
Joined: Thu Dec 15, 2011 3:02 pm

Re: Linux DLC

Postby alexhairyman on Tue Dec 20, 2011 8:51 pm

Check out my script in the Gratuitous Modding subforum -- it converts all dds files to png. It works, but i will make it smarter in future versions, (continuos integration and dependency checking).
alexhairyman
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 13
Joined: Tue Dec 20, 2011 3:16 am

Re: Linux DLC

Postby jcp on Wed Jan 04, 2012 3:38 pm

Thanks guys : all the D.L.C are running great with your informations.
About the Galactic Conquest : you should rename Campaign Manual.pdf into CampaignManual.pdf too.
About the Parasites DLC : the 1.57 patch is needed in order to have "Support for longer race descriptions".

My hardware is the following : AMD Phenom II X6, Nvidia GTX260+, 1680*1050, 8Go Ram, Gentoo x86_64 (kernel 3.1.5).
Now, I need to pratice !!!

Image Image Image Image

Again, thanks for that fabulous game.
jcp
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 12
Joined: Wed Jan 04, 2012 3:23 pm

Re: Linux DLC

Postby Sidicas on Fri Jan 06, 2012 8:21 pm

Nexus wrote:
maybe future DLC releases will be ready for Linux without point 4 (or Linux will be ready to manage .dds files : )

Icculus made MojoDDS for his humble bundle games and it's free to use in any closed source game.

http://icculus.org/cgi-bin/finger/finger.pl?user=icculus&date=2012-01-02&time=03-11-15

I'm waiting for any easy way to install the DLC on Linux before buying any.
Sidicas
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 12
Joined: Sat Dec 17, 2011 5:02 am

Re: Linux DLC

Postby Demosthenex on Tue Jan 10, 2012 11:41 am

After reading this thread, here's how it got all the DLC content working.

I did a full install of all DLC and GSB to Windows, and had my Linux version available as well.

Copy the full directory including all subdirectories (all DLC content included) from Windows to Linux.

Copy the Linux version over the Windows copy, this sets up libs and executables.

Recopy the Windows version overtop, this ensures that we have the latest files that may have been overwritten by inclusion in the Linux version.

After that, we have to convert all BMP files to JPG, and all DDS files to PNG.

Converting the BMP files to JPG solves all the "white screen" issues.

Run these from within the new merged GSB directory:
find . -name '*.bmp' | while read X ; do NEW=$(echo $X | sed 's/\.bmp$/.jpg/g') ; [ -f "$NEW" ] || convert "$X" "$NEW" ; done
find . -name '*.dds' | while read X ; do NEW=$(echo $X | sed 's/\.dds$/.png/g') ; [ -f "$NEW" ] || convert "$X" "$NEW" ; done

Seems to work like a charm! i've run through a few standalone battles and the campaign now, and it all looks good.
Demosthenex
Space cadet
Space cadet
 
Posts: 3
Joined: Thu Jan 05, 2012 5:54 am

Re: Linux DLC

Postby jcp on Tue Jan 10, 2012 2:03 pm

You can use Wine instead of Windows if you don't have a Windows installation.
Windows is useless in fact.
jcp
Ships Engineer (senior)
Ships Engineer (senior)
 
Posts: 12
Joined: Wed Jan 04, 2012 3:23 pm

Next

Return to Linux Support

Who is online

Users browsing this forum: No registered users and 1 guest