View Issue Details

IDProjectCategoryLast Update
0021666AI War 2Bug - GameplayOct 1, 2019 2:47 pm
ReporterZeusAlmighty Assigned ToBadgerBadger  
Severitymajor 
Status resolvedResolutionfixed 
Product Version0.890 Lighting and Darkness 
Fixed in Version0.894 Desaturation And Cross-Planet Move Orders 
Summary0021666: Bug Report: Technology Hack spends science to complete
DescriptionBackground/Problem:

My flagship was unable to iniate a technology hack, given a notification essentially saying "not enough science." I was able to then do the hack when my science was sufficient, the hack proceded typically, but the hack then consumed my science as an additional cost. My tech increased, but it not required next tier spending so I could no longer to afford to mark up.

Expectation--the hack costs no science and does not impact the cost to upgrade through traditional science spending

Save is right before hack
TagsNo tags attached.

Activities

ZeusAlmighty

Sep 20, 2019 1:13 am

manager  

BadgerBadger

Sep 20, 2019 1:34 am

manager   ~0053194

Sigh. So the hack calls
                    Hacker.PlanetFaction.Faction.UnlockTech(tech, false, Context);

Which must decrease the science total inside it. Whoops. I need to either make a flag to pass in that says "Don't charge me science, actually" or query for the science cost before the UnlockTech call and then increase the cience afterwards.

I'm not going to have any time till monday, so Chris if you're going to push between now and then, feel free to fix. Otherwise I'll get to it after the weekend.

wm46

Sep 20, 2019 9:43 am

reporter   ~0053198

I can fix it, but I don't think I'll be back from work until 6 est, which means the patch will be pushed by then.

wm46

Sep 20, 2019 9:09 pm

reporter   ~0053208

I've made the changes to the unlock tech function by adding "bool ThisUnlockSpendsScience" and made sure to change the Game Command and tech sidebar too. That makes me think, should this hack be sending a game command or should it do things itself?

BadgerBadger

Sep 20, 2019 11:55 pm

manager   ~0053209

I'm pretty sure the Hack code there is done from the main sim thread, so it should be fine.

BadgerBadger

Oct 1, 2019 2:47 pm

manager   ~0053369

Weapon Master fixed this one

Issue History

Date Modified Username Field Change
Sep 20, 2019 1:13 am ZeusAlmighty New Issue
Sep 20, 2019 1:13 am ZeusAlmighty File Added: technology hack start.save
Sep 20, 2019 1:13 am ZeusAlmighty File Added: AIWar2 9_19_2019 9_50_58 PM.png
Sep 20, 2019 1:34 am BadgerBadger Note Added: 0053194
Sep 20, 2019 9:43 am wm46 Note Added: 0053198
Sep 20, 2019 9:09 pm wm46 Note Added: 0053208
Sep 20, 2019 11:55 pm BadgerBadger Note Added: 0053209
Oct 1, 2019 2:47 pm BadgerBadger Assigned To => BadgerBadger
Oct 1, 2019 2:47 pm BadgerBadger Status new => resolved
Oct 1, 2019 2:47 pm BadgerBadger Resolution open => fixed
Oct 1, 2019 2:47 pm BadgerBadger Fixed in Version => 0.894 Desaturation And Cross-Planet Move Orders
Oct 1, 2019 2:47 pm BadgerBadger Note Added: 0053369