C++ Runtime Error with Custom NPC
I made a very simple custom NPC following these instructions.
http://www.eqemulator.org/forums/showthread.php?t=33005 Whenever i try and spawn the npc even just a #dbspawn the zone i am in crashes and the server gets an error. http://i.imgur.com/oHCpbzP.png Any help is appreciated. |
Does it produce a crash log in /logs ?
|
The instructions in that thread look fine. Though, after using "#npcspawn create", you can use "#npcspawn add" and skip the steps of having to use #fixspawn and #repop.
I haven't had any issues with creating spawns using the #spawn command. Though, I did notice that it doesn't populate some of the fields in the npc_types table at all. It leaves some of them null such as bodytype (which should probably be defaulted to 1). |
I haven't seen anything directly on the logs next time it happens i will not time and try and hunt it down. If it helps, I can copy an existing NPC and then spawn that and that seems to be fine.
|
Here is the last bit of the Log on latest crash from NPC spawning.
Code:
[12.31. - 16:06:55] g:\bs\connector-c-vs2008-32bit\src\mysql-connector-c-6.0.2\mysys\my_thr_init.c (510): my_sigabrt_handler |
It has to do with the melee texture 1 & 2. I'll look in a little bit if no one beats me to it.
EDIT: About to push a database fix. Only guessing at default for these. |
Does this have to do with the 'meele' to 'melee' name change?
|
Yes and no. Not the name change itself, but the database entry not having a default and allowing null.
|
All times are GMT -4. The time now is 06:36 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.