Suprcode / Crystal

Legend of Mir 2 - Official Public Crystal Source
1.12k stars 682 forks source link

Script & NPC Indexes #633

Open EliteMir opened 1 year ago

EliteMir commented 1 year ago

If you delete an NPC, this will indefinitely attempt to load the scripts even though they no longer exist.

Example (I added debugging to identify the script ID) 377 - 380 are deleted NPCs.

[27/02/2023 08:07:34]: Script Not Found - Filename: Type: Normal, ScriptID: 377 [27/02/2023 08:07:34]: Script Not Found - Filename: Type: Normal, ScriptID: 378 [27/02/2023 08:07:34]: Script Not Found - Filename: Type: Normal, ScriptID: 379 [27/02/2023 08:07:34]: Script Not Found - Filename: Type: Normal, ScriptID: 380

Suprcode commented 1 year ago

Don't understand. You deleted an NPC script and are questioning why it's reporting the script is missing?

None of those logs look to be repeated

EliteMir commented 1 year ago

Don't understand. You deleted an NPC script and are questioning why it's reporting the script is missing?

None of those logs look to be repeated

NPC 100 NPC 101 << gets deleted NPC 102

^^ Server will forever post 'Script Not Found' on start up, even though the NPC no longer exists in the DB and you cannot stop it.