World Crash - EQ2Emu_lua_AddConversationOption()

Old bugs stored here for reference.
Locked
Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

World Crash - EQ2Emu_lua_AddConversationOption()

Post by Jabantiz » Sat Apr 05, 2014 3:21 pm

Noticed EQ2TC was done and remote connected to find this crash
EQ2World.exe!std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > ><std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >(std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > & _Right) Line 195 + 0x21 bytes C++
EQ2World.exe!std::vector<ConversationOption,std::allocator<ConversationOption> >::push_back(const ConversationOption & _Val) Line 998 C++
> EQ2World.exe!EQ2Emu_lua_AddConversationOption(lua_State * state) Line 488 C++
EQ2World.exe!_luaD_precall() + 0x19d bytes C
EQ2World.exe!_luaV_execute() + 0xad8 bytes C
EQ2World.exe!_luaD_call() + 0x43 bytes C
EQ2World.exe!_lua_call() + 0x55 bytes C
EQ2World.exe!_luaD_rawrunprotected() + 0x3a bytes C
EQ2World.exe!_luaD_pcall() + 0x3e bytes C
EQ2World.exe!_lua_pcall() + 0x53 bytes C
EQ2World.exe!LuaInterface::RunSpawnScript(std::basic_string<char,std::char_traits<char>,std::allocator<char> > script_name, const char * function_name, Spawn * npc, Spawn * spawn, const char * message) Line 1464 + 0x14 bytes C++
EQ2World.exe!ZoneServer::CallSpawnScript(Spawn * npc, unsigned char type, Spawn * spawn, const char * message) Line 2344 C++
EQ2World.exe!Client::HandlePacket(EQApplicationPacket * app) Line 1118 C++
Comes down to the Conversation* was not a valid one, also had 748 options, haven't been able to look into it more then that.

Here is the last of the world log.
14:32:23 D Client: Found 1 active quests for char_id: 432
14:32:25 D Command: Player 'Gillette' (6611), Command: accept_reward
14:32:45 D Command: Handler: 76, COMMAND: 'q_accept_pending_quest'
14:32:45 D Command: Player 'Gillette' (6611), Command: q_accept_pending_quest
14:32:45 D Client: Found 1 pending quests for char_id: 432
14:32:45 D LUA: Quest: Pilgrim Scout, function: Accepted
14:32:45 D LUA: Done!
14:32:45 D Client: Send Quest Journal...
14:32:45 D Client: Found 1 active quests for char_id: 432
14:34:36 D Command: Player 'Gillette' (6611), Command: clearallqueuedabilities
14:34:36 D Command: Handler: 37, COMMAND: 'autoattack'
14:34:36 D Command: Player 'Gillette' (6611), Command: autoattack
14:35:45 D Command: Player 'Gillette' (6611), Command: clearallqueuedabilities
14:36:08 D LUA: Quest: Pilgrim Scout, function: CheckedPath
14:36:08 D LUA: Done!
14:36:08 D Client: Send Quest Journal...
14:36:08 D Client: Client::Process, CheckQuestQueue
14:36:46 D Command: Player 'Gillette' (6611), Command: hail
14:36:46 D Command: Player 'Gillette' (6611), Command: clearallqueuedabilities
14:36:47 D Client: Client::Process, ProcessQuestUpdates
14:36:47 D LUA: Quest: Pilgrim Scout, function: CompleteQuest
14:36:47 D LUA: Done!
14:36:47 D Client: Send Quest Journal...
14:36:47 D Client: Send Quest Journal...
14:36:48 D Client: Found 1 active quests for char_id: 432

Jabantiz
Lead Developer
Posts: 2912
Joined: Wed Jul 25, 2007 2:52 pm
Location: California

Re: World Crash - EQ2Emu_lua_AddConversationOption()

Post by Jabantiz » Mon Apr 07, 2014 12:24 pm

Tracked it down to a bad spawn script, it was

Code: Select all

function Quest5Chat_1(NPC, Spawn)
	PlayFlavor(NPC, "verien_skysigh/halas/gwenevyns_cove/verien_skysigh_018.mp3", "", "", 4165854, 1367268200, Spawn)
	AddConversationOption(conversation, "I don't know either.", "Quest5Chat_2")
	AddConversationOption(conversation, "I have made it deep into their cave.", "Quest5Chat_5")
	AddConversationOption(conversation, "You need to face your own fears.")
	StartConversation(conversation, NPC, Spawn, "But I do not know how we are going to make it past the grizzlies.  Their hunger seems insatiable!")
end
notice conversation was never defined in this scope, fixed it on EQ2 DB server. Not sure why the server was getting a value for conversation though.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests