Can anyone check the code of the story bit "Cyber War"

  • We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Lycrist Katkiller

Colonel
26 Badges
Feb 9, 2017
980
4
  • Crusader Kings II: Charlemagne
  • Crusader Kings II
  • Europa Universalis IV
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Legacy of Rome
  • Imperator: Rome Sign Up
  • Surviving Mars: First Colony Edition
  • Crusader Kings II: Holy Fury
  • Surviving Mars: First Colony Edition
  • Surviving Mars: Digital Deluxe Edition
  • Crusader Kings II: Jade Dragon
  • Surviving Mars
  • Crusader Kings II: Monks and Mystics
  • Crusader Kings II: Reapers Due
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
Hello.
I had the event called Cyber War:

Cyber WarAt least 2< -40None
  1. No need, just hinder their production. (Rival Colony loses advanced resources)
  2. Share the story with Earth. (Rival Colony loses Colonists and Funding, -30 Standing with all Rival Colonies)
  3. Warn them - this could be embarrassing for us all. (+35 Standing with the Rival Colony)
  4. Anyone up for some good old blackmailing? ($1000M Funding, -50 Standing with the Rival Colony)

I chose option 4 and while I lost standing with the colony of Japan I never received the funding for blackmailing them.
Can anyone check the code of the story bit and see if there's any bug?

The event seems to be missing in the only source I know :-(
 
Last edited:
They don't include dlc code on git, you need to decompile to get access to it.

It looks like you should receive it, and I just tried it and got the money.

Ok. Thanks so far. Great help. I decompiled gagarin and found the .lua, but it's mostly jibberish lol

I mean, it says "RewardFunding<blackmail>" which seems correct but I did not receive the funding, might be a bug I guess.

How did you force the event to trigger though?
 
ECM mod>menu>debug>story bits>test story bit.

I use hpk.exe with the --fix-lua-files flag and unluac to decompile (or did you mean in the sense, you don't do much lua).

I see. I didn't know there was a mod to test story bits.

I used hpk.exe with --fix-lua-files, too, but half the content of the .lua files i get is jibberish

Code:
for %%g in (*.hpk) do mkdir %%~ng
for %%g in (*.hpk) do hpk.exe extract --fix-lua-files "%%g" "%%~ng"
@echo All Done!
pause

from the part that i can read, it seems to be correct though
 
I see. I didn't know there was a mod to test story bits.
I originally made it for cheating, but it's turned more into a mod for debugging mods and the game itself ;)