Closed China-GWY closed 4 years ago
麻烦发一下mods/mod.list内容?
在上面,有cdk.so呀
就是编译之后加载不了
麻烦发一下mods/mod.list内容?
。。
往后放放,把cdk放最后
往后放放,把cdk放最后
我去试试
其他插件是最新的吗
嗯
其他插件是最新的吗
不是那个cdk.so是我用源码自己从新编译的,我想汉化
其他插件是最新的吗
换成原来的就好使,自己编译的就不行
mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)
mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)
他说有一个指令不存在
mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)
等会,我发图你看一下
gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ ls
all.sh base bear cdk chestShop cmdhelp custname DEPRECATED gui killbonus land libleveldb.a map money opti protect tpsinfo tptp transfer vars wtf
gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ all.sh
all.sh: command not found
gwy@host-192-168-0-237:~/c++_run/bdlauncher/mod$ ./all.sh
In file included from /usr/include/c++/8/unordered_map:46,
from main.cpp:10:
/usr/include/c++/8/bits/hashtable.h: In instantiation of ‘class std::_Hashtable<InventorySource, std::pair<const InventorySource, std::vector~~~~~~~~
main.cpp: In function ‘void async_log(const char, ...)’:
main.cpp:73:10: warning: ignoring return value of ‘ssize_t write(int, const void, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
write(1,buf,s);
main.cpp:74:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
write(logfd,buf,s);
~~~~~^~~~~~~~~~~~~
main.cpp: In function ‘void onJoin(ServerPlayer*)’:
main.cpp:534:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
write(fd,inv.data(),inv.size());
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:18:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
In file included from main.cpp:23:
data.hpp:5: warning: "access" redefined
#define access(ptr,type,off) (*((type*)(((uintptr_t)ptr)+off)))
In file included from main.cpp:9:
../../include/MC.h:29: note: this is the location of the previous definition
#define access(ptr, type, off) (*((type *)(((uintptr_t)ptr) + off)))
In file included from main.cpp:23:
data.hpp: In function ‘void CHECK_AND_FIX_ALL()’:
data.hpp:410:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::vector<std::pair<std::__cxx11::basic_string<char>, DataLand> >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
printf("[LAND/LCK] %d lands found!\n",lands.size());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~
data.hpp:431:12: warning: too many arguments for format [-Wformat-extra-args]
printf("[LAND/LCK] Done land data fix!\n",lands.size());
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
data.hpp:407:11: warning: ignoring return value of ‘int system(const char*)’, declared with attribute warn_unused_result [-Wunused-result]
system("rm -r data_v2/land_old;mv data_v2/land data_v2/land_old");
~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:349:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
link("data/land/land.db", "data/land/land.db.old");
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:15:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:9:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:49:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
link("data/money/money.db","data/money/money.db.old");
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void load_warps_new()’:
main.cpp:149:12: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘std::__cxx11::list<std::__cxx11::basic_string<char> >::size_type’ {aka ‘long unsigned int’} [-Wformat=]
printf("%d warps found\n",warp_list.size());
^~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:14:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void load()’:
main.cpp:184:13: warning: ignoring return value of ‘int link(const char*, const char*)’, declared with attribute warn_unused_result [-Wunused-result]
link("data/tp/tp.db","data/tp/tp.db_old");
~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function ‘void async_log(const char*, ...)’:
main.cpp:31:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
write(1,buf,s);
~~~~~^~~~~~~~~
main.cpp:32:10: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
write(logfd,buf,s);
~~~~~^~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:3:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function ‘void oncmd_runas(argVec&, const CommandOrigin&, CommandOutput&)’:
main.cpp:208:30: warning: narrowing conversion of ‘ptr’ from ‘int’ to ‘std::basic_string_view<char>::size_type’ {aka ‘long unsigned int’} inside { } [-Wnarrowing]
runcmdAs({buf,ptr},sp).isSuccess()?outp.success():outp.error("error");
^
In file included from ../base/base.h:9,
from main.cpp:3:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
In file included from ../base/base.h:9,
from main.cpp:5:
../base/stl.hpp: In constructor ‘FileBuffer::FileBuffer(const char*)’:
../base/stl.hpp:251:14: warning: ignoring return value of ‘ssize_t pread(int, void*, size_t, __off_t)’, declared with attribute warn_unused_result [-Wunused-result]
pread(fd,data,size,0);
~~~~~^~~~~~~~~~~~~~~~
mod.list加载顺序不是原来的,如果自己编译的话试试全部编译(执行mod/all.sh)
就提示这一大堆,哎
g++ 9 required
需要g ++ 9
非常感谢我去试试
需要g ++ 9
不对呀,好像没有g++9
这个怎么处理,希望发官方教程,谢谢