Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2014, 10:55 AM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default 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.



Any help is appreciated.
Reply With Quote
  #2  
Old 12-31-2014, 01:16 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Does it produce a crash log in /logs ?
Reply With Quote
  #3  
Old 12-31-2014, 01:48 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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).
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #4  
Old 12-31-2014, 02:42 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

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.
Reply With Quote
  #5  
Old 12-31-2014, 08:07 PM
Bohbo
Hill Giant
 
Join Date: Dec 2012
Posts: 116
Default

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
Reply With Quote
  #6  
Old 12-31-2014, 08:56 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

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.

Last edited by joligario; 12-31-2014 at 09:47 PM..
Reply With Quote
  #7  
Old 12-31-2014, 11:17 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Does this have to do with the 'meele' to 'melee' name change?
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #8  
Old 01-01-2015, 02:11 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Yes and no. Not the name change itself, but the database entry not having a default and allowing null.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 02:00 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3