netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Bug when stealing Fetal AI in Archives

Open alcohollywood opened this issue 9 years ago • 4 comments

Please describe the circumstances of your error here.

Playing Fisk against Chronos; bug crops up when I try to steal Fetal AI (at the "pay 2" stage) from Archives for game point. Screenshot attached.

image

Stack Trace:

Error do choice Yes #error {
 :cause nil
 :via
 [{:type java.lang.NullPointerException
   :message nil
   :at [clojure.lang.Numbers ops "Numbers.java" 1013]}]
 :trace
 [[clojure.lang.Numbers ops "Numbers.java" 1013]
  [clojure.lang.Numbers gt "Numbers.java" 229]
  [clojure.lang.Numbers gt "Numbers.java" 3864]
  [game.core$steal$fn__6497 invoke "runs.clj" 46]
  [game.core$do_effect invokeStatic "abilities.clj" 260]
  [game.core$do_effect invoke "abilities.clj" 256]
  [game.core$do_ability invokeStatic "abilities.clj" 241]
  [game.core$do_ability invoke "abilities.clj" 214]
  [game.core$resolve_ability_eid invokeStatic "abilities.clj" 136]
  [game.core$resolve_ability_eid invoke "abilities.clj" 113]
  [game.core$resolve_ability invokeStatic "abilities.clj" 111]
  [game.core$resolve_ability invoke "abilities.clj" 38]
  [game.core$trigger_event_simult invokeStatic "events.clj" 177]
  [game.core$trigger_event_simult doInvoke "events.clj" 139]
  [clojure.lang.RestFn invoke "RestFn.java" 533]
  [game.core$steal invokeStatic "runs.clj" 42]
  [game.core$steal invoke "runs.clj" 36]
  [game.core$resolve_steal$fn__6511 invoke "runs.clj" 72]
  [game.core$effect_completed invokeStatic "events.clj" 244]
  [game.core$effect_completed invoke "events.clj" 240]
  [game.core$resolve_steal_events invokeStatic "runs.clj" 63]
  [game.core$resolve_steal_events invoke "runs.clj" 58]
  [game.core$resolve_steal invokeStatic "runs.clj" 70]
  [game.core$resolve_steal invoke "runs.clj" 65]
  [game.core$access_agenda$fn__6548 invoke "runs.clj" 163]
  [game.core$do_effect invokeStatic "abilities.clj" 260]
  [game.core$do_effect invoke "abilities.clj" 256]
  [game.core$do_ability invokeStatic "abilities.clj" 241]
  [game.core$do_ability invoke "abilities.clj" 214]
  [game.core$resolve_ability_eid invokeStatic "abilities.clj" 136]
  [game.core$resolve_ability_eid invoke "abilities.clj" 113]
  [game.core$resolve_ability invokeStatic "abilities.clj" 111]
  [game.core$resolve_ability invoke "abilities.clj" 38]
  [game.core$resolve_ability invokeStatic "abilities.clj" 109]
  [game.core$resolve_ability invoke "abilities.clj" 38]
  [game.core$optional_ability$fn__6008 invoke "abilities.clj" 285]
  [game.core$resolve_prompt invokeStatic "actions.clj" 146]
  [game.core$resolve_prompt invoke "actions.clj" 116]
  [game.main$handle_do invokeStatic "main.clj" 77]
  [game.main$handle_do invoke "main.clj" 74]
  [game.main$handle_command invokeStatic "main.clj" 145]
  [game.main$handle_command invoke "main.clj" 134]
  [game.main$run$fn__27971 invoke "main.clj" 180]
  [game.main$run invokeStatic "main.clj" 170]
  [game.main$run invoke "main.clj" 164]
  [game.main$_main$fn__28006 invoke "main.clj" 234]
  [clojure.lang.AFn run "AFn.java" 22]
  [java.lang.Thread run "Thread.java" 745]]}

alcohollywood avatar Mar 15 '17 18:03 alcohollywood

Can't reproduce. Were either of you experiencing any latency? The line where this bombed is the place in steal where the message is determining whether to spit out "agenda point" (was worth 1) or "agenda points" (2 or more). For some reason (get-agenda-points state :runner c) just above returned something non-numeric, so the greater-than comparison failed.

JoelCFC25 avatar Mar 15 '17 18:03 JoelCFC25

Far as I know, there was no latency. I wasn't experiencing any lag at least.

On Wed, Mar 15, 2017, 1:31 PM Joel Koepp [email protected] wrote:

Can't reproduce. Were either of you experiencing any latency? The line where this bombed is the place in steal where the message is determining whether to spit out "agenda point" (was worth 1) or "agenda points" (2 or more). For some reason (get-agenda-points state :runner c) just above returned something non-numeric, so the greater-than comparison failed.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mtgred/netrunner/issues/2426#issuecomment-286837483, or mute the thread https://github.com/notifications/unsubscribe-auth/AMvCLVZtQObH1eSJHTJwmsnjnhG4nJaQks5rmC56gaJpZM4MeVxx .

alcohollywood avatar Mar 15 '17 18:03 alcohollywood

I do see a blacklist rezzed... i wonder

danhut avatar Mar 16 '17 21:03 danhut

Reproduced... Blacklist issue

Error do choice nil #error { :cause nil :via [{:type java.lang.NullPointerException :message nil :at [clojure.lang.Numbers ops Numbers.java 1013]}] :trace [[clojure.lang.Numbers ops Numbers.java 1013] [clojure.lang.Numbers gt Numbers.java 229] [clojure.lang.Numbers gt Numbers.java 3864] [game.core$steal$fn__6590 invoke runs.clj 46] [game.core$do_effect invokeStatic abilities.clj 260] [game.core$do_effect invoke abilities.clj 256] [game.core$do_ability invokeStatic abilities.clj 241] [game.core$do_ability invoke abilities.clj 214] [game.core$resolve_ability_eid invokeStatic abilities.clj 136] [game.core$resolve_ability_eid invoke abilities.clj 113]

(get-in @state [:runner :locked]) => {:discard (462)} (get-in @state [:corp :locked]) => nil

danhut avatar Mar 17 '17 10:03 danhut