Quick notes:
- 99% of this code is ChatGPT's, only meant for this quick test and nothing else (so please start from scratch and don't build on this).
- This server is a http and socket server in once, of course in prod you would use two completely separate servers.
- I also uploaded the extracted client on Github (https://github.com/Michielvde1253/risingcities-client), which might be useful to search something quicker than using JPEXS.
- Good luck to whoever finds this and tries to fix it 😅, ask me whenever something is unclear.
Overview of what this does and how to use it:
- Run app.py and go in your (Flash-supported) browser to http://localhost:8000/play.html.
- The game loads a bunch of placeholder locale files.
- The game asks the socket server for its policy files.
- The game sends a login command to the server and expects multiple respones: INITIAL_LOGIN_SUCCESS and PLAYER_CITY_UPDATE (possibly more).
- The game crashes because the config is very incomplete.