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

Notification

Icon
Error

Errors using both Default AI and Silverfish
Shipitholla
#1 Posted : Monday, January 5, 2015 6:32:34 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 3

I've just successfully installed hearthranger and am attempting to get the AI to work and I consistently come across these two errors:

When using Silverfish:
TransitStateMachineFromIdle
use extern bot best move A.I. -- silver.dll
extern bot best move A.I. error occurred.
error: Object reference not set to an instance of an object.
Algorithm result :: None


When using the default AI (No matter what Ruleset):
TransitStateMachineFromPlayInGame
botplayer internal error: Object reference not set to an instance of an object
(and so it repeats constantly, even manually playing out the turn, hitting end turn and letting it continue and pausing/unpausing doesn't seem to help)

Anyone have any ideas as to what I need to do to set the Object reference?
And/or failing that what would I need to do to create a custom ruleset/A.I, as I'm interested in trying to help push decks/help Hearthranger play more competitively.
Much appreciated,
JoyAdmin
#2 Posted : Monday, January 5, 2015 12:40:08 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,848

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
Hi could you show me your deck card list ?

Can you change to other deck and try it again?

Kalith
#4 Posted : Monday, January 5, 2015 5:08:11 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 7
Location: Rochester, MN

Was thanked: 2 time(s) in 2 post(s)
Shipitholla;22341 wrote:

And/or failing that what would I need to do to create a custom ruleset/A.I, as I'm interested in trying to help push decks/help Hearthranger play more competitively.
Much appreciated,


Now with the silverfish hook, you can do any custom AI you want. Most of the AI magic is in the Playfield class combined with the AI class. There isn't much for interface documentation, but as far as I can tell, the entry point from HearthRanger is the OnQueryBestMove override.

The silverfish code is a bit hard to navigate, but you can either use the provided bridge code and hack around in there.
1 user thanked Kalith for this useful post.
JoyAdmin on 1/6/2015(UTC)
Shipitholla
#3 Posted : Monday, January 5, 2015 9:51:20 PM(UTC)
Rank: Newbie

Groups: Registered
Posts: 3

JoyAdmin;22350 wrote:
Hi could you show me your deck card list ?

Can you change to other deck and try it again?


I've used the bot with this decklist: (-1 Water Elemental +1 Loatheb)
http://www.hearthranger....-IMAGES-TO-EXPLAIN.aspx
As well as trying to use both a standard warlock zoo deck (no sea giant) and a basic hunter deck.
All have had the same issue, regardless of using Silverfish or the Default AI.
I followed the tutorial exactly and thought I had correctly installed everything, so unsure what's happened to cause this issue.

I'll attempt to install HR on another terminal and see if that solves this problem.
Thanks for the swift reply.

EDIT: Installed HR on another computer and whilst the default AI doesn't work Silverfish is now working, so that's a partial solution
JoyAdmin
#5 Posted : Tuesday, January 6, 2015 1:26:36 AM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,848

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
I'll be glad if you can tell me the result with a very basic deck and let bot play it in practice mode.

Or you can check the error log file under [log] directory, maybe there is clue I can follow.
Shipitholla
#6 Posted : Tuesday, January 6, 2015 8:14:52 AM(UTC)
Rank: Newbie

Groups: Registered
Posts: 3

JoyAdmin;22382 wrote:
I'll be glad if you can tell me the result with a very basic deck and let bot play it in practice mode.

Or you can check the error log file under [log] directory, maybe there is clue I can follow.

An all basic mage deck worked successfully, although the error recurred if I manually intervened to play a card.
JoyAdmin
#7 Posted : Tuesday, January 6, 2015 12:22:18 PM(UTC)
Rank: Administration

Groups: Administrators
Posts: 4,848

Thanks: 805 times
Was thanked: 4539 time(s) in 1637 post(s)
Maybe it's related with a special card in your deck, I will test with your deck again.
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.065 seconds.