Honorable Member Mali 41641 Posted January 28, 2020 Honorable Member Share Posted January 28, 2020 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) This is the hidden content, please Sign In or Sign Up ( GitHub ) /reload c doesn't work properly for client-side. Even if you re-open client. Bug: 75 1 2 1 1 1 2 22 5 56 Link to comment Share on other sites More sharing options...
Undead2014 53 Posted February 3, 2020 Share Posted February 3, 2020 (edited) i receive this cube.cpp: In function 'void Cube_open(CHARACTER*)': cube.cpp:289: error: ISO C++ forbids declaration of 'reload' with no type Edit: now it's working i change auto in char and it's working fine for the moment, by the way, I love you man,i search for this for some time,you are a gold mine Edited February 3, 2020 by Undead2014 Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10242 Posted February 3, 2020 Forum Moderator Share Posted February 3, 2020 (edited) 4 hours ago, Undead2014 said: i receive this cube.cpp: In function 'void Cube_open(CHARACTER*)': cube.cpp:289: error: ISO C++ forbids declaration of 'reload' with no type Edit: now it's working i change auto in char and it's working fine for the moment auto for variables specifies that the type of the variable that is being declared will be automatically deduced from its initializer, in your case, the variable type is a boolean, not char. static bool s_isInitializedCubeMaterialInformation = false; So, you should change it with bool instead of char or enable the c++11 mode when building (we're in 2020, everyone must have that). You can do that by adding -std=gnu++11 (to also get GCC extensions, which are on by default), or -std=c++11 (for only ISO C++) to your compiler flags, already there're some tutorials what other changes you've to do for achieve it. Edited February 3, 2020 by VegaS™ 2 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Undead2014 53 Posted February 4, 2020 Share Posted February 4, 2020 (edited) 18 hours ago, VegaS™ said: auto for variables specifies that the type of the variable that is being declared will be automatically deduced from its initializer, in your case, the variable type is a boolean, not char. static bool s_isInitializedCubeMaterialInformation = false; So, you should change it with bool instead of char or enable the c++11 mode when building (we're in 2020, everyone must have that). You can do that by adding -std=gnu++11 (to also get GCC extensions, which are on by default), or -std=c++11 (for only ISO C++) to your compiler flags, already there're some tutorials what other changes you've to do for achieve it. Thanks,i didn't now this,i will try with c++11, so i will change "char" with "bool" but i have another question...static or const ? const bool reload = !s_isInitializedCubeMaterialInformation; static bool reload = !s_isInitializedCubeMaterialInformation; I saw the difference between this terms but what should I use? Edited February 4, 2020 by Undead2014 Link to comment Share on other sites More sharing options...
Honorable Member Mali 41641 Posted February 14, 2020 Author Honorable Member Share Posted February 14, 2020 updated 1 Link to comment Share on other sites More sharing options...
narcisxb 26 Posted October 14, 2021 Share Posted October 14, 2021 my cube won t open anymore. I think the issue is in game.py. Can someone show me the correct way of adding it in game.py? Link to comment Share on other sites More sharing options...
Premium Ulthar 3074 Posted October 27, 2021 Premium Share Posted October 27, 2021 (edited) On 10/14/2021 at 3:42 AM, narcisxb said: my cube won t open anymore. I think the issue is in game.py. Can someone show me the correct way of adding it in game.py? Hello, i finally did it Before: After: For me it worked I have a personal problem: If i set 30006 (orc tooth) to upgrade item and i click on it, the orc tooth will not be in the cube window (i have extra inventory, and the orc tooth is going to extra inv) but with every other item which is inside the normal inventory, it working fine. Thanks for the post!!! Edited August 17, 2022 by Metin2 Dev Core X - External 2 Internal Ulthar Link to comment Share on other sites More sharing options...
Recommended Posts