Page 1 of 1

How to compile games?

PostPosted: 15 Jan 2012, 12:45
by LawlDude
Today I've downloaded some mods... But I don't understand how to compile games that use Cube 2 Engine (Red Eclipse, Sauerbraten, Sandbox).. Anybody can help me?
Thanks in advance.
p.s. I know there's a good community here! <.<

Re: How to compile games?

PostPosted: 15 Jan 2012, 12:57
by arand
The compilation instructions at http://sourceforge.net/apps/mediawiki/r ... nt_version should apply, I presume.

No compile instructions for windows, though I know there should be a couple of folks around who does that...

Re: How to compile games?

PostPosted: 15 Jan 2012, 13:34
by Julius
Honestly? If you are on windows forget about it... it's just not ment for making that easy.
On Linux it is another thing... have a look at what dev packages you need to install (either written in the readme, or by carefully examinating the error messages of a test compile) and then open the source folder in a terminal to start compiling. Usually all you have to do is to type "make" but that depends a bit on the individual build system. And then you have to wait... quite long sometimes (and depending on your CPU of course).

But most of the time don't bother with compiling... just use the available precompiled binary.

Re: How to compile games?

PostPosted: 15 Jan 2012, 15:04
by sireus
Julius {l Wrote}:Honestly? If you are on windows forget about it... it's just not ment for making that easy.

Never thought I'd defend Windows one day, but truth is that especially Cube-based stuff compiles flawlessly in VCPP without any additional hassle.
Things only get complicated if you need some more serious stuff, i.e. have to get some POSIX-only goodies working via Cygwin or similar hackery. Oh man...

Re: How to compile games?

PostPosted: 15 Jan 2012, 15:15
by LawlDude
I am on Windows 7. Still possible to compile the game?

Re: How to compile games?

PostPosted: 15 Jan 2012, 16:48
by Julius
Well you will probably need the programm "Visual C++", but why do you want to compile it? Cube2 comes with binaries that work just fine under windows. Not sure what you mean with mods in this context... care to point to which one you mean? I am starting to get the suspicion that you mean those source hacks used to cheat in multiplayer :(

Re: How to compile games?

PostPosted: 15 Jan 2012, 18:47
by greaserpirate
Julius {l Wrote}:I am starting to get the supicion that you mean those source hacks used to cheat in multiplayer :(


Hey, give him the benefit of the doubt. As someone who is currently making a source mod(Killer Mode), I can tell you there are a lot better things to do with the engine than making hacks.

As for how to compile on Windows, I can't really help you, but I heard that it's possible to cross-compile. So if you post the source code somewhere I might be able to send you a compiled version.

Re: How to compile games?

PostPosted: 15 Jan 2012, 21:10
by qreeves
Get Code::Blocks (the one bundled with MingW for easiness sake, but realise that there are some issues with the "stable" version of MingW, for better results get the unbundled and install tdm-gcc). Open up src/redeclipse.cbp and build (CTRL-F9, or Build -> Build).

Re: How to compile games?

PostPosted: 15 Jan 2012, 22:38
by Julius
I stand corrected then... Cube2 seems to be actually easily compilable under windows ;) Good to know.

Re: How to compile games?

PostPosted: 16 Jan 2012, 09:38
by LawlDude
Julius {l Wrote}:I am starting to get the suspicion that you mean those source hacks used to cheat in multiplayer :(

I think you already got an answer by greaserpirate, but I will tell you that I'm NOT talkin about hacks, but I'm talking about innocent mods ;3
Anyway thanks to everyone who answered! It's more clear to me now!

Re: How to compile games?

PostPosted: 24 Jan 2012, 20:41
by ZeroKnight
qreeves {l Wrote}:Get Code::Blocks (the one bundled with MingW for easiness sake, but realise that there are some issues with the "stable" version of MingW, for better results get the unbundled and install tdm-gcc). Open up src/redeclipse.cbp and build (CTRL-F9, or Build -> Build).


I was about to suggest exactly this. The windows binaries are actually made through Code::Blocks, if I'm not mistaken. There IS a .cbp included with the Red Eclipse source, though I dunno if it was just added for this very purpose of simplifying windows compilation. Either way, Code::Blocks can indeed compile Red Eclipse.

Re: How to compile games?

PostPosted: 25 Jan 2012, 02:15
by qreeves
ZeroKnight {l Wrote}:I was about to suggest exactly this. The windows binaries are actually made through Code::Blocks, if I'm not mistaken. There IS a .cbp included with the Red Eclipse source, though I dunno if it was just added for this very purpose of simplifying windows compilation. Either way, Code::Blocks can indeed compile Red Eclipse.

I use Code::Blocks myself for development.