Jump to content
Dote

Timeline - Stable AS3 CPPS Server

Recommended Posts

Times-0/Timeline

A powerful AS3 CPPS Server emulator written in Python using Twisted!

 

GRAB THE LATEST BUILD: Timeline.zip 

Prerequisites:

Any of the above Python modules can be installed as follows:

If you are using only 1 version of Python

python -m pip install module_name

 

If you are using multiple versions of Python (2 and 3 together)
 

py -2 -m pip install moule_name


 

SETUP [If you are using it in default localhost, skip these]

 

Spoiler

If you don't use default configurations for your MySQL or Redis server or CPPS ports/hostnames, you can change it as follows. Open Start.py in a text editor (with write privileges)

To change MySQL details:

Find the line

DBMS = DBM(user = "root", passd = "", db = "times-cp")


Edit it to match yours, save your file

 

To change Redis-server, open Timeline/Server/Redis.py with a text editor

Search for the following line

redis.Connection(host = '127.0.0.1', reconnect = True).addCallback(self.initPenguins)


Replace it to match yours, and save it

 

To add new servers, open Start.py

Find

Gravity.run('127.0.0.1', 9875)


Below that you can create your server similar to the following

ExampleLoginServer = Engine(Penguin, Constants.LOGIN_SERVER, <SERVER_ID>, "Name of login server")
ExampleLoginServer.run('host to listen on', <login_port>)

ExampleWorldServer = Engine(Penguin, Constants.WORLD_SERVER, <SERVER_ID>, "Example World Server")
ExampleWorldServer.run("<Host to run on>", <ExampleWorld_server_port>)

 

 

 

SETUP DATABASE (Necessary)

If you haven't setup database for timeline before, you need to do this before starting the server.

Open your mysql client (eg, PHPMyAdmin), create a new database namely times-cp, open that table click import, select file as database.sql, import it. You are good to go now.

USAGE

After all being set-up, all you have to do is run the server.

Below are examples of how to run the server from a terminal

cd path/to/timeline 
---IF YOU HAVE ONLY ONE VERSION OF PYTHON INSTALLED--- 
python Start.py 
----- 
---IF YOU HAVE MULTIPLE VERSIONS OF PYTHON--- 
py -2 Start.py 
-----

 

Edited by Dote

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×