Houmgaor
46bbb6adf9
fix: resolve all remaining lint errors (errcheck) across 49 files
...
Fix unchecked error returns on bf.Seek(), db.Exec(), QueryRow().Scan(),
pkt.Build(), logger.Sync(), and binary.Write() calls. The linter now
passes with 0 errors, build compiles, and all tests pass with -race.
2026-02-17 18:07:38 +01:00
Houmgaor
2a0e3e2c84
fix: re-enable CI lint job and fix ~65 lint errors (partial)
...
Re-enable the golangci-lint job in CI (disabled Oct 2025), update to
Go 1.25 and golangci-lint-action v7. Fix errcheck, gosimple S1009,
staticcheck SA4031 and SA2001 errors across 54 files. Remaining ~39
lint errors will be addressed in follow-up commits.
2026-02-17 17:59:00 +01:00
Houmgaor
85cdac036e
fix: validate quest file existence in seasonConversion fallbacks
...
The final fallback in seasonConversion blindly constructed a filename
without checking if it existed on disk. When the file was missing,
handleMsgSysGetFile would send doAckBufFail, but the original Frontier
client does not gracefully handle this during quest loading — causing a
softlock instead of showing the built-in error dialog.
Now every fallback path validates file existence before returning, and
also tries the opposite time-of-day variant as a last resort. If no
file variant exists at all, the original filename is returned with a
warning log so the failure ack is still sent.
2026-02-17 01:19:26 +01:00
Houmgaor
10e09630a6
fix: send failure ack for missing quest/scenario files instead of crashing client
...
When a quest or scenario file was missing, handleMsgSysGetFile sent nil
data via doAckBufSucceed, which crashed the game client. Now sends
doAckBufFail so the client can handle the missing file gracefully.
Closes #109
2026-02-16 18:35:44 +01:00
Houmgaor
1398383a8d
fix(lint): automated linting, with simple formatter.
2025-10-19 22:43:05 +02:00
wish
8d1c6a79e2
S6 compatibility fix
2025-05-04 01:47:30 +10:00
wish
f2862ea4b8
prevent concurrent map write to questCache
2025-03-08 11:41:57 +11:00
wish
d26ae4563e
fix G1 compatibility
2024-03-17 16:35:16 +11:00
wish
864586a40b
exclude 0 values on EnumerateQuest
2024-02-19 17:37:40 +11:00
wish
7549fe63e6
conform Event Quest body size & auto change gathering points
2024-02-19 17:35:24 +11:00
wish
6ec9d9d869
add AutoBackportQuest DebugOption
2024-02-11 23:22:42 +11:00
wish
bbf4fa2472
further tune value configuration
2024-02-10 03:07:13 +11:00
wish
59eafbe3d5
fix EnumerateQuest rotation
2024-01-16 19:50:41 +11:00
wish
6b54e40cc6
add tuneValue comments
2024-01-14 14:13:11 +11:00
wish
1a6a9da308
add logging to EnumerateQuest
2024-01-14 14:09:51 +11:00
wish
0ea0dc217b
simplify config
2023-12-31 12:51:24 +11:00
wish
7e5fd73496
rename Event Quest cycling 'duration' to 'days'
2023-11-26 13:06:49 +11:00
wish
a0970de48c
review pass for Event Quest cycling
2023-11-26 13:02:17 +11:00
Matthew
524009039c
Merge branch 'main' into main
2023-11-19 14:34:30 -05:00
Matthew
46587b8d01
fix: Fix variables
2023-11-19 14:27:53 -05:00
Matthew
ffb0d25a43
docs: Fixed and cleaned a bit of the documentation
2023-11-19 13:48:43 -05:00
Matthew
858a9adb17
chore: Removed debug code
2023-11-19 13:45:30 -05:00
Matthew
6bd2b637a7
refactor: Moved quest duration variables to uint8
2023-11-19 13:44:11 -05:00
Matthew
3778d03402
feat: Default to always active if inactive time is not set
2023-11-19 13:39:59 -05:00
Matthew
47ca302384
feat: Cycle simulation (simulate cycles if beyond a single set)
2023-11-18 03:18:35 -05:00
wish
c554943140
Merge pull request #96 from matthe815/seasons-fix
...
Fix: Re-add Seasons & Bug Fixes
2023-11-18 15:45:14 +11:00
wish
490aecd94b
rewrite comments & change quest flag code
2023-11-18 15:44:59 +11:00
Matthew
c20380b79d
fix: Continue instead of ending event quest parsing if an error occurs on a single quest
2023-11-17 22:27:50 -05:00
Matthew
a34a0e42b2
fix: Commit to database via unique index rather than quest_id
2023-11-17 22:21:48 -05:00
Matthew
50d3ec36b2
chore: Fix formatting
2023-11-17 22:21:15 -05:00
Matthew
233990f452
refactor: Change event quest updating to use transactions rather than directly commiting
2023-11-17 22:18:07 -05:00
Matthe815
6384d79a7a
fix: Removed unnecessary condition
2023-11-16 11:29:31 -05:00
Matthe815
2e2d129871
docs: Fix annotation for custom quest conditions
2023-11-16 11:10:46 -05:00
wish
72bda06916
implement Quest caching
2023-11-16 21:51:28 +11:00
wish
8c69a98c58
remove arbitrary test code
2023-11-16 21:31:31 +11:00
Matthew
a27d15bff1
style: Fixed inconsistent spacing and cleaned up SQL query strings
2023-11-16 02:38:58 -05:00
Matthe815
a9b8bb4c56
fix: Added flags to sql query
2023-11-16 02:00:01 -05:00
Matthe815
3e4e325675
feat: Implement event quest season/time flag override
2023-11-11 03:42:08 -05:00
Matthe815
611cb2da5b
feat: Request custom files based on time of day.
2023-11-08 13:28:05 -05:00
Matthe815
378dfd0372
fix: Fixed issues with improper loading of areas
2023-11-07 21:16:03 -05:00
Matthe815
cce64d4010
fix: Removed random print from code
2023-11-05 19:19:55 -05:00
Matthe815
68de64a05f
fix: Fixed issue with seasons not properly displaying on client
2023-11-05 19:08:02 -05:00
Matthe815
4edeaedea3
fix: Restore seasons functionality into quests
2023-11-05 15:23:34 -05:00
wish
13375fa8e9
fix quest enumeration
2023-10-24 23:03:08 +11:00
wish
64cb106c70
formatting, strip out unknown values
2023-10-24 22:18:09 +11:00
stratic-dev
c4e8cd5999
Added paxes fix and missing fields to db
2023-10-24 01:48:20 +01:00
wish
dd26fc73c3
adjust GUrgentRate definition
2023-10-12 23:25:35 +11:00
wish
56a32b879c
fix invalid length tuneValues
2023-08-31 00:07:27 +10:00
Ewerton B. S
45e912a8d9
Merge branch 'ZeruLight:main' into main
2023-08-28 05:48:31 +09:00
Ewerton B. S
b74e571beb
Update handlers_quest.go
2023-08-23 08:07:15 +09:00