Commit graph

39 commits

Author SHA1 Message Date
Resaec 50f69784c0
Update GitHub Action to fix broken pipeline (#1301)
* update github workflow to fix broken pipeline

* switch to sbtn command, seems like no sbt -> sbtn link is provided anymore
might just work like is...

* nope, not the link is missing, it does not pack sbt at all
does switching to sbt proper work?

* update JVM to latest LTS

* Revert "update JVM to latest LTS"

This reverts commit 75baaa52e8.
2025-08-29 15:15:13 +00:00
Jakob Gillich 56db0f76e4
switch to coursier action 2023-05-30 13:19:45 +02:00
Jakob Gillich 1b367c455f
formatting 2023-04-15 19:02:46 +00:00
Fate-JH 72ff7067cd
Merge pull request #908 from psforever/renovate/olafurpg-setup-scala-13.x
Update olafurpg/setup-scala action to v13
2021-11-01 11:19:24 -04:00
Mazo 4e93dacc54 Pin postgres version to 12.8 during CI test run 2021-10-02 12:17:37 +01:00
Renovate Bot 994b4c37f2
Update olafurpg/setup-scala action to v13 2021-08-30 21:09:34 +00:00
Renovate Bot b63083fddf Update JamesIves/github-pages-deploy-action action to v4.1.5 2021-08-26 16:01:42 +00:00
Mazo a348b43e92 Publish image only on master push 2021-06-20 20:08:54 +01:00
Mazo 667e76a5ad Authenticate to ghcr.io as github.repository_owner 2021-06-20 18:51:52 +01:00
Mazo 3ab5b12fbe Split out actions, only run them as required, fix GITHUB_SHA under PR context 2021-06-13 23:26:47 +01:00
Mazo 9135123895 Fix publishing docker containers on push (tagged with sha for all pushes, master is tagged with sha, master, latest) 2021-06-13 16:26:17 +01:00
Renovate Bot e5ca2d373d
Update JamesIves/github-pages-deploy-action action to v4.1.4 2021-06-09 13:40:25 +00:00
Renovate Bot 542c39fe91
Update olafurpg/setup-scala action to v12 2021-06-01 09:23:05 +00:00
Renovate Bot e71db0b74a Update docker/build-push-action action to v2.5.0 2021-05-26 15:01:04 +00:00
Renovate Bot 20acec7487 Update JamesIves/github-pages-deploy-action action to v4.1.3 2021-05-13 18:37:34 +00:00
Renovate Bot 4ab21e2d62 Update JamesIves/github-pages-deploy-action action to v4.1.2 2021-05-10 18:05:18 +00:00
Renovate Bot 67375c3d44
Update docker/build-push-action action to v2.4.0 2021-04-07 00:35:42 +00:00
Renovate Bot 8981f49e0d
Update JamesIves/github-pages-deploy-action action to v4.1.1 2021-04-06 21:01:16 +00:00
Renovate Bot d07befdb16 Update JamesIves/github-pages-deploy-action action to v4.1.0 2021-03-04 17:47:22 +00:00
Renovate Bot d58014d5cc Update docker/build-push-action action to v2.3.0 2021-02-17 21:13:14 +00:00
Renovate Bot 78a15f7802
Update JamesIves/github-pages-deploy-action action to v4 2021-02-08 05:51:32 +00:00
Renovate Bot f7d5ba702c
Update docker/build-push-action action to v2.2.2 2021-01-09 19:33:19 +00:00
Renovate Bot b46215549b Update docker/build-push-action action to v2.2.1 2020-12-05 05:30:09 +00:00
Fate-JH babd455753
Yet Another Corpse Fix (#637)
* numeric session ids now restored; LoginActor knows about connection address; corpses are barren unless searched

* session and login id/counter moved under server; function literal definition changed

* corpse channel

* trying to fix docker as per set-env requirement changes; I don't know what I'm doing
2020-11-27 09:30:56 -05:00
Fate-JH e54ec53613
Merge pull request #622 from psforever/renovate/docker-build-push-action-2.x
Update docker/build-push-action action to v2
2020-11-26 08:01:55 -05:00
Fate-JH 768ca6df0c
Merge pull request #617 from psforever/renovate/olafurpg-setup-scala-10.x
Update olafurpg/setup-scala action to v10
2020-11-26 08:01:37 -05:00
Renovate Bot 9cfdec0183
Update docker/build-push-action action to v2 2020-11-19 23:36:51 +00:00
Renovate Bot 5c07c37f5c
Update docker/build-push-action action to v1.1.2 2020-10-23 12:21:17 +00:00
Mazo a898ac05f8
Merge pull request #616 from psforever/renovate/docker-build-push-action-1.x
Update docker/build-push-action action to v1.1.1
2020-10-21 21:29:31 +01:00
Renovate Bot 4722f76e8a
Update olafurpg/setup-scala action to v10 2020-10-20 16:56:21 +00:00
Renovate Bot d6065f30f8 Update JamesIves/github-pages-deploy-action action to v3.7.1 2020-10-20 16:55:53 +00:00
Renovate Bot 80814c47ff
Update docker/build-push-action action to v1.1.1 2020-10-20 15:17:54 +00:00
Jakob Gillich 407429ee21 Networking
The game uses a UDP-based protocol. Unlike TCP, UDP does not guarantee that
packets arrive, or that they arrive in the correct order. For this reason,
the game protocol implements those features using the following:

* All packets have a sequence number that is utilized for reordering
* Important packets are wrapped in a SlottedMetaPacket with a subslot number
* RelatedA packets ae used to request lost packets using the subslot number
* RelatedB packets are used to confirm received SlottedMetaPackets

All of these go both ways, server <-> client. We used to only partially
implement these features: Outgoing packet bundles used SMPs and could be
resent, but not all packets were bundled and there was no logic for requesting
lost packets from the client and there was no packet reordering, which resulted
in dire consequences in the case of packet loss (zoning failures, crashes and many
other odd bugs). This patch addresses all of these issues.

* Packet bundling: Packets are now automatically bundled and sent as
  SlottedMetaPackets using a recurring timer. All manual bundling functionality
  was removed.

* Packet reordering: Incoming packets, if received out of order, are stashed and
  reordered. The maximum wait time for reordering is 20ms.

* Packet requesting: Missing SlottedMetaPackets are requested from the client.

* PacketCoding refactor: Dropped confusing packet container types. Fixes #5.

* Crypto rewrite: PSCrypto is based on a ancient buggy version of cryptopp.
  Updating to a current version was not possible because it removed the
  MD5-MAC algorithm. For more details, see Md5Mac.scala.
  This patch replaces PSCrypto with native Scala code.

* Added two new actors:
  * SocketActor: A simple typed UDP socket actor
  * MiddlewareActor: The old session pipeline greatly simplified into a
    typed actor that does most of the things mentioned above.

* Begun work on a headless client

* Fixed anniversary gun breaking stamina regen

* Resolved a few sentry errors
2020-09-26 23:58:09 +02:00
Jakob Gillich 06e63dd960 Fix psadmin, artifact upload 2020-08-26 20:04:00 +02:00
Jakob Gillich 0429003863 Auto publish docs 2020-08-26 06:19:00 +02:00
Jakob Gillich 67f6287a2b Build docker image on push only 2020-08-26 06:19:00 +02:00
Jakob Gillich f4fd78fc5d Restructure repository
* Move /common/src to /src
* Move services to net.psforever package
* Move /pslogin to /server
2020-08-26 06:19:00 +02:00
Jakob Gillich 3bdc681c9d Avatar Persistence
* Add AvatarActor: Responsible for managing the session's avatar object
* Convert Avatar object to case class
* Add persistence for BEP, CEP, implants, certs and cosmetics
* Add cosmetic chat commands and handle UI packet
* Add /setbr, /setcr, /certadd, /addbep, /addcep GM commands
* Convert zone maps to JSON
* Update to Scala 2.13.3 and fix warnings
* Fix MAX cooldowns not being applied when purchased manually
* Normalize database table names to singular
* Add docker image build
2020-08-22 16:19:13 +02:00
Jakob Gillich 38cfa891fe Add GitHub workflow 2020-08-22 16:19:13 +02:00