Commit graph

853 commits

Author SHA1 Message Date
Fate-JH a5a85e6cc3
Upper Body Angle (#292)
* constrain angles on specialized yaw and pitch fields

* integrated new Angular Codec into OCM and OCDM of avatar; corrected tests; wrote shortcut for whether a unit is moving (under its own power)

* apply clamp

* Accessed containers while moving

Removed unintentional code duplication outside of conditional.
2019-11-29 11:14:25 -05:00
Mazo 9e99dc75e3 Cancel jacking if a vehicle is moving (#290)
* Add Medical / Adv Medical / Expert Electronics to default certs

* Cancel jacking when object is moving more than a small amount
2019-11-29 11:00:30 -05:00
Mazo 31bdf58ea4 Additional checks to ensure players don't heal themselves immediately after dying (#289)
* Additional checks to ensure players don't heal themselves immediately after dying

* Move alive check to cover other kit use

* Don't use ammo on full health/armour players and change adv medical revive to take 5 seconds + 25 ammo

* Fix merge conflict oopsie

* Fix merge conflict oopsie. Properly this time.

* Allow PlayerStateMessageUpstream to be processed even when the player is dead, to prevent corpses sliding from interpolated client side movement
2019-11-29 10:54:25 -05:00
Fate-JH cea105042c
attempt at mitigating geowarp immortality (#288) 2019-10-30 22:47:04 -04:00
Mazo aec9c15bdd Advanced medical + other bits (#287)
* Allow medical applicator to revive players

* Allow dead players to be repaired

* Refactoring medapp + bank usage

* Make bank + medapp use charges from magazine

* Don't try to heal/repair other players with MaxHealth/MaxArmor <= 0

* Ignore tool use on SpawnTube objects (for example; don't deconstruct from using a medical applicator on a spawn tube)
2019-10-30 22:43:40 -04:00
pschord 53d677dc5d Config: add developer.Netsim.* (#285)
Break out configuration of the UDPNetworkSimulator to worldserver.ini
2019-10-30 22:40:00 -04:00
Fate-JH ad29bfe16a Select Changes from My Original Securities Branch (#286)
* select changes from my original securities branch

* nanoTime -> currentTimeMillis
2019-10-23 17:21:16 -04:00
Chord 21b17b7649 Config: print the right path when loading 2019-10-22 20:32:19 -04:00
Chord cf8d30b5be TravisCI: Just disable coverage 2019-10-22 20:17:37 -04:00
Chord 638c3f975e TravisCI: Once again, try to ignore the coverage job 2019-10-22 14:58:30 -04:00
Chord 9836e48ac7 Fix flaky actor tests by de-parallelizing 2019-10-22 14:35:17 -04:00
Mazo 3e40a2f319 Initial merge of some PTS v3 changes (#281) 2019-10-22 12:15:46 -04:00
Chord 02ab92e537 Fix SquadDetailDefinitionUpdateMessageTest 2019-10-21 23:29:57 -04:00
pschord ce99ea6ffc
Merge pull request #276 from Fate-JH/squad-work
Teamwork
2019-10-21 21:58:20 -04:00
FateJH 5916fa68be SquadAction and SquadResponse were worked into SquadServiceMessage and SquadServiceResponse, respectively, so that traits could be sealed; the continuous join request prompt has been exorcised from squad operations; switching to auto-approve for squads will now resolve all pending join requests; enumerated shared cases in SDAM 2019-10-21 19:41:29 -04:00
pschord 33e4f2b35e
SBT: add support for unified docs (#284)
Unified documentation can be generated with the sbt unidoc command.
2019-10-21 16:29:36 -04:00
pschord 88f4ef293b
Add additional debugging info to server start (#282) 2019-10-21 14:12:57 -04:00
pschord c3d19b5377
Create PSForever config framework (#283)
We can now parse arbitrary INI configuration entries. This will allow
server customization and testing without recompiling the server.
2019-10-21 14:12:26 -04:00
FateJH 93f2264f61 added enumeration for squad waypoints and changed field datatypes where appriopriate; added assertions to squad detail packet; removed old logic from squad request and squad response enumerations; WSA lfs -> lfsm 2019-10-20 15:34:01 -04:00
FateJH aa2e0089a4 stop player from inviting himself to own squad; periodic squad updates; fixed squad listing hangup; fixed damage calculation tests 2019-10-19 17:24:12 -04:00
FateJH 0c105f3826 repaired some broken tests; LoadoutManager respects length; squad ids attempt to reset only when no players are logged in 2019-10-17 16:27:19 -04:00
FateJH 35a8d87941 /kick support; fixing a bug with the supplemental squad id 2019-10-16 15:26:55 -04:00
FateJH 1f578c9e5d removed squad testing crouches 2019-10-14 18:54:03 -04:00
FateJH 16afb63b34 removed redundant subscription; made sure to publish waypoint events properly 2019-10-14 16:20:51 -04:00
pschord 4b71d76cb2
TravisCI: temporary build matrix fix to avoid #279
Reference: https://docs.travis-ci.com/user/customizing-the-build/#build-matrix
2019-10-11 12:14:28 -04:00
Chord 6a876d5b57 Add feature flag to SBT scalac options 2019-10-11 11:50:00 -04:00
Chord f6939098ec Unbreak build 2019-10-11 11:10:06 -04:00
pschord 3c4d1ff2d7
TravisCI: add SBT dependency caching 2019-10-11 10:34:18 -04:00
pschord 1f744f5a5f
TravisCI: Compile everything before testing
This should allow TravisCI builds to fail-fast on any compilation errors instead of wasting time testing on an already failed build (see https://travis-ci.org/psforever/PSF-LoginServer/builds/596611848)
2019-10-11 10:00:37 -04:00
pschord 833b7b1f0a
Pin TravisCI dist to Trusty for Java 8 support
We should migrate to a modern JDK for a supported release of Ubuntu, but for now this should unbreak the initial steps of the build.
2019-10-11 09:47:14 -04:00
FateJH 7d9d5105f6 was going to try blocking characters who have been refused from squad from getting squad updates but forgot it wouldn't be safe to do this here 2019-10-08 20:01:52 -04:00
FateJH 5a1527ae10 small touch-up 2019-10-08 18:47:03 -04:00
FateJH f7098618d7 Members and Squads now deal with their own inherent availabilities; code to transfer knowledge of character squad association by color; old code 2019-10-08 09:12:22 -04:00
FateJH 2a93e6a8be too much to itemize; still getting squads working, more or less 2019-10-08 09:11:44 -04:00
FateJH 3e631657b8 significant refactoring in SquadService operations; properly force the player to leave any participating squad when WSA stops 2019-10-08 09:10:56 -04:00
FateJH ad4b259014 Looking For Squad player operations and interaction with squad services; evene more conditions to resolve joining/forming a squad 2019-10-08 09:10:56 -04:00
FateJH 60d65e22d3 added a refactored squad joining entrypoint; initial work and test on SquadWaypointEvent packet; initial work on SquadWaypointRequest packet; squad waypoints up to #5 (squad experience) should be working 2019-10-08 09:10:56 -04:00
FateJH 56d8748e99 modified squad user initialization messages to better focus on specific steps of the process; dealt with different methods of communicating squad information to users, though not yet ready to implement the switchboard protocol 2019-10-08 09:10:56 -04:00
FateJH e5b2efd381 better support for the various ways to join a squad, and the various ways to leave a squad; squad-based messages; jury-rigged 'player wants to join' operations 2019-10-08 09:10:56 -04:00
FateJH 24691ec239 initial work on SquadInvitationRequestMessage packet, originally by aphedox; initial work on packet and tests for CharacterKnowledgeMessage; re-organization of SquadService workflow; prototyping for SquadSwitchboard 2019-10-08 09:10:56 -04:00
FateJH f81c87ce22 split original aphedox SquadRequestType's into two different enumerations, one for Request and the other for Response; added functionality for more squad interactions; squad favorites, excepting the ability to actually load them onto one's client; extensive comments about SquadResponseMessage events 2019-10-08 09:10:56 -04:00
FateJH 640a96ae9c wrote comments for SquadState, SquadMembershipRequest, and SquadMembershipResponse; messaging for players joining and leaving squads in WSA and SquadService; char_id is now a required field for Avatars 2019-10-08 09:10:06 -04:00
FateJH 60a11b8c52 sufficient functionality that allows the UI for squads to display properly on squad joining and on squad leaving; clarification for SquadMemberEvent fields; QoL support functionality intergrated into SDDUM streams 2019-10-08 09:10:06 -04:00
FateJH 2a1b051710 completed form of SquadDetailDefinitionUpdate 2019-10-08 09:09:33 -04:00
FateJH d9619e4185 conversion of variable field SquadDetailDefinitionUpdateMessage mostly complete, handling more than 99% of cases in our captures; modifications to existing test-important SSDUM packet in WSA 2019-10-08 09:09:33 -04:00
FateJH fd9a3a0216 commit before changes, and to switch gears momentarily; making charId somewhat native to Avatar and its converter, though not yet essential; protype for squad definition loadouts, even though no example of functionality exists; a lot of unimplemented work in preparation to convert SquadDetailDefinitionUpdateMessage from a static format to a variable-field format 2019-10-08 09:09:33 -04:00
FateJH 14bdcb7a7e a lot of squad-relatd setup for little payoff; initial packet and test for SquadMemberEvent, originally by Aphedox; initial packet and tests for SquadState; new SquadDefinitionAction actions; a common initial SquadDetailDefinitionUpdate form 2019-10-08 09:09:33 -04:00
FateJH 9cf1cd92cc communication of the details information for a squad and refactored messaging back to WSA; removed an unused description field from the squad and added two fields that were actually represented 2019-10-08 09:09:33 -04:00
FateJH 5c433204cf initial work and dummy tests for SquadDetailDefinitionUpdateMessage packet; 46-bit certification encoding; indicating four previously unhandled SquadAction types; the squad leader is allowed to move around his squad 2019-10-08 09:09:33 -04:00
FateJH ceb145d94f introduced service-level squad management operations, specifically to read SquadDefinitionAction packets from WorldSessionActor and send ReplicationStreamMessage packets back to relevant WSA when necessary 2019-10-08 09:09:33 -04:00