Get The Source(tm)
The "cutting-edge" source code is now available via monotone. All current changes are on-hand, even those that haven't been updated into the running version.
What you need:
Quick Start: Set up monotone
Full instructions can be found on the monotone website. Here's a quick-start:
- Initialise database
mtn --db=mydatabase.db db init
- Get the source
mtn --db=mydatabase.db pull exeter.conquer-space.net "net.cqs.*"
- Checkout CqS
- CqS latest code:
mtn --db=mydatabase.db co cqs-trunk --branch=net.cqs.game.trunk
- CqS version 18 (Gamma):
mtn --db=mydatabase.db co cqs-18 --branch=net.cqs.game.ver18
Quick Start: Compile and Run with Ant
- Go to the directory into which you have checked out CqS - it contains a build.xml file (if you followed the steps above, this is simply
cd cqs-17)
- ant
- java -jar startup.jar setup
- java -jar startup.jar start
Development with Eclipse
If you want to do serious development, we recommend Eclipse (http://www.eclipse.org/). Setting everything up with Eclipse is slightly more complicated.
Eclipse: Set up CqS as a project in Eclipse
- Start Eclipse
- Right click on the "Package Explorer"
- New -> Project
- Select "Java Project" and click "Next"
- "Project Name": name the project, e.g. "CqS"
- Select "Create project from existing source"
- Click "Browse" and select the directory in which the source for CqS is saved (e.g. /home/user/monotone/cqs/ or C:\projects\monotone\cqs\)
- Click "Ok" (the selected "Directory" should now be the directory in which the source is saved)
- Click "Finish"
- CqS should now appear as a project in the "Package Explorer" (on the left)
Eclipse: Run Conquer-Space.net locally
We recommend starting CqS by hand in a console. This can be easily done by invoking java startup.jar setup (create a new galaxy) and java startup.jar start (start the game).
Passwords are MD5 encrypted;
Passwords are MD5 encrypted; to encrypt a password, simply run
java -jar startup.jar password. You'll be prompted for a password.hi,i got everything running
hi,i got everything running with no problems till my pc rebooted while cqs was running..i get this message
c:\Program Files\monotone\New Folder\cqs_15ant>java -jar startup.jar start(Unknown Source)
[CORE] Loading config done.
[CORE] Initializing logging done.
[CORE] Backing up galaxy done.
[CORE] Loading galaxy java.io.EOFException: Unexpected end of ZLIB input stream
at java.util.zip.InflaterInputStream.fill(Unknown Source)
at java.util.zip.InflaterInputStream.read(Unknown Source)
at java.util.zip.GZIPInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(Unknown Sour
ce)
at java.io.ObjectInputStream.readStreamHeader(Unknown Source)
at java.io.ObjectInputStream.
at net.cqs.main.config.FrontEnd.readGalaxy(FrontEnd.java:574)
at net.cqs.main.config.FrontEnd.start(FrontEnd.java:508)
at net.cqs.main.Main.startCqS(Main.java:24)
at net.cqs.main.Main.main(Main.java:41)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.cqs.startup.Main.main(Main.java:45)
error..........help me~
D:\Program Files\monotone\cqs_15>java -jar startup.jar start
[CORE] Initializing logging done.
[CORE] Backing up galaxy done.
[CORE] Loading galaxy done.
[CORE] Loading plugins (CatfishHttpProvider,CatfishSmtpProvider,DatabaseAuthProv
ider,WebFrontpage,WebIngame,WebGuest,WebAdmin,WebI18n,WebDoc,BackupPlugin,Databa
sePlugin,TimePlugin,EventPlugin,PlayerPlugin,EmailAllPlugin,SystemPlugin,QuotaPl
ugin) done.
[CORE] Startup!
[HTTP] Opening socket on port 9292
[CORE] Running...
java.lang.IncompatibleClassChangeError: Found interface de.ofahrt.ulfscript.Gene
rator, but class was expected
at de.ofahrt.http2.ServletHelper.generate(ServletHelper.java:41)
at net.cqs.web.frontpage.FrontpageServlet.internalHandleRequest(Frontpag
eServlet.java:112)
at net.cqs.web.frontpage.FrontpageServlet.doGet(FrontpageServlet.java:13
2)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at de.ofahrt.http2.ServletHandler.handle(ServletHandler.java:28)
at de.ofahrt.http2.FilterDispatcher.doFilter(FilterDispatcher.java:39)
at de.ofahrt.http2.FilterDispatcher.dispatch(FilterDispatcher.java:45)
at de.ofahrt.http2.HttpEngine.createResponse(HttpEngine.java:32)
at de.ofahrt.http2.NETEngine.handleRequest(NETEngine.java:131)
at de.ofahrt.http2.NETEngine$1.run(NETEngine.java:277)
java.lang.IncompatibleClassChangeError: Found interface de.ofahrt.ulfscript.Gene
rator, but class was expected