How to compile games?

How to compile games?

Postby LawlDude » 15 Jan 2012, 12:45

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! <.<
LawlDude
 
Posts: 8
Joined: 21 Dec 2011, 16:28

Re: How to compile games?

Postby arand » 15 Jan 2012, 12:57

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...
User avatar
arand
 
Posts: 211
Joined: 26 Mar 2011, 21:42

Re: How to compile games?

Postby Julius » 15 Jan 2012, 13:34

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.
User avatar
Julius
Community Moderator
 
Posts: 3306
Joined: 06 Dec 2009, 14:02

Re: How to compile games?

Postby sireus » 15 Jan 2012, 15:04

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...
sireus
 
Posts: 109
Joined: 24 May 2011, 20:10

Re: How to compile games?

Postby LawlDude » 15 Jan 2012, 15:15

I am on Windows 7. Still possible to compile the game?
LawlDude
 
Posts: 8
Joined: 21 Dec 2011, 16:28

Re: How to compile games?

Postby Julius » 15 Jan 2012, 16:48

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 :(
Last edited by Julius on 15 Jan 2012, 18:57, edited 2 times in total.
User avatar
Julius
Community Moderator
 
Posts: 3306
Joined: 06 Dec 2009, 14:02

Re: How to compile games?

Postby greaserpirate » 15 Jan 2012, 18:47

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.

Friendship is Magic Voice Chat Mod
(Map) Trespass
(Map) Suspended
Find out more about >DOOM< here: www.redoomclan.tk
User avatar
greaserpirate
 
Posts: 350
Joined: 22 Jun 2011, 18:23

Re: How to compile games?

Postby qreeves » 15 Jan 2012, 21:10

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).
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Re: How to compile games?

Postby Julius » 15 Jan 2012, 22:38

I stand corrected then... Cube2 seems to be actually easily compilable under windows ;) Good to know.
User avatar
Julius
Community Moderator
 
Posts: 3306
Joined: 06 Dec 2009, 14:02

Re: How to compile games?

Postby LawlDude » 16 Jan 2012, 09:38

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!
LawlDude
 
Posts: 8
Joined: 21 Dec 2011, 16:28

Re: How to compile games?

Postby ZeroKnight » 24 Jan 2012, 20:41

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.
[ Github ][ WazuClan -- irc.wazuclan.com #wazuclan ][ Zero's Archive of RE Extensions, Scripts, WeapMods & More! ]
User avatar
ZeroKnight
 
Posts: 524
Joined: 08 Jun 2011, 01:24
Location: Ohio, United States

Re: How to compile games?

Postby qreeves » 25 Jan 2012, 02:15

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.
Quinton "quin" Reeves | Lead Developer, Red Eclipse | http://redeclipse.net/ | http://www.facebook.com/redeclipse.net
User avatar
qreeves
 
Posts: 1294
Joined: 17 Mar 2011, 03:46
Location: Queensland, Australia

Who is online

Users browsing this forum: No registered users and 1 guest