楼主: houxiaoxin

[未归类主题(有空慢慢分)] [TrinityCore]角色首次登陆自动学技能,传家宝装备和背包

[复制链接]

435

时沙

0

精华

0

主题

声望: 367   虚弱: 0

Lv.4(锻造者)

炉石银色北伐军假死猎人今天也只能打恢复的增强萨金鼠(ytfirefox制作)

发表于 2019-5-22 13:36:07 | 显示全部楼层
楼主 编译错误  能帮忙看看什么问题么

  1. [  1%] Built target fmt
  2. [  2%] Built target Recast
  3. [  2%] Built target Detour
  4. [  5%] Built target g3dlib
  5. [  5%] Built target gsoap
  6. [  5%] Built target mpq
  7. [  8%] Built target jemalloc
  8. [  8%] Built target revision_data.h
  9. [ 12%] Built target common
  10. [ 12%] Built target vmap4assembler
  11. [ 13%] Built target vmap4extractor
  12. [ 14%] Built target mapextractor
  13. [ 16%] Built target database
  14. [ 17%] Built target mmaps_generator
  15. [ 18%] Built target shared
  16. [ 19%] Built target authserver
  17. [ 42%] Built target game
  18. Scanning dependencies of target scripts
  19. [ 42%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o
  20. /home/wow/TrinityCore/src/server/scripts/Custom/custom_script_loader.cpp:23:1: error: C++ requires a type specifier for all declarations
  21. AddSC_CustomPlayerLogin();
  22. ^
  23. 1 error generated.
  24. src/server/scripts/CMakeFiles/scripts.dir/build.make:1127: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o' failed
  25. make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o] Error 1
  26. CMakeFiles/Makefile2:1499: recipe for target 'src/server/scripts/CMakeFiles/scripts.dir/all' failed
  27. make[1]: *** [src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
  28. Makefile:127: recipe for target 'all' failed
  29. make: *** [all] Error 2
复制代码
  1. /*
  2. * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. // This is where scripts' loading functions should be declared:
  18. void AddSC_CustomPlayerLogin();
  19. // The name of this function should match:
  20. // void Add${NameOfDirectory}Scripts()
  21. AddSC_CustomPlayerLogin();
  22. void AddCustomScripts()
  23. {
  24. }
复制代码


回复

使用道具 举报

435

时沙

0

精华

0

主题

声望: 367   虚弱: 0

Lv.4(锻造者)

炉石银色北伐军假死猎人今天也只能打恢复的增强萨金鼠(ytfirefox制作)

发表于 2019-5-22 13:39:51 | 显示全部楼层
AddSC_CustomPlayerLogin();  换了个位置  换到void AddCustomScripts()下面的括号里  

能到100%,不过最后还是报错了

  1. [  1%] Built target Detour
  2. [  2%] Built target fmt
  3. [  2%] Built target Recast
  4. [  5%] Built target g3dlib
  5. [  5%] Built target gsoap
  6. [  5%] Built target mpq
  7. [  8%] Built target jemalloc
  8. [  8%] Built target revision_data.h
  9. [ 12%] Built target common
  10. [ 12%] Built target vmap4assembler
  11. [ 13%] Built target vmap4extractor
  12. [ 14%] Built target mapextractor
  13. [ 16%] Built target database
  14. [ 17%] Built target mmaps_generator
  15. [ 18%] Built target shared
  16. [ 19%] Built target authserver
  17. [ 42%] Built target game
  18. Scanning dependencies of target scripts
  19. [ 42%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Custom/custom_script_loader.cpp.o
  20. [ 42%] Linking CXX static library libscripts.a
  21. [100%] Built target scripts
  22. [100%] Linking CXX executable worldserver
  23. ../scripts/libscripts.a(custom_script_loader.cpp.o): In function `AddCustomScripts()':
  24. /home/wow/TrinityCore/src/server/scripts/Custom/custom_script_loader.cpp:26: undefined reference to `AddSC_CustomPlayerLogin()'
  25. clang: error: linker command failed with exit code 1 (use -v to see invocation)
  26. src/server/worldserver/CMakeFiles/worldserver.dir/build.make:211: recipe for target 'src/server/worldserver/worldserver' failed
  27. make[2]: *** [src/server/worldserver/worldserver] Error 1
  28. CMakeFiles/Makefile2:1596: recipe for target 'src/server/worldserver/CMakeFiles/worldserver.dir/all' failed
  29. make[1]: *** [src/server/worldserver/CMakeFiles/worldserver.dir/all] Error 2
  30. Makefile:127: recipe for target 'all' failed
  31. make: *** [all] Error 2
复制代码

  1. /*
  2. * Copyright (C) 2008-2019 TrinityCore <https://www.trinitycore.org/>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. * You should have received a copy of the GNU General Public License along
  15. * with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. // This is where scripts' loading functions should be declared:
  18. void AddSC_CustomPlayerLogin();
  19. // The name of this function should match:
  20. // void Add${NameOfDirectory}Scripts()
  21. void AddCustomScripts()
  22. {
  23. AddSC_CustomPlayerLogin();
  24. }
复制代码
回复

使用道具 举报

25

时沙

0

精华

0

主题

声望: 15   虚弱: 0

Lv.1(追随者)

发表于 2019-7-6 21:26:42 | 显示全部楼层
新手路过,要不起
回复

使用道具 举报

169

时沙

0

精华

2

主题

声望: 452   虚弱: 0

Lv.3(忠诚者)

炉石假死猎人吟游牧师

发表于 2019-10-4 02:09:15 | 显示全部楼层
本帖最后由 wolone 于 2020-4-15 16:05 编辑

好像学会编译,可惜很多看不懂。是不是只修改数据库也能实现类似的功能呢
回复

使用道具 举报

310

时沙

0

精华

3

主题

声望: 340   虚弱: 0

Lv.3(忠诚者)

炉石今天也只能打恢复的增强萨金鼠(ytfirefox制作)

发表于 2020-4-29 13:39:01 | 显示全部楼层
疑 發現好東西
回去再研究一下
目前在玩的端改world資料庫無效
也許我在找的就是這個
回复

使用道具 举报

474

时沙

0

精华

2

主题

声望: 779   虚弱: 0

Lv.4(锻造者)

发表于 2022-12-5 13:43:45 | 显示全部楼层
买不起的路过
回复

使用道具 举报

455

时沙

0

精华

2

主题

声望: 829   虚弱: 1

Lv.4(锻造者)

祥龙贺岁(尚美制作)金兔迎春(尚美制作)

发表于 2023-1-5 16:21:02 | 显示全部楼层
源码懂的人少哦 大佬级别的人才可以
回复

使用道具 举报

快速回复 返回顶部 返回列表