EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   C++ Runtime Error with Custom NPC (https://www.eqemulator.org/forums/showthread.php?t=39166)

Bohbo 12-31-2014 10:55 AM

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.

KLS 12-31-2014 01:16 PM

Does it produce a crash log in /logs ?

trevius 12-31-2014 01:48 PM

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).

Bohbo 12-31-2014 02:42 PM

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.

Bohbo 12-31-2014 08:07 PM

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
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\misc\winsig.c (587): raise
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\misc\dbgrpt.c (401): __crtMessageWindowW
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\misc\dbgrptt.c (672): _VCrtDbgReportW
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\misc\dbgrpt.c (262): _CrtDbgReportWV
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\misc\dbgrpt.c (279): _CrtDbgReportW
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\convert\strtol.c (94): strtoxl
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\convert\strtol.c (232): strtol
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\convert\atox.c (56): atol
[12.31. - 16:06:55] f:\dd\vctools\crt\crtw32\convert\atox.c (100): atoi
[12.31. - 16:06:55] c:\eq\source\zone\zonedb.cpp (1826): ZoneDatabase::GetNPCType
[12.31. - 16:06:55] c:\eq\source\zone\command.cpp (2528): command_npctypespawn
[12.31. - 16:06:55] c:\eq\source\zone\command.cpp (583): command_realdispatch
[12.31. - 16:06:55] c:\eq\source\zone\client.cpp (973): Client::ChannelMessageReceived
[12.31. - 16:06:56] c:\eq\source\zone\client_packet.cpp (4183): Client::Handle_OP_ChannelMessage
[12.31. - 16:06:56] c:\eq\source\zone\client_packet.cpp (477): Client::HandlePacket
[12.31. - 16:06:56] c:\eq\source\zone\client_process.cpp (696): Client::Process
[12.31. - 16:06:56] c:\eq\source\zone\entity.cpp (498): EntityList::MobProcess
[12.31. - 16:06:56] c:\eq\source\zone\net.cpp (430): main
[12.31. - 16:06:56] f:\dd\vctools\crt\crtw32\startup\crt0.c (255): __tmainCRTStartup
[12.31. - 16:06:56] f:\dd\vctools\crt\crtw32\startup\crt0.c (165): mainCRTStartup
[12.31. - 16:06:56] ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 768F338A)
[12.31. - 16:06:56] 768F338A (kernel32): (filename not available): BaseThreadInitThunk
[12.31. - 16:06:56] ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 77C49F72)
[12.31. - 16:06:56] 77C49F72 (ntdll): (filename not available): RtlInitializeExceptionChain
[12.31. - 16:06:56] ERROR: SymGetLineFromAddr64, GetLastError: 487 (Address: 77C49F45)
[12.31. - 16:06:56] 77C49F45 (ntdll): (filename not available): RtlInitializeExceptionChain


joligario 12-31-2014 08:56 PM

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.

Uleat 12-31-2014 11:17 PM

Does this have to do with the 'meele' to 'melee' name change?

joligario 01-01-2015 02:11 AM

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.