mirror of
https://github.com/2revoemag/PSF-BotServer.git
synced 2026-04-24 05:15:22 +00:00
* Add .scalafmt.conf
* Adopt quill for database access
* Removed postgresql-async
* Refactored all instances of database access
* Creating duplicate characters of the same account is no longer possible
* Rewrote large parts of LoginSessionActor
* Implement migrations
* Move overrides into subdirectory
* Make usernames case insensitive
* Use LOWER(?) comparison instead of storing lowercased username
* import scala.util.{Success, Failure}
* Add config and joda-time dependencies
* Add sbt-scalafmt
* Use defaultWithAlign scalafmt preset
* Format all
* Add scalafix
* Remove unused imports
* Don't lowercase username when inserting
* Update readme
* Listen on worldserver.Hostname address
* Remove database test on startup
It could fail when the global thread pool is busy loading zone
maps. Migrations run on the main thread and also serve the
purpose of verifying the database configuration so it's fine to
remove the test altogether.
* Refactor chat message handlers, zones
What started as a small change to how zones are stored turned
into a pretty big effort of refactoring the chat message handler.
The !hack command was removed, the /capturebase commandwas added.
* Expose db ports in docker-compose.yml
* Silence property override log
* Rework configuration
* Unify configuration using the typesafe.config library
* Add configuration option for public address
* Configuration is now loaded from application.conf rather than worldserver.ini
* Refactor PsLogin and remove unnecessary logging
* Move pslogin into net.psforever.pslogin namespace
* Fix coverage
This commit is contained in:
parent
88b194fde2
commit
e0defe8240
850 changed files with 144487 additions and 47476 deletions
|
|
@ -8,8 +8,8 @@ import net.psforever.types.{PlanetSideGUID, TransactionType}
|
|||
import scodec.bits._
|
||||
|
||||
class ItemTransactionMessageTest extends Specification {
|
||||
val string_buy = hex"44 4C03 4000110070756E6973686572000000"
|
||||
val string_sell = hex"44 5303 60001000004E00"
|
||||
val string_buy = hex"44 4C03 4000110070756E6973686572000000"
|
||||
val string_sell = hex"44 5303 60001000004E00"
|
||||
val string_forget = hex"44 BA00 600011006861726173736572000000"
|
||||
|
||||
"decode (buy)" in {
|
||||
|
|
@ -68,7 +68,8 @@ class ItemTransactionMessageTest extends Specification {
|
|||
}
|
||||
|
||||
"encode (forget)" in {
|
||||
val msg_forget = ItemTransactionMessage(PlanetSideGUID(186), TransactionType.Sell, 0, "harasser", 0, PlanetSideGUID(0))
|
||||
val msg_forget =
|
||||
ItemTransactionMessage(PlanetSideGUID(186), TransactionType.Sell, 0, "harasser", 0, PlanetSideGUID(0))
|
||||
val pkt_forget = PacketCoding.EncodePacket(msg_forget).require.toByteVector
|
||||
|
||||
pkt_forget mustEqual string_forget
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue