![]() |
|
Centos 7 compile guide - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Release Zone (https://lckb.dev/forum/forumdisplay.php?fid=190) +---- Forum: Episode 4 Releases (https://lckb.dev/forum/forumdisplay.php?fid=156) +----- Forum: Server Side (https://lckb.dev/forum/forumdisplay.php?fid=138) +----- Thread: Centos 7 compile guide (/showthread.php?tid=5055) Pages:
1
2
|
- pwesty - 06-26-2023 Enjoy my long waited contribution to the toxic world of LC ? 2 - pwesty - 06-27-2023 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 - RGT - 06-27-2023 Whaat? LC is a toxic world? Noooooo, whatever do you mean? ? Good work man ? - pwesty - 07-05-2023 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. - Nikolee - 07-24-2023 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. - pwesty - 07-25-2023 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. - Sutz - 12-19-2023 Mirrors: 2 2 - darklord - 01-12-2024 thxxs - Andrein95 - 04-27-2024 On 12/19/2023 at 5:37 PM, SutWick said: Mirrors: 2 2 Can someone reupload: 2 missing file.. - Sutz - 05-14-2024 I have fixed the archive link sadly the centos zip is missing i will try to restore it. |