Trouble with Bohm event

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
Kossatx
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 144
Joined: Wed Nov 27, 2013 3:27 pm

Trouble with Bohm event

Post by Kossatx » Fri Aug 23, 2019 2:15 pm

Hi! As Robotron already knows, I play a mod over POTZBLITZ MOD, the best mod ever made. Last night the game crashed when Bohm event was triggered. This is the error output:

Code: Select all

[23:25:22][12068]+++++++++++++++++++++++++ event:Bohm
[23:25:22][12068]Bohm
[23:25:22][12068]+++++++++++++++++++++++++ event:secret
[23:25:22][12068]Bohm
[23:25:22][12068]game/game_research.lua:804(global UpdateUnit) game/game_research.lua:804: attempt to index local 'unit' (a nil value)
And this is the file refered:

Code: Select all

function UpdateUnit(unit, techs)
--LogUi("update start")
  -- copy unit techs
  if techs == nil then
    unit.luaData.unitTechs = utils.deepcopy(unit.faction.luaData.factionTechs)
  else
    unit.luaData.unitTechs = utils.deepcopy(techs)
  end

  --FIXME: unit must use icon at time of purchase, not latest one
  -- If faction has the unit type
  if unit.faction.luaData.unitLevel[unit.prototype.name] ~= nil then
    while unit.level < unit.faction.luaData.unitLevel[unit.prototype.name] do
      unit:Upgrade()
      EasterEgg_RedBaron(unit)
    end
  end
 -- LogUi("update end")
end
Any idea about how to fix it?

Robotron
Lieutenant Colonel - Panther D
Lieutenant Colonel - Panther D
Posts: 1247
Joined: Tue Nov 23, 2010 3:35 pm

Re: Trouble with Bohm event

Post by Robotron » Fri Aug 23, 2019 7:41 pm

You are lucky that the bug was not caused by your own modding or else I might not be able to help.

Thanks for reporting nonetheless.

Check the PotzBlitz thread for the update.
Slitherine's Commander the Great War on steroids: POTZBLITZ mod!
http://www.slitherine.com/forum/viewtopic.php?f=218&t=77884&p=662610#p662610

Kossatx
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 144
Joined: Wed Nov 27, 2013 3:27 pm

Re: Trouble with Bohm event

Post by Kossatx » Fri Aug 23, 2019 7:52 pm

I'm lucky 8)

Post Reply

Return to “Commander the Great War : Mods & Scenario Design”