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

Notification

Icon
Error

silverfish - configurable
__inline
#1 Posted : Wednesday, February 11, 2015 8:30:47 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 2

Thanks: 1 times
Was thanked: 5 time(s) in 2 post(s)
## UPDATE : 12/02/2015
I changed some things here and there and added more options to the configuration-file

Changelog:

  • Some cleanup for reducing I/O-Overhead in my own functions
  • Added option for concedeLvl, bigMobAttack (see param.txt) and aggroboarder (see param.txt)
  • Some code-cleanup in the original silverfish for more readability and small performance-improvements


If you want I can add some diff-files to see the changes I made.
##

Hey,

for testing purposes (i.e. which behavior fits best on my decks) I extended the silverfish A.I a little bit.
With this version of the bot some specific values are saved in a config file, which will be loaded from silverfish. The big benefit is, that you don't have to recompile the whole bot, if you wanna mess around with it.

All values are saved under cfg/settings.json.

Some information: If you set all behaviors to true, just one will be activated:
Code:

var cfg = silver.ConfigReader.Read ("cfg/settings.json");

if(cfg.BehaviorControl)
{
        behave = new BehaviorControl();
}
else if(cfg.BehaviorRush)
{
	behave = new BehaviorRush ();
}
else
{
	behave = new BehaviorMana ();
}

Control > Rush > Mana, which means if you set Control and Rush to true, only Control will be activated.

The source-code is under ./src/* (additional depencies are just the Newtonsoft.Json.dll for deserialization of the json file).
Refer to /src/ai/Settings.cs for the description of the specific values!

DL-Link: https://dl.dropboxuserco...04833/silver_ex_pub.zip
Just put all files under %PATH_TO_HEARTHRANGER%/ExternBot/silverfish/

Have a nice day!
~__inline
4 users thanked __inline for this useful post.
JoyAdmin on 2/12/2015(UTC), Yoin on 2/12/2015(UTC), masterwai on 2/12/2015(UTC), smee on 2/13/2015(UTC)
JoyAdmin
#2 Posted : Thursday, February 12, 2015 8:16:37 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,848

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
There are many,many configurable parameters in silverfish, keep up the good work ! =)
1 user thanked JoyAdmin for this useful post.
__inline on 2/12/2015(UTC)
__inline
#3 Posted : Thursday, February 12, 2015 8:59:50 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 2

Thanks: 1 times
Was thanked: 5 time(s) in 2 post(s)
When I have more free-time, I want to extend some stuff or add some features.
1 user thanked __inline for this useful post.
smee on 2/13/2015(UTC)
smee
#4 Posted : Friday, February 13, 2015 2:08:31 PM(UTC)
Rank: Member

Groups: Registered
Posts: 26

Thanks: 16 times
Was thanked: 5 time(s) in 1 post(s)
Dude, that's badass. Thanks!
Have a great day :)
JoyAdmin
#6 Posted : Friday, February 13, 2015 11:52:40 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,848

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
silverfish works as embeded module in hearthranger, there is no standalone silver.exe process.
1 user thanked JoyAdmin for this useful post.
masterwai on 2/14/2015(UTC)
oijkn
#8 Posted : Saturday, February 14, 2015 12:47:58 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)
Hi,

I tried your modified AI and for my part i prefer the basic AI from HR than the silverfish. But it's only my opinion...

I hope you can upgrade this AI on future !

Regards.
Yoin
#9 Posted : Sunday, February 15, 2015 5:01:24 AM(UTC)

Rank: Advanced Member

Groups: Registered, HSModerator
Posts: 583
Location: Spain

Thanks: 118 times
Was thanked: 218 time(s) in 108 post(s)
IMHO, this AI woulnt be used until that the target untargeteable minions bug wild be fixed.

http://www.hearthranger....thranger-Seems-Fine.aspx
My Control rules: here.
ssaydam719
#10 Posted : Tuesday, March 3, 2015 11:36:14 AM(UTC)
Rank: Member

Groups: Registered
Posts: 10
Location: Turkey

Was thanked: 1 time(s) in 1 post(s)
this configurable parameters better than orginal :) . Good work
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.116 seconds.