Undead2014 53 Posted December 29, 2019 Share Posted December 29, 2019 i have a stupid question...how can i make to reload CUBE?..i have case 'c': ch->ChatPacket(CHAT_TYPE_INFO, "Reloading cube table."); Cube_init(); break; but is not reloading when i use /reload c Link to comment Share on other sites More sharing options...
iShadoW 3 Posted February 2, 2020 Share Posted February 2, 2020 tysm ^^ works perfectly Link to comment Share on other sites More sharing options...
Murai 0 Posted February 18, 2020 Share Posted February 18, 2020 one problem, offline shop npc disappear (value npc 30000) after /reload regen ... please how i fix that? Link to comment Share on other sites More sharing options...
Resist0 36 Posted February 19, 2020 Share Posted February 19, 2020 Thanks. works perfectly.<3 Link to comment Share on other sites More sharing options...
Hik 108 Posted February 20, 2020 Share Posted February 20, 2020 On 2/18/2020 at 6:34 AM, pask1994 said: one problem, offline shop npc disappear (value npc 30000) after /reload regen ... please how i fix that? I never noticed it, I will do tests. If I can fix it I will indicate the way. Link to comment Share on other sites More sharing options...
Resist0 36 Posted February 26, 2020 Share Posted February 26, 2020 TE @masodikbela Maybe you can add reload command for : shop_table_ex.txt regards major Link to comment Share on other sites More sharing options...
NeXuS0248 3 Posted March 31, 2020 Share Posted March 31, 2020 I have this prob:cmd_gm.cpp: In function 'void reload_regen(CHARACTER*, const char*, int, int)':cmd_gm.cpp:947: error: 'class SECTREE_MANAGER' has no member named 'BuildMap'gmake: *** [OBJDIR_GAME/cmd_gm.o] Error 1 Link to comment Share on other sites More sharing options...
valdirk2 83 Posted December 15, 2020 Share Posted December 15, 2020 I made a script to reload on locale_string I thought it was too easy, but I didn't even test it much. If you want to test. locale.cpp In function void locale_init(const char *filename) Add before FILE * fp = fopen (filename, "rb"); localeString.clear(); The function will look like this void locale_init(const char *filename) { localeString.clear(); FILE *fp = fopen(filename, "rb"); char *buf; if (!fp) return; fseek(fp, 0L, SEEK_END); int i = ftell(fp); fseek(fp, 0L, SEEK_SET); ... cmd_gm.cpp In function ACMD(do_reload) Add below case 'c': // cube // ·ÎÄà ÇÁ·Î¼¼½º¸¸ °»»êÇÑ´Ù. Cube_init(); break; this case 'l': ch->ChatPacket(CHAT_TYPE_INFO, "Reloading locale_string."); LocaleService_LoadLocaleStringFile(); break; I believe it's just that, I tested it quickly and it worked, I'm not sure on other channels. 1 Link to comment Share on other sites More sharing options...
Hik 108 Posted December 15, 2020 Share Posted December 15, 2020 Could a similar thing be done with translate.lua? Link to comment Share on other sites More sharing options...
valdirk2 83 Posted December 15, 2020 Share Posted December 15, 2020 Just now, Hik said: Could a similar thing be done with translate.lua? If I'm not mistaken, with "reload q" he already does that. In the files I'm working on, I don't use translate.lua, just locale.lua. 1 Link to comment Share on other sites More sharing options...
DevBlade 8 Posted January 22, 2021 Share Posted January 22, 2021 Hey is this also possible for common_drop_item.txt ? Thank you in advance! Link to comment Share on other sites More sharing options...
Active Member Dex 521 Posted January 31, 2021 Active Member Share Posted January 31, 2021 On 1/22/2021 at 9:31 PM, DevBlade said: Hey is this also possible for common_drop_item.txt ? Thank you in advance! It's already reloading common_drop_item.txt ^^ Link to comment Share on other sites More sharing options...
Jordan 22 Posted March 9, 2021 Share Posted March 9, 2021 Thank you! Is that safe to use on a live server too or only recommended on a dev server? Link to comment Share on other sites More sharing options...
Premium masodikbela 1359 Posted March 9, 2021 Author Premium Share Posted March 9, 2021 1 minute ago, Jordan said: Thank you! Is that safe to use on a live server too or only recommended on a dev server? Except /reload p (because it reloads the protos too) its safe to use on live server, if you don't have any new system or adjustment related to those stuff (so considering you use the basic files its safe). 1 The one and only UI programming guideline Link to comment Share on other sites More sharing options...
Active+ Member Doose 1603 Posted March 16, 2021 Active+ Member Share Posted March 16, 2021 Hi, where do i change the /reload regen command??? Link to comment Share on other sites More sharing options...
ByLost 142 Posted March 16, 2021 Share Posted March 16, 2021 On 12/29/2019 at 9:23 AM, Undead2014 said: Eu tenho uma pergunta estúpida... como posso fazer para recarregar cube?.. Eu tenho case 'c': ch->ChatPacket(CHAT_TYPE_INFO, "Reloading cube table."); Cube_init(); break; mas não está recarregando quando eu uso /recarregar c It approaches the NPC which has cube and the command Link to comment Share on other sites More sharing options...
doxiddos 2 Posted March 29, 2021 Share Posted March 29, 2021 i have to say thank you man, i used it and it works fine and i do really advice you all to use #define RELOAD_EX - In service.h from common #ifdef RELOAD_EX RELOAD EXPANDED CODE - #else OLD CODE - #endif In case you did something wrong just go edit the RELOAD EXPANDED CODE - and if you wanna switch back to your old reload go nutz comment the #define RELOAD_EX Link to comment Share on other sites More sharing options...
B0ne 15 Posted November 27, 2021 Share Posted November 27, 2021 On 2/18/2020 at 6:34 AM, pask1994 said: one problem, offline shop npc disappear (value npc 30000) after /reload regen ... please how i fix that? Sorry to turn the topic back on, but maybe it will help someone. Go go char_manager.cpp void CHARACTER_MANAGER::DestroyCharacterInMap(long lMapIndex) Inside search these if (pkChr && pkChr->GetMapIndex() == lMapIndex && pkChr->IsNPC() && !pkChr->IsPet() && pkChr->GetRider() == NULL) change to if (pkChr && pkChr->GetMapIndex() == lMapIndex && pkChr->IsNPC() && !pkChr->IsPet() && !pkChr->IsPrivShop() && pkChr->GetRider() == NULL) thats all. and now the shops dont disappear after /reload_regen Link to comment Share on other sites More sharing options...
Active+ Member Doose 1603 Posted February 11, 2022 Active+ Member Share Posted February 11, 2022 When you do /reload drop it add the new drops to the monster but if you remove the new drops, they wont refresh until you restart the client, any info? Link to comment Share on other sites More sharing options...
B0ne 15 Posted February 11, 2022 Share Posted February 11, 2022 2 minutes ago, Th1Doose said: When you do /reload drop it add the new drops to the monster but if you remove the new drops, they wont refresh until you restart the client, any info? need visual part for client. Link to comment Share on other sites More sharing options...
Active+ Member Doose 1603 Posted February 11, 2022 Active+ Member Share Posted February 11, 2022 Just now, B0ne said: need visual part for client. Can you share? Link to comment Share on other sites More sharing options...
Active+ Member Doose 1603 Posted February 13, 2022 Active+ Member Share Posted February 13, 2022 push Link to comment Share on other sites More sharing options...
rapsody90 0 Posted October 15, 2022 Share Posted October 15, 2022 my refine proto not work if i put thies in my src PLEASE HELP! Link to comment Share on other sites More sharing options...
Premium masodikbela 1359 Posted October 21, 2023 Author Premium Share Posted October 21, 2023 (edited) There was a correction today after many years past the release. There was a heap-use-after-free bug in the regen_free_map function, which means that the regen struct has been freed and after that in the increment part of for-loop accessed this deleted struct for the next regen in line. Normally while its not safe, it still doesn't cause any issues since the just-freed memory part is not overwritten yet, but in rare occasions it can happen. Also with debug mode or debuggers using shadow bytes to detect such cases would immediately notice it. This might have been the reason while my vs debugger got stuck back in the old days. Thanks to @ Karbust for noticing this problem with address sanitizer. Edited October 21, 2023 by masodikbela 2 1 1 The one and only UI programming guideline Link to comment Share on other sites More sharing options...
Recommended Posts