Updated tdata and changed how the default JSON paths are resolved

This commit is contained in:
dongresource 2021-01-04 17:08:44 +01:00
parent 89e4b2be22
commit 0e3fac4d34
3 changed files with 24 additions and 16 deletions

View File

@ -31,26 +31,27 @@ simulatemobs=true
# little message players see when they enter the game # little message players see when they enter the game
motd=Welcome to OpenFusion! motd=Welcome to OpenFusion!
# xdt json data # The following are the default locations of the JSON files the server
xdtdata=tdata/xdt.json # requires to run. You can override them by changing their values and
# if you want to run the Academy build, comment the previous line # uncommenting them (removing the leading # character from that line).
# and uncomment the next one
#xdtdata=tdata/xdt_1013.json
# xdt json data
#xdtdata=tdata/xdt.json
# NPC json data # NPC json data
npcdata=tdata/NPCs.json #npcdata=tdata/NPCs.json
# mob json # mob json
mobdata=tdata/mobs.json #mobdata=tdata/mobs.json
# academy mobs & npcs json # academy mobs & npcs json
academydata=tdata/academy.json #academydata=tdata/1013/academy.json
# path json # path json
pathdata=tdata/paths.json #pathdata=tdata/paths.json
# drop json # drop json
dropdata=tdata/drops.json #dropdata=tdata/drops.json
# gruntwork output (this is what you submit) # gruntwork output (this is what you submit)
gruntwork=tdata/gruntwork.json #gruntwork=tdata/gruntwork.json
# location of the database # location of the database
dbpath=database.db #dbpath=database.db
# should tutorial flags be disabled off the bat? # should tutorial flags be disabled off the bat?
disablefirstuseflag=true disablefirstuseflag=true

View File

@ -29,15 +29,22 @@ int settings::SPAWN_Z = 8450;
int settings::SPAWN_ANGLE = 130; int settings::SPAWN_ANGLE = 130;
std::string settings::NPCJSON = "tdata/NPCs.json"; std::string settings::NPCJSON = "tdata/NPCs.json";
std::string settings::XDTJSON = "tdata/xdt.json";
std::string settings::MOBJSON = "tdata/mobs.json"; std::string settings::MOBJSON = "tdata/mobs.json";
std::string settings::ACADEMYJSON = "tdata/academy.json";
std::string settings::PATHJSON = "tdata/paths.json"; std::string settings::PATHJSON = "tdata/paths.json";
std::string settings::DROPSJSON = "tdata/drops.json";
std::string settings::EGGSJSON = "tdata/eggs.json"; std::string settings::EGGSJSON = "tdata/eggs.json";
std::string settings::GRUNTWORKJSON = "tdata/gruntwork.json"; std::string settings::GRUNTWORKJSON = "tdata/gruntwork.json";
std::string settings::MOTDSTRING = "Welcome to OpenFusion!"; std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
std::string settings::DBPATH = "database.db"; std::string settings::DBPATH = "database.db";
std::string settings::ACADEMYJSON = "tdata/1013/academy.json";
#if PROTOCOL_VERSION == 1013
std::string settings::XDTJSON = "tdata/1013/xdt.json";
std::string settings::DROPSJSON = "tdata/1013/drops.json";
#else
std::string settings::DROPSJSON = "tdata/drops.json";
std::string settings::XDTJSON = "tdata/xdt.json";
#endif
int settings::ACCLEVEL = 1; int settings::ACCLEVEL = 1;
bool settings::DISABLEFIRSTUSEFLAG = true; bool settings::DISABLEFIRSTUSEFLAG = true;

2
tdata

@ -1 +1 @@
Subproject commit 385b298533d3532765bf4fc8179d999297c38814 Subproject commit 2d1af8e5d6c91135cc66f85e5ca34b9bbe4a3bb3