Git Product home page Git Product logo

timeline's Introduction

Timeline

AS2 & AS3 CPPS Emulator, written in Python. Timeline is built heavily on Twisted and is even-driven.

Timeline docs now live at https://times-0.github.io/

Mandatory account activation

Timeline v7.5+ makes it mandatory to activate your account. New registered penguin get a trial period of 7 days, within which the user must activate their account using the provided email. If not, they won't be able to login after 7 days of register, unless account activated (unlike Disney' policy of deleting your account instead)

Friend list update

Timeline v7.6+ integrates support for Disney's friends list. Make sure you follow this link to set it up in your server - Times-0 > Friends-CP

EPF update

After persistent request, the EPF with no real reason for it's existance is being revived. You asked it, so edit your database by executing the below SQL

ALTER TABLE `penguins` ADD `agent` INT(1) NOT NULL DEFAULT '0' AFTER `cover_icon`, ADD `epf` VARCHAR(50) NOT NULL DEFAULT '0%0' AFTER `agent`;

AS2 + AS3 Cross-compatible Server

Timeline v7.4+ supports AS2+AS3 cross compatible server. What this means for you is that, you run a single server that can accept both AS2 and AS3 clients, both at the same time

Note: There still needs some fix for certain packets that differ from AS2 to AS3, this will be looked into in the near future

Default server is now a cross-compatible AS2+AS3 server.

Server Jumping

Timeline v7.3 or later supports In-game Server Jumping feature. To use this make sure you have setup your client already. You can visit docs for detailed guide on adding Server Jumping feature to the client.

Firebase Integration

Timeline v7.2 or later supports the integrated Firebase, autologin system. To use this, make sure you have compatible client setup already. You can visit docs for detailed guide on how to setup Firebase login system.

This integration is optional, yet recommended. No data loss, or account loss will be experienced during this integration. Any account not using firebase, will be automatically converted upon login

Real-time Message Filter [Perspective API]

Timeline v7.1 or later, supports real-time filtering of messages, based on toxicity in the content of speech. Using the Google's intelligent AI based Perspective API, it's now made possible to have more child-friendly environment.

The Perspective API Key provided by default is just for testing/development/educational purpose. Please don't use the same key for your production server. You must get yourself whitelisted from Google, and get yourself a key for your server.

Visit this Quickstart Guide to Perspective to get yourself a key. Don't worry, you'll mostly get whitelisted within a day. Look into Timeline > Handlers > Messages # Line 76 for more details, on how to effectively use your key.

Important Upgrade Notice (From Timeline v>= 7)

From the version 7 of Timeline, there is a strict implementation, forcing you to follow a database convention, in order to make it easy to upgrade to newer database sturcture without any chaos. All new database, using new database structure should follow the nomenclature: database name should end with line. Example, timeline, waddle-line, waddleupline, and so on.

Everyone who started using v7, and want to migrate data from older version, are requested to use the python script DatabasePort.py to port all your old data into the new database structure.

Note It is recommended to run the script as sudo (on UNIX server). ie, sudo python DatabasePort.py, in-order to have an error free, and smooth experience.

Of all the chaos what do you yet? You get a sweet, charm, more flexible, server, which has on-the air, real-time updation of data. And everyone's favourite CJ Fire v/s Sensei. What more you think could suffice this? Oh yeah, some bugs and filaments are cleaned up too :~)

Oh and, upgrade Twisted module if you haven't already :~D

AS2 and AS3 Cross-Compatibility

The flexibility of Timeline, makes sure it's cross-compatible with both AS2 and AS3 clients.

From the version 6 of Timeline, Timeline can run both AS2 and AS3 Servers at once. One solution for multiple problems. AS2 is integrated into the AS3 Piece of pie, with some tweaks and added extra flavors. No loss of performance, experience, and stability has been made during this compatibility upgrade. It indeed works better than ever before. Timeline v6 is ready for production too.

For convenience, here, we refer both Timeline AS2 and AS3 as Timeline.

For detailed information, visit here

Visit the official test server, where you can see, test and try all features of current version of Timeline, in real time: https://timeline.valid22.pw

Contribution

Timeline is a free, open-source project.

Requirements

Extras

You can use the following to add more features and customization to your CPPS:

  • FindFour AI - An intelligent, human like bot, with whom you can play FindFour matches with.
  • Commands - Comes with Timeline by default. Enables users to use shortcut commands with the chat system.

Note: There maybe many other plugins not listed in the above list, the above are ones officially tested and found to be working and 100% legit

Installation and Usage

Download Timeline, put it in an accessible and readable directory. Navigate to that directory using CMD or Shell or any console client. Run Start.py. The server will start running.

You can edit Start.py to change Handlers module scope, TCP IP/Port endpoints, Logger etc. You can also add new methods!

Make sure you run MySQL and Redis server before starting the server.

Please run DatabasePort.py to create tables in your database. It also auto recreated db for you, you just need a spare databse beforehand. (ie, old dbname as spare db, new db name as the one you want to create)

Installing mysql-python (MySQLdb)

Who hadn't had trouble installing MySQLdb (MySQL-python) package for Python on Windows!

If you are on UNIX environment (ie Ubuntu, Linux, etc), the following should work just fine

sudo pip install MySQL-python

But, the same in Windows, should be a lot messy, so instead try executing the following command instead. Before that, move the command console into the directory in which you have installed Timeline (eg: cd C:\Users\Times\Desktop\Timeline-master

pip install MySQL_python-1.2.5-cp27-none-win_amd64.whl

if that didn't work, try this

pip install MySQL_python-1.2.5-cp27-none-win32.whl

That's it. All the connectors are baked. :~)

Default

  • Default database : timeline
  • Default user : username: test, password: password
  • Default crumbs directory : ./configs/crumbs/

IMPORTANT : By default Timeline uses colored logger, so you must install 'colorlog'. If you wish not to use it and go by classical logger, change the following line

TimelineLogger = InitiateColorLogger()

to

TimelineLogger = InitiateLogger()

Features

Timeline is almost complete, covering support for all features present in native CP and any classical CPPS. Below is an adaptive list briefing such features:

  • Login [AS2, AS3]
  • Server Jumping [AS3]
  • Inventory [AS2, AS3]
  • Purchasing [AS2, AS3]
  • Clothing [AS2, AS3]
  • Moderator [AS2, AS3]
  • Stealth Moderator [AS3] AS2 client natively doesn't support stealth mod, even if Timeline does
  • Mascots [AS2, AS3]
  • Rooms (spawning) [AS2, AS3]
  • Postcards [AS2, AS3]
  • EPF [AS2, AS3]
  • Chatting [AS2, AS3]
  • Stamps [AS2, AS3]
  • Puffles [AS2, AS3]
  • Puffle adoption [AS2, AS3]
  • Puffle digging [AS3] Puffle Digging is AS3 exclusive feature, AS2 client doesn't support it
  • Rainbow puffle quest [AS3] Rainbow puffle is AS2 only, AS2 client doesn't support it
  • Gold puffle quest [AS3] Golden puffle is AS3 only,
  • Golden nuggets [AS3] * AS2 client doesn't support it*
  • Igloo [AS2, AS3]
  • Player actions [AS2, AS3]
  • Player interactions [AS2, AS3]
  • Player movements [AS2, AS3]
  • Player informatics [AS2, AS3]
  • Sound Studio (Music) [AS3] Sound studio is an AS3 exclusive feature, AS2 client doesn't support it
  • Friends [AS2, AS3]
  • Games (Single Player) [AS2, AS3]
  • Find Four (Multiplayer-Table) [AS3]
  • Mancala (Multiplayer-Table) [AS3]
  • TreasureHunt (Multiplayer-Table) [AS2, AS3]
  • Sled Racing (Multiplayer-Waddle) [AS3] todo as2
  • Card Jitsu (Multiplayer-Waddle) [AS3] todo as2
  • Card Jitsu v/s Sensei (Single Player) [AS3] todo as2
  • Card Jitsu Fire (Multiplayer-Waddle) [AS3] todo as2
  • Card Jitsu Fire v/s Sensei [AS3] todo as2
  • Card Jitsu Water (Multiplayer-Waddle) [AS3] todo as2

Support

If you have any issue, found any bug or error or issue, or want to suggest some improvemnt, you are free to open an issue or request a pull request.

timeline's People

Contributors

123jjck avatar danlcd avatar valid22 avatar zombiestruck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

timeline's Issues

Assisting development

Hi, this isn't an issue but didn't know of a way to get in touch with you guys.

I've recently come across this project and I love what y'all are doing!

I used to code CPPS servers in PHP back in the prime days of the Rile5 forums. 2011-2015

I have had gotten redemption servers to fully work (Treasure Books, Golden Cards, DS game code, Campaign codes) and also game data saving and retrieving to work (Puffle Cannon uses this)
With a little luck I have found my old source files!

Would love to hear from you as I am not a highly proficient Python programmer but would really like to give my input :)

Not loading the login page

I am using a VPS with ubuntu 18.04, I followed the tutorial step by step and everything seems to be working ( no errors while running etc ). However, when I go to the play domain and click the login button, nothing loads. Flash is enabled and in dev tools everything loads fine ( including clubpenguin.swf). I've tried changing the IP in start.py to 0.0.0.0 and other stuff but nothing seems to work. Thank you.

SyntaxError: invalid syntax

Whenever I attempt to run DatabasePort.py from the terminal I get the following error:

python databaseport.pyFile "databaseport.py", line 86except Exception, e:^SyntaxError: invalid syntax

Anyone know how to fix?

Thanks!

Small login issue

Hi.
Looks like a small logic error on line 87 of Login.py

87: exist = (yield client.db_penguinExists('username', user)) if user != '$fire' and FIREBASE_INIT else True

This throws error from DB.py as it stills try to login even with an invalid penguin name.
If username !='$fire' and FIREBASE_INIT then is firebase is not initialised we will get 0 on this condition and set exist to true.

Can easily be fixed with:

exist = (yield client.db_penguinExists('username', user)) if (user != '$fire' and FIREBASE_INIT == 0) else True

Error with running Timeflex (Flex.py)

I've followed the guide for setting up/running flex.py completely by when I try to run Flex.py it throws this error.
I'm using Windows powershell and this error happens on running with admin and without and running timeline via localhost.

PS C:\Windows\system32> cd C:\Users\user\Documents\CPSERVER\TimeFlex
PS C:\Users\user\Documents\CPSERVER\TimeFlex> python Flex.py
Traceback (most recent call last):
  File "Flex.py", line 8, in <module>
    from Session import *
  File "C:\Users\user\Documents\CPSERVER\TimeFlex\Session.py", line 3, in <module>
    from core import *
  File "C:\Users\user\Documents\CPSERVER\TimeFlex\core.py", line 2, in <module>
    from flask_caching import Cache
  File "C:\Python27\lib\site-packages\flask_caching\__init__.py", line 412
    nonlocal source_check
                        ^
SyntaxError: invalid syntax

twisted.internet.tcp.Connector errors when opening the server

Hello,
I've been trying to set up a Timeline server and everything seems to be correct (ports are available and open, MariaDB server is online and all Python libraries are installed). Whenever I open the console and it starts both AS2 and AS3 default login and world servers, a twisted error appears.

Here's the log

DEBUG    | Timeline Logger::Initiated

INFO     | Starting MySQL DB Pool... @username:database

INFO     | MySQL Database pool setup successfully

INFO     | Loaded 4 Plugin(s) : Commands, LoginNotification

DEBUG    | Player Commands Active!

INFO     | Login Notification activated!

INFO     | Loading modules in: Timeline.Handlers

**INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc7ad9e60> will retry in 2 seconds

INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc7ad9cb0>**

DEBUG    | Sensei has been born!

DEBUG    | Join(j) Packet handlers initiated!

DEBUG    | Login Server::Login initiated!

DEBUG    | World Server::Login initiated!

INFO     | Loaded a fresh set of 26 module(s) in Timeline.Handlers

INFO     | Loading modules in: Timeline.PacketHandler

INFO     | Loaded a fresh set of 8 module(s) in Timeline.PacketHandler

INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6bc405f998>

INFO     | [LS:Login] Timeline Factory Started!

INFO     | [LS:Login] Running: Login

INFO     | [LS:Login] Maximum users: 299

INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6bc406e3b0>

INFO     | [WS:Gravity] Timeline Factory Started!

INFO     | [WS:Gravity] Running: Gravity

INFO     | [WS:Gravity] Maximum users: 299

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 17 Color Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 1186 Head Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 225 Face Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 311 Neck Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 1529 Body Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 538 Hand Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 315 Feet Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 389 Pin Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 377 Photo Items

INFO     | [WS:Gravity] [Crumbs::Item] Loaded 36 Award Items

INFO     | [WS:Gravity] [RoomHandler]  Loaded a total of 81 Room(s)

INFO     | [WS:Gravity] [RoomHandler]  Loaded 81 Place(s)

INFO     | [WS:Gravity] [RoomHandler]  Loaded 6 Multiplayer(s)

INFO     | [WS:Gravity] [RoomHandler]  Loaded 5 Arcade(s)

INFO     | [WS:Gravity] [RoomHandler]  Loaded 42 Game(s)

DEBUG    | Card Jitsu Initiated

DEBUG    | Card Jitsu Fire Initiated

DEBUG    | FindFour Tables Loaded

INFO     | [WS:Gravity] [Crumbs:Post] Loaded 34 Postcard(s)

DEBUG    | Mancala Tables Loaded

DEBUG    | Sled Racing' Tracks Initiated

INFO     | [WS:Gravity] [Crumbs::Igloo] Loaded 96 Igloo(s)

INFO     | [WS:Gravity] [Crumbs::Igloo] Loaded 1384 Furniture(s)

INFO     | [WS:Gravity] [Crumbs::Igloo] Loaded 24 Floor(s)

INFO     | [WS:Gravity] [Crumbs::Igloo] Loaded 24 Location(s)

DEBUG    | TreasureHunt Tables Loaded

INFO     | [WS:Gravity] [Crumbs::Puffle] Loaded 40 Type of Puffle(s)

INFO     | [WS:Gravity] [Crumbs::Puffle] Loaded 40 Puffle item(s)

INFO     | [WS:Gravity] [Crumbs::Stamps] Loaded 352 Stamp(s)

INFO     | [WS:Gravity] [Crumbs::Stamps] Loaded Stampbook cover details

INFO     | [WS:Gravity] [Crumbs::Cards] Loaded 509 Card(s)

INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6ba841f050>

INFO     | [LS:Login AS2] Timeline Factory Started!

INFO     | [LS:Login AS2] Running: Login AS2

INFO     | [LS:Login AS2] Maximum users: 299

INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6ba8544c68>

INFO     | [WS:Gravity AS2] Timeline Factory Started!

INFO     | [WS:Gravity AS2] Running: Gravity AS2

INFO     | [WS:Gravity AS2] Maximum users: 299

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 17 Color Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 1186 Head Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 225 Face Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 311 Neck Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 1529 Body Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 538 Hand Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 315 Feet Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 389 Pin Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 377 Photo Items

INFO     | [WS:Gravity AS2] [Crumbs::Item] Loaded 36 Award Items

INFO     | [WS:Gravity AS2] [RoomHandler]  Loaded a total of 81 Room(s)

INFO     | [WS:Gravity AS2] [RoomHandler]  Loaded 81 Place(s)

INFO     | [WS:Gravity AS2] [RoomHandler]  Loaded 6 Multiplayer(s)

INFO     | [WS:Gravity AS2] [RoomHandler]  Loaded 5 Arcade(s)

INFO     | [WS:Gravity AS2] [RoomHandler]  Loaded 42 Game(s)

INFO     | [WS:Gravity AS2] [Crumbs:Post] Loaded 34 Postcard(s)

DEBUG    | Card Jitsu Initiated

INFO     | [WS:Gravity AS2] [Crumbs::Igloo] Loaded 96 Igloo(s)

DEBUG    | Card Jitsu Fire Initiated

DEBUG    | FindFour Tables Loaded

DEBUG    | Mancala Tables Loaded

DEBUG    | Sled Racing' Tracks Initiated

INFO     | [WS:Gravity AS2] [Crumbs::Igloo] Loaded 1384 Furniture(s)

INFO     | [WS:Gravity AS2] [Crumbs::Igloo] Loaded 24 Floor(s)

INFO     | [WS:Gravity AS2] [Crumbs::Igloo] Loaded 24 Location(s)

INFO     | [WS:Gravity AS2] [Crumbs::Puffle] Loaded 40 Type of Puffle(s)

INFO     | [WS:Gravity AS2] [Crumbs::Puffle] Loaded 40 Puffle item(s)

INFO     | [WS:Gravity AS2] [Crumbs::Stamps] Loaded 352 Stamp(s)

INFO     | [WS:Gravity AS2] [Crumbs::Stamps] Loaded Stampbook cover details

DEBUG    | TreasureHunt Tables Loaded

INFO     | [WS:Gravity AS2] [Crumbs::Cards] Loaded 509 Card(s)

INFO     | Engine starting on 6112

INFO     | Starting factory Login<AS3p:1#0>

INFO     | [LS:Login] Login listening on 127.0.0.1:6112

INFO     | Engine starting on 9875

INFO     | Starting factory Gravity<AS3p:100#0>

INFO     | [WS:Gravity] Gravity listening on 127.0.0.1:9875

INFO     | Engine starting on 6113

INFO     | Starting factory Login AS2<AS2p:2#0>

INFO     | [LS:Login AS2] Login AS2 listening on 127.0.0.1:6113

INFO     | Engine starting on 9876

INFO     | Starting factory Gravity AS2<AS2p:101#0>

INFO     | [WS:Gravity AS2] Gravity AS2 listening on 127.0.0.1:9876

**INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc405fa28> will retry in 3 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc405fc68> will retry in 7 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc405fea8> will retry in 12 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406b128> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406b368> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406b5f0> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406b878> will retry in 7 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406bb00> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406bd88> will retry in 11 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406e050> will retry in 6 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc405f998>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406e488> will retry in 2 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406e7e8> will retry in 7 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406e9e0> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406ec20> will retry in 7 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406ee60> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bb4193128> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bb41933b0> will retry in 11 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bb4193638> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bb41938c0> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bb4193b48> will retry in 9 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc406e3b0>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba841f2d8> will retry in 2 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba841f6c8> will retry in 6 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba827b248> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80ed3f8> will retry in 11 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80ed758> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80edab8> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80ede18> will retry in 11 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba85441b8> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8544518> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8544878> will retry in 10 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6ba841f050>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8544d40> will retry in 2 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8084050> will retry in 5 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8084320> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8084560> will retry in 10 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80847a0> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba80849e0> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8084c68> will retry in 9 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8084ef0> will retry in 8 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba83071b8> will retry in 7 seconds
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8307440> will retry in 10 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6ba8544c68>
INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6bc7ad9cb0>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc7ad9e60> will retry in 7 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc7ad9cb0>
INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6ba841f050>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba841f2d8> will retry in 8 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6ba841f050>
INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6ba8544c68>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6ba8544d40> will retry in 10 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6ba8544c68>
INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6bc406e3b0>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc406e488> will retry in 9 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc406e3b0>
INFO     | Starting factory <txredisapi.RedisFactory instance at 0x7f6bc405f998>
INFO     | <twisted.internet.tcp.Connector instance at 0x7f6bc405fa28> will retry in 10 seconds
INFO     | Stopping factory <txredisapi.RedisFactory instance at 0x7f6bc405f998>**

What I am referring to is marked in bold.
Is this normal? I think it may not be contacting correctly the Redis server (it's in the same machine, so I didn't change the 127.0.0.1 address on the /Server/Redis.py.)

Unable to login penguin into Server

Hello, i can't connect to the server. My penguin gets disconnect by this error :
'' ERROR | [WS:Gravity] <Penguin #1 on 3724>, AS3p need more than 1 value to unpack ''

Here is the full trace log :
DEBUG | [WS:Gravity] [SEND] <Penguin #0 on 3724>, AS3p
DEBUG | [WS:Gravity] [RECV] <Penguin #0 on 3724>, AS3p
DEBUG | [WS:Gravity] [SEND] <Penguin #0 on 3724>, AS3p
INFO | [WS:Gravity] <Penguin #0 on 3724>, AS3p Disconnected Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
INFO | [WS:Gravity] Built new protocol for user#0
DEBUG | [WS:Gravity] [SEND] <Penguin #1 on 3724>, AS3p
DEBUG | [WS:Gravity] [RECV] <Penguin #1 on 3724>, AS3p
DEBUG | [WS:Gravity] [SEND] <Penguin #1 on 3724>, AS3p
DEBUG | [WS:Gravity] [RECV] <Penguin #1 on 3724>, AS3p
DEBUG | [WS:Gravity] [SEND] <Penguin #1 on 3724>, AS3p v$WJ-4U'2]]>
DEBUG | [WS:Gravity] [RECV] <Penguin #1 on 3724>, AS3p
ERROR | [WS:Gravity] <Penguin #1 on 3724>, AS3p need more than 1 value to unpack
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
INFO | Penguin ASync-Refresh-ing : Penguin - $Ensei, Forced - False
WARNING | Discarding Penguin Object: <Penguin #0 on 3724> : <Penguin #0 on 3724>, AS3p
INFO | [WS:Gravity] <Penguin #1 on 3724>, AS3p Disconnected Reason: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.
]
WARNING | Discarding Penguin Object: <Penguin #1 on 3724> : <Penguin #1 on 3724>, AS3p

Clicking "Play CPPS" doesn't load the game

Clicking the "Play CPPS" button takes me to a blank page with "Relogin the game" in the top left, and nothing else. It asked me for permission to use Flash the first time, but it doesn't do anything anymore

EDIT: Forgot to mention, there are no errors in my browsers console

cant enter room

I can not enter the Puffle Berry Mall, the Skatepark and the Puffle Wild.
Nothing errors in console.
Everything is in the crumbs.

Start.py not working

Timeline Logger::Initiated
Starting MySQL DB Pool... @root:timeline
MySQL Database pool setup successfully
Loaded 4 Plugin(s) : Commands, LoginNotification
Player Commands Active!
Login Notification activated!
Firebase initiated
Join(j) Packet handlers initiated!
Login Server::Login initiated!
World Server::Login initiated!
Loaded a fresh set of 28 module(s) in Timeline.Handlers
Loading modules in: Timeline.Handlers
Loaded a fresh set of 8 module(s) in Timeline.PacketHandler
Loading modules in: Timeline.PacketHandler
[LS:Login] Timeline Factory Started!
[LS:Login] Running: Login
[LS:Login] Maximum users: 299
[WS:Gravity] Timeline Factory Started!
[WS:Gravity] Running: Gravity
[WS:Gravity] Maximum users: 299
[WS:Gravity] [Crumbs::Item] Loaded 17 Color Items
[WS:Gravity] [Crumbs::Item] Loaded 1186 Head Items
[WS:Gravity] [Crumbs::Item] Loaded 225 Face Items
[WS:Gravity] [Crumbs::Item] Loaded 311 Neck Items
[WS:Gravity] [Crumbs::Item] Loaded 1529 Body Items
[WS:Gravity] [Crumbs::Item] Loaded 538 Hand Items
[WS:Gravity] [Crumbs::Item] Loaded 315 Feet Items
[WS:Gravity] [Crumbs::Item] Loaded 389 Pin Items
[WS:Gravity] [Crumbs::Item] Loaded 377 Photo Items
[WS:Gravity] [Crumbs::Item] Loaded 36 Award Items
[WS:Gravity] [RoomHandler] Loaded a total of 81 Room(s)
[WS:Gravity] [RoomHandler] Loaded 5 Arcade(s)
[WS:Gravity] [RoomHandler] Loaded 42 Game(s)
[WS:Gravity] [RoomHandler] Loaded 6 Multiplayer(s)
[WS:Gravity] [RoomHandler] Loaded 81 Place(s)
Card Jitsu Initiated
Card Jitsu Fire Initiated
FindFour Tables Loaded
Mancala Tables Loaded
Sled Racing' Tracks Initiated
TreasureHunt Tables Loaded
[WS:Gravity] [Crumbs:Post] Loaded 34 Postcard(s)
[WS:Gravity] [Crumbs::Igloo] Loaded 96 Igloo(s)
[WS:Gravity] [Crumbs::Igloo] Loaded 1384 Furniture(s)
[WS:Gravity] [Crumbs::Igloo] Loaded 24 Floor(s)
[WS:Gravity] [Crumbs::Igloo] Loaded 24 Location(s)
[WS:Gravity] [Crumbs::Puffle] Loaded 40 Type of Puffle(s)
[WS:Gravity] [Crumbs::Puffle] Loaded 40 Puffle item(s)
[WS:Gravity] [Crumbs::Stamps] Loaded 352 Stamp(s)
[WS:Gravity] [Crumbs::Stamps] Loaded Stampbook cover details
[WS:Gravity] [Crumbs::Cards] Loaded 509 Card(s)
[WS:Gravity] [Crumbs::Avatar] Loaded 28 Avatar(s)
Engine starting on 6112
Starting factory LoginAS3p+AS2p:1#0
[LS:Login] Login listening on 127.0.0.1:6112
Engine starting on 9875
Starting factory GravityAS3p+AS2p:100#0
[WS:Gravity] Gravity listening on 127.0.0.1:9875
[LS:Login] (Redis) Setting redis data...
[LS:Login] (Redis) Setup memcache data successful!
[WS:Gravity] (Redis) Setting redis data...
Error executing method - setSensei : an integer is required[exceptions.TypeError: an integer is required in File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 193, in init]
*--- Failure #8 ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:501: errback(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:568: _startRunCallbacks(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:654: _runCallbacks(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:1475: gotResult(...)
[Capture of Locals and Globals disabled (use captureVars=True)]
--- ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:1416: _inlineCallbacks(...)
C:\Python27\lib\site-packages\twisted\python\failure.py:512: throwExceptionIntoGenerator(...)
C:\Users\maxry\Desktop\Timeline\Timeline\Handlers\Games\CardJitsu\CardJitsu.py:22: setSensei(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:1416: _inlineCallbacks(...)
C:\Python27\lib\site-packages\twisted\python\failure.py:512: throwExceptionIntoGenerator(...)
C:\Users\maxry\Desktop\Timeline\Timeline\Handlers\Games\CardJitsu\CardJitsu.py:102: checkForSensei(...)
C:\Python27\lib\site-packages\twisted\python\threadpool.py:250: inContext(...)
C:\Python27\lib\site-packages\twisted\python\threadpool.py:266: (...)
C:\Python27\lib\site-packages\twisted\python\context.py:122: callWithContext(...)
C:\Python27\lib\site-packages\twisted\python\context.py:85: callWithContext(...)
C:\Python27\lib\site-packages\twistar\dbconfig\mysql.py:26: _runInteraction(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:460: runInteraction(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:36: init(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:76: reconnect(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:427: connect(...)
C:\Python27\lib\site-packages\MySQLdb_init
.py:81: Connect(...)
C:\Python27\lib\site-packages\MySQLdb\connections.py:193: init(...)
[Capture of Locals and Globals disabled (use captureVars=True)]
exceptions.TypeError: an integer is required
*--- End of Failure #8 ---
[WS:Gravity] (Redis) Setup memcache data successful!
Error executing method - setSensei : an integer is required[exceptions.TypeError: an integer is required in File "C:\Python27\lib\site-packages\MySQLdb\connections.py", line 193, in init]
*--- Failure #13 ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:501: errback(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:568: _startRunCallbacks(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:654: _runCallbacks(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:1475: gotResult(...)
[Capture of Locals and Globals disabled (use captureVars=True)]
--- ---
C:\Python27\lib\site-packages\twisted\internet\defer.py:1416: _inlineCallbacks(...)
C:\Python27\lib\site-packages\twisted\python\failure.py:512: throwExceptionIntoGenerator(...)
C:\Users\maxry\Desktop\Timeline\Timeline\Handlers\Games\CardJitsu\CardJitsu.py:33: setSensei(...)
C:\Python27\lib\site-packages\twisted\internet\defer.py:1416: _inlineCallbacks(...)
C:\Python27\lib\site-packages\twisted\python\failure.py:512: throwExceptionIntoGenerator(...)
C:\Users\maxry\Desktop\Timeline\Timeline\Database\DB.py:267: db_init(...)
C:\Python27\lib\site-packages\twisted\python\threadpool.py:250: inContext(...)
C:\Python27\lib\site-packages\twisted\python\threadpool.py:266: (...)
C:\Python27\lib\site-packages\twisted\python\context.py:122: callWithContext(...)
C:\Python27\lib\site-packages\twisted\python\context.py:85: callWithContext(...)
C:\Python27\lib\site-packages\twistar\dbconfig\mysql.py:26: _runInteraction(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:460: runInteraction(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:36: init(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:76: reconnect(...)
C:\Python27\lib\site-packages\twisted\enterprise\adbapi.py:427: connect(...)
C:\Python27\lib\site-packages\MySQLdb_init
.py:81: Connect(...)
C:\Python27\lib\site-packages\MySQLdb\connections.py:193: init(...)
[Capture of Locals and Globals disabled (use captureVars=True)]
exceptions.TypeError: an integer is required
*--- End of Failure #13 ---

Not a issue

Hello, sorry not sure where to post but what types of specs should I be looking for for a couple of friends (max 10) (I just want to do it for fun).

Thank you,
Mitch

Setup troubles with MySQLdb

 ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-dImAwq/mysql-python/setup.py'"'"'; __file__='"'"'/tmp/pip-install-dImAwq/mysql-python/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-cuYMOj
         cwd: /tmp/pip-install-dImAwq/mysql-python/
    Complete output (10 lines):
    sh: 1: mysql_config: not found
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-dImAwq/mysql-python/setup.py", line 17, in <module>
        metadata, options = get_config()
      File "setup_posix.py", line 43, in get_config
        libs = mysql_config("libs_r")
      File "setup_posix.py", line 25, in mysql_config
        raise EnvironmentError("%s not found" % (mysql_config.path,))
    EnvironmentError: mysql_config not found
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

On Ubuntu 20.04.1
When attempting to install MySQLdb by doing 'sudo pip install MySQL-Python' I get the above error - I looked around and it seems like it's no longer supported/usable? I have tried updating setup tools but it changes nothing.

On the readme under requirements it says that you can use an alternative connector? It also lists mysql-connector-python, so I went and installed that - then it said to change line 31 of init.py in the Database folder in timeline. It could be me missing something - but I dont see any easy to change variable in there to direct it to mysql-connector-python instead of MySQLdb

Thanks to anyone who can help

media1 missing ?

I was just following the tutorial when I hit a roadblock, I was installing AS3 and media1 was missing.

It all happened when I tried to nano the file and it wasn't there.

I went from directory to directory trying to find it and it wasn't there, I honestly couldn't find it anywhere, It may just be me being dumb and not being able to find it or it might have disappeared.

I just bought a domain just for this and I can't wait to host my own cpps, the guild is well written and pretty good and the code hasn't made me pull my hair out yet.
Screen Shot 2020-05-01 at 8 28 06 PM

error msql pool

im error in start .py
pls help
out this
INFO | Starting MySQL DB Pool... @root:timeline
ERROR | Unable to start MySQL Pool on given details. (E:global name 'cpps' is not defined)
INFO | Unable to setup MySQL Pool

Start.py

When executing Start.py gives this error

Traceback (most recent call last):
File "Start.py", line 94, in HotLoadModule
return Handler.startLoadingModules()
File "/CPPS/Timeline/Timeline/Utils/Modules.py", line 220, in startLoadingModules
Defer.addErrback(self.loadingException)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 333, in addErrback
errbackKeywords=kw)
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 311, in addCallbacks
self._runCallbacks()
--- ---
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/CPPS/Timeline/Timeline/Utils/Modules.py", line 212, in loadingException
sys.exit(0)
exceptions.SystemExit: 0

CRITICAL |
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
current.result = callback(current.result, *args, **kw)
File "/CPPS/Timeline/Timeline/Utils/Modules.py", line 212, in loadingException
sys.exit(0)
SystemExit:

0

Also would be great if you could contact me on discord , please leave your discord.

Question about emulator

Hello,

does this emulator still use Flash?
I need to make CPPS without it - how can I do so? Because I can't find any source online.
Thanks,
LikeManTV

Penguin Name doesn't work

Why penguin (no moderator) are with a name: P(id) in game ? How to resolve this ? (sorry i'm french)

TEXT IN FRENCH : Pourquoi les pingouins (non modérateurs) ont un nom sous la forme P(id) dans le jeu ? Comment resoudre cela ?

Pip module (Watchdog) Error upon installation

When installing the required pip modules (specifically Watchdog) this error occurs.

Collecting watchdog Downloading https://files.pythonhosted.org/packages/f3/6e/14f228ece54c289af148f9f588d9e591fa8294e36193c1904682affb2751/watchdog-1.0.0.tar.gz (97kB) 100% |████████████████████████████████| 102kB 4.1MB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "/tmp/pip-build-qUhb6T/watchdog/setup.py", line 18, in <module> import importlib.util ImportError: No module named util

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qUhb6T/watchdog/

I think this is a issue with the module itself but i couldn't find anything online and in case you need any extra information: am using Ubuntu 18.04 and had followed the setup guide exactly with mariadb.

Fixed the issue by downgrading to a older watchdog version (0.10.6)

How is it supposed to be set up?

I currently have it on a private server, I don't understand who I'm supposed to link it to my domain as all the https://times-0.github.io/docs show is
'Then, you add Two CNAME records. one for play subdomain, another for media1/media (AS3/AS2) subdomain. Make sure they look similar to this and save the settings'
Which makes no sense.
Screen Shot 2020-05-02 at 12 19 04 AM

I don't understand how I'm supposed to link it to my domain. Because Cloudflare requires a Target for the traffic to be transferred to and I don't think I'm supposed to put valid22.pw.
Screen Shot 2020-05-02 at 12 19 33 AM

Can't login to Timeline

Already set up Firebase, but whenever I try to login using Google, it just says "Unable to login. Please relogin. Signin status: Signed-Out", and I can't make an email account, because the Sign Up button does nothing

EDIT: The previous issue has been sorted out by adding my server's ip to the host variable at the bottom of Flex.py, but now I am getting multiple other issues, including "auth.failed: database error", "database.error: error verifying user", "OperationalError: Column 'swid' cannot be null"

Black play page

hello im new issue im trying play cpps
httpd-vhost.conf
image

console error

image

Can't download Full Mediaserver

Hello

When I try to download the full AS2 and AS3 mediaserver, i get an error.

Here's the screenshot:
image

Is there an alternative link for it??

Thanks

Thanks for any help!

python Setup.py error integer required

i got this error when launching setup.py idk what to do

 CRITICAL | Unhandled error in Deferred:

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 501, in errback
    self._startRunCallbacks(fail)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 568, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 654, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1475, in gotResult
    _inlineCallbacks(r, g, status)
--- <exception caught here> ---
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/sources/Timeline/Timeline/Server/Music.py", line 46, in setup
    tracks = yield MusicTrack.find(where = ['deleted = 0'])
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python2.7/dist-packages/twistar/dbconfig/mysql.py", line 26, in _runInteraction
    return adbapi.ConnectionPool._runInteraction(self, interaction, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 460, in _runInteraction
    conn = self.connectionFactory(self)
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 36, in __init__
    self.reconnect()
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 76, in reconnect
    self._connection = self._pool.connect()
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 427, in connect
    conn = self.dbapi.connect(*self.connargs, **self.connkw)
  File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
exceptions.TypeError: an integer is required

  CRITICAL | 
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1416, in _inlineCallbacks
    result = result.throwExceptionIntoGenerator(g)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/failure.py", line 512, in throwExceptionIntoGenerator
    return g.throw(self.type, self.value, self.tb)
  File "/sources/Timeline/Timeline/Server/Music.py", line 46, in setup
    tracks = yield MusicTrack.find(where = ['deleted = 0'])
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 250, in inContext
    result = inContext.theWork()
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/threadpool.py", line 266, in <lambda>
    inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 122, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/python/context.py", line 85, in callWithContext
    return func(*args,**kw)
  File "/usr/local/lib/python2.7/dist-packages/twistar/dbconfig/mysql.py", line 26, in _runInteraction
    return adbapi.ConnectionPool._runInteraction(self, interaction, *args, **kw)
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 460, in _runInteraction
    conn = self.connectionFactory(self)
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 36, in __init__
    self.reconnect()
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 76, in reconnect
    self._connection = self._pool.connect()
  File "/usr/local/lib/python2.7/dist-packages/twisted/enterprise/adbapi.py", line 427, in connect
    conn = self.dbapi.connect(*self.connargs, **self.connkw)
  File "/usr/local/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
    return Connection(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 193, in __init__
    super(Connection, self).__init__(*args, **kwargs2)
TypeError: an integer is required

if it helps im on ubuntu 16.04 and all the required installs unless i forgot something
Thanks

Database Troubles

Database Issues

Hi there!

I've had some issues creating the database earlier on, because I am starting fresh and not from an old database I tried to import the supplied SQL file into the database. This resulted in many troubling errors starting from:

DROP TRIGGER IF EXISTS `penguins_OnInsert`;

CREATE TRIGGER `penguins_OnInsert` BEFORE INSERT ON `penguins` FOR EACH ROW IF NEW.`swid` IS NULL OR NEW.`swid` = '' THEN
	SET NEW.`swid` = CONCAT('{', uuid(), '}');
END IF
;
CREATE TRIGGER `penguins_AfterUpdate` AFTER UPDATE ON `penguins` FOR 

I've fixed this by changing this to the following:

DROP TRIGGER IF EXISTS `penguins_OnInsert`;

DELIMITER $$

CREATE TRIGGER `penguins_OnInsert` BEFORE INSERT ON `penguins`
FOR EACH ROW
BEGIN
    IF NEW.`swid` IS NULL OR NEW.`swid` = '' THEN
        SET NEW.`swid` = CONCAT('{', uuid(), '}');
    END IF;
END$$

This runs just fine, however when the import continues it got stuck on many other places as well (Procedures)

So instead of using the sql file to import I found a copy of the old database in your other branch and worked around it by using the DatabasePort.py and making the script setup the new database. This runs fine un-till it get's to IMPORT_PUFFLE_FROM_CP_STRUCT.

image

I can see nearly everything is created this time and I'm manually importing the three tables that I miss which are bans, care_items, memberships and penguins.

image

Can you confirm that ^^^ is how the DB should look?

So far so good.

Now when I start the server it works fine un-till it needs to contact the DB.
It sets up the DB pool correctly and can connect just fine.

But when it starts using functions like e.g. (SetSensei)
It suddenly is incapable of establishing the connection?

image

I'm using the following:

Windows Server 2012 Standard
Redis for windows
MySQL
Python 2.7
Below a list of modules:

image

Please let me know if you need any more info.

discord

hello< i need your discord

Two issues.

Hello, my name is Gabriel, and I'm having 2 issues:

First

The first one is when i do "pyhton Flex.py". Here's a screenshot.
image
Traceback (most recent call last):
File "flex.py", line 8, in
from Session import *
File "C:\Users\henri\Desktop\TimeFlex-master\Session.py", line 3, in
from core import *
File "C:\Users\henri\Desktop\TimeFlex-master\core.py", line 2, in
from flask_caching import Cache
File "C:\Python27\lib\site-packages\flask_caching_init_.py", line 412
nonlocal source_check
^
SyntaxError: invalid syntax


Second

The second one is when i have already started "start.py" at timeline master, and I try to go to "play.localhost". I just get to this screen:
image
Then, i go to the "Play" folder and i asks me to enable flash player and I just get a white screen:
image
When I go to the developer console, i got an error:
image


(I'm running XAMPP, Apache, MYSQL, and started "Start.py").

Thanks/other

Sorry for bad english (I'm from Brazil)
Sorry for bringing problems to you....
Thanks for making a CPPS Emulator, u're making many people happy!
Any help is welcome. Thanks.
If anyone needs any more screenshots, let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.