[Arcemu] Error on Startup with Reputation_faction_onkill menu

User Tag List

Results 1 to 1 of 1
  1. #1
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Arcemu] Error on Startup with Reputation_faction_onkill

    This is what happens when i start up



    Heres where the crash report stopped.

    Code:
    void ObjectMgr::LoadTrainers()
    {
    	QueryResult * result = WorldDatabase.Query("SELECT * FROM trainer_defs");
    	QueryResult * result2;
    	Field * fields2;
    	const char * temp;
    	size_t len;
    
    	LoadDisabledSpells();
    
    	if(!result)
    		return;
    
    
    	do
    	{
    		Field * fields = result->Fetch();
    		uint32 entry = fields[0].GetUInt32();
    		Trainer * tr = new Trainer;
    		tr->RequiredSkill = fields[1].GetUInt32();
    		tr->RequiredSkillLine = fields[2].GetUInt32();
    		tr->RequiredClass = fields[3].GetUInt32();
    		tr->RequiredRace  = fields[4].GetUInt32();
    		tr->RequiredRepFaction = fields[5].GetUInt32();
    		tr->RequiredRepValue   = fields[6].GetUInt32();
    		tr->TrainerType = fields[7].GetUInt32();
    		tr->Can_Train_Gossip_TextId = fields[9].GetUInt32();
    		tr->Cannot_Train_GossipTextId = fields[10].GetUInt32();
    		tr->UIMessage = (char*)NormalTalkMessage;
    		if(!tr->Can_Train_Gossip_TextId)
    			tr->Can_Train_Gossip_TextId=1;
    		if(!tr->Cannot_Train_GossipTextId)
    			tr->Cannot_Train_GossipTextId=1;
    
    		temp = fields[8].GetString();
    -->		len=strlen(temp);
    		if(len)
    		{
    			tr->UIMessage = new char[len+1];
    			strcpy(tr->UIMessage, temp);
    			tr->UIMessage[len] = 0;
    		}
    
    		//now load the spells
    [--> = Drag Arrow ] hover over it and it says "This is the next statement that will be executed. To change what statement is executed next, drag the arrow. This may have unintended consequences."

    Anyway, im not sure what to do here. Any help would be appreciated.

    Edit: maybe the name should be with Trainer_defs? :x

    Edit2: After emptying the trainer_def's table the server started up properly. But i'd like to have trainers still

    Edit3: fixt
    Last edited by Vision1000; 06-20-2009 at 12:36 AM.

    [Arcemu] Error on Startup with Reputation_faction_onkill

Similar Threads

  1. ArcEmu segfault error on startup!
    By w1z8it in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-06-2009, 02:26 PM
  2. [Arcemu]Error with SQL importer and any sql program.
    By 4l3k in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 06-02-2009, 03:03 PM
  3. Error On Startup of World.exe (Aspire)
    By Dr. Livingstone in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 04-08-2009, 06:03 PM
  4. I need help with an Error in startup
    By MEC in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-29-2008, 06:03 PM
  5. Need Lil Help Error Been While With Ascent
    By [Shon3m] in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 05-20-2008, 06:18 PM
All times are GMT -5. The time now is 12:12 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search