Update for 4.3.4?
Just a small Feature Request.... Any future plans to update this to TC-4.3.4 ?? There are a few code-style changes, and a few structure changes that would need done, but it should be pretty easy to port for 3.3.5 to 4.3.4
Comments (14)
-
reporter -
repo owner 64a498a284
Fixed compile but idk if it will work out, don't have 4.3.4 DB so not sure about sql's -
reporter Nice. I'll DL the 4.3.4 DB and take a look. Shouldn't be that different from the 3.3.5 as far as structure goes.
-
reporter I only found one column in the DB that is different. Creature_Template 4.3.4 doesn't have 'trainer_spell' column.
That caused world_bots.sql to fail. I just manually added to my DB as tinyint 4 unsigned not null, like the other columns were. Worked fine after that.
Had no conflicts with character_npc_bots.sql No conflicts with world_bot_helper_locals_... sql
-
reporter Hmm. I did have trouble in game though. .npcbot * commands seem to be working, helper brings up the locals script, but it returns an error
Player::addSpell: Non-existed in SpellStore spell #69001 request. Player::CreateNPCBot() CANNOT create bot of class 1, not found in DB
Strange because the SQL's ran w/o error after adding in trainer_spell field... Maybe missing from the dbc's ?
-
repo owner "Player::CreateNPCBot() CANNOT create bot of class 1, not found in DB" means it's pure DB problem (I guess value type mismatch).
Well, it's time to move on 4.3.4 branch then
-
reporter Oh, of course, I feel like an idiot. The initial port is just fine. I was logged in as a Worgen, and of course there is no DB support as of yet for Worgens... They're not in the SQL yet. DOH! I made a human warrior, and tested, npc bot spawned just fine.
-
reporter Edited the patch slightly for SQL and added in case RACE for Goblin and Worgen... Unsure on how pull requests work, or if you even want them though. I"ll just attach what I have, so you can use it or discard it.
-
reporter - attached NPCBots_434.patch
Changed level referances in SQL from max level 80 to 85 Edited Player.cpp -> added case for race Goblin, and Worgen Tested -> Working with one crash exception -> Debug points to LFG
00E03226 00000000 lfg::LFGQueue::UpdateQueueTimers+126 ...\src\server\game\dungeonfinding\lfgqueue.cpp line 546
Maybe unrelated though with 4.3.4 being so new.
-
reporter It was unrelated. I disable LFG and had no further problems. I did some research on pull requests, but it doesn't seem like they're avail for this repo. So I'll just link...
https://bitbucket.org/JCarter4562/tcbotpatches/commits/54cd87c8abf977d82ea00f5124f51b81eaa8bc46
I had to re-do the patch I made from before. It got malformed somehow.. So I reapplied to a clean source, made a new patch. Tested on a new clean source. :D
-
repo owner It was unrelated
I have found as much, thanks for your work. Updating AI itself will take some more time though. With these spell system changes (spell ranking also) whole ai code must be reviewed
-
reporter Ya. I can see where that would be a whole lot of work with how much of the spell system changed from how it was in 3.3.5a.
-
repo owner - changed status to open
-
repo owner - changed status to resolved
Job's done.
- Log in to comment
I've done some work trying to port it myself, but I'm slow, and c++ noobish. :D https://bitbucket.org/jcarter4562/tc2botcore/commits/c11b8b59c67ae0e7af2116b5100e3bd61b2b318c