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

View File

@ -29,15 +29,22 @@ int settings::SPAWN_Z = 8450;
int settings::SPAWN_ANGLE = 130;
std::string settings::NPCJSON = "tdata/NPCs.json";
std::string settings::XDTJSON = "tdata/xdt.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::DROPSJSON = "tdata/drops.json";
std::string settings::EGGSJSON = "tdata/eggs.json";
std::string settings::GRUNTWORKJSON = "tdata/gruntwork.json";
std::string settings::MOTDSTRING = "Welcome to OpenFusion!";
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;
bool settings::DISABLEFIRSTUSEFLAG = true;

2
tdata

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