Skip to content

SmartScript::ProcessAction: Entry 18945 SourceType 0, Event 3, Link Event 4 not found or invalid, skipped #22227

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JumpyLion87 opened this issue May 28, 2025 · 13 comments

Comments

@JumpyLion87
Copy link

Current Behaviour

SmartScript::ProcessAction: Entry 18945 SourceType 0, Event 3, Link Event 4 not found or invalid, skipped/
SmartScript::ProcessAction: At case SMART_ACTION_GAME_EVENT_STOP, inactive event (id: 86)

Expected Behaviour

Don't know

Source

No response

Steps to reproduce the problem

https://www.wowhead.com/wotlk/npc=18945/pit-commander#comments

Extra Notes

No response

AC rev. hash/commit

AC> AzerothCore rev. 6127329+ 2025-05-26 10:45:44 +0000 (master branch) (Unix, RelWithDebInfo, Static)
Connected players: 0. Characters in world: 0.
Connection peak: 2.
Server uptime: 1 day(s) 4 hour(s) 20 minute(s) 27 second(s)
Update time diff: 1ms. Last 500 diffs summary:
|- Mean: 1ms
|- Median: 1ms
|- Percentiles (95, 99, max): 3ms, 3ms, 4ms
Using SSL version: OpenSSL 3.0.15 3 Sep 2024 (library: OpenSSL 3.0.15 3 Sep 2024)
Using Boost version: 1.74.0
Using CMake version: 3.25.1
Using MySQL version: 80405
Found MySQL Executable: /usr/bin/mysql
Compiled on: Linux
Worldserver listening connections on port 8085
Realmlist (Realm Id: 1) configured in port 8085
VMAPs status: Enabled. LineOfSight: true, getHeight: true, indoorCheck: true
MMAPs status: Enabled
maps directory located in ../Data/maps. Total size: 291014951 bytes
vmaps directory located in ../Data/vmaps. Total size: 658130721 bytes
mmaps directory located in ../Data/mmaps. Total size: 2192910800 bytes
Default DBC locale: ruRU.
All available DBC locales: ruRU
Using World DB: ACDB 335.13-dev
Latest LoginDatabase update: 2025_02_16_01.sql
Latest CharacterDatabase update: 2025_03_09_00.sql
Latest WorldDatabase update: 2025_05_26_00.sql
LoginDatabase queue size: 0
CharacterDatabase queue size: 0
WorldDatabase queue size: 0
List of enabled modules:
|- mod-autobalance
|- mod-eluna
|- mod-learn-spells
|- mod-weekendbonus

Operating system

Debian 12

Custom changes or Modules

No response

@TheSCREWEDSoftware
Copy link
Contributor

@JumpyLion87 do you have keira3 on your machine?

@JumpyLion87
Copy link
Author

@TheSCREWEDSoftware Yes. I have Keira3

@TheSCREWEDSoftware
Copy link
Contributor

Can you take a screenshot of pit commander sai and time action?

@JumpyLion87
Copy link
Author

@TheSCREWEDSoftware

Image
Image

@TheSCREWEDSoftware
Copy link
Contributor

@JumpyLion87 tell me if this fixes the error on your side and if the event breaks after respawing.

UPDATE `smart_scripts` SET `event_type` = 61  WHERE `entryorguid` = 18945 AND `source_type` = 0 AND `id` = 4;

@JumpyLion87
Copy link
Author

JumpyLion87 commented May 30, 2025

Image

@TheSCREWEDSoftware The event starts, waves of NPCs come, after them comes the boss. But the errors persist in the console.
SmartScript::ProcessAction: Entry 18945 SourceType 0, Event 3, Link Event 4 not found or invalid, skipped
Only this error remains

@TheSCREWEDSoftware
Copy link
Contributor

I tested in the afternoon and it didn't throw errors, I've to check during the day again but it's weird that 2nd error stopped (which is depended on the first error)

@JumpyLion87
Copy link
Author

@TheSCREWEDSoftware As soon as you pass through the dark portal, an error appears in the console. At the event location

@TheSCREWEDSoftware
Copy link
Contributor

Image (ignore the error being different i've changed it to be more districtive)

After running the query above i dont get errors: (had to restart the server)

Image

Image

Your SAI shoud look like this also

Image

@JumpyLion87
Copy link
Author

@TheSCREWEDSoftware I'm sorry for the long answer. There was no access to the computer. I don't have id 4 in SmartAI at all.

Image

@TheSCREWEDSoftware
Copy link
Contributor

You've it here in the first screenshot

Image

Because

UPDATE `smart_scripts` SET `event_type` = 61  WHERE `entryorguid` = 18945 AND `source_type` = 0 AND `id` = 4;

doesn't delete it. run the SQL above after running this one below: (or you can use this PR: #22240 and it probably it will tell you that is not missing just nt found)

-- this query is how it is in the latest core

DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = 18945);
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(18945, 0, 0, 0, 11, 0, 100, 512, 0, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Respawn - Set Active On'),
(18945, 0, 1, 0, 36, 0, 100, 512, 0, 0, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Corpse Removed - Set Active On'),
(18945, 0, 2, 3, 11, 0, 100, 512, 0, 0, 0, 0, 0, 0, 211, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Respawn - Flag reset 0'),
(18945, 0, 3, 4, 61, 0, 100, 512, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Respawn - Set Event Phase 0'),
(18945, 0, 4, 0, 11, 0, 100, 512, 0, 0, 0, 0, 0, 0, 80, 1894500, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Respawn - Run Script'),
(18945, 0, 5, 0, 21, 0, 100, 0, 0, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Reached Home - Set Event Phase 1'),
(18945, 0, 7, 0, 40, 0, 100, 512, 43, 0, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Point 43 of Path Any Reached - Set Event Phase 1'),
(18945, 0, 8, 0, 6, 0, 100, 512, 0, 0, 0, 0, 0, 0, 41, 10000, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - On Just Died - Despawn In 10000 ms'),
(18945, 0, 10, 0, 0, 0, 100, 0, 3000, 7000, 7000, 11000, 0, 0, 11, 16044, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - In Combat - Cast \'Cleave\''),
(18945, 0, 11, 0, 0, 0, 100, 0, 12000, 19000, 21000, 31000, 0, 0, 11, 33627, 0, 0, 0, 0, 0, 5, 20, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - In Combat - Cast \'Rain of Fire\''),
(18945, 0, 12, 0, 1, 1, 100, 0, 2000, 2000, 60000, 60000, 0, 0, 11, 33393, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Pit Commander - Out of Combat - Cast \'Summon Infernals\' (Phase 1)'),
(18945, 0, 13, 0, 1, 1, 100, 512, 6000, 6000, 60000, 60000, 0, 0, 45, 33637, 0, 0, 0, 0, 0, 10, 74081, 21075, 0, 0, 0, 0, 0, 0, 'Pit Commander - Out of Combat - Set Data 33637 0 (Phase 1)'),
(18945, 0, 14, 0, 1, 1, 100, 512, 7000, 7000, 60000, 60000, 0, 0, 45, 33637, 0, 0, 0, 0, 0, 10, 74082, 21075, 0, 0, 0, 0, 0, 0, 'Pit Commander - Out of Combat - Set Data 33637 0 (Phase 1)');

@JumpyLion87
Copy link
Author

@TheSCREWEDSoftware Thank you. The errors are gone. I don't understand why some records were missing. I checked in the github, all the recordings are there.

@TheSCREWEDSoftware
Copy link
Contributor

Thanks for testing i've few entries to submit a PR dont close this issue it will be closed then :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants