Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

[TUTO] How to setup external silverfish a.i. module.
JoyAdmin
#1 Posted : Friday, January 30, 2015 5:24:31 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,845

Thanks: 805 times
Was thanked: 4538 time(s) in 1636 post(s)
- Now you can choose to use silverfish A.I. module.

Hearthranger's open API is very easy and self-explainable, there are three samples under [ExternBot] directory with source code to show how to use it.

[HSRangerCustomDraftBot.dll]
it's a sample of custom draft module, you can setup your own logic to choose hero and arena cards.

[HSRangerCustomMulliganBot.dll]
it's a sample of custom mulligan module, you can setup your own logic to toggle cards.

[silver.dll]
it's full functional silverfish A.I. module works with hearthranger seamlessly.

Known Issue: sometimes silverfish can't output best move action, it happens when some cards which silverfish can't recognize showed on board. In such case silverfish can only use hero power.
This is not hearthranger's BUG ! Send silverfish's dev team a screenshot and ask them to fix it !

I already use the latest source of silverfish from github (http://www.github.com/noHero123/silverfish), you can always compile your own silverfish module with the latest one. The file named [how_to_compile_your_own_silver.dll_.txt] under [HearthRanger\ExternBot\silverfish\source_code] explained how to do it.

All source code included so you can cook your own bot now !

How to turn on silverfish external A.I. module?
On [Bot Control Panel], check [Use extern A.I. module], then select [silver.dll].

turn on silverfish
4 users thanked JoyAdmin for this useful post.
gxgxgx on 1/30/2015(UTC), zykique on 6/8/2015(UTC), ShadowShred0#2387 on 8/18/2015(UTC), zosodemon on 11/19/2015(UTC)
f0ssa
#2 Posted : Sunday, February 8, 2015 2:35:57 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 2
Location: Russia

where links for download modules?
JoyAdmin
#4 Posted : Tuesday, March 3, 2015 11:33:43 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,845

Thanks: 805 times
Was thanked: 4538 time(s) in 1636 post(s)
Siverfish module is a toy which is good for experienced programmers, there are so many parameters, the best way (or may be the only way) to understand them is reading silverfish's source code.

zhokar1985
#5 Posted : Friday, March 6, 2015 5:53:06 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 1
Location: Germany

I can not choose silverfish in the BOT. How can I use it? Which files do I have to put in which folder?
JoyAdmin
#6 Posted : Friday, March 6, 2015 11:56:01 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,845

Thanks: 805 times
Was thanked: 4538 time(s) in 1636 post(s)
garkeon
#7 Posted : Saturday, May 2, 2015 8:20:09 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 1

What does this silverfish do? When I enable it in External A.I. module will the bot's gameplay change automatically or do I have to write a new Deck rule around it?

Actually can somone make a step by step tutorial how to make new silverfish work? I downloaded silverfish files but now I am confused with the tutorials given here.
HawkenX
#8 Posted : Monday, May 25, 2015 12:23:48 AM(UTC)

Rank: Advanced Member

Groups: Registered
Posts: 41
Location: Canada

Thanks: 2 times
Was thanked: 6 time(s) in 5 post(s)
I'm getting: The type or namespace name 'API' does not exist in the namespace 'HREngine' (are you missing an assembly reference?)

I did everything in the txt file, what else am I missing?
imsofamouss
#9 Posted : Friday, July 10, 2015 10:54:30 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 6

i try all tutorial but silvefish still not working
there is a screen: http://s4.postimg.org/rpphpe77x/silverifsh.png

someone help me ?
Kargo
#10 Posted : Thursday, November 12, 2015 1:50:37 PM(UTC)
Rank: Member

Groups: Registered
Posts: 22
Location: CZ

Was thanked: 1 time(s) in 1 post(s)
How can I add silverfish control rule? There are three files, HREngine.dll,HSRangerLib.dll and silver-control.dll. Where I have to put these files? Please help
oijkn
#11 Posted : Friday, November 13, 2015 8:31:42 AM(UTC)
oijkn


Rank: Advanced Member

Groups: HSModerator, Registered
Posts: 472
Man
Location: 127.0.0.1

Thanks: 76 times
Was thanked: 271 time(s) in 93 post(s)
Kargo;32438 wrote:
How can I add silverfish control rule? There are three files, HREngine.dll,HSRangerLib.dll and silver-control.dll. Where I have to put these files? Please help


Hi,

If you want to use Silver you have just to download needed file from the Botmaker's Github and extract them to ..\HearthRanger\ExternBot\silverfish

Don't forget to set it in the bot option.

Regards.
zosodemon
#12 Posted : Thursday, November 19, 2015 12:33:57 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: NY

Thanks: 5 times
Hey Guys,

Im new here so bear with me :)

I read through the forum and noticed two things:

1.) Hearthranger (as described here) comes with a version of silver
2.) You can go and download the latest version of silver from botmaker and replace the silver folder included with Hearthranger

My question is, can you use a settings.txt file with the version of silver that comes with HearthRanger or is it required to get botmakers version? I have tried to use botmakers version and the current version seems to freeze up both Hearthranger when starting it and Silver.exe also freezes up.

Cheers!
oijkn
#13 Posted : Thursday, November 19, 2015 12:44:26 PM(UTC)
oijkn


Rank: Advanced Member

Groups: HSModerator, Registered
Posts: 472
Man
Location: 127.0.0.1

Thanks: 76 times
Was thanked: 271 time(s) in 93 post(s)
zosodemon;32895 wrote:
Hey Guys,

Im new here so bear with me :)

I read through the forum and noticed two things:

1.) Hearthranger (as described here) comes with a version of silver
2.) You can go and download the latest version of silver from botmaker and replace the silver folder included with Hearthranger

My question is, can you use a settings.txt file with the version of silver that comes with HearthRanger or is it required to get botmakers version? I have tried to use botmakers version and the current version seems to freeze up both Hearthranger when starting it and Silver.exe also freezes up.

Cheers!


Hi, if the last version of silverfish freeze with your computer try the previous version of silver.exe (the problem comes from it). Here you go : Silver.exe

I hope that help you :)

Regards.
1 user thanked oijkn for this useful post.
zosodemon on 11/19/2015(UTC)
zosodemon
#14 Posted : Thursday, November 19, 2015 1:10:10 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: NY

Thanks: 5 times
Hey Oijkn,

Thanks! That version of silver.exe start but Im still having an odd issue. When I load up Hearthranger it does not see silver as an option in use external AI module. Now if I go into the Silverfish folder and remove the settings.txt and restart Hearthranger, silver.dll shows up in the drop down. Seems like its the settings.txt file that is causing issues with silver.dll showing up as an external AI module. I did make sure that file is unblocked as well as the dll and silverfish.exe and now the only variable is when that settings.txt exists in the silverfish folder.

Thanks again for the help.
zosodemon
#15 Posted : Thursday, November 19, 2015 1:31:35 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: NY

Thanks: 5 times
Hey Guys,

I found what the issues was! The settings.txt file has to be _settings.txt in the silverfish folder. I didnt see that mentioned anywhere and when you download silverfish it comes as settings.txt.

Not sure if that can be updated anywhere but by changing it to _settings.txt silver.dll now shows up.

Cheers!
oijkn
#16 Posted : Thursday, November 19, 2015 2:50:10 PM(UTC)
oijkn


Rank: Advanced Member

Groups: HSModerator, Registered
Posts: 472
Man
Location: 127.0.0.1

Thanks: 76 times
Was thanked: 271 time(s) in 93 post(s)
zosodemon;32905 wrote:
Hey Guys,

I found what the issues was! The settings.txt file has to be _settings.txt in the silverfish folder. I didnt see that mentioned anywhere and when you download silverfish it comes as settings.txt.

Not sure if that can be updated anywhere but by changing it to _settings.txt silver.dll now shows up.

Cheers!


Well done but please report it in the good place : here

Regards.
zosodemon
#17 Posted : Thursday, November 19, 2015 3:50:21 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: NY

Thanks: 5 times
I just updated Silverfish and the entire problem goes away so I think it was just an issue with the version that was posted before.

Thanks again for the help and anyone that comes across this just disregard what I said in my earlier post and get the latest version of Silverfish using Oijkn's link.
ShyvHX
#18 Posted : Tuesday, December 1, 2015 7:53:33 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: SUceava

Was thanked: 2 time(s) in 1 post(s)
Since version 4.7.0 im getting these errors. Also the externbot directory doesnt have silver.exe or settings.txt and starting the bot doesnt run that silverfish console.



So whats wrong?
Is it normal that I dont have silver.exe or settings.txt and starting the bot doesnt run that silverfish console?
copperman2
#19 Posted : Monday, March 21, 2016 9:11:53 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 5
Location: TH

How can I compile silverfish?
What programs to compile silverfish?
What files to compile silverfish?
Can you zip silverfish(ready to use) and upload? Why don't you?
JoyAdmin
#20 Posted : Monday, March 21, 2016 9:58:04 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,845

Thanks: 805 times
Was thanked: 4538 time(s) in 1636 post(s)
https://www.visualstudio.com/

Just choose free version to download.
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.229 seconds.