xeross155 Posted April 2, 2010 Report Posted April 2, 2010 It should take approximately 1 minute to start its first run. Make sure you configured it properly in both the config file and the database tables.
mfour Posted April 2, 2010 Report Posted April 2, 2010 It should take approximately 1 minute to start its first run. Make sure you configured it properly in both the config file and the database tables. Ok thanks. I have gone over the settings many times to no avail, but I'll keep looking.
xeross155 Posted April 2, 2010 Report Posted April 2, 2010 Make sure you have the new config settings instead of the old ones, and make sure you don't have double config settings cus that's why I couldn't get it to work a while back ^^.
mfour Posted April 2, 2010 Report Posted April 2, 2010 I have made the changes in the config from your repo, so that is all good. What do you mean with double config settings?
xeross155 Posted April 2, 2010 Report Posted April 2, 2010 I had the same settings twice in my config file, but I doubt you'll have that problem. I'll also check if I didn't mess something up and run a test myself.
mfour Posted April 2, 2010 Report Posted April 2, 2010 Ah I see, no don't have that prob. I can't find the problem, everything looks as it should be, AHBot compiles, and loads fine in consol. Items are shown as loaded, a new bot character was created, logged in, logged out, changed config to accomodate the char GUID and Acc, restarted server, but no items. Thanks for your efforts, much appreciated
skinlayers Posted April 2, 2010 Report Posted April 2, 2010 BASH script to generate AHbot patch file. I originally wrote this for playerbot, but it works for AHbot as well with a couple of modifications. #!/bin/bash -x git clone git://github.com/mangos/mangos.git ahbot cd ahbot git fetch git://github.com/xeross/mangos.git ahbot:ahbot HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` git diff $HASH ahbot > ../ahbot.patch skinlayers
thyphoon Posted April 2, 2010 Report Posted April 2, 2010 Well back to the matter, anyone can do the changes so AHbot doesn't use a player? I could do it but firth I have to learn C syntax and stuff, and then how the internal code for de AH work, so it may take some time before I'm ready just to start
vladex Posted April 2, 2010 Report Posted April 2, 2010 i dont think that is posibble, you need an account and a character to put items into the AH , the items in ah cant be inserted by " no one"
Darkruler Posted April 2, 2010 Report Posted April 2, 2010 Can't we copy the existing code for adding an item to the auctionhouse and mod the check for player ID (and thus the name of the player that puts it on the AH) to use a preconfigured name (like Ahbot) and preconfigured ID (like 90000) that way the patch won't need database support does it
nyko Posted April 2, 2010 Report Posted April 2, 2010 i don't see what is the matter with a character for ahbot?
thyphoon Posted April 2, 2010 Report Posted April 2, 2010 It is as possible if anyone is willing to implement it.
maxmax27 Posted April 2, 2010 Report Posted April 2, 2010 @mfour I have the same problem. everything runs without errors but does not find objects in the action house. have you found your errors? excuse my English. google helps.
xeross155 Posted April 2, 2010 Report Posted April 2, 2010 I basically replaced MinimalLoad with the following code (Which still works) Code C++: void Player::Initialize(uint32 guid ) { Object::_Create( guid, 0, HIGHGUID_PLAYER ); } So it's not yet at the point where the devs want it, but it's a step forward from MinimalLoadFromDB
EARTHWALKER Posted April 2, 2010 Report Posted April 2, 2010 Tried that and after doing this line:- HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` I got this error:- EARTHWALKER@THEBEAST c:/mangos/ahbot (master) $ HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` grep: invalid option -- m Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Any clues? BASH script to generate AHbot patch file. I originally wrote this for playerbot, but it works for AHbot as well with a couple of modifications. #!/bin/bash -x git clone git://github.com/mangos/mangos.git ahbot cd ahbot git fetch git://github.com/xeross/mangos.git ahbot:ahbot HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` git diff $HASH ahbot > ../ahbot.patch skinlayers
kreegoth Posted April 3, 2010 Report Posted April 3, 2010 I have the same problem as a few above. I compile fine and use the newer configs but when entering game nothing is found in auctionhouse? Any idea where i went wrong.
blueboy Posted April 3, 2010 Report Posted April 3, 2010 Tried that and after doing this line:-HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` I got this error:- EARTHWALKER@THEBEAST c:/mangos/ahbot (master) $ HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` grep: invalid option -- m Usage: grep [OPTION]... PATTERN [FILE]... Try `grep --help' for more information. Any clues? Hi, Looking at your first code box, I noticed that the commandline $ HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " and " -f 1` are broken with what looks like a carriage return. try removing it, to look like this HASH=`git log ahbot --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` I can confirm that it works on my linux box #!/bin/bash -x git clone git://github.com/mangos/mangos.git auction cd auction git fetch git://github.com/xeross/mangos.git ahbot:auction git checkout auction HASH=`git log --pretty=oneline | grep -m 1 '\\[9[0-9]\\{3\\}]' | cut -d " " -f 1` git diff $HASH > ahbot.patch I also note from your command prompt, that your using windows. Maybe the bash shell that your running the script in does not support this '-m' option for grep. Hope this helps
xeross155 Posted April 3, 2010 Report Posted April 3, 2010 As it seems multiple people are having troubles getting this new version to work I'm currently testing it.
xeross155 Posted April 3, 2010 Report Posted April 3, 2010 These are the config variables I have on my testserver, and they work, dunno what can be wrong, maybe your merge is messing up ? AuctionHouseBot.Seller.Enabled = 1 AuctionHouseBot.Buyer.Enabled = 1 AuctionHouseBot.Account = 5 AuctionHouseBot.Character = 2 AuctionHouseBot.Items.Vendor = 0 AuctionHouseBot.Items.Loot = 1 AuctionHouseBot.Items.Misc = 0 AuctionHouseBot.Bind.No = 1 AuctionHouseBot.Bind.Pickup = 0 AuctionHouseBot.Bind.Equip = 1 AuctionHouseBot.Bind.Use = 1 AuctionHouseBot.Bind.Quest = 0 AuctionHouseBot.ItemsPerCycle = 200 AuctionHouseBot.BuyPrice.Seller = 0 AuctionHouseBot.BuyPrice.Buyer = 0
EARTHWALKER Posted April 3, 2010 Report Posted April 3, 2010 I tried it without the -m and even more errors popped up so can't continue to get the patch, not that I would have a clue how to integrate the patch anyway. Thanks for trying though, but now I know this is for linux anyway, I won't waste hours trying it over and over again thinking I'd typed something wrong. Hopefully someone will either come up with some windows commands or just a patch and a way to SVN it as I can do that. I wouldn't have a clue how to integrate a patch with this git thing. I'd have a better time translating outer-mongolian
vladex Posted April 3, 2010 Report Posted April 3, 2010 you can add a patch by using this command : patch -p1 < nameofpatch.patch but you can do it with svn as well
EARTHWALKER Posted April 3, 2010 Report Posted April 3, 2010 Thanks m8... WOOT. I grabbed a patch from further up, did what you wrote and bingo! EARTHWALKER@THEBEAST c:/mangos/ahbot (master) $ patch -p1 < 9652_AHBbot.patch patching file `README.AHBOT' patching file `sql/characters_auctionhousebot.sql' patching file `sql/characters_auctionhousebot_update.sql' patching file `src/game/AuctionHouseBot.cpp' patching file `src/game/AuctionHouseBot.h' patching file `src/game/AuctionHouseHandler.cpp' patching file `src/game/AuctionHouseMgr.cpp' patching file `src/game/AuctionHouseMgr.h' patching file `src/game/Chat.cpp' Hunk #1 succeeded at 669 (offset 1 line). patching file `src/game/Chat.h' patching file `src/game/Level3.cpp' patching file `src/game/Mail.cpp' patching file `src/game/Makefile.am' patching file `src/game/Player.h' Hunk #1 succeeded at 1422 (offset 9 lines). patching file `src/game/World.cpp' patching file `src/game/World.h' patching file `src/mangosd/mangosd.conf.dist.in' patching file `win/VC100/game.vcxproj' patching file `win/VC80/game.vcproj' patching file `win/VC90/game.vcproj' Now to get the bugger working on the server. Should be easy now the difficult part is out of the way
xeross155 Posted April 3, 2010 Report Posted April 3, 2010 I have my modification working just fine, weird other people can't get it to work
EARTHWALKER Posted April 3, 2010 Report Posted April 3, 2010 Patch added fine, compiled fine, realmd and mangosd all work fine, ahbot loaded with the console displaying thousands of items loaded, enter server ok, check AH and No items. Now I am lost..lol.
xeross155 Posted April 3, 2010 Report Posted April 3, 2010 This is weird I don't know why it isn't working because it seems to work here.
Recommended Posts