- Get external modules using git
- Build external modules(moyai)
- Build Space Sweeper game
- Build backend server
- Start backend server
- Start game
Use GitHub's normal procedure. Make sure that you get submodules recursively. If you're using command line git, you can get appropriate moyai version by this command:
git submodule update --init --recursive
See moyai's README . It supports MacOS X and Windows.
Use cl/sswin/sswin.sln
for windows.
In MacOS X, type make depend;make
in cl directory.
You can build it on MacOS, Linux. Use make command in vce directory, and after that make again in sv directory.
Server program is placed at sv/ssv. First you have to make data directories in sv/datadir by "ruby mkdir.rb" in the directory. Then you'll start it with these command line options:
./ssv realtime database --maxcon=10
You can see usage text by giving no arguments to the program.
Backend server requires Redis is running at localhost. You have to install Redis server in your machine and you'll start the redis server using "redis-server" or some commands like this.
In MacOS, you can find "ss" program in cl directory. In Windows, use sswin.sln and start Debug in Visual Studio.
You have to tell server address to the program. You can use command line argument like this:
--dbhost=localhost --rthost=localhost --username=nobita --debug
When success, you will see character making screen:
--username=STRING
Set the user name. This name corresponds to save game data, and needs to be exclusively controlled at a higher directory.--dbhost=HOSTNAME
Set the address to the backend server’s database. Example: "localhost", "192.168.11.2"--rthost=HOSTNAME
Set the address to the backend server’s realtime server (for game packet synchronization).--debug
Activate debug commands, such as adding items or warping.--autoplay
Play automatically. (Stress testing)--autocharge
Automatically recharge player energy when playing.--speedwalk
Move faster. For debugging.--infitems
Infinite items. For debugging.--jsdebug
Log the joystick at all times.--ncloc
Log nearcast at all times.--skip-wm
Skip the world map screen.--offline
Play in single-player mode without the backend server.--fps=NUMBER
Manually set the frame rate.--long-db-timeout
Set the timeout for the database. This is required when playtesting over a slower network, like a wireless LAN.--save_max_concurrent=NUMBER
Adjust maximum number of concurrent database saving request sent to backend server. Default value is 128 and this is suitable for SSD servers. Use 5~20 for HDD servers. This also depens on network speed/latency.