![]() |
|
Random Chitchat 2017 - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Off Topic (https://forum.cuberite.org/forum-9.html) +--- Forum: Off Topic Discussion (https://forum.cuberite.org/forum-10.html) +--- Thread: Random Chitchat 2017 (/thread-2727.html) |
RE: Random Chitchat 2017 - ShadowCone - 03-29-2017 I've got a question for whomever did those changes to the forum, I don't remember who it was. What did you do to make it responsive? I.e what do I have to do to make my (standard mybb theme based) theme responsive? RE: Random Chitchat 2017 - NiLSPACE - 03-29-2017 I believe it was @Mathias: https://forum.cuberite.org/thread-434-post-26045.html#pid26045 RE: Random Chitchat 2017 - Seadragon91 - 04-05-2017 Should cMonster:StringToMobType return only a number or is there a missing return value in the api doc? Code: print(cMonster:StringToMobType("creeper"))
50 creeper -- result
50 -- expectedRE: Random Chitchat 2017 - xoft - 04-06-2017 That's a general problem with ToLua++, whenever there's an API function that takes a "const AString &" parameter, ToLua++ generates bindings that return the string parameter as an extra return value. The proper way to fix it is to export the function manually. RE: Random Chitchat 2017 - Seadragon91 - 04-06-2017 Valgrind doesn't like cuberite Code: ==3093== More than 10000000 total errors detected. I'm not reporting any more.
==3093== Final error counts will be inaccurate. Go fix your program!
==3093== Rerun with --error-limit=no to disable this cutoff. Note
==3093== that errors may occur in your program without prior warning from
==3093== Valgrind, because errors are no longer being displayed.Wanted to combine my plugin APIFuzzing with valgrind, but with that many errors already reported... Testing clang now ![]() Edit: Did only a basic run, maybe I need to add flags and use a config file, hehe RE: Random Chitchat 2017 - xoft - 04-06-2017 I used to be able to run Cuberite with Valgrind's MemCheck tool (Server/vg) and HelGrind tool (Server/hg) rather normally. RE: Random Chitchat 2017 - Seadragon91 - 04-06-2017 Tested it with the file and it gather's all the errors into groups in the log file. I see there still over 10.000.000 errors, but now I can see better, if there is a error from my functions calls. RE: Random Chitchat 2017 - Seadragon91 - 04-06-2017 Found a much better one https://github.com/DynamoRIO/drmemory/ Shows 1 leak on shutdown on normal run. Code: Error #1: LEAK 120 direct bytes 0x00000215dd6f2220-0x00000215dd6f2298 + 0 indirect bytes
# 0 replace_malloc [d:\drmemory_package\common\alloc_replace.c:2576]
# 1 try_get_proc_address_from_first_available_module [d:\rs1\minkernel\crts\ucrt\src\appcrt\internal\winapi_thunks.cpp:314]
# 2 try_get_proc_address_from_first_available_module [d:\rs1\minkernel\crts\ucrt\src\appcrt\internal\winapi_thunks.cpp:314]
# 3 _guard_check_icall [f:\dd\vctools\crt\vcstartup\src\misc\checkcfg.c:63]
# 4 event_mm_malloc_ [c:\users\lukas\cpp\cuberite\lib\libevent\event.c:3437]
# 5 event_new [c:\users\lukas\cpp\cuberite\lib\libevent\event.c:2157]
# 6 cNetworkSingleton::RunEventLoop [c:\users\lukas\cpp\cuberite\src\ossupport\networksingleton.cpp:171]
# 7 std::_Invoker_functor::_Call<> [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\type_traits:1534]
# 8 std::invoke<> [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\type_traits:1534]
# 9 std::_LaunchPad<>::_Execute<> [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\thr\xthread:240]
#10 std::_LaunchPad<>::_Run [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\thr\xthread:247]
#11 std::_LaunchPad<>::_Go [c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.10.25017\include\thr\xthread:232]RE: Random Chitchat 2017 - Seadragon91 - 04-06-2017 Want to create a thread and publish my plugin APIFuzzing ![]() Is the section "Plugin Releases" a good place for it? Because it's a plugin for developer and not for player
RE: Random Chitchat 2017 - xoft - 04-07-2017 How about the general Development section? I think it might be even worth moving that plugin to the Cuberite repo on GitHub
|