Commit Graph
100 Commits
Author SHA1 Message Date
Fiereu f785cc5a80 fix(protocol): read the extra byte in the monster record (#91) 2026-08-05 23:20:26 +02:00
Fiereu 4470cbda37 feat(game): let the player replace a move on level up (#90) 2026-08-05 23:10:59 +02:00
Fiereu 1ecfabaed5 feat(game): give monsters their real level up moveset (#85)
* feat(codegen): generate the level up learnsets from the decomp

* feat(game): give monsters their real level up moveset
2026-08-05 10:38:55 +02:00
Fiereu e24bc5518d fix(network): log uncompressed packets (#84)
Insert the compression codec in front of the protocol logger so the
logger sees raw packets: decompressed on the way in, not yet compressed
on the way out.

Closes #61
2026-08-04 07:51:50 +02:00
Fiereu 22c922ffe3 docs: explain the roms folder and why the build wants one (#87) 2026-08-03 22:59:26 +02:00
Fiereu f01f411741 feat(server): write only the character rows that changed (#86)
* feat(server): add a row delta helper for incremental table writes

* feat(server): write only the character rows that changed
2026-08-03 16:35:10 +02:00
Fiereu dfeabdc581 feat: release pipeline and env-supplied server key (#82)
* build: move group and version to gradle.properties

* ci: add release-please versioning and release pipeline

* feat(server): load the root key from the environment

* ci: publish key-free server archives on release
2026-08-03 11:38:03 +02:00
Fiereu 98d68946ae fix(patcher): copy feed keys before compiling (#81)
* fix(patcher): copy feed keys before compiling

* build: raise daemon memory limits for KSP
2026-08-03 11:07:10 +02:00
Fiereu c3fd2d3f81 docs: document the script system (#78)
* docs: document the script system

* chore: fix style
2026-08-02 15:42:30 +02:00
Fiereu d36c630d53 feat(patcher): patch the native image client and serve it a local main feed 2026-08-02 15:39:05 +02:00
Fiereu f57149eae3 fix(ci): revert spotlessApply on master
Updated CI workflow to use the commit SHA for ref in pull requests and simplified the condition for applying formatting changes.
2026-07-28 13:26:35 +02:00
Fiereu 4e90abe398 fix(ci): Update ref in CI workflow to use github.ref_name 2026-07-28 12:33:48 +02:00
Fiereu e50fb8b7c2 fix(ci): Run spotlessApply on master too 2026-07-28 12:28:34 +02:00
Fiereu 0a23cdb9b4 fix: Update CI workflow to exclude Renovate bot 2026-07-28 11:55:46 +02:00
Fiereu 9cda538a68 feat(game): littleroot town intro with the truck and mom cutscene 2026-07-26 14:36:07 +02:00
Fiereu 41ff99ae4f feat(game): scripted npc and player movement for cutscenes 2026-07-26 14:36:07 +02:00
Fiereu c06aff99d3 feat(game): run a map's on-transition script when a player enters it 2026-07-26 14:36:07 +02:00
Fiereu 023f4eb305 feat(game): persist per-character story flags and vars 2026-07-26 14:36:07 +02:00
Fiereu 4879082eb0 fix(game): write entity flags as one byte so the follower shows the right species (#71) 2026-07-26 14:29:41 +02:00
Fiereu 3ff8a76875 fix(game): show the full party on the character select screen (#70) 2026-07-26 14:24:56 +02:00
Fiereu 109cf5f814 feat(game): start a wild battle when a player steps in grass (#68)
* feat(game): start a wild battle when a player steps in grass

* fix(codegen): key species by national dex so the client shows the right mon
2026-07-26 11:04:35 +02:00
Fiereuandgithub-actions[bot] 300bc52531 feat(game): basic script implementations (#65)
* feat(game): open the wired dialog line when a player interacts with an npc or sign

* feat(game): run npc and sign interactions through a generated script layer

* chore(style): spotlessApply

* fix(codegen): generate dialog enums without a rom so ci can compile

* docs: add a guide for writing overworld scripts

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-26 00:12:30 +02:00
Fiereu 6695daabd8 fix(codegen): merge the duplicate empty and default branches in the text parser 2026-07-25 21:46:59 +02:00
Fiereu 35f498f0de chore: move hex encode and decode into a shared common util (#62) 2026-07-25 21:37:53 +02:00
Fiereu 9c52eeb8c6 feat(dialog): generate per-location gba dialog enums from the rom and drop the old script params (#64) 2026-07-25 21:26:43 +02:00
Fiereu e89ae6e6df feat(game): handle npc dialog replies and send correct dialog actions (#63) 2026-07-25 19:18:58 +02:00
Fiereu 35a7966a97 chore(network): note the protocol logger should log raw packets (#59) 2026-07-25 17:29:42 +02:00
Fiereu 651a1fbb67 feat(battle): add the wild battle system with structured codecs (#58) 2026-07-25 17:28:48 +02:00
Fiereu 214663531a feat(server.game): create new characters with an empty party (#57) 2026-07-25 16:45:50 +02:00
Fiereu 1e19440743 feat(server.game): add gen 3 stat and exp calculators (#56) 2026-07-25 16:44:11 +02:00
Fiereu e26c8f91f4 fix(common): let stat setters take zero and check totals (#55) 2026-07-25 16:43:10 +02:00
Fiereu 391e2efeb7 feat(codegen): generate the gen 3 type chart (#54) 2026-07-25 16:40:48 +02:00
Fiereu 017f6bca60 feat(bytecodec): add a constant atom for fixed wire bytes (#53) 2026-07-25 16:30:08 +02:00
Fiereu 5e75f5cca7 fix: formatting in .gitignore for local env 2026-07-22 18:50:56 +02:00
Fiereu daf4daf197 feat(server): persist accounts and characters in PostgreSQL (#48)
* feat(server): persist accounts and characters in PostgreSQL via jOOQ, HikariCP, and Flyway

* test: reword test names to match the writing style

* docs: explain the database setup and dev seeding
2026-07-21 11:25:21 +02:00
Fiereu fb93eb4e5d ci: collapse spotless and test into one workflow that runs on PRs (#50) 2026-07-21 11:07:40 +02:00
Fiereu 8f50ee02a2 chore(lint): stop sonarlint from flagging TODO comments (#51) 2026-07-21 11:01:59 +02:00
Fiereu 32d97a47c6 refactor(protocols.game): resolve sonarlint findings in packet codecs (#49) 2026-07-21 08:06:58 +02:00
Fiereu b58e555730 ci: open and close issues from TODO, FIXME, and BUG comments on master via todo-to-issue-action 2026-07-20 23:58:59 +02:00
Fiereu ed06884b10 ci: run check on affected modules via the gradle build cache instead of a full test matrix 2026-07-20 23:54:54 +02:00
Fiereu 4b533bd099 feat(server.game): route events through a InterestManager (#47)
* feat(server.game): route events through a InterestManager

* docs: explain the InterestManager and when to use it

* fix(login): carry the authenticated account to the game server so players get distinct characters

* fix(protocols.game): decode entity move from capture at opcode 0xE4 with little-endian ids and 16-bit coords

* feat(game): make the server authoritative over movement and broadcast steps and turns to nearby players

* refactor(game): drop the unused broadcastExcept and isOnline methods
2026-07-20 23:42:14 +02:00
Fiereu 8b12d22c1d ci: add CI workflow for testing all modules (#4) 2026-07-20 16:36:57 +02:00
Fiereu 651bf947e4 feat(codegen): generate Pokemon species defs from the GBA decomp data (#44) 2026-07-20 15:35:23 +02:00
Fiereu a7d1316ab4 chore: point README.md to new docs host 2026-07-20 15:32:15 +02:00
Fiereu 19eb9f371d docs: set up Astro Starlight site for Read the Docs (#46) 2026-07-20 15:30:23 +02:00
Fiereu dfb1eec557 feat: add readthedocs config file 2026-07-20 15:04:26 +02:00
Fiereu 38171a3547 docs: add documentation index and codegen generator guide (#45) 2026-07-20 14:57:51 +02:00
Fiereu b44bd1cc26 feat(codegen): generate Pokemon moves and unify map/move codegen into one module (#16) 2026-07-20 14:25:57 +02:00
Fiereu abbfe97c6d refactor: maps git submodules (#9) 2026-07-20 12:10:47 +02:00
Fiereu 902b537532 Merge pull request #13 from openmmo-org/feat/battle
add simple battle functions
2026-07-19 22:49:00 +02:00
Fiereu d618cff20e feat(game): stub wild battle flow with catch, bag, switching, field state, and flee 2026-07-19 22:35:04 +02:00
Fiereu 9732c9373c fix(network): compress packets as a persistent sync-flush deflate stream 2026-07-19 22:35:04 +02:00
Fiereuandgithub-actions[bot] b6cfbbb2b0 feat(game): add guild stubs (#8)
* feat(game): add guild members, invite, rank and permissions

* chore(style): spotlessApply

* feat(guild): add MOTD, rank-label, and disband handlers with activity log

* refactor(guild): move guild packets into their own sub-package

* refactor(guild): rename packets for clarity (create, leave, kick, disband)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-12 14:14:45 +02:00
Fiereuandgithub-actions[bot] 9089bd00ac chore: remove unused files (#10)
* chore: remove unused files

* chore(style): spotlessApply

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-12 14:12:47 +02:00
Fiereu f92b66f8ba ci: make gradlew executable 2026-06-22 15:41:06 +02:00
Fiereu 8ee3fc7cd8 ci(spotless): add spotless workflow 2026-06-22 15:24:01 +02:00
Fiereu df862c71b7 Merge pull request #6 from openmmo-org/feat/friendlist
feat(game): add friendlist
2026-06-22 17:13:30 +02:00
Fiereu ffb25ac4b3 Merge pull request #5 from openmmo-org/feat/game-protocol-models
feat(game): add game protocol packets (100% ai slop)
2026-06-22 16:55:22 +02:00
Fiereu ff0df7ac48 chore(style): fix param annotation 2026-06-22 15:12:32 +02:00
Fiereu a93efe624f chore(style): spotlessApply 2026-06-22 15:08:37 +02:00
Fiereu a0dc6d961b feat(game): add friendlist 2026-06-22 15:05:57 +02:00
Fiereu cd7c7c9aa7 feat(game): add game protocol packets (100% ai slop) 2026-06-22 14:52:38 +02:00
Fiereu b2a6a3b91c Merge pull request #3 from openmmo-org/ci/code-ql
ci: Add CodeQL
2026-06-12 11:05:56 +02:00
Fiereu 0a3e990872 ci: add CodeQL 2026-06-12 10:56:02 +02:00
Fiereu 1510413a16 chore: remove .env file 2026-06-08 15:42:23 +02:00
Fiereu cc9b2beaf8 fix: missing RenderUtil.kt 2026-05-30 10:57:44 +02:00
Fiereu fc3645592f Merge pull request #1 from openmmo-org/refactor/bytecodec-migration
refactor: migrate network module to bytecodec
2026-05-30 12:35:54 +02:00
Fiereu d27a54f360 refactor(network): rework network module, use new bytecodec module and introduce proper packet events 2026-05-30 10:13:12 +02:00
Fiereu 8048827121 feat(bytecodec): add bidirectional binary codec library 2026-05-26 17:36:22 +02:00
Fiereu dbb027d021 chore: bump gradle to 9.5.1 2026-05-26 17:05:08 +02:00
Fiereu 7332c7f40d chore: bump kotlin to 2.3.21, ksp to 2.3.8, kotest to 6.1.11 and jvm toolchain to 25 2026-05-26 17:05:08 +02:00
Fiereu 1e685556cf chore: pin line endings to LF via .gitattributes 2026-05-26 16:15:48 +02:00
Fiereu 410c5da51f chore: remove old forgejo files 2026-05-26 16:15:48 +02:00
Fiereu 1132b622df chore(ci): remove old woodpecker ci files 2026-05-26 16:15:48 +02:00
fiereu e8f666a37f moved to woodpecker ci 2026-01-05 01:08:41 +01:00
fiereu 5545d8d47d add spotless checks to test workflow 2026-01-05 00:34:03 +01:00
fiereu 8ac44c9ce5 remove test depending on spotless 2026-01-05 00:32:16 +01:00
fiereu e45cc4a560 add Spotless workflow for automatic code formatting 2026-01-05 00:09:13 +01:00
fiereu 5c39554130 add Test workflow to run tests on push and pull request 2026-01-05 00:09:12 +01:00
fiereu 8c82990b9a add initial game packets 2026-01-04 23:47:34 +01:00
fiereu 621440690f add flake.nix and flake.lock for PokeMMO + patcher on *nix systems 2026-01-04 23:41:24 +01:00
fiereu 88e888dfc9 added JoinResponsePacket.kt + Builders + ext
added game protocol compression
2025-09-04 18:30:17 +02:00
fiereu f5e18d8540 Run spotless 2025-08-29 22:12:51 +02:00
fiereu 8c0369be69 Rename gradle.env to .env and update container name in compose-dev.yaml 2025-08-29 21:40:30 +02:00
fiereu a9bb88b246 dev_minimal_login (#7)
### Summary

Implement minimal login flow without any authentication.
Implement basic game server module with JoingGamePacket implemented.

### Type of Change

New feature (non-breaking change which adds functionality)

### Affected Modules

- [x] common/
- [ ] protocol/
- [ ] protocol.tls/
- [x] protocol.login/
- [ ] server/
- [x] server.login/
- [ ] keys/
- [ ] patcher/
- [ ] buildSrc/

### Additional Notes

_No response_

Reviewed-on: https://forge.fiereu.de/OpenMMO/OpenMMO/pulls/7
Co-authored-by: fiereu <contact@fiereu.de>
Co-committed-by: fiereu <contact@fiereu.de>
2025-08-29 12:54:24 +00:00
fiereu 9fabe28642 Merge branch 'dev_protocol_login'
# Conflicts:
#	common/src/main/kotlin/de/fiereu/openmmo/common/enums/LoginState.kt
#	protocol/src/main/kotlin/de/fiereu/openmmo/protocols/ByteBufExtension.kt
2025-08-25 14:00:43 +02:00
fiereu e3307266fb fix wrong package 2025-08-25 13:50:36 +02:00
fiereu 1c08dabd6d Spotless: exclude JOOQ generated code, run spotlessApply and fix task dependencies 2025-08-25 13:47:32 +02:00
fiereu 545d4321ab Add pull request template 2025-08-25 13:38:42 +02:00
fiereu 53e9e1971d fix spotless errors 2025-08-25 13:27:47 +02:00
fiereu 0879c17d63 Fix HMAC checksum using client seed for outgoing packets 2025-08-25 13:09:37 +02:00
fiereu f622d29dca Add ExistingSessionPacket 2025-08-25 12:04:57 +02:00
fiereu 487670ae2e Add GameServerListPacket 2025-08-25 12:04:57 +02:00
fiereu fc550ace27 Add ToSPacket 2025-08-25 12:04:57 +02:00
fiereu dd01b4fefe Add MfaResponsePacket 2025-08-25 12:04:57 +02:00
fiereu 67dd452fdf Add MfaChallengePacket 2025-08-25 12:04:57 +02:00
fiereu 5448cca666 Add SentCredentialsPacket 2025-08-25 12:04:57 +02:00
fiereu c16c68f248 Add LoginKickPacket 2025-08-25 12:04:57 +02:00
fiereu 67bfcf3c76 Add ToSConfirmationPacket 2025-08-25 11:59:19 +02:00
fiereu b2544750f1 Make ratelimitEnd optional in LoginResponsePacket and handle null case in serializer 2025-08-25 11:51:05 +02:00