Jump to content

D Q

Members
  • Posts

    28
  • Joined

  • Last visited

  • Donations

    0.00 GBP 

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

D Q's Achievements

Member

Member (2/3)

0

Reputation

1

Community Answers

  1. It's just about quest items, but also affecting trade items like herbals. I don't know of any quick fix that checks trade items.
  2. @Meltie Thanks for the quick response... I would love to contribute. But TBH, I am not very certain I understand the intention of that piece of the code. Only spotted the obvious "prof" part. Might create a PR and discuss further.
  3. Looking at the commit that changed this code https://github.com/mangosone/server/commit/360ddbdf862780c35664d44e15f9de9a3be13dab#diff-60492af07b2ca76bed925294d27c48cab25f8db3a33423e3db010c3d800e8b68L4460 I guess it should be like below. But I am not very familiar with the objects either. bool prof = SpellMgr::IsProfessionSpell(trainer_spell->spell); // if we use || here all profession skills are "red" if (prof && trainer_spell->reqLevel && (trainer_spell->reqLevel) < reqLevel) { return TRAINER_SPELL_RED; } // check skill requirement // I am not sure, but the previous version checks !prof. Similarly, if we have "prof || xxxx" here, all profession skills are red if (!prof || trainer_spell->reqSkill && GetBaseSkillValue(trainer_spell->reqSkill) < trainer_spell->reqSkillValue) { return TRAINER_SPELL_RED; } @Fyre, sorry for tagging you here. But looks like you are the author of that commit. can you take a look?
  4. I see similar issue on TBC too.
  5. My server is TBC, based on latest master. My character is now lv8. All the profession skills, including fishing, first aid, cooking, etc are show as unavailable to me. Is there any known issue or did I miss anything. Thanks
  6. I had exactly same issue and the solution worked The trick is you have to find all the "updates" between A and B and apply them one by one.
  7. I think I found another bug related to looting. Here's how I reproduce it: Create two bots(I believe it's also the same issue with real players, but I don't have a friend to play with me ) Have them all accept a quest to collect some items change the loot mode to master loot. Whenever you or the bots try to loot the quest item, you will get the error "Cannot loot this right now". Workaround: just change to other loot mode when you are working on that quest Potential fix: I am not sure if I understand the code correctly, but the following fix works so far(for couple of hours of playing) @@ -144,8 +144,14 @@ void WorldSession::HandleAutostoreLootItemOpcode(WorldPacket& recv_data) } case MASTER_LOOT: { - if((item->winner && item->winner != player->GetObjectGuid()) || (!item->winner && !item->is_underthreshold && !item->freeforall)) + if((item->winner && item->winner != player->GetObjectGuid()) + || (!item->winner && !item->is_underthreshold && !item->freeforall && !qitem)) { + // below is just to show the item flags for debugging. + sLog.outError("winner=%s, player=%s, is_underthreshold=%d, freeforall=%d", + item->winner.GetString().c_str(), + player->GetObjectGuid().GetString().c_str(), + item->is_underthreshold, + item->freeforall); player->SendEquipError(EQUIP_ERR_LOOT_CANT_LOOT_THAT_NOW, NULL, NULL, item->itemid); return; }
  8. I found it.... The bloody function `SayAction::Execute` does not have return at the end. Can somebody fix it or guide me how to raise a PR?
  9. My TBC server crashed under following conditions: log on as a warrior add two bots (won't crash if I don't add bots) one priest, one mage charge into 2+ creatures, and enter batlle server will crash in a second or two. My build is based on: commit ffcd98e4d8bfb565c72e03c724fa99bc88a0eb5a (HEAD -> master, tag: v22.03.45, origin/master, origin/HEAD) Author: Antz <[email protected]> Date: Wed Nov 8 22:37:51 2023 +0000 Fix Gentoo build of openSSL3.x. Thanks to @Shaorin for pointing I can reproduce the crash very consistently/easily. Console: Setting lesser delay 0 -> 100 Correct --- AI Tick --- Correct T:aoe Correct T:enemy too close for spell Correct T:shadow word: pain on attacker Correct PUSH:say::aoe - 99.000000 (trigger) Correct PUSH:fade - 50.000000 (trigger) Correct PUSH:flee - 49.000000 (trigger) Correct PUSH:shadow word: pain on attacker - 11.000000 (trigger) Correct A:say::aoe - PREREQ munmap_chunk(): invalid pointer Aborted (core dumped) world-server.log doesn't print anything after startup. For weird reasons, the coredump was not generated. I will try my best to get the coredump, but no guarantee.(any advise?) Got the core dump now But I have the crash log. _home_mangos_mangos_one_bin_mangosd.1002.crash The crashing thread is : Core was generated by `./mangosd'. Program terminated with signal SIGABRT, Aborted. #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=22407811872320) at ./nptl/pthread_kill.c:44 44 ./nptl/pthread_kill.c: No such file or directory. [Current thread is 1 (Thread 0x146139aab640 (LWP 13664))] (gdb) bt #0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=22407811872320) at ./nptl/pthread_kill.c:44 #1 __pthread_kill_internal (signo=6, threadid=22407811872320) at ./nptl/pthread_kill.c:78 #2 __GI___pthread_kill (threadid=22407811872320, signo=signo@entry=6) at ./nptl/pthread_kill.c:89 #3 0x000014613c3b1476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #4 0x000014613c3977f3 in __GI_abort () at ./stdlib/abort.c:79 #5 0x000014613c3f8676 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x14613c54ab77 "%s\n") at ../sysdeps/posix/libc_fatal.c:155 #6 0x000014613c40fcfc in malloc_printerr (str=str@entry=0x14613c54d210 "munmap_chunk(): invalid pointer") at ./malloc/malloc.c:5664 #7 0x000014613c40ffdc in munmap_chunk (p=<optimized out>) at ./malloc/malloc.c:3060 #8 0x000014613c41449a in __GI___libc_free (mem=<optimized out>) at ./malloc/malloc.c:3381 #9 0x0000557ea2c14b7a in ai::SayAction::Execute(ai::Event) () #10 0x0000557ea2baeceb in ai::Engine::ListenAndExecute(ai::Action*, ai::Event) () #11 0x0000557ea2bb2e37 in ai::Engine::DoNextAction(Unit*, int) () #12 0x0000557ea2b21e39 in PlayerbotAI::DoNextAction() () #13 0x0000557ea2b29e08 in PlayerbotAIBase::UpdateAI(unsigned int) () #14 0x0000557ea289ed69 in Player::Update(unsigned int, unsigned int) () #15 0x0000557ea29d13d7 in Map::Update(unsigned int const&) () #16 0x0000557ea2d03759 in MapUpdateRequest::call() () #17 0x0000557ea309f2a1 in DelayExecutor::svc() () #18 0x0000557ea30eeb55 in ACE_Task_Base::svc_run(void*) () #19 0x0000557ea310a07d in ACE_Thread_Adapter::invoke() () #20 0x000014613c403ac3 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442 #21 0x000014613c495660 in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81 Workaround: bool SayAction::Execute(Event event) { + return true; I will dump more logs within SayAction::Execute and narrow down the issue tmr. core.13650.tgz
  10. My TBC server crashed under following conditions: log on as a warrior add two bots (won't crash if I don't add bots) one priest, one mage charge into 2+ creatures server will crash in a second or two. My build is based on: commit ffcd98e4d8bfb565c72e03c724fa99bc88a0eb5a (HEAD -> master, tag: v22.03.45, origin/master, origin/HEAD) Author: Antz <[email protected]> Date: Wed Nov 8 22:37:51 2023 +0000 Fix Gentoo build of openSSL3.x. Thanks to @Shaorin for pointing I can reproduce the crash very consistently. Console: Setting lesser delay 0 -> 100 Correct --- AI Tick --- Correct T:aoe Correct T:enemy too close for spell Correct T:shadow word: pain on attacker Correct PUSH:say::aoe - 99.000000 (trigger) Correct PUSH:fade - 50.000000 (trigger) Correct PUSH:flee - 49.000000 (trigger) Correct PUSH:shadow word: pain on attacker - 11.000000 (trigger) Correct A:say::aoe - PREREQ munmap_chunk(): invalid pointer Aborted (core dumped) world-server.log doesn't print anything after startup. For weird reasons, the coredump was not generated. I will But I have the crash log. _home_mangos_mangos_one_bin_mangosd.1002.crash
  11. Hmm... Maybe I am looking at the wrong path, but this doesn't look(read) right. bag space has to be smaller than 80? possible target is empty? bool LootAvailableTrigger::IsActive() { return AI_VALUE(bool, "has available loot") && AI_VALUE(uint8, "bag space") < 80 && (AI_VALUE2(float, "distance", "loot target") <= INTERACTION_DISTANCE || AI_VALUE(list<ObjectGuid>, "possible targets").empty()); }
  12. I would like to ask the bots to collect nearby quest items that normally requires an "open"/right-click action, followed by casting bar. I tried to follow ike3's doc, but it did not work. https://ike3.github.io/mangosbot-docs/doc/playerbot/Looting.html I also traced the code briefly, and looks like there's some issue to get the game object to the bot's looting list, even though I tried right clicking and cancel etc. Any idea/comment is much appreciated. I would also love to learn how the code work around this area too. Thanks
  13. Just saw this one almost 10 yrs ago: @shaorin , is this still working? What do you mean by "changed my database language to chinese"? Sorry for bringing the decade old topic again.
  14. If tried the following: Install the translations to the DB by following the "Translation" part in changed mangosd.conf RealmZone = 16 DBC.Locale = 4 restart mangosd Login again But it did not work What did I miss?
×
×
  • 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