CryptHome


Where The Dead Will Rise
It is currently August 18th, 2019, 10:12 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Patching
PostPosted: September 30th, 2010, 9:38 pm 
Offline
Site Admin
Site Admin
User avatar
 Personal album  WWW  ICQ  YIM  Profile

Joined: April 19th, 2006, 8:45 am
Posts: 724
Location: Indiana
Highscores: 173
Gender: Male
Error 1

error: patch failed: scr/game/auctionhousemgr.h:84
error: scr/game/auctionhousemgr.h: patch dose not apply

What i did
Code:
rename ASSERT( ah );
to
Code:
 MANGOS_ASSERT( ah );


Error 2

error: patch failed: scr/game/world.cpp:1318
error: scr/world.cpp: patch dose not apply

patch readed as
Code:
@@ -1318,6 +1354,9 @@ void World::SetInitialWorldSettings()
     // Delete all characters which have been deleted X days before
     Player::DeleteOldCharacters();
 
+    sLog.outString("Initialize AuctionHouseBot...");
+    sAuctionBot.Initialize();
+
     sLog.outString( "WORLD: World initialized" );
 
     uint32 uStartInterval = getMSTimeDiff(uStartTime, getMSTime());


reg world.cpp read as

Code:
    // Delete all characters which have been deleted X days before
    Player::DeleteOldCharacters();

    //Get playerbot configuration file
    if (!botConfig.SetSource(_PLAYERBOT_CONFIG))
        sLog.outError("Playerbot: Unable to open configuration file. Database will be unaccessible. Configuration values will use default.");
    else
        sLog.outString("Playerbot: Using configuration file %s",_PLAYERBOT_CONFIG);

    //Check playerbot config file version
    if (botConfig.GetIntDefault("ConfVersion", 0) != PLAYERBOT_CONF_VERSION)
        sLog.outError("Playerbot: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");

    sLog.outString( "WORLD: World initialized" );

    uint32 uStartInterval = getMSTimeDiff(uStartTime, getMSTime());
    sLog.outString( "SERVER STARTUP TIME: %i minutes %i seconds", uStartInterval / 60000, (uStartInterval % 60000) / 1000 );
}


I changed it to read as ( could not figure out how to edited patch file to make it work right, So i edited file and delete that part from patch file.

Code:
    // Delete all characters which have been deleted X days before
    Player::DeleteOldCharacters();
   
   sLog.outString("Initialize AuctionHouseBot...");
    sAuctionBot.Initialize();

    //Get playerbot configuration file
    if (!botConfig.SetSource(_PLAYERBOT_CONFIG))
        sLog.outError("Playerbot: Unable to open configuration file. Database will be unaccessible. Configuration values will use default.");
    else
        sLog.outString("Playerbot: Using configuration file %s",_PLAYERBOT_CONFIG);

    //Check playerbot config file version
    if (botConfig.GetIntDefault("ConfVersion", 0) != PLAYERBOT_CONF_VERSION)
        sLog.outError("Playerbot: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");

    sLog.outString( "WORLD: World initialized" );

    uint32 uStartInterval = getMSTimeDiff(uStartTime, getMSTime());
    sLog.outString( "SERVER STARTUP TIME: %i minutes %i seconds", uStartInterval / 60000, (uStartInterval % 60000) / 1000 );
}


Error 3
error: patch failed: src/game/world.h:319
error: scr/game/world.h: patch dose not apply

patch file reads as

Code:
@@ -319,6 +339,25 @@ enum eConfigBoolValues
     CONFIG_BOOL_STATS_SAVE_ONLY_ON_LOGOUT,
     CONFIG_BOOL_CLEAN_CHARACTER_DB,
     CONFIG_BOOL_VMAP_INDOOR_CHECK,
+
+    /* Start AHBot */
+    CONFIG_BOOL_AHBOT_SELLER_ENABLED,
+    CONFIG_BOOL_AHBOT_BUYER_ENABLED,
+
+    CONFIG_BOOL_AHBOT_ITEMS_VENDOR,
+    CONFIG_BOOL_AHBOT_ITEMS_LOOT,
+    CONFIG_BOOL_AHBOT_ITEMS_MISC,
+
+    CONFIG_BOOL_AHBOT_BIND_NO,
+    CONFIG_BOOL_AHBOT_BIND_PICKUP,
+    CONFIG_BOOL_AHBOT_BIND_EQUIP,
+    CONFIG_BOOL_AHBOT_BIND_USE,
+    CONFIG_BOOL_AHBOT_BIND_QUEST,
+
+    CONFIG_BOOL_AHBOT_BUYPRICE_SELLER,
+    CONFIG_BOOL_AHBOT_BUYPRICE_BUYER,
+    /* End AHBot*/
+
     CONFIG_BOOL_VALUE_COUNT
 };
 


Reg code in world.h read as

Code:
    CONFIG_BOOL_STATS_SAVE_ONLY_ON_LOGOUT,
    CONFIG_BOOL_CLEAN_CHARACTER_DB,
    CONFIG_BOOL_VMAP_INDOOR_CHECK,
    CONFIG_BOOL_PET_UNSUMMON_AT_MOUNT,
    CONFIG_BOOL_VALUE_COUNT
};


i changed world.h to read as

Code:
    CONFIG_BOOL_STATS_SAVE_ONLY_ON_LOGOUT,
    CONFIG_BOOL_CLEAN_CHARACTER_DB,

    /* Start AHBot */
    CONFIG_BOOL_AHBOT_SELLER_ENABLED,
    CONFIG_BOOL_AHBOT_BUYER_ENABLED,

    CONFIG_BOOL_AHBOT_ITEMS_VENDOR,
    CONFIG_BOOL_AHBOT_ITEMS_LOOT,
    CONFIG_BOOL_AHBOT_ITEMS_MISC,

    CONFIG_BOOL_AHBOT_BIND_NO,
    CONFIG_BOOL_AHBOT_BIND_PICKUP,
    CONFIG_BOOL_AHBOT_BIND_EQUIP,
    CONFIG_BOOL_AHBOT_BIND_USE,
    CONFIG_BOOL_AHBOT_BIND_QUEST,

    CONFIG_BOOL_AHBOT_BUYPRICE_SELLER,
    CONFIG_BOOL_AHBOT_BUYPRICE_BUYER,
    /* End AHBot*/

    CONFIG_BOOL_PET_UNSUMMON_AT_MOUNT,
    CONFIG_BOOL_VALUE_COUNT
};


add delete that part from patch

Code:
diff --git a/src/game/World.h b/src/game/World.h
index fc5d555..ef7bcd6 100644
--- a/src/game/World.h
+++ b/src/game/World.h
@@ -182,6 +182,26 @@ enum eConfigUInt32Values
     CONFIG_UINT32_CHARDELETE_KEEP_DAYS,
     CONFIG_UINT32_CHARDELETE_METHOD,
     CONFIG_UINT32_CHARDELETE_MIN_LEVEL,
+   
+   /* Start AHBot */
+    CONFIG_UINT32_AHBOT_ITEMS_CYCLE,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MIN_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MAX_ITEM_LEVEL,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MIN_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MAX_REQ_LEVEL,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_TG_MIN_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_TG_MAX_SKILL_RANK,
+    /* End AHBot*/
+
     CONFIG_UINT32_VALUE_COUNT
 };
 
@@ -319,6 +339,25 @@ enum eConfigBoolValues
     CONFIG_BOOL_STATS_SAVE_ONLY_ON_LOGOUT,
     CONFIG_BOOL_CLEAN_CHARACTER_DB,
     CONFIG_BOOL_VMAP_INDOOR_CHECK,
+
+    /* Start AHBot */
+    CONFIG_BOOL_AHBOT_SELLER_ENABLED,
+    CONFIG_BOOL_AHBOT_BUYER_ENABLED,
+
+    CONFIG_BOOL_AHBOT_ITEMS_VENDOR,
+    CONFIG_BOOL_AHBOT_ITEMS_LOOT,
+    CONFIG_BOOL_AHBOT_ITEMS_MISC,
+
+    CONFIG_BOOL_AHBOT_BIND_NO,
+    CONFIG_BOOL_AHBOT_BIND_PICKUP,
+    CONFIG_BOOL_AHBOT_BIND_EQUIP,
+    CONFIG_BOOL_AHBOT_BIND_USE,
+    CONFIG_BOOL_AHBOT_BIND_QUEST,
+
+    CONFIG_BOOL_AHBOT_BUYPRICE_SELLER,
+    CONFIG_BOOL_AHBOT_BUYPRICE_BUYER,
+    /* End AHBot*/
+
     CONFIG_BOOL_VALUE_COUNT
 };
 


and code in patch read as
Code:
@@ -182,6 +182,26 @@ enum eConfigUInt32Values
     CONFIG_UINT32_CHARDELETE_KEEP_DAYS,
     CONFIG_UINT32_CHARDELETE_METHOD,
     CONFIG_UINT32_CHARDELETE_MIN_LEVEL,
+   
+   /* Start AHBot */
+    CONFIG_UINT32_AHBOT_ITEMS_CYCLE,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MIN_ITEM_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MAX_ITEM_LEVEL,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MIN_REQ_LEVEL,
+    CONFIG_UINT32_AHBOT_TG_MAX_REQ_LEVEL,
+
+    CONFIG_UINT32_AHBOT_ITEM_MIN_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_ITEM_MAX_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_TG_MIN_SKILL_RANK,
+    CONFIG_UINT32_AHBOT_TG_MAX_SKILL_RANK,
+    /* End AHBot*/
+
     CONFIG_UINT32_VALUE_COUNT
 };
 


edited world.h file from

Code:
    CONFIG_UINT32_CHARDELETE_METHOD,
    CONFIG_UINT32_CHARDELETE_MIN_LEVEL,
    CONFIG_UINT32_VALUE_COUNT
};
 


to
Code:
 CONFIG_UINT32_CHARDELETE_KEEP_DAYS,
    CONFIG_UINT32_CHARDELETE_METHOD,
    CONFIG_UINT32_CHARDELETE_MIN_LEVEL,
   /* Start AHBot */
    CONFIG_UINT32_AHBOT_ITEMS_CYCLE,

    CONFIG_UINT32_AHBOT_ITEM_MIN_ITEM_LEVEL,
    CONFIG_UINT32_AHBOT_ITEM_MAX_ITEM_LEVEL,
    CONFIG_UINT32_AHBOT_TG_MIN_ITEM_LEVEL,
    CONFIG_UINT32_AHBOT_TG_MAX_ITEM_LEVEL,

    CONFIG_UINT32_AHBOT_ITEM_MIN_REQ_LEVEL,
    CONFIG_UINT32_AHBOT_ITEM_MAX_REQ_LEVEL,
    CONFIG_UINT32_AHBOT_TG_MIN_REQ_LEVEL,
    CONFIG_UINT32_AHBOT_TG_MAX_REQ_LEVEL,

    CONFIG_UINT32_AHBOT_ITEM_MIN_SKILL_RANK,
    CONFIG_UINT32_AHBOT_ITEM_MAX_SKILL_RANK,
    CONFIG_UINT32_AHBOT_TG_MIN_SKILL_RANK,
    CONFIG_UINT32_AHBOT_TG_MAX_SKILL_RANK,
    /* End AHBot*/
    CONFIG_UINT32_VALUE_COUNT
};
 


And last error read's as

error: patch failed: win/vc100/game.vcxproj.filters:448
error: win/vc100/game.vcxproj.filters: patch dose not apply

ahbot patch file reads as

Code:
 @@ -22,6 +22,9 @@
     <Filter Include="References">
       <UniqueIdentifier>{64bb42b8-e7ba-4247-b337-492f644daeeb}</UniqueIdentifier>
     </Filter>
+    <Filter Include="AHBot">
+      <UniqueIdentifier>{a621a36f-2973-41db-a6e9-a223f39a6317}</UniqueIdentifier>
+    </Filter>
   </ItemGroup>
   <ItemGroup>
     <ClCompile Include="..\..\src\game\AccountMgr.cpp">


game.vcxproj.filter read as

Code:
<ClCompile Include="..\..\src\game\UnitAuraProcHandler.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotClassAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotDeathKnightAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotDruidAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotHunterAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotMageAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotMgr.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotPaladinAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotPriestAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotRogueAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotShamanAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotWarlockAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotWarriorAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>


changed to

Code:
<ClCompile Include="..\..\src\game\UnitAuraProcHandler.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\AuctionHouseBot.cpp">
      <Filter>AHBot</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotClassAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotDeathKnightAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotDruidAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotHunterAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotMageAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotMgr.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotPaladinAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotPriestAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotRogueAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotShamanAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotWarlockAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
    <ClCompile Include="..\..\src\game\playerbot\PlayerbotWarriorAI.cpp">
      <Filter>World/Handlers</Filter>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>


Ok now i run
Code:
git apply --check --whitespace=fix ahbot.patch

and no error then i apply patch
and compile 12 ok 0 errors... not sure what i did right this time... but is it ok to take lines from pach file and put into game files ? i cant seem to edit patch file to make them work right
This took me like 2 days and 10 hours >.< lol i got it,but i need help on learning the right way of doing it. Or if the way im doing it is right

_________________
Image


Top
Reply with quote  

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2006, 2007, 2008 phpbb group  
Design By phpBB