Jump to content

Recommended Posts

Posted

Hi Darkruler,

Yes thanks I fixed that one, but it then bombs out again @

  CXX    mob_anubisath_sentinel.lo                                                                                                                           
../../../../src/bindings/ScriptDev2/scripts/kalimdor/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp: In member function ‘void aqsentinelAI::GainSentinelAbility(uint32)’:                                                                                                                                                  
../../../../src/bindings/ScriptDev2/scripts/kalimdor/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp:232: error: ‘class Creature’ has no member named ‘AddAura’
../../../../src/bindings/ScriptDev2/scripts/kalimdor/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp: In constructor ‘SentinelAbilityAura::SentinelAbilityAura(aqsentinelAI*, SpellEntry*, uint32, SpellEffectIndex)’:                                                                                                      
../../../../src/bindings/ScriptDev2/scripts/kalimdor/temple_of_ahnqiraj/mob_anubisath_sentinel.cpp:313: error: no matching function for call to ‘Aura::Aura(SpellEntry*&, SpellEffectIndex&, NULL, Creature* const&, Creature* const&, NULL)’
../../../../src/bindings/ScriptDev2/../../game/SpellAuras.h:446: note: candidates are: Aura::Aura(const SpellEntry*, SpellEffectIndex, int32*, SpellAuraHolder*, Unit*, Unit*, Item*)
../../../../src/bindings/ScriptDev2/../../game/SpellAuras.h:202: note:                 Aura::Aura(const Aura&)
make[6]: *** [mob_anubisath_sentinel.lo] Error 1
make[6]: Leaving directory `/home/mangos/compile/mangos/objdir/src/bindings/ScriptDev2'
make[5]: *** [all-recursive] Error 1
make[5]: Leaving directory `/home/mangos/compile/mangos/objdir/src/bindings/ScriptDev2'
make[4]: *** [all] Error 2
make[4]: Leaving directory `/home/mangos/compile/mangos/objdir/src/bindings/ScriptDev2'

Like I said, a mine field :mad: They're going to be busy at ScriptDev2.com..

Cheers

  • Replies 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

Posted

the good thing is - except these errors there are none :P

But I wanted to post here anyway:

I wanted to ask if you have a generic AI class, which could be used for ToC (with modifications of course), or if this is too far fetched?

Posted

@ Blueboy

As you might know, we (HSC_DEV3 and me) got a custom project, our core and SD2 will take a couple of days to merge with the new MaNGOS commits (yes, it really is THAT bad)

so i totally understand what you meant with minefield after checking the merge conflicts in the core (246 merge conflicts, BIG ONES)

haven't even checked SD2 yet

Posted
the good thing is - except these errors there are none :P

But I wanted to post here anyway:

I wanted to ask if you have a generic AI class, which could be used for ToC (with modifications of course), or if this is too far fetched?

Hi,

Can you tell more about ToC?

From what I have found on the net, it is a job in progress. Until they get ToC (Trial of the Crusader) working on MaNGOS, no.

Cheers

Posted

I was not refering to whole ToC, but rather the Faction Champions Encounter:

"Players encounter members of the opposite faction in PvP Arena-styled combat."

I have not yet started to really think about it, but there are this two block of information:

http://www.wowwiki.com/Faction_Champions

http://www.scriptdev2.com/info-faction-champions-t4867.html (a few internals)

So, my very point is, that there is (nearly) no chance at all to get the AI 100% like on retail, but I think it should be possible to get a good AI ;)

And I see that "your" playerBot system uses some sort of AI, and hence I thought it _might_ help to use some of your experience to script this encounter.

Posted
I was not refering to whole ToC, but rather the Faction Champions Encounter:

"Players encounter members of the opposite faction in PvP Arena-styled combat."

I have not yet started to really think about it, but there are this two block of information:

http://www.wowwiki.com/Faction_Champions

http://www.scriptdev2.com/info-faction-champions-t4867.html (a few internals)

So, my very point is, that there is (nearly) no chance at all to get the AI 100% like on retail, but I think it should be possible to get a good AI ;)

And I see that "your" playerBot system uses some sort of AI, and hence I thought it _might_ help to use some of your experience to script this encounter.

I have seen on Insider's github some scripts for the Faction Champions AI. I am using a slightly improved version of this, on my server and it works pretty fine. :)

Posted

@ Wyarp

what part of

Hi Guys,

More changes with the core. I suggest you do not update passed MaNGOS[10155] yet. Changes have broken playerbot & SD2. It's a real mine field at present, so stay put. I think I have resolved the issue with playebot, but until SD2 is working again I can't test it

didnt you understand :)

Posted

Hi Guys,

here's an update on what's happening. I've been to ScriptDev2, they are aware of the compile issue, and are working on a solution as we speak. It will probably be a day or two before we see anything, so patience :rolleyes:

Cheers

Posted

Darkruler,

Wasnt i didnt understand it, was more... i didnt see it, lol

I have been having this problem for days now, before the scriptdev2 problem, i have not been able to succesfully compile playerbot at all..

But just my luck that it will have to wait longer now, but fortunately I still have a working server up and running :) yay lol

Thanks for the replys, no matter how stern they were! :)

Posted
I was not refering to whole ToC, but rather the Faction Champions Encounter:

"Players encounter members of the opposite faction in PvP Arena-styled combat."

I have not yet started to really think about it, but there are this two block of information:

http://www.wowwiki.com/Faction_Champions

http://www.scriptdev2.com/info-faction-champions-t4867.html (a few internals)

So, my very point is, that there is (nearly) no chance at all to get the AI 100% like on retail, but I think it should be possible to get a good AI ;)

And I see that "your" playerBot system uses some sort of AI, and hence I thought it _might_ help to use some of your experience to script this encounter.

Hi,

I'm probably not the best person to speak to about mechanics of the AI, as I was not responsible for it's original development. As playerbot is relatively new; you could examine the early work done from

http://github.com/playerbot/mangos/tree/1b95bcaa1e640f2ce89444ae0e5377e967421ff8

My understanding of bot AI is that every bot is assigned a class AI at logon. A feedback loop for the AI is controlled by two UpdateAI functions one in PlayerbotMgr.cpp and the other in PlayerbotAI.cpp. On each cycle of the feedback loop, each bot is serviced (Check bots status, alive, dead, in combat or looting etc) They also direct bot Handlers, for incoming & outgoing packets to and from server & client. Spells and special manuevres are then handled by the dedicated class AI files.

There are two generic class ai files available, used as a templates for new bot classes. I believe 'goblins' will be a new race introduced in Cataclysm, so eventually we will have to create a PlayerbotGoblinAI. These are PlayerbotClassAI.cpp & it's header PlayerbotClassAI.h. If you look at these and the active class AI files, it may help you.

Hope this helps

Posted
Darkruler,

Wasnt i didnt understand it, was more... i didnt see it, lol

I have been having this problem for days now, before the scriptdev2 problem, i have not been able to succesfully compile playerbot at all..

But just my luck that it will have to wait longer now, but fortunately I still have a working server up and running :) yay lol

Thanks for the replys, no matter how stern they were! :)

Hi,

If you describe your system we maybe able to help you. kaxias may well be right. I gather from your error dump, that your using Windows, but which compiler (& version) are you using. It would also help if you could provide versions for the code your trying to compile.

Please get back to us.

Posted
Hi,

If you describe your system we maybe able to help you. kaxias may well be right. I gather from your error dump, that your using Windows, but which compiler (& version) are you using. It would also help if you could provide versions for the code your trying to compile.

Please get back to us.

i can give you the list of errors on playerbot as well xD

10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C3083: 'AuraMap': the symbol to the left of a '::' must be a type
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2039: 'const_iterator' : is not a member of 'Unit'
10>          c:\\sources\\core\\src\\game\\Unit.h(1117) : see declaration of 'Unit'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2065: 'const_iterator' : undeclared identifier
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2146: syntax error : missing ';' before identifier 'iter'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2065: 'iter' : undeclared identifier
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2039: 'GetAuras' : is not a member of 'Unit'
10>          c:\\sources\\core\\src\\game\\Unit.h(1117) : see declaration of 'Unit'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2228: left of '.begin' must have class/struct/union
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2065: 'iter' : undeclared identifier
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2039: 'GetAuras' : is not a member of 'Unit'
10>          c:\\sources\\core\\src\\game\\Unit.h(1117) : see declaration of 'Unit'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2228: left of '.end' must have class/struct/union
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2143: syntax error : missing ')' before '++'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2059: syntax error : ';'
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2065: 'iter' : undeclared identifier
10>..\\..\\src\\game\\PlayerbotAI.cpp(869): error C2059: syntax error : ')'
10>..\\..\\src\\game\\PlayerbotAI.cpp(870): error C2143: syntax error : missing ';' before '{'
10>..\\..\\src\\game\\PlayerbotAI.cpp(871): error C2065: 'iter' : undeclared identifier
10>..\\..\\src\\game\\PlayerbotAI.cpp(871): error C2227: left of '->second' must point to class/struct/union/generic type
10>          type is ''unknown-type''
10>..\\..\\src\\game\\PlayerbotAI.cpp(871): error C2227: left of '->GetId' must point to class/struct/union/generic type

basically the problems are in those 3 lines so it shouldn't be that hard to solve them (will get to that after i solve spellauras.cpp, lots of issues during our custom content *sigh*)

Posted

Hi Guys,

I will update the repos directly, so there is no point in me creating a patch. As far as playerbot is concerned, this will resolve the compile issue with AURA changes.

Before HasAura in PlayerbotAI.cpp

bool PlayerbotAI::HasAura(uint32 spellId, const Unit& player) const
{
   if(spellId <= 0)
       return false;

   for (Unit::AuraMap::const_iterator iter = player.GetAuras().begin(); iter != player.GetAuras().end(); ++iter)
   {
       if (iter->second->GetId() == spellId)
           return true;
   }
   return false;
}

After HasAura in PlayerbotAI.cpp

bool PlayerbotAI::HasAura(uint32 spellId, const Unit& player) const
{
   if(spellId <= 0)
       return false;

   for (Unit::SpellAuraHolderMap::const_iterator iter = player.GetSpellAuraHolderMap().begin(); iter != player.GetSpellAuraHolderMap().end(); ++iter)
   {
       if (iter->second->GetId() == spellId)
           return true;
   }
   return false;
}

hope this helps

Posted

Hi sorry it took a while to reply..

Currently I am using Visual C++ 2010 Express to compile, I tried 2008 and that also fails but with 3 files instead of 1..

The versions im attempting to compile are Mangos 10160, Playerbot Latest Revision 7.7.2010 and Auction House Bot Latest Revision. (Cant find the numbers)

Posted
Hi sorry it took a while to reply..

Currently I am using Visual C++ 2010 Express to compile, I tried 2008 and that also fails but with 3 files instead of 1..

The versions im attempting to compile are Mangos 10160, Playerbot Latest Revision 7.7.2010 and Auction House Bot Latest Revision. (Cant find the numbers)

Hi,

Yes the latest playerbot will not compile with MaNGOS [10160] due primarily to the problems with the AURA changes (MaNGOS[10156]+). Try compiling playerbot with MaNGOS[10155] using VC2008. This works on linux and with SD2[1737] and the latest Auctionhousebot [Naicisum]. I would be very interested if you get issues with this on Windows. As far as I know, playerbot is only supported for (VC90 - Visual C++ 2008). There are no build instructions for playerbot in game.vcproj for (VC80 - VC2005 or VC100 - VC2010) : ( So kaxias is correct.

Hope this helps

Posted

Thank you for taking the time to explain it :) Partly my fault for always wanting the latest and greatest lol

I was as I said using VC2010, but I have installed an older version..

For the time being I will wait until all the aura problems are solved, but am looking forward to playing with PlayerBot as on a low population server sometimes you need that extra little help :) I will edit or delete my other post if i can to get rid of all the garbage code I pasted.

Posted

Hi Guys,

I have updated and tested both repos, since the release of the SD2 fix [1738]. Playerbot is now compatible with MaNGOS[10168] SD2[1739]. Both repos compile and run without issue.

It is suggested that you extract new vmaps, maps & dbc files

Hope this helps

Posted

Mangos core received updated VMAPS engine today. Also there were an update to support client version 3.3.5 recently. New VMAPS compile ~10 minutes on my PC, old ones did it in ~10 hours :) So it's fast!!!

Posted

Wow! I thought 1 hour was a long time to extract vmaps. If your estimates are accurate by a factor of 10, then that means the new vmaps ought to extract/compile on my machine in about 6 minutes!

Considering my dev machine isn't exactly the newest and best, that's going to be a real treat.

blueboy, thanks for keeping us up to date on these source conflicts. You do a much better job at it than the MaNGOS or SD2 crews!

Posted

Hi.

I've found a small bug in portal repo (hasn't checked blueboy one). SD2 patch cannot be applied because of PlayerBot patch.

Here is the fix:

diff --git a/src/mangosd/Makefile.am b/src/mangosd/Makefile.am
index 833d991..b776b3d 100644
--- a/src/mangosd/Makefile.am
+++ b/src/mangosd/Makefile.am
@@ -42,9 +42,9 @@ mangos_worldd_SOURCES = \\
mangos_worldd_LDADD = \\
    ../bindings/universal/libmangosscript.la \\
    ../game/libmangosgame.a \\
-    ../game/playerbot/libmangosbot.a \\
    ../shared/Database/libmangosdatabase.a \\
    ../shared/Config/libmangosconfig.a \\
+    ../game/playerbot/libmangosbot.a \\
    ../shared/Auth/libmangosauth.a \\
    ../shared/libmangosshared.a \\
    ../shared/vmap/libmangosvmaps.a \\

Tested on latest SD2, patch name is MaNGOS-9519-ScriptDev2.patch. Check it please.

Guest
This topic is now 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