mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 16:04:38 +01:00
rearrange config options
This commit is contained in:
@@ -3,13 +3,13 @@
|
|||||||
"BinPath": "bin",
|
"BinPath": "bin",
|
||||||
"DisableSoftCrash": false,
|
"DisableSoftCrash": false,
|
||||||
"FeaturedWeapons": 1,
|
"FeaturedWeapons": 1,
|
||||||
|
"HideLoginNotice": true,
|
||||||
|
"LoginNotice": "<BODY><CENTER><SIZE_3><C_4>Welcome to Erupe SU9.1!<BR><BODY><LEFT><SIZE_2><C_5>Erupe is experimental software<C_7>, we are not liable for any<BR><BODY>issues caused by installing the software!<BR><BODY><BR><BODY><C_4>■Report bugs on Discord!<C_7><BR><BODY><BR><BODY><C_4>■Test everything!<C_7><BR><BODY><BR><BODY><C_4>■Don't talk to softlocking NPCs!<C_7><BR><BODY><BR><BODY><C_4>■Fork the code on GitHub!<C_7><BR><BODY><BR><BODY>Thank you to all of the contributors,<BR><BODY><BR><BODY>this wouldn't exist without you.",
|
||||||
|
"PatchServerManifest": "",
|
||||||
|
"PatchServerFile": "",
|
||||||
"DevMode": true,
|
"DevMode": true,
|
||||||
"DevModeOptions": {
|
"DevModeOptions": {
|
||||||
"PatchServerManifest": "",
|
|
||||||
"PatchServerFile": "",
|
|
||||||
"AutoCreateAccount": true,
|
"AutoCreateAccount": true,
|
||||||
"HideLoginNotice": false,
|
|
||||||
"LoginNotice": "<BODY><CENTER><SIZE_3><C_4>Welcome to Erupe SU9.1!<BR><BODY><LEFT><SIZE_2><C_5>Erupe is experimental software<C_7>, we are not liable for any<BR><BODY>issues caused by installing the software!<BR><BODY><BR><BODY><C_4>■Report bugs on Discord!<C_7><BR><BODY><BR><BODY><C_4>■Test everything!<C_7><BR><BODY><BR><BODY><C_4>■Don't talk to softlocking NPCs!<C_7><BR><BODY><BR><BODY><C_4>■Fork the code on GitHub!<C_7><BR><BODY><BR><BODY>Thank you to all of the contributors,<BR><BODY><BR><BODY>this wouldn't exist without you.",
|
|
||||||
"CleanDB": false,
|
"CleanDB": false,
|
||||||
"MaxLauncherHR": false,
|
"MaxLauncherHR": false,
|
||||||
"LogInboundMessages": false,
|
"LogInboundMessages": false,
|
||||||
|
|||||||
@@ -12,11 +12,15 @@ import (
|
|||||||
|
|
||||||
// Config holds the global server-wide config.
|
// Config holds the global server-wide config.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Host string `mapstructure:"Host"`
|
Host string `mapstructure:"Host"`
|
||||||
BinPath string `mapstructure:"BinPath"`
|
BinPath string `mapstructure:"BinPath"`
|
||||||
DisableSoftCrash bool // Disables the 'Press Return to exit' dialog allowing scripts to reboot the server automatically
|
DisableSoftCrash bool // Disables the 'Press Return to exit' dialog allowing scripts to reboot the server automatically
|
||||||
FeaturedWeapons int // Number of Active Feature weapons to generate daily
|
FeaturedWeapons int // Number of Active Feature weapons to generate daily
|
||||||
DevMode bool
|
HideLoginNotice bool // Hide the Erupe notice on login
|
||||||
|
LoginNotice string // MHFML string of the login notice displayed
|
||||||
|
PatchServerManifest string // Manifest patch server override
|
||||||
|
PatchServerFile string // File patch server override
|
||||||
|
DevMode bool
|
||||||
|
|
||||||
DevModeOptions DevModeOptions
|
DevModeOptions DevModeOptions
|
||||||
Discord Discord
|
Discord Discord
|
||||||
@@ -31,24 +35,20 @@ type Config struct {
|
|||||||
|
|
||||||
// DevModeOptions holds various debug/temporary options for use while developing Erupe.
|
// DevModeOptions holds various debug/temporary options for use while developing Erupe.
|
||||||
type DevModeOptions struct {
|
type DevModeOptions struct {
|
||||||
PatchServerManifest string // Manifest patch server override
|
AutoCreateAccount bool // Automatically create accounts if they don't exist
|
||||||
PatchServerFile string // File patch server override
|
CleanDB bool // Automatically wipes the DB on server reset.
|
||||||
AutoCreateAccount bool // Automatically create accounts if they don't exist
|
MaxLauncherHR bool // Sets the HR returned in the launcher to HR7 so that you can join non-beginner worlds.
|
||||||
HideLoginNotice bool // Hide the Erupe notice on login
|
LogInboundMessages bool // Log all messages sent to the server
|
||||||
LoginNotice string // MHFML string of the login notice displayed
|
LogOutboundMessages bool // Log all messages sent to the clients
|
||||||
CleanDB bool // Automatically wipes the DB on server reset.
|
MaxHexdumpLength int // Maximum number of bytes printed when logs are enabled
|
||||||
MaxLauncherHR bool // Sets the HR returned in the launcher to HR7 so that you can join non-beginner worlds.
|
DivaEvent int // Diva Defense event status
|
||||||
LogInboundMessages bool // Log all messages sent to the server
|
FestaEvent int // Hunter's Festa event status
|
||||||
LogOutboundMessages bool // Log all messages sent to the clients
|
TournamentEvent int // VS Tournament event status
|
||||||
MaxHexdumpLength int // Maximum number of bytes printed when logs are enabled
|
MezFesEvent bool // MezFes status
|
||||||
DivaEvent int // Diva Defense event status
|
MezFesAlt bool // Swaps out Volpakkun for Tokotoko
|
||||||
FestaEvent int // Hunter's Festa event status
|
DisableTokenCheck bool // Disables checking login token exists in the DB (security risk!)
|
||||||
TournamentEvent int // VS Tournament event status
|
DisableMailItems bool // Hack to prevent english versions of MHF from crashing
|
||||||
MezFesEvent bool // MezFes status
|
QuestDebugTools bool // Enable various quest debug logs
|
||||||
MezFesAlt bool // Swaps out Volpakkun for Tokotoko
|
|
||||||
DisableTokenCheck bool // Disables checking login token exists in the DB (security risk!)
|
|
||||||
DisableMailItems bool // Hack to prevent english versions of MHF from crashing
|
|
||||||
QuestDebugTools bool // Enable various quest debug logs
|
|
||||||
SaveDumps SaveDumpOptions
|
SaveDumps SaveDumpOptions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user