"Created" meta column + cleanup

This commit is contained in:
Kamil 2020-12-07 21:10:19 +01:00 committed by Gent S
parent 04112377ea
commit 05f4746af4
5 changed files with 456 additions and 501 deletions

View File

@ -42,6 +42,10 @@ pathdata=tdata/paths.json
dropdata=tdata/drops.json
# gruntwork output (this is what you submit)
gruntwork=tdata/gruntwork.json
# location of the database
dbpath=database.db
# should tutorial flags be disabled off the bat?
disablefirstuseflag=true
# account permission level that will be set upon character creation
# 1 = default, will allow *all* commands

View File

@ -346,8 +346,8 @@ void CNLoginServer::characterCreate(CNSocket* sock, CNPacketData* data) {
}
if (!Database::finishCharacter(character, loginSessions[sock].userID))
{
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
return invalidCharacter(sock);
std::cout << "[WARN] Login Server: Database failed to finish character creation!" << std::endl;
return invalidCharacter(sock);
}
Player player = {};

File diff suppressed because it is too large Load Diff

View File

@ -3,7 +3,6 @@
#include "Player.hpp"
#include <string>
#include <vector>
#include <map>
#define DATABASE_VERSION 1
@ -67,7 +66,6 @@ namespace Database {
// getting players
void getPlayer(Player* plr, int id);
void updatePlayer(Player *player);
void updateBuddies(Player* player);
void removeExpiredVehicles(Player* player);
// buddies
@ -89,5 +87,4 @@ namespace Database {
void deleteEmails(int playerID, int64_t* indices);
int getNextEmailIndex(int playerID);
void sendEmail(EmailData* data, std::vector<sItemBase> attachments);
}

View File

@ -81,5 +81,5 @@ void settings::init() {
DISABLEFIRSTUSEFLAG = reader.GetInteger("shard", "disablefirstuseflag", DISABLEFIRSTUSEFLAG);
MONITORENABLED = reader.GetBoolean("monitor", "enabled", MONITORENABLED);
MONITORPORT = reader.GetInteger("monitor", "port", MONITORPORT);
MONITORINTERVAL = reader.GetInteger("monitor", "interval", MONITORINTERVAL);
MONITORINTERVAL = reader.GetInteger("monitor", "interval", MONITORINTERVAL);
}