Commit Graph

278 Commits

Author SHA1 Message Date
Martin Michelsen 7fb3966ff2 set lobby event at main menu 2020-02-20 10:09:05 -08:00
Martin Michelsen 0c6f5d4cb4 add a couple of proxy shell commands 2020-02-20 10:07:18 -08:00
Martin Michelsen aa336d8d29 remove some debugging stuff 2020-02-20 00:57:18 -08:00
Martin Michelsen 0d4b0b2279 fix a lot of issues on psogc; add proxy module
- $ann implemented
- concurrency removed; server is now single-threaded, event-driven and much more stable
- rare seed is no longer the game id; ids are sequential from server startup so they weren't random at all before
- supports dropping privileges; now you can run it as root so it can open a sockets on low ports, then it will switch to the given user before serving any traffic
- newserv now behaves like a proxy if you run it with the --proxy-destination=<IP_OR_HOSTNAME> argument; there's also an (invisible) shell in this mode where you can inject commands to the server or client. e.g. it can always be christmas in the lobby if you do `sc DA 01 00 00`
- increased the mtu on PSODolphinConfig's tap0 configuration; this seems to make the connection more stable
- fixed some uninitialized memory bugs
- the shell is now event-driven and now uses libevent too; unfortunately this means readline doesn't work anymore (no history and vim-like shortcuts)
- made network command display consistent for input vs. output (the header appears in both cases now)
- fixed bugs in some subcommand handling (the BB logic was being applied to non-BB clients erroneously, causing most item drops not to work at all)
- fixed player tags in the short lobby data struct. unclear if this was actually a problem but it was inconsistent with other servers
- fixed "unused" field in game join command (actually it appears to be disable_udp and should be 1, not 0)
- cleaned up Server abstraction a bit
- rewrote some text functions; asan was complaining about the built-in ones for some reason
- added an optional welcome message
2020-02-16 21:42:29 -08:00
Martin Michelsen 76c810c1e6 add libevent to readme 2019-10-16 22:32:28 -07:00
Martin Michelsen fa41dab13e fix bug in item identifiers 2019-10-16 22:31:52 -07:00
Martin Michelsen 15fb00f7df fix ubuntu build 2019-10-16 17:49:57 -07:00
Martin Michelsen 9dbe44b5b6 allow use of other tap interfaces 2019-08-21 23:50:55 -07:00
Martin Michelsen 30516ccf50 add a couple of convenience features and clean up config file a bit 2019-08-10 00:08:40 -07:00
Martin Michelsen 9ee2e97738 fix derp in license adding via shell 2019-06-21 18:37:07 -07:00
Martin Michelsen 5e2226b161 fix send + immediate disconnect case
- this happens for e.g. authentication failures
2019-06-21 18:36:29 -07:00
Martin Michelsen 86937506c9 fix command size of gc game join 2019-06-21 18:35:31 -07:00
Martin Michelsen 9ec52f399a assign clients to the end of the lobby by default
- this should help catch bugs where client/leader ids aren't set properly
2019-06-21 18:35:00 -07:00
Martin Michelsen c2ebd4e0eb expand history a bit 2019-03-29 22:41:17 -07:00
Martin Michelsen c977c863a8 clean up some debugging stuff and fix old comments 2019-01-29 00:23:34 -08:00
Martin Michelsen aecc263f69 add persistent lobby flag 2019-01-29 00:23:34 -08:00
Martin Michelsen f3842b49f3 add interactive shell 2019-01-29 00:23:34 -08:00
Martin Michelsen d0408246d3 update readme 2018-11-12 12:04:28 -08:00
Martin Michelsen c7a40d3d78 fix filenames too long for dcv1 2018-11-12 11:08:44 -08:00
Martin Michelsen 02d43ce22b make games and quests work on gc 2018-11-12 11:06:10 -08:00
Martin Michelsen 89fde4d25f make PSODolphinConfig easier to use 2018-11-11 11:13:15 -08:00
Martin Michelsen 833bf90333 make some progress toward getting psogc to work again 2018-11-11 10:59:39 -08:00
Martin Michelsen 00bbd6a0a3 add script to make it easy to run psogc against newserv 2018-11-11 10:59:39 -08:00
Martin Michelsen 86243bd2e2 use phosg random functions 2018-11-10 19:55:51 -08:00
Martin Michelsen 05d74ce496 add download quest conversion function 2018-11-10 19:55:38 -08:00
Martin Michelsen 861d29fba5 add sjis conversion table 2018-11-10 19:54:52 -08:00
Martin Michelsen 8394050434 add license 2018-11-01 19:44:00 -07:00
Martin Michelsen 5b8c26ccd7 initial commit 2018-10-31 23:55:32 -07:00