Commit graph

56 commits

Author SHA1 Message Date
tfarley
3fca8b1a95 Packet: PlayerStateMessageUpstream (#34)
* Fill out PlayerStateMessageUpstream packet

* Add PlayerStateMessageUpstream test
2016-07-25 20:20:35 -04:00
tfarley
c03b29b2bd Fixes encoding 0.0 as q_double (#33) 2016-07-25 19:34:57 -04:00
tfarley
9d76d08948 Add Vector3 class
* Add Vector3 class

* Add Vector3 test
2016-07-25 01:21:14 -04:00
tfarley
d2b6a8c451 Create new packet codec QuantizedDoubleCodec 2016-07-24 22:09:11 -04:00
tfarley
4a4f0b4466 Create EmoteType enum for EmoteMsg
There is one field (number 16) that appears to be unknown.
2016-07-24 03:31:31 -04:00
tfarley
2070f77443 Packet: ChangeAmmoMessage
* Add ChangeAmmoMessage packet

* Add ChangeAmmoMessage test

* Add ChangeAmmoMessage handler stub
2016-07-24 03:06:23 -04:00
tfarley
8ffb455b5d Packet: MoveItemMessage
* Add MoveItemMessage packet

* Add MoveItemMessage test

* Add MoveItemMessage handler stub
2016-07-24 02:53:35 -04:00
tfarley
dc6488edfc Packet: ObjectDeleteMessage
* Add ObjectDeleteMessage packet

* Add ObjectDeleteMessage test

* Add ObjectDeleteMessage handler stub
2016-07-24 02:25:51 -04:00
tfarley
427429b34c Packet: RequestDestroyMessage
* Add RequestDestroyMessage packet

* Add RequestDestroyMessage test

* Add RequestDestroyMessage handler stub
2016-07-24 02:00:46 -04:00
tfarley
44a4d9b5f9 Packet: ObjectHeldMessage
* Add ObjectHeldMessage packet

* Add ObjectHeldMessage test

* Add ObjectHeldMessage handler stub
2016-07-24 01:49:51 -04:00
tfarley
60e7a76de5 Packet: ReloadMessage
* Add ReloadMessage packet

* Add ReloadMessage test

* Add ReloadMessage handler stub
2016-07-24 00:58:38 -04:00
tfarley
47bef6e83b Packet: DropItemMessage
* Add DropItemMessage packet

* Add DropItemMessage test

* Add DropItemMessage handler stub
2016-07-23 21:40:59 -04:00
tfarley
3e980bbe15 Packet: EmoteMsg
Still need an Enum for emote messages.

* Add EmoteMsg packet

* Add EmoteMsg test

* Add EmoteMsg handler stub
2016-07-23 21:10:40 -04:00
tfarley
4c4f1341be Packet: ChangeFireStateMessage
* Add ChangeFireStateMessage packets

* Add ChangeFireStateMessage tests

* Add ChangeFireStateMessage handler stubs
2016-07-23 21:00:43 -04:00
tfarley
f11b3d17c0 Packet: ChangeFireModeMessage
* Add ChangeFireModeMessage packet

* Add ChangeFireModeMessage test

* Add ChangeFireModeMessage handler stub
2016-07-23 20:07:44 -04:00
Chord
7cf4d00376 Document PSPacket.scala 2016-07-20 00:12:19 -04:00
tfarley
dd2f205d37 Add tests for ChatMsg encoding and decoding 2016-07-19 11:17:10 -07:00
tfarley
8411af17d3 fixup: Addressed comments 2016-07-17 23:35:17 -07:00
tfarley
aa45ea8e84 Add ChatMsg decoder and stubbed handler 2016-07-17 21:13:50 -07:00
Chord
3729c2af52 Stub out PlayerStateMessageUpstream to prevent spam 2016-07-15 02:52:26 -04:00
Chord
5fa0610208 Working login to TR Sancuary!
Packet: SetCurrentAvatarMessage

Lots of hacks to get here, but wow, what a milestone.
2016-07-15 01:45:10 -04:00
Chord
e0fa3c49a2 Merge in new Game packet opcodes from the latest tool
See http://psforever.net/wiki/Game_Packets
2016-06-18 12:47:04 -04:00
Chord
78ace06516 Packet: ObjectCreateMessage
Still tons of decoding to due (it a streaming type). More hardcore RE
required.
2016-06-04 19:14:05 -04:00
Chord
c83132f21b Improve packet CharacterInfoMessage and char select 2016-06-04 13:23:59 -04:00
Chord
9f66602298 Packet: ActionResultMessage 2016-06-04 13:22:25 -04:00
Chord
f6d84791e6 Packet: CharacterCreateRequestMessage 2016-06-04 03:33:11 -04:00
Chord
8b8194cb44 Packet: CharacterRequestMessage naming from RE 2016-06-04 03:15:02 -04:00
Chord
8ba34fec03 Fix missing decoder in GamePacketOpcode 2016-06-03 23:45:04 -04:00
Chord
d4c414df36 Packet: CharacterInfoMessage 2016-06-03 23:08:25 -04:00
Chord
50fb65ac57 Version bump scodec and specs2
Also fix assorted casting errors and improve test case readability
2016-06-03 21:47:45 -04:00
Chord
372a88bb6e Packet: Improve sizeCodec for MultiPacketEx
Was completely unreadable before. Now it's not.
2016-06-03 21:06:49 -04:00
Chord
7b82491d0e Packet: MultiPacketEx, CharacterRequestMessage
Rename AggregatePacket -> MultiPacketEx as it makes more sense
2016-06-03 20:25:20 -04:00
Chord
5ed40e73b3 Fix LoginMessage and ConnectToWorldReqMsg token
The decoding was wrong. ASCII was the wrong choice. We needed a cstring
and to add padding instead of assuming a fixed size.

Fixes and closes #2
2016-05-19 03:11:15 -04:00
Chord
f1fae83548 Fixed enumeration bounds check bug 2016-05-19 01:55:43 -04:00
Chord
362e923c8f Reorganize control packet opcodes and add defaults 2016-05-19 01:55:22 -04:00
Chord
e8031f0109 Packet: KeepAliveMessage and add all game packet opcodes 2016-05-19 01:54:51 -04:00
Chord
6b02d2faab Add doc to ConnectToWorldMessage about hostname 2016-05-17 20:40:17 -04:00
Chord
b210df904a Packet: ConnectToWorldRequestMessage 2016-05-14 15:38:34 -04:00
Chord
034dadc96c Packet: ConnectToWorldMessage and fix VNL test 2016-05-14 14:50:33 -04:00
Chord
43a403174f Fix bad ServerType encoding and change server type 2016-05-14 14:31:30 -04:00
Chord
aa0b895f4b Discovered name for Unknown3 (ConnectToWorldRequestMessage) 2016-05-14 12:25:32 -04:00
Chord
11298c1a46 Stub out ControlSync to prevent client from leaving
Still have no idea what these packets are actually doing...
2016-05-14 03:17:51 -04:00
Chord
6ea1d157af Packet: Unknown{7,8} -> ControlSync{,Resp}
Used IDA to figure out packet fields. Not sure what these fields
actually mean yet. Something to do with the meta / relatedA/B packets.
2016-05-14 02:54:42 -04:00
Chord
cdf240cf66 Handle meta packet and return ack. server scroller
The scroller isn't usable in production as the client will deselect the
server listing each time the list is updated. This prevents you from
selecting a server.
2016-05-04 23:03:30 -04:00
Chord
c7f70e3543 Finish coding for SlottedMetaPacket and wrote test 2016-05-04 02:36:47 -04:00
Chord
ff4ea792ce Organize packets in to their own packages
Also remove legacy CryptoStateManager
2016-05-03 20:11:45 -04:00
Chord
df1d222df8 Refactor package naming scheme and line endings (CRLF) 2016-05-03 03:58:58 -04:00
Chord
83da72e50e Refactor all packet definitions out of PSPacket 2016-05-03 03:37:55 -04:00
Chord
1318ebd751 New SLF4J logger log4s. ANSI colors
Used jANSI for Windows console color support. Log4s for a Scala logging
facade (which uses SLF4J). Using logback as the logging driver.
2016-05-01 04:37:36 -04:00
Chord
36d9f5134c Revert change to LoginMessage tokenPath 2016-04-30 23:54:10 -04:00