Jump to content
  • 0

[CLOSE]playerbot still work with new mangos ?


arliweng

Question

follow https://github.com/playerbot/mangos/wiki/Guide-to-build-Playerbot#prepared-patch-method say:


~/playerbot$ git clone git://github.com/mangosone/server.git
Cloning into 'server'...
remote: Counting objects: 54814, done.
remote: Compressing objects: 100% (11531/11531), done.
remote: Total 54814 (delta 44250), reused 53652 (delta 43124)
Receiving objects: 100% (54814/54814), 41.32 MiB | 233 KiB/s, done.
Resolving deltas: 100% (44250/44250), done.
Checking out files: 100% (3966/3966), done.

~/playerbot$ cd server/

~/playerbot/server$ git pull git://github.com/blueboy/portalone.git master
remote: Counting objects: 918, done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 879 (delta 717), reused 842 (delta 680)
Receiving objects: 100% (879/879), 496.44 KiB | 102 KiB/s, done.
Resolving deltas: 100% (717/717), completed with 35 local objects.
From git://github.com/blueboy/portalone
* branch      master   -> FETCH_HEAD
CONFLICT (modify/delete): win/VC90/game.vcproj deleted in HEAD and modified in 61e53bc79ca6370e98a5139ad9314d60ea190df9. Version 61e53bc79ca6370e98a5139ad9314d60ea190df9 of win/VC90/game.vcproj left in tree.
Auto-merging win/VC100/game.vcxproj
Auto-merging src/shared/Database/Database.cpp
Auto-merging src/mangosd/Master.cpp
Auto-merging src/game/WorldSession.cpp
Auto-merging src/game/World.cpp
Auto-merging src/game/SpellMgr.cpp
Auto-merging src/game/SpellHandler.cpp
Auto-merging src/game/SharedDefines.h
Auto-merging src/game/QuestHandler.cpp
Auto-merging src/game/Player.h
Auto-merging src/game/Player.cpp
Auto-merging src/game/Map.cpp
Auto-merging src/game/Group.cpp
Auto-merging src/game/GossipDef.h
CONFLICT (content): Merge conflict in src/game/GossipDef.h
Auto-merging src/game/Creature.h
Auto-merging src/game/ChatHandler.cpp
Auto-merging src/game/Chat.h
Auto-merging src/game/Chat.cpp
Auto-merging src/game/CharacterHandler.cpp
Auto-merging src/game/CMakeLists.txt
Automatic merge failed; fix conflicts and then commit the result.

how can i continue... help me pls..

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

i try git rebase... got


~/playerbot/server$ git pull git://github.com/blueboy/portalone.git master
A  doc/README.Playerbot
A  sql/playerbotai/FULL_playerbotai_characters_r5.sql
A  sql/playerbotai/mangos_botguy.sql
A  sql/playerbotai/playerbotai_characters_r1_update.sql
A  sql/playerbotai/playerbotai_characters_r2_update.sql
A  sql/playerbotai/playerbotai_characters_r3_update.sql
A  sql/playerbotai/playerbotai_characters_r4_update.sql
A  sql/playerbotai/playerbotai_characters_r5_update.sql
M  src/game/CMakeLists.txt
M  src/game/CharacterHandler.cpp
M  src/game/Chat.cpp
M  src/game/Chat.h
M  src/game/ChatHandler.cpp
M  src/game/Creature.h
M  src/game/GossipDef.h
M  src/game/Group.cpp
M  src/game/Map.cpp
M  src/game/Player.cpp
M  src/game/Player.h
M  src/game/QuestHandler.cpp
M  src/game/SharedDefines.h
M  src/game/SpellHandler.cpp
M  src/game/SpellMgr.cpp
M  src/game/World.cpp
M  src/game/WorldSession.cpp
A  src/game/playerbot/PlayerbotAI.cpp
A  src/game/playerbot/PlayerbotAI.h
A  src/game/playerbot/PlayerbotClassAI.cpp
A  src/game/playerbot/PlayerbotClassAI.h
A  src/game/playerbot/PlayerbotDruidAI.cpp
A  src/game/playerbot/PlayerbotDruidAI.h
A  src/game/playerbot/PlayerbotHunterAI.cpp
A  src/game/playerbot/PlayerbotHunterAI.h
A  src/game/playerbot/PlayerbotMageAI.cpp
A  src/game/playerbot/PlayerbotMageAI.h
A  src/game/playerbot/PlayerbotMgr.cpp
A  src/game/playerbot/PlayerbotMgr.h
A  src/game/playerbot/PlayerbotPaladinAI.cpp
A  src/game/playerbot/PlayerbotPaladinAI.h
A  src/game/playerbot/PlayerbotPriestAI.cpp
A  src/game/playerbot/PlayerbotPriestAI.h
A  src/game/playerbot/PlayerbotRogueAI.cpp
A  src/game/playerbot/PlayerbotRogueAI.h
A  src/game/playerbot/PlayerbotShamanAI.cpp
A  src/game/playerbot/PlayerbotShamanAI.h
A  src/game/playerbot/PlayerbotWarlockAI.cpp
A  src/game/playerbot/PlayerbotWarlockAI.h
A  src/game/playerbot/PlayerbotWarriorAI.cpp
A  src/game/playerbot/PlayerbotWarriorAI.h
A  src/game/playerbot/config.h
A  src/game/playerbot/config.h.in
A  src/game/playerbot/playerbot.conf.dist.in
A  src/game/playerbot/revision_sql.h
M  src/mangosd/Master.cpp
M  src/shared/Database/Database.cpp
M  win/VC100/game.vcxproj
M  win/VC100/game.vcxproj.filters
M  win/VC90/game.vcproj

continue to compile, but


/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp: In member function ‘bool PlayerbotAI::CanReachWithSpellAttack(Unit*)’:
/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:132:49: error: no matching function for call to ‘Player::GetCombatDistance(Unit*&)’
/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:132:49: note: candidate is:
In file included from /home/arli/playerbot/server/src/game/playerbot/../DynamicObject.h:24:0,
        from /home/arli/playerbot/server/src/game/playerbot/../GridNotifiers.h:28,
        from /home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:6:
/home/arli/playerbot/server/src/game/playerbot/../Unit.h:1270:15: note: float Unit::GetCombatDistance(const Unit*, bool) const
/home/arli/playerbot/server/src/game/playerbot/../Unit.h:1270:15: note:  candidate expects 2 arguments, 1 provided
/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp: In member function ‘bool PlayerbotAI::In_Reach(Unit*, uint32)’:
/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:173:49: error: no matching function for call to ‘Player::GetCombatDistance(Unit*&)’
/home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:173:49: note: candidate is:
In file included from /home/arli/playerbot/server/src/game/playerbot/../DynamicObject.h:24:0,
        from /home/arli/playerbot/server/src/game/playerbot/../GridNotifiers.h:28,
        from /home/arli/playerbot/server/src/game/playerbot/PlayerbotAI.cpp:6:
/home/arli/playerbot/server/src/game/playerbot/../Unit.h:1270:15: note: float Unit::GetCombatDistance(const Unit*, bool) const
/home/arli/playerbot/server/src/game/playerbot/../Unit.h:1270:15: note:  candidate expects 2 arguments, 1 provided
make[2]: *** [src/game/CMakeFiles/game.dir/playerbot/PlayerbotAI.cpp.o] Error 1
make[1]: *** [src/game/CMakeFiles/game.dir/all] Error 2
make: *** [all] Error 2

so i try edit from GetCombatDistance(target) to GetCombatDistance(target, false)

and work fine for now...

but i worry has damage for mangosone or let mangosone back to old version ?...

Link to comment
Share on other sites

What changes did you need to make to get it working? Was it only the case sensitivity? In that case there's probably some bugs left in the playerbot

to pass compile i have same function name of case sensitivity problem, only that.

for example:

tPlayer->isAlive()

to

tPlayer->IsAlive()

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use