Commit Graph

24 Commits

Author SHA1 Message Date
Houmgaor
f138cb5f77 fix: replace panic calls with proper error handling
Remove 51 panic() calls from handler code and replace with:
- Proper error logging using zap
- Appropriate client error responses (doAckBufFail, doAckSimpleFail)
- Graceful error recovery instead of server crashes

Files updated:
- handlers_guild_scout.go (9 panics)
- handlers_guild_tresure.go (10 panics)
- handlers_guild.go (7 panics + dead code removal)
- handlers_mail.go (5 panics)
- handlers.go (9 panics)
- handlers_tower.go (2 panics)
- handlers_clients.go (3 panics)
- handlers_guild_alliance.go (1 panic)
- handlers_quest.go (1 panic)
- handlers_rengoku.go (1 panic)
- handlers_stage.go (1 panic)
- handlers_data.go (1 panic)
- handlers_cafe.go (1 panic)
- signserver/sign_server.go (1 panic)

Remaining panics (3) are in test files and compression library
where panicking on programming errors is appropriate.
2026-02-02 17:14:34 +01:00
Houmgaor
64cc285fd8 doc: inline code documentation. 2025-11-24 18:41:37 +01:00
wish
7d884da938 replace deprecated code 2023-03-31 00:04:51 +11:00
wish
c718e9a5a7 fix various packet responses 2023-02-12 14:04:16 +11:00
Yarg-mirror
3afaba5193 Update handlers_data.go
Under Windows: no change
Under Linux: Fix directory creation with no read/write permissions that failed the creation of save data dump
2023-02-04 14:32:10 +11:00
wish
e6845d74d0 make various handlers not error fatally 2023-02-04 14:29:28 +11:00
wish
218693ef40 clean up various save handlers 2023-02-02 21:08:09 +11:00
wish
d5e69aa83c fix handling new characters 2023-01-05 01:20:54 +11:00
wish
0774518eeb handle unnamed new characters 2023-01-04 10:47:24 +11:00
wish
9234d82110 add option to flag corruption attempted saves as deleted 2022-12-23 23:18:00 +11:00
wish
7676f2e7d5 terminate session on save corruption 2022-12-23 23:12:01 +11:00
wish
4a7cde77ea fix nil StrConv on save 2022-11-01 10:49:28 +11:00
wish
6ee9234745 fix various savedata bugs 2022-10-08 13:59:48 +11:00
wish
d9541a6d1a rewrite dumpSaveData 2022-10-05 13:33:14 +11:00
wish
128f375cd2 dump savedata without name 2022-09-10 22:43:23 +10:00
wish
616d58e70e dump other savedata types 2022-09-05 15:29:24 +10:00
wish
6c9e39a5cd fix savedata bugs 2022-09-04 15:52:50 +10:00
wish
90314fa411 rework savedata 2022-09-04 03:19:32 +10:00
wish
6e7259a068 dump more save data types to backup 2022-08-19 19:46:55 +10:00
wish
ce31b248eb loaddata fallback 2022-08-12 15:13:31 +10:00
wish
37e4b42b23 fix character gender offset 2022-08-10 01:17:00 +10:00
wish
0b90dfd458 fix binpath reference when overriding saves 2022-08-05 20:47:20 +10:00
wish
e0b1b7eab2 objects v3.1 2022-08-02 05:21:03 +10:00
wish
2c0e7a5267 repository cleanup 2022-07-29 03:25:23 +10:00