• Visit Rebornbuddy
  • Can't edit Silverfish, lots of unrelated compile errors

    Discussion in 'Community Developer Forum' started by Gorm, Sep 8, 2017.

    1. Gorm

      Gorm Member

      Joined:
      Jun 11, 2012
      Messages:
      234
      Likes Received:
      2
      Trophy Points:
      18
      The bot doesn't seem to value vicious fledgling more than a regular 3/3 creature.

      So I tried adding this to the getPlayfieldValue in BehaviorControl.cs

      Code:
                      if(m.handcard.card.name == CardDB.cardName.viciousfledgling)
                          retval += 1;
      
      Unfortunately when I restart the bot, it spews out a bunch of unrelated compile errors. What's going on? Is Silverfish not being maintained anymore?

      Code:
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\DefaultRoutine.cs(75,18) : warning CS0219: The variable 'concede' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\DefaultRoutine.cs(590,27) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\DefaultRoutine.cs(635,24) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\DefaultRoutine.cs(1145,27) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\DefaultRoutine.cs(1161,27) : warning CS1998: This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\BoardTester.cs(107,20) : warning CS0219: The variable 'omd' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\BoardTester.cs(108,20) : warning CS0219: The variable 'emd' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\CardDB.cs(7502,17) : warning CS0219: The variable 'de' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\ComboBreaker.cs(67,21) : warning CS0219: The variable 'i' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\Mulligan.cs(118,30) : warning CS0168: The variable 'ee' is declared but never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\Mulligan.cs(150,34) : warning CS0168: The variable 'eee' is declared but never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(172,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(615,22) : warning CS0219: The variable 'frothingberserkerEnemy' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(616,22) : warning CS0219: The variable 'frothingberserkerOwn' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(617,22) : warning CS0219: The variable 'grimpatronEnemy' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(618,22) : warning CS0219: The variable 'grimpatronOwn' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1042,80) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1043,72) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1044,71) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1064,76) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1065,76) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1115,78) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1116,75) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1117,81) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1210,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1390,25) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1711,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1720,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1728,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1733,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1738,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(1747,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(2159,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(3088,76) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(3166,55) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\PenalityManager.cs(3167,64) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\Playfield.cs(1615,34) : warning CS0219: The variable 'dontkill' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\Playfield.cs(6438,18) : warning CS0219: The variable 'cthunonboard' is assigned but its value is never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\RulesEngine.cs(1117,30) : warning CS0168: The variable 'ee' is declared but never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\RulesEngine.cs(1995,21) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\ai\Settings.cs(157,30) : warning CS0168: The variable 'e' is declared but never used
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\behavior\control\BehaviorControl.cs(129,44) : error CS0103: The name 'Card' does not exist in the current context
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\behavior\control\BehaviorControl.cs(368,13) : warning CS0162: Unreachable code detected
      Compiler Error: c:\Users\User\Desktop\hb\Routines\DefaultRoutine\Silverfish\penalties\Pen_DREAM_05.cs(31,13) : warning CS0162: Unreachable code detected
      Reloading AssemblyLoader<Triton.Bot.IPlugin> - Initializing
      Current routine set to NullRoutine.
      Compiler Error: c:\Users\User\Desktop\hb\Plugins\QuestPlus\QuestPlus.cs(16,7) : error CS0246: The type or namespace name 'HREngine' could not be found (are you missing a using directive or an assembly reference?)
      Hmm never mind I had a typo in the code. Is it possible to compile silverfish as an external exe still so I can use visual studio? Or is it not safe anymore?
       
      Last edited: Sep 8, 2017

    Share This Page