Allegro.cc - Online Community

Allegro.cc Forums » The Depot » [TINS] Linux

This thread is locked; no one can reply to it. rss feed Print
[TINS] Linux
Simon Parzer
Member #3,330
March 2003
avatar

Short version for those short on time: TINS 2007 Linux Package
Patches: 01 02 03

The day after TINS I tried to make all the entries work under Linux (at first compileable and then runnable).
I managed to get all entries to compile under Linux, and I provided SConstruct files for those who hadn't a Linux build script included. Mostly it was renaming files to Upper- and Lowercase and fixing errors with GCC (it's amazing how many syntax errors don't matter under Windows).

When I tried to run the games I noticed that after installing the necessary libraries only 2 games (Allefant, Raabinator) refused to run. Maybe they work for you, but I can't confirm it.

So, after all there are 16 TINS games that are playable under Linux, assuming that you install all the libraries needed (a few examples are OpenLayer, AllegroGL, guichan, GlyphKeeper, alfont, jpgal, loadpng, ..). I used Debian Etch BTW.

Have fun!

{"name":"591758","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/4\/d403822daea26250d258fea21535b6a6.png","w":650,"h":510,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/d\/4\/d403822daea26250d258fea21535b6a6"}591758{"name":"591749","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/6\/065bf6e6cbb5136e4ecd7f1cc58d81f9.png","w":810,"h":630,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/0\/6\/065bf6e6cbb5136e4ecd7f1cc58d81f9"}591749{"name":"591750","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/a\/ca5471a1f2d4824b857e97a22b55a815.png","w":650,"h":510,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/c\/a\/ca5471a1f2d4824b857e97a22b55a815"}591750{"name":"591782","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/c\/fcb3ca248471d2f9f9d89bafaf528276.png","w":650,"h":510,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/f\/c\/fcb3ca248471d2f9f9d89bafaf528276"}591782{"name":"591752","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/e\/3e64608000961eda48ef4b328725f0e3.png","w":810,"h":630,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/3\/e\/3e64608000961eda48ef4b328725f0e3"}591752{"name":"591756","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/b\/8b0fa3ef650c6f371d4819b56df6696b.png","w":650,"h":510,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/8\/b\/8b0fa3ef650c6f371d4819b56df6696b"}591756{"name":"591754","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/9\/792a31cd599db95115c8c678cb837fff.png","w":650,"h":510,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/9\/792a31cd599db95115c8c678cb837fff"}591754

Onewing
Member #6,152
August 2005
avatar

Garbage Man Stan! still hasn't been approved by amarillion. I tried to submit right at the time the competition closed, but the submit page said "Fatal Error: blah blah blah print_too_late() blah blah blah". Obviously, I was a minute after the deadline, but I pm'd him immediately with a link to the game and had a post up here after another 30 minutes.

I haven't heard from him one way or another. :-/

------------
Solo-Games.org | My Tech Blog: The Digital Helm

Hard Rock
Member #1,547
September 2001
avatar

Uh oh, that doesn't look right.

However I think I've been able to find out what the problem is and I think I've fixed it. I can't test on linux, but you can someone try this (attached)patch for me?

Included are two files, basically in Map.cpp change

  if((fp = fopen(mapName.c_str(),"rt")))

to

  if((fp = fopen(mapName.c_str(),"rb")))

And use the new attached test.map. I have no idea why I was saving the map in text format... I think it's becuase I was having trouble with loading the map in Java and I did that for some particular reason (the map editor I used was written for Java) but that's really weird.

I know I shouldn't have waited until the last minute to write this.

Also good job! Us Windows users are not usually too considerate of the linux population when we write out code ;)

[edit]
Also do you have a list of changes that you needed to make to GWARA if any? If not thats okay I can do a quick diff of all the files, but if you do it would help.

_________________________________________________
Hard Rock
[ Stars Dev Company ][ Twitter ][Global Warming: ARA My TINS 07 Entry][Pong Ultra Website][GifAllegS Ver 1.07]
"Well there's also coolwebsearch but we'll let that be an IE exclusive feature" - arielb on the New Browser Plugins "What's better, HTML or Variables?"

Næssén
Member #5,025
September 2004
avatar

This is great work! By the way, there is a proper Linux friendly package available for Ballz: http://darkbits.org/ballz-1.0.tar.gz

_____________________
darkbits.org | Google+

Simon Parzer
Member #3,330
March 2003
avatar

Quote:

Uh oh, that doesn't look right.

Better now?

Quote:

This is great work! By the way, there is a proper Linux friendly package available for Ballz: http://darkbits.org/ballz-1.0.tar.gz

Great! Are there any changes besides the bugfix?

Hard Rock
Member #1,547
September 2001
avatar

Yep, cool thanks!

Good job again.

_________________________________________________
Hard Rock
[ Stars Dev Company ][ Twitter ][Global Warming: ARA My TINS 07 Entry][Pong Ultra Website][GifAllegS Ver 1.07]
"Well there's also coolwebsearch but we'll let that be an IE exclusive feature" - arielb on the New Browser Plugins "What's better, HTML or Variables?"

Næssén
Member #5,025
September 2004
avatar

Simon Parzer said:

Great! Are there any changes besides the bugfix?

Yeah I made all data install properly in $prefix/share/ballz. I also included the Dumb source, added a README file (giving credits to Dumb) and added a license notice to each source file. Ballz should only be dependent on Allegro >= 4.2 now.

Edit: Ballz never has been dependent on linkage with Guichan libraries as the Guichan source is included.

_____________________
darkbits.org | Google+

Simon Parzer
Member #3,330
March 2003
avatar

Quote:

Edit: Ballz never has been dependent on linkage with Guichan libraries as the Guichan source is included.

Interesting. To my knowledge, not the entire guichan code was included. There were a few important widgets (e.g. Button) missing. Try compiling it with no guichan installed.

Næssén
Member #5,025
September 2004
avatar

Simon Parzer said:

Interesting. To my knowledge, not the entire guichan code was included.

My bad, I had Guichan installed when I tested the source package so I never noticed the missing files (references were missing in an Makefile.am file). I hope it's fixed now.

_____________________
darkbits.org | Google+

Albin Engström
Member #8,110
December 2006
avatar

Simon Parzer said:

had serious memory errors which I wouldn't have been able to resolve in reasonable time

What could have caused this?? :'(

Simon Parzer
Member #3,330
March 2003
avatar

Quote:

What could have caused this?? :'(

Whoops. My fault. I didn't realize that there was data in the Bin/ folder. After making it accessible to my Linux executable by also moving it in the Bin/ folder, your game worked with no problems.

The memory protection fault was because you didn't check if the data was loaded properly. I thought it was something more serious.

Your entry is fixed now in my package (Patch 02).
Same goes for ho2go's entry which had images located somewhere in the source code folder. Just move the executable into the "Britney/" folder and start it from there. Updated build script to do just that (Patch 03).

Albin Engström
Member #8,110
December 2006
avatar

ah, that's nice to hear :P.

lambik
Member #899
January 2001
avatar

Onewing: Amarillion is on a work/holiday trip right now. Didn't know that myself till yesterday :-) I'm quite sure your entry will be approved. We'll just have to wait until he is back I guess.

amarillion
Member #940
January 2001
avatar

Hey I'm back.

Yes, Onewing did send me that entry one minute after the deadline, so I'll accept it. I didn't check my PM inbox just before I left (My bad, last Monday was a very busy day for me).

Now I'll start playing those games...

Go to: