PDA

View Full Version : GoldHunter Utility


DrAlimentado
04-07-2005, 03:43
Here is the (3rd) beta version.

You will need IE6 and .NET 1.1 runtimes.

Easiest way is to use Windows Update (http://windowsupdate.microsoft.com/) - which much as I hate online installers is actually a pretty good way to keep your computer safe from windoze/IE hacks and holes too.

Alternatively you can get .NET 1.1 from here (http://msdn.microsoft.com/netframework/downloads/framework1_1redist/) but you should track down the service pack(s) for it too. (windows update should do all this for you in theory)

##############################################
[edit: 9/7/2005]

NEW VERSION TO FIX NUMBER FORMAT ERROR

Here is the link for the new installer: GoldHunter0.85b.zip (http://www.thediamondsonline.com/GoldHunter0.85b.zip) (~1.5mb)

I think I got the error, but if not it should now catch it and you can go and turn off all number formatting in options and just use numbers in '####' format instead for safety. (you might need to reload to reformat numbers in drop-down boxes)

again, let me know if I got it or not!

##################################################


Here is the link for the old installer, i guess in case this one works for english speakers and the new one is fucked somehow: GoldHunter0.8b.zip (http://www.thediamondsonline.com/GoldHunter0.8b.zip) (~1.5mb)

(hosted externally, due to goddam stoopid filesize limits [no])


unzip to somewhere (anywhere) and double-click on setup.exe.


It will ask you for a destination folder, install the app and some DLL's where you have told it too and create a desktop icon and entry in the programs folder under 'KoC GoldHunter'.

To uninstall you will need to use the add/remove programs dialog.



Please let me know if it works or not! This is my first go at getting some funky old-school DLL to register on setup, hopefully it all goes smooth and you can now appreciate the beauty of goldhunter... hehe.



I cannot actually add one vital component to my installer as it is an integral part of IE6 and if I did include it and you uninstalled this app it would fuck IE. Hopefully it was the other vital COM bit that I have now included (and which should register itself when installing) that was causing the error...




I strongly advise using Admuncher with this app - it uses IE6 windows within itself and is kinda clueless about blocking adverts. Admuncher works very well with it though.


This is a beta so post questions on usage and/or bugs/suggestions here and I will try to answer them.

Oh, and er, keep this app a secret within the CDZ KoC community, thanks ;)




NB - wtf can i not upload the 322k source zip here ??!?? stupid microshit webservers [mad]

DrAlimentado
04-07-2005, 03:52
Here are the test results from my prototype runs :D


1 hour ago zcoreface 14,679,377 Gold stolen 15 4 2 47,493,073 61,763,078 details
1 hour ago fudgeebrowniee 9,102,103 Gold stolen 15 4 0 6,851,572 62,794,485 details
1 hour ago ErwinBooij 9,735,331 Gold stolen 15 24 1 30,499,650 62,733,814 details
1 hour ago HOHOHObigbear 9,887,359 Gold stolen 15 3 2 35,360,000 65,039,312 details
1 hour ago nuke921 16,447,441 Gold stolen 15 3 2 59,440,575 61,823,749 details
1 hour ago TheKing- 12,728,315 Gold stolen 15 2 1 77,715,000 97,498,297 details
2 hours ago aapie86 11,668,704 Gold stolen 15 2 0 3,846 112,302,021 details
2 hours ago Elves_of_Loren 8,948,306 Gold stolen 15 50 2 87,975,422 110,117,865 details
2 hours ago db_atomic-Ro 9,833,822 Gold stolen 15 1 0 24,985,106 109,986,695 details
2 hours ago kokuo_akumu 8,861,688 Gold stolen 15 25 3 49,623,840 111,816,653 details

5 hours ago TheLoneSpirit 9,254,053 Gold stolen 15 50 5 76,403,501 106,174,250 details
5 hours ago DESmetten 14,730,640 Gold stolen 15 5 1 44,124,373 104,475,462 details
5 hours ago i3ass 7,966,876 Gold stolen 15 11 3 78,441,510 107,691,025 details

7 hours ago Darfus 10,439,908 Gold stolen 15 15 5 79,524,122 106,477,605 details
7 hours ago Ooo_DROOL_ooO 10,013,463 Gold stolen 15 3 2 72,805,220 104,907,421 details
7 hours ago Shuruzou 10,442,222 Gold stolen 15 10 5 89,218,756 106,602,830 details

Shabbaman
04-07-2005, 07:56
Nice [evil]

What does it do exactly, just getting targets with a lot of money? Can you set parameters? And stuff?

DrAlimentado
04-07-2005, 09:53
You can specify Minimum Gold/Minimum Size for a target to be read, rank to hunt from, rank to stop hunting at/num of pages to stop at, min/max random interval to reload on.

Once you have done some hunting you get a list of targets ordered by wealth, when you double-click a targets name it opens a new browser tab with them in it ready for spying/probing/robbing.

If you want to do a quick bit of training or check a spy report etc. then there are menu buttons that will load any of the KoC base pages in their own tabs.

basically it collects a list of names and nicely presents the list, and then them, to you.

Melifluous
04-07-2005, 12:01
quote:Originally posted by DrAlimentado


NB - wtf can i not upload the 322k source zip here ??!?? stupid microshit webservers [mad]


Yes indeed. 200k is the limit for attachments/uploads here.

Mail me the save and I'll get it on the servers and provide a link for you to use.

I have means and ways my friend.

Melifluous

ProPain
05-07-2005, 00:41
So Mel, do you have any clue where that 200K limit is set. I've looked for it but I cant find it anywhere. Must be a server setting as we could upload as much as we wanted before the move.

Mistfit
05-07-2005, 22:57
OK leave it to me to break the thing before I even get to run it [confused]

http://www.civ3duelzone.com/forum/uploaded/Mistfit/200575225741_oops.jpg

Mistfit
05-07-2005, 23:09
Actually this is probably not working because of IE6. IIRC it is only available for XP.

DrAlimentado
05-07-2005, 23:18
do you have 1.1 .net runtime installed?

what OS?

exactly how was the error generated? (ie. how do you reproduce it?)


I suspect you may have the wrong version of the .NET runtime, it should run with 1.1 - if you are using 1.0 that might cause an error like this. (check in Control Panel->Add/Remove programs what version of .net you are using)

And you have IE6.0 right? I might well be using some IE6 specific fucntion so IE5 might break it too.

Hopefully its something simple like that, because that error isn't caused by the code as such but by some fuck-up in the runtime environment. Could be weird ActiveX stuff as well, hmmm.


Is anyone else getting it to work btw? would be nice to know if it runs on anyones computer apart from mine :D

DrAlimentado
05-07-2005, 23:22
x-posted,

IE6 is for win2k too, absolutely! its a big improvement on IE5.

of course I hope everyone uses Mozilla for real surfing ;) IE is just for embedded stuff and using windows update!

Mistfit
05-07-2005, 23:54
quote:Originally posted by DrAlimentado

do you have 1.1 .net runtime installed?

Yup.

http://www.civ3duelzone.com/forum/uploaded/Mistfit/200575235032_comp.jpg

quote:what OS?
ME - Don't ask... It's a long story involving a much needed program that only runs on DOS.

quote:exactly how was the error generated? (ie. how do you reproduce it?)
The screenie is from when I click on the Gold hunter tab/

quote:I suspect you may have the wrong version of the .NET runtime, it should run with 1.1 - if you are using 1.0 that might cause an error like this. (check in Control Panel->Add/Remove programs what version of .net you are using)
See above. I think it's right

quote:And you have IE6.0 right? I might well be using some IE6 specific fucntion so IE5 might break it too.

Hopefully its something simple like that, because that error isn't caused by the code as such but by some fuck-up in the runtime environment. Could be weird ActiveX stuff as well, hmmm.

If it ain't broke...I'll make sure it is

ProPain
06-07-2005, 00:34
same problem as Mistfit for me....

On both my PC's. Both run .NET framework

DrAlimentado
06-07-2005, 01:48
hmm, fuck.

I think this is part of the standard .Net distro but just in case this dll is needed too:

c:\Program Files\Microsoft.NET\Primary Interop Assemblies\Microsoft.mshtml.dll

Might be wherever you installed .NET too but it should be there somewhere.



Assuming that's not the problem then er, well I will try and find some answers.

It works fine for me and I have a nearly totally clean install of win2k +sp4 + windows update +.NET 1.1 (like 4 days old new format and install). Other .NET things have worked ok before so I guess it must be some COM bs.

arse, app-killing bugs that only appear on other peoples machines :( not easy to fix

Melifluous
06-07-2005, 03:53
Well it works fine for me, however I do have the VS.NET 1.1 installed on my machine. So not really an ideal 'client' test.

What can I say, pure unfiltered genius

[party]



http://www.civ3duelzone.com/forum/uploaded/melifluous/20057635251_drAGenius.JPG

Drop the script errors, give me 100 BPMs and I'm sold.

[:P]

Melifluous

DrAlimentado
06-07-2005, 13:24
hmmm, curiouser and curiouser.

I will so some more research.


btw - use Admuncher (http://www.admucnher.com) to rid yourselves of stupid script errors (they are only in the adverts). If you have it and it isnt working with GoldHunter then go into Admuncher options and you can remind it what programs to work with.

DrAlimentado
06-07-2005, 14:35
Okay, well it is 99% sure a dependency error of some sort. I have found lots of identical error reports concerning obscure COM and DLL installations.

The 2 DLL's I packaged with it (and the mshtml DLL that is part of .NET) are wrappers to COM objects, I think the COM objects (DLL's - but slightly different on the inside) need to be present and registered the old fashioned way.

The COM DLL's are;
shdocvw.dll - should be in windows/system32 folder, ie. C:/WINNT/system32/shdocvw.dll on win2k.
mshtml.dll - ditto

If they are there then they should already be registered, but the way to do it manually is at the command line type: (assuming you have regsvr32.exe in system32, but i *think* it is standard...
regsvr32 <the full path to your DLL here>


Thats all a bit techno-babble, but I will try to create a deployment package that will hopefully solve the error tonight.

Mistfit
06-07-2005, 17:27
Well I do not understand the technobabble one bit. But I read your last post as:

Blah blah blah... I'll fix it later so you computer illeterate people can have fun with this :D

I did want to mention how much I like the ADMuncher though! It makes KoC much easier to view! And I love the little cow icon that "gobbles" up the ad.

Thanks!

Banzai
06-07-2005, 17:35
I hope that works (will check tonight) because I have 20,227 spies without hooks.. I can use more gold ;)

Will I be able to equip them all before the end of the age?
20,227 hooks * 100,000 gold = a lot of gold

Shabbaman
07-07-2005, 11:46
Is .NET 1.1 framework the same as .NET 1.1 runtimes? If not, where do I get the runtime version? Anyway, it doesn't work, I get a "Process id=0x600 (1536), Thread id=0x5d8 (1496)" error. Then some debugger questions but no working app...

DrAlimentado
09-07-2005, 01:21
Shabba - yes its the same version. Problem was (I think) that some DLL (mshtml.dll) I am using to manipulate the html pages isnt a standard part of windows so is probably missing from your computer.


anyone -

I have hopefully fixed it, check the first post for the new installer and let me know if it works or not. I will try and test it tomorrow myself but I can't get the use of another machine (without vs.net IDE suite) until then.

also... I have a working one-shot autobuyer, hehe, I havent been robbed for a few nights ;). If I have fixed this then I'll iron out a few niggles and get it packaged and uploaded over the w/e [satan]

DrAlimentado
09-07-2005, 01:51
in action :D

http://www.civ3duelzone.com/forum/uploaded/DrAlimentado/20057914955_GoldHunterScreenie.jpg

Banzai
09-07-2005, 06:58
Well.. the application starts, but when I hit the Hunt button it crashes with an unhandled expection "Input string was not in a correct format."

************** Exception Text **************
System.FormatException: Input string was not in a correct format.
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at GoldHunter.GlobalStuff.GetNumberI(String sNum)
at GoldHunter.FormGoldHunter.RButtonHunt_CheckedChang ed(Object sender, EventArgs e)
at System.Windows.Forms.RadioButton.OnCheckedChanged( EventArgs e)
at System.Windows.Forms.RadioButton.set_Checked(Boole an value)
at System.Windows.Forms.RadioButton.OnClick(EventArgs e)
at System.Windows.Forms.RadioButton.OnMouseUp(MouseEv entArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage (Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(M essage& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Shabbaman
09-07-2005, 11:47
I'm getting the same error as banzai. And I was so looking forward to this [cry]

;)

I even get the message when I want to close the program. Bugger. Perhaps it has something to do with language/region settings, with the . and the , meaning something entirely different in dutch and english?

DrAlimentado
09-07-2005, 15:38
yeah that is a pretty good guess (geekspeak - I think i need to pass a NumberFormatInfo object instead of using the default one.)

at least these kind of errors I can fix in code! should have a solution pretty soon... (firing up IDE now)

[btw- good error report Banzai [goodjob], exactly the info i need to fix it]

Mistfit
09-07-2005, 15:47
Wow looks cool Dr A I can't wait to figure out how to use this thing

DrAlimentado
09-07-2005, 16:35
New version posted in first post (0.85b) that will hopefully fix the number format error. (better code to parse the number from the text) [good fix]

In case it dosent it should now catch the error (eg. you get a better error message that allows you to return to the app) - if that happens then you can turn off all number formatting in options which will in theory shortcut the issue altogether. [cheap fix]

If you have english culture set on your windows machine then the old version might work okay.

Shabbaman
09-07-2005, 17:12
quote:Originally posted by DrAlimentado

yeah that is a pretty good guess


Actually it's a pretty common error which I've encountered several times in system dynamics modelling, since the programs used for that kind of modelling aren't worth a dime.

I hope you fixed it, will check it out.


EDIT:

Nope.

Input error : used default of 0

bla bla

Possible cause: non-numeric input other than ','

Weird. But it's a step forward.

EDIT2: a restart worked, program works!

Mistfit
09-07-2005, 17:23
Works like a charm!!!!!! Great Job Dude!

Unforunately I used up 150 attack turns already this morning. I'm sure I could have done better with this thing!


[worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship][worship] [worship] [worship]


Edit:
For those of you who are Hattrick Players. If you use Dr A's recomended Ad Muncher. Turn it off before you dl anything for HO! it seems to mess it up when I try.

DrAlimentado
09-07-2005, 18:03
[dance]

DrAlimentado
09-07-2005, 18:07
btw- you can apply +/- filters in admuncher options that should allow you to specify not to filter hattrick urls.

Mistfit
09-07-2005, 18:23
Well it was just as easy to disable it for the 20 sec dl for HO.

ProPain
09-07-2005, 20:12
for me it works when I switch of no formatting and retype all numbers without , and/or .

WIth dots and commas I get some sort of parsing errror. Will post the error in de detail later. For now I need to find targets for my 375 saved up attack turns.

PP

DrAlimentado
09-07-2005, 20:19
ah okay, I thought it might be fucking with ht all the time.


Some tips for using GoldHunter :

Login at the first screen, if you try hunting without being logged in you are creating some very unusal behaviour in the site logs.

The Hunting bit should be easy to use, just set the search parameters you want in options - min gold and min size and the rank you want to start hunting at. Press hunt and it should start loading battlefield pages and dumping the results in the results tab on the right.

Double-click on a target name to open a browser tab at that persons army.

I have included settings that allow you to leave it unattended for a long time (it will never hunt past rank 100,000 btw...) but please change the timer settings to give a longer maximum random interval, looks less dodgy in the logs I reckon.

The SA/DA calculator allows you to calculate theoretical DA and SA strengths from fort/siege and no of men. I have made a few certain attacks 'blind' using this method :D

Shabbaman
09-07-2005, 20:45
Could you include password saving in your next version? And why does the start-up screen say "version 0.83"?

Shabbaman
09-07-2005, 20:50
Hmz.

It doesn't "auto-hunt".

EDIT:

and once again I prove my stupidity, the program was set to "stop at rank 0".

DrAlimentado
09-07-2005, 21:04
by 'password saving' do you mean auto-login? that I will do for sure.


is it only loading one page? just to be sure - the 'auto-hunt' checkbox is ticked right? Otherwise please give me as much info as you can about settings/behaviour etc. If I cannot reproduce the bug (as has happened with all the bugs so far [lol]) then I need as much info as poss :)


the number format error is because "###,###,###,###" is meaningless to dutch speaking windows. I can probably find a way to just say 'use local thousand seperator' or something but not formatting the numbers is a workaround for the moment.

start-up screen has wrong version because I forgot to change it when I did the release build ;)
version 0.83 had a small interface niggle with the checkbox for turning off formatting (it didnt reflect the saved option on start-up.)

Banzai
10-07-2005, 07:35
[charge]
It works like a charm!!
quote:
Battle Report

Your soldiers march onto the battlefield


Your generals report on your army's status:

220 of your soldiers are trained attack specialists
0 of your army consists of untrained soldiers
All 220 of your trained soldiers receive weapons

220 are given a Blackpowder Missile

None of your 0 untrained soldiers have weapons

Your field scouts report on the status of the enemy:
The enemy has all 239 trained soldiers with weapons
The enemy has 2 untrained soldiers with weapons and 3,476 with no weapons



Both sides charge!
Your army strikes!



Your troops inflict 50,570,000 damage on the enemy!
The enemy sustains 22 casualties!

Thalinwarf's forces counter-attack and inflict 16,629,748 damage on your army!
Your army sustains 0 casualties!


Your generals report on your weapon damage:
Blackpowder Missile
All were used
None were found to be sabotaged
Weapon strength went from 10,000 to 10,000

You crushed the enemy!
As Thalinwarf's army runs from the battlefield you examine the collected spoils:
You stole 21,611,245 gold from Thalinwarf!
You return to camp, your troops elated from your glorious victory.

Mistfit
10-07-2005, 18:27
Before using this Utility :(:
quote:1 day ago mad_man000 2,353,531 Gold stolen
1 day ago DrTrax 2,333,443 Gold stolen

Now after using this amazing product [thumbsup]:
quote:1 minute ago tinnadan 4,947,044 Gold stolen
2 hours ago SpeedyGonzales 4,560,641 Gold stolen

It also Sliced, Diced and Julianne's Buy it Now only $19.95 on this one time special offer....but wait if you order now...

I'm considering a career in infomertials [tongue]

romeothemonk
24-07-2005, 01:12
After having played the game abit and tried out GOldhunter, I have determined that using goldhunter is cheating like using the dishwasher to do dishes is cheating.
Less rewarding, better results, less effort.
(2/3 ain't bad, good work Doc!!)