mirror of
https://github.com/Mezeporta/Erupe.git
synced 2026-03-21 23:22:34 +01:00
fix: ease onboarding with startup warnings and doc corrections
- Warn at startup when quest files are missing (clients crash without them) and point users to the download link - Fix Host config description: it's the advertised IP, not a bind address — 0.0.0.0 was wrong advice - Load bundled schemas (shops, events, gacha) in Docker init so new users get working demo data out of the box - Renumber duplicate patch schema 28 → 32 to resolve numbering collision - Fix patch schema example filename to use hyphens matching actual files
This commit is contained in:
10
main.go
10
main.go
@@ -6,6 +6,7 @@ import (
|
||||
"net"
|
||||
"os"
|
||||
"os/signal"
|
||||
"path/filepath"
|
||||
"runtime/debug"
|
||||
"syscall"
|
||||
"time"
|
||||
@@ -180,6 +181,15 @@ func main() {
|
||||
|
||||
logger.Info(fmt.Sprintf("Server Time: %s", gametime.Adjusted().String()))
|
||||
|
||||
// Warn if quest files are missing — clients crash without them.
|
||||
questPath := filepath.Join(config.BinPath, "quests")
|
||||
if entries, err := os.ReadDir(questPath); err != nil || len(entries) == 0 {
|
||||
logger.Warn("No quest files found in " + questPath)
|
||||
logger.Warn("Download quest/scenario files from: https://files.catbox.moe/xf0l7w.7z")
|
||||
logger.Warn("Extract into your BinPath directory (default: bin/)")
|
||||
logger.Warn("Without these files, quests will not load and clients will crash.")
|
||||
}
|
||||
|
||||
// Now start our server(s).
|
||||
|
||||
// Entrance server.
|
||||
|
||||
Reference in New Issue
Block a user