Houmgaor
645c4ddd38
test: increase code coverage from 45.1% to 48.3%
...
Add unit tests across multiple packages:
- byteframe: SetBE/SetLE byte order switching
- config: Mode.String() for all safe version ranges
- mhfpacket: 28 Parse methods, 5 Build methods, empty packet builds,
variable-length packets, NOT IMPLEMENTED error paths, UpdateWarehouse
- network: PacketID.String() for known IDs, out-of-range, and all valid
- channelserver: handleMsgMhfGetPaperData (6 switch cases), grpToGR
(11 input values), gacha handlers, TimeGameAbsolute, equipSkinHistSize
(4 config branches), guild mission handlers, dumpSaveData disabled path
- entranceserver: makeHeader with various inputs
2026-02-17 17:32:54 +01:00
Houmgaor
a7b0deaa42
fix: resolve data race in token.RNG global
...
Wrap *rand.Rand in a mutex-protected SafeRand type to make the global
RNG safe for concurrent use across goroutines. The previous bare
*rand.Rand caused data races detected by go test -race.
2026-02-16 18:19:18 +01:00
Houmgaor
9b69564c49
fix: prevent server crash on unsupported Shift-JIS characters ( #116 )
...
UTF8ToSJIS panicked when encountering characters outside the Shift-JIS
range (emoji, Lenny faces, cuneiform, etc.), crashing the server when
such characters were sent via the Discord relay channel.
Replace the panic with graceful filtering that drops unmappable runes
and preserves valid content. Also fix ToNGWord index-out-of-range panic
on empty encoder output.
Closes #116
2026-02-16 18:16:42 +01:00
Houmgaor
a6cf550fdb
tests(common): comprehensive code coverage for common
2025-10-27 12:59:22 +01:00
Houmgaor
c55f23442b
fix(lint): fixing go static check failing.
2025-10-19 22:52:58 +02:00
wish
632aa081b9
decode SMC table
2024-07-16 00:57:59 +10:00
wish
0caaeac3af
initial ngword commit
2024-07-15 01:07:50 +10:00
wish
c74ce4b07f
simplify reused code
2024-02-25 14:22:21 +11:00
wish
a9b9c94347
fix RNG
2024-02-21 03:46:15 +11:00
wish
9f19358c8b
fix Warehouse serialisation across versions
2024-02-20 21:04:29 +11:00
wish
db364110eb
Merge branch 'main' into feature/warehouse-v2
2024-02-20 17:50:04 +11:00
wish
771f240d13
implement course 31
2024-02-10 17:45:40 +11:00
wish
4fbfd569df
Merge pull request #111 from ZeruLight/feature/moderation
...
feature/moderation
2024-01-11 23:04:29 +11:00
wish
ba7321b535
fix stringstack & MoveStage error
2024-01-10 19:29:51 +11:00
wish
2135c443d8
add ban chat command
2024-01-03 19:30:57 +11:00
wish
0ea0dc217b
simplify config
2023-12-31 12:51:24 +11:00
wish
fd02a12ae9
add DefaultCourses DevModeOption
2023-12-31 10:22:27 +11:00
wish
7e34862e25
Merge remote-tracking branch 'origin/main' into feature/warehouse-v2
...
# Conflicts:
# server/channelserver/handlers.go
2023-12-13 11:38:05 +11:00
wish
b6e7f019de
update mhfmon names
2023-12-03 19:56:18 +11:00
wish
4ce65e47e6
revert stringstack.go changes
2023-12-03 17:50:01 +11:00
wish
a846a71ca3
rewrite stringstack.go
2023-11-27 20:45:03 +11:00
wish
bcf2ba40e5
fix possible integer bounding issues
2023-11-20 00:13:49 +11:00
wish
641032f862
implement hunt data logging (partial #82 )
2023-10-08 19:25:48 +11:00
wish
a9f280a2ef
initial warehouse-v2 concept commit
2023-10-01 03:17:51 +11:00
wish
6f9974fa26
update Golang dependencies
2023-08-20 15:30:24 +10:00
wish
0bd4658a23
golang formatting pass
2023-07-03 20:31:53 +10:00
Matthe815
c3fb6aa821
refactor: Remove more debug code
2023-07-03 02:58:10 -04:00
Matthe815
a065643783
feature: JPK encryption and databased events
2023-07-03 02:50:38 -04:00
wish
35b383cba6
Merge pull request #72 from ZeruLight/fix/dynamic-tune-vals
...
dynamic tune values
2023-07-01 23:59:57 +10:00
wish
796927ac61
add PS3_TROP to constant courses
2023-06-20 21:42:06 +10:00
wish
2c8391b5a4
various Tower changes
2023-06-11 18:51:56 +10:00
wish
f5ae129cad
implement psn linking capability
2023-04-15 11:00:49 +10:00
wish
3be014ba7f
remove unused code
2023-04-11 21:07:43 +10:00
wish
a2a4989cda
replace outdated code
2023-03-12 23:36:26 +11:00
wish
ccfd2ac36f
create RNG in token module
2023-03-12 23:29:50 +11:00
wish
5761a38000
extra content
2023-03-12 02:09:36 +11:00
wish
41df26928c
remove useless time initialisers
2023-03-11 23:34:19 +11:00
wish
0a98a651b1
simplify course alias definition
2023-03-11 23:33:48 +11:00
wish
bcb71536ec
initial rights v4 concept
2023-03-11 23:17:14 +11:00
wish
181ea56837
convert token to library
2022-11-07 00:22:16 +11:00
wish
ed3687548c
prevent CSVs from adding existing values
2022-08-16 21:03:30 +10:00
wish
2a65977a44
prevent panic on invalid string transform
2022-08-11 02:53:51 +10:00
wish
816ff0eac5
correct failsafe size on PaddedString transform fail
2022-08-04 22:55:32 +10:00
wish
556198af72
softfail on paddedstring and login cleanup
2022-08-04 21:01:32 +10:00
wish
2c0e7a5267
repository cleanup
2022-07-29 03:25:23 +10:00