06-26-2023, 01:30 PM
|
Centos 7 compile guide
|
|
06-27-2023, 01:32 AM
since i can't edit the main post "fix this please" the helper has an issue with the new gcc48. It enters a infinite loop causing it to never start. not even sure how the original code worked honestly without that issue. void CServer::initTime() { // Get the current time time_t now1; time(&now1); rankInitUpdateTime = *localtime(&now1); rewardInitUpdateTime = *localtime(&now1); rewardEndUpdateTime = *localtime(&now1); // Increment the day until it is Tuesday (tm_wday = 2) int daysToAdd = (2 - rankInitUpdateTime.tm_wday + 7) % 7; rankInitUpdateTime.tm_mday += daysToAdd; mktime(&rankInitUpdateTime); // Set the time for rank initialization rankInitUpdateTime.tm_hour = 8; rankInitUpdateTime.tm_min = 0; rankInitUpdateTime.tm_sec = 0; // Set the time for reward initialization rewardInitUpdateTime = rankInitUpdateTime; rewardInitUpdateTime.tm_min = 20; // Set the time for reward end update rewardEndUpdateTime = rankInitUpdateTime; rewardEndUpdateTime.tm_min = 10; // Set the initial state flags b_rankinitupdate = false; b_rewardinitupdate = false; b_rewardendupdate = false; } redo the entire function void CServer::initTime() to this. inside ServerRun.cpp inside the helper
06-27-2023, 06:03 PM
Whaat? LC is a toxic world? Noooooo, whatever do you mean? ? Good work man ?
07-05-2023, 05:23 PM
Until this dead board mods can actually moderate stuff and fix my editing powers / merge these into the main post.... here's this. 2 Centos 7 compiler VM. included a couple things to automate some things to make life easier. Also included the ShareLib BNF modifications. so make sure to not overwrite this.
07-24-2023, 07:22 AM
This thing here is the main issue: static bnf __instance; bnf* bnf::instance() { return &__instance; } It causes a fatal crash, because the Server tried to allocate memory from an object which does not exists because of the declaration outside of the function body. This was a proper declaration back then but became obsolete.
07-25-2023, 02:38 AM
20 hours ago, Nikolee said: This thing here is the main issue: static bnf __instance; bnf* bnf::instance() { return &__instance; } It causes a fatal crash, because the Server tried to allocate memory from an object which does not exists because of the declaration outside of the function body. This was a proper declaration back then but became obsolete. also each server needs to have a new bnf instance declared to work correctly even by fixing this, well that's at least my newer version of the fix has.
01-12-2024, 08:31 PM
thxxs
04-27-2024, 10:14 AM
05-14-2024, 09:28 AM
I have fixed the archive link sadly the centos zip is missing i will try to restore it. |
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)

