Page 1 of 1

[0.9.8] give-item research modifier

Posted: Sun May 18, 2014 10:12 am
by drs9999
First it could be that I do not use it properly (but I am quiet sure I do), so here is a example:

Code: Select all

{
  type = "technology",
  name = "testResearch",
  icon = "__ExampleMod__/graphics/icons/foo.png",
  effects =
  {
    {
      type = "give-item",
      item = "raw-wood",
      count = 10
    },
    {
      type = "give-item",
      item = "wooden-chest",
      count = 10
    }
  },
  prerequisites = {},
  unit =
  {
    count = 50,
    ingredients =
    {
      {"science-pack-1", 2},
      {"science-pack-2", 2},
      {"science-pack-3", 1}
    },
    time = 30
  }
}
Game loads fine, but if you click on the research-icon it results in a CTD (Msg: call to empty boost::function)
My best guess is that there is a bug in the draw-method for the effect-icon(s).

Re: [0.9.8] give-item research modifier

Posted: Mon May 19, 2014 1:15 pm
by kovarex
This is known issue, these effects are used both in market and technology, and we just didn't implement the functionality for technology yet.

Re: [0.9.8] give-item research modifier

Posted: Sat May 31, 2014 5:50 pm
by slpwnd
Thanks for the report, this will be fixed for the 0.10.0.