Multiplayer AI script based strategy game.
GalaxyHack allows you to design a fleet of spaceships which can then be tested in AI script based battles against fleets designed by other players. Though battles take place in real time, the strategy comes before hand, both in writing short AI scripts in a very-easy-to-use proprietary scripting language, and also in the set up and selection of your forces.
License: free
Requirements:
- SDL
- SDL_image
- SDL_mixer
- Boost filesystem
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | no | yes | yes | no | yes |
Submitted by James Gregory on 2004-04-11.

I have sdlmixer installed what else do I need?
Have you tried
cd /usr/lib && ls | grep libaudio
to see if a symlink might sort out the problem? Though if other SDL games with sound run fine for you, this shouldn't really be neccessary. If anyone else has any ideas I'm listening...
/usr/X11R6/lib/
for a libaudio to symlink to.
Or indeed try ls -R from /usr or / or whatever.
Btw the game window had no borders.
You probably want to use one of the available command line options to make it full screen, and if you want make it use hardware acceleration too.
Game sounds pretty neat though! I'd be interested to have a look some time.
I think javascript is enough of a standard now that if you purposefully switch it off then you're purposefully being awkward. I don't know what you mean about turning off javascript for "stability", I haven't seen a web browser crash for years.
I think that the benefits that using Javascript brings to a site is greatly outweighed by the convenience of having it turned off.
Just my thoughts
This means that if you've turned off javascript you're probably the sort of person who uses Mozilla or Opera or something. In Mozilla you can stop javascript from doing particularly annoying things just by going edit->preferences, I assume the same is also true of Opera.
I'm always a bit suprised when I see another game with its own scripting language. Looking over the documentation, it's certainly got some cute syntactic sugar -- but there's nothing there that couldn't be done with one of the many, many scheme implementations, meaning less work for the author (no need to maintain ones' own parser/interpreter/etc) and less work for the player (no need to learn YACL).
NIH syndrome, maybe? Or was writing a custom language part of the intent of the exercise?
However, I get the feeling that maybe it wouldn't be a good idea to rewrite it all to use someone else's language even if I wanted to, for one particular reason: speed.
All existing AI script battle games that I am aware of give one single tank/robot/whatever to each player. By giving each player a whole fleet the game has the potential to seriously tax the processor if people write anything more than very short scripts. By disallowing, for instance, explicit loops and forcing people to use built in functions written in C++ that perform loops and return answers, the idea is it should be able to run quickly on a normal PC even if there are lots and lots of groups of units executing fairly complicated scripts.
Ideally I would like to use tabs rather than curly brackets to group blocks, which would then give it a syntax almost identical to Python and make the fact that it is YACL less obvious. But doing this would be rather boring and time consuming and so I think I might instead spend the time elsewhere - like maybe contributing to someone else's game, or indeed maybe just playing games.
It's just a thought, of course, and the implementation difficulty added by such a thing would likely counteract quite a bit of the simplicity added by using a pre-built language... but then, it would certainly be adding another element to the game.
From the talk abstrat at the LL3 programming language conference :
Lua is a scripting language with a growing number of users, mainly in the game industry. Its main features are lightness, portability, efficiency, and easiness to embed. In this talk we will give an overview of the new virtual machine of Lua (version 5.0). We will describe how the machine uses a register-based architecture (instead of the conventional stack-based approach used by most interpreters) and how it optimizes the use of (associative) tables as arrays. These changes allowed a speed up of ~30% in the new version of the language.
Lua is the fastest bytecoded language on the Great Programming Language Shootout, tied with the bytecoded version of ocaml.
Lua is at http://www.lua.org/
An interesting offer.
Is it that hard to separate out a stream now? You must have something that reads your argot out of files now, which is a stream interface. Adding a port to take that same character stream is really all it takes. That way, any decent language could pop onto that stream port and 'speak'.
I haven't even glanced at the code, but as long as there is a method to obtain object status info, i.e. to 'listen', the simple port can be worked. This is how scripters speak to stuff such as gnuplot and TK.
Since this game looks like a variant of Corewars, something you should setup are 'hills'. That's a web-based playfield that takes code submissions and plays them against all prior winners. The new challenger is ranked against the existing 'kings', and bumps the lowest off the hill if it scores better. See a current Corewars FAQ for details.
Such 'hills' would bring ALOT of life to your game. Instead of isolated users, you get a growing group, and such events attract serious notice....
I have been browsing the Net for quite a while to look for good shareware/freeware/OSS generating simulations.
The "business case" is the need to develop a distance learning programme with simulations (otherwise learners get frustrated and 80% of them drop off), and the consultant hired to create the curriculum insists on delivering PowerPoint slides for superior user experience, and some Word and Excel for the simulations :-p
Initially, I had in mind some action maze software (like Quandary). While reading on, I found some commercial providers launch AI enabled training programmes such as flight simulators and - what is closer to my case - business training powered by fuzzy logic (see http://www.computeruser.com/articles/2207,1,1,1,0701,03.html). Thus, I started looking for AI enabled open source games as a potential turf ground for this dream application, and landed in your list.
The basic question is: can GalaxyHack, as existing at present, be re-modelled to feature user defined characters (avatars) and their behaviour, instead of driving tanks? If so, this could be a very interesting case for an eLearning simulator for virtual class training. The requirements are delivery over Internet with potential bad connectivity, and the trainer to be able to control the parameters of the game so it fits the context of the course he teaches.
There is one technology in the article mentioned above that I find interesting to facilitate low bandtwidth delivery - the Veepers of www.pulse3d.com . Any hint to a similar OS programme so I could model the appearance of characters in parallel?
Thanks in advance for your comments. Please send them to [email protected]
Kremena
"Erm, no, probably not"
It takes a little while to adapt to the syntax tough, and my buggy scripts tend crash the game at times. But I'm getting better at scripting :) In my latest victory two of my fregates patroled for 10 minutes around a capitalship, firing at long range while avoiding the ships short range defense :)
- Lack of built in scripting is somewhat annoying, but writing an SDL text editor would be a major undertaking. Maybe one day.
- The game used to feature internet play but I decided to remove it and replace it with the downloading thing because it's never going to be popular enough that internet play would make sense, and you don't actually gain much benefit from internet play if there isn't any real time game interaction in any case. The one line game-tome description really shouldn't begin with "multiplayer" any more but the update game thing doesn't give an option to change it.
I'm just launching the idea, in case someone picks it up and starts something. But I'm a beginning programmer myself, and if the designer of this game likes my suggestions and starts implementing them (as features of the current game), I might actually do this 4X game myself a year or so from now and integrate GalaxyHack into it. I'm a Stars! fan, in case you were wondering, and I've been waiting for ages for a good sequel.
i think in comparison to other write-your-own-ai-scripts games, this one is more easy to get into, [the proof is i did not get frustrated too soon to just loose interest and erase it from my harddisk ;) ]
sadly it is not improved anymore, but i just can recommend looking into it. there are quite some fleets to download to put your own space force up against
:((
Music off doesn't help.
My crazyguyonabike website is constantly getting hit by these, but I am holding them off so far. My block list is currently around 180.
I thought that my preview step on my forums was stopping them, but I notice you seem to have a preview step too, and you're getting hit.
Anyway, if you'd like to talk about it or just rant, feel free to contact me. I found this site through a referer on one of your other forums, where someone linked to my article.
Good luck! This is a problem that just drives me up the wall, I feel like punching someone.
/Neil
I try to block the spam comments by silently discarding all anonymous posts containing "http". We will see if that helps.
Would it be possible to block or automatically delete posts containing html links to specified domains? Maybe just a scripted cron job on the server that greps recent posts and removes them if they match?
Some more variety on background music would be great.
The inline fleet editor would be nice if it supported hilighted AI scripting, elas.
All in all a promising game. Suggestions in random order:
Explosions nearby should create a faint whooshing sound as debris and the compressed atmosphere from the ship's interior expands, striking your ship's hull. Another ship passing close by would also create a whoosh as it's exhaust strikes you hull -- more or less, depending on how much matter is ejected from its engines' thrust. (A rocket throws out a big cloud, whereas crazy reactionless drives wouldn't throw out anything.) In addition, solar and other particles (since space is rarely close to a perfect vacuum) would likewise create a very faint rushing sound if your ship was under a great speed relative to the velocity of nearby particles.
And in a nebula, sound propagates just fine.