Page 1 of 1

Path error/first time mod/.png does not match any mod.

Posted: Sat Mar 05, 2016 4:27 pm
by SimpleGiant
Hello this is my first time modding a game, but I use unity 3d a lot.

My mod, I want to add a civilian building into the game so I can complete a scenario. Scenario being: taking over an abandoned city/stronghold.

Problem, I have an error that says : Path__CivilMod_0.1.1__/graphics/entity/civilian-center.png does not match any mod.

Will someone please help me? I am also having a hard time finding proper documentation on how to use the classes.

Code: Select all

data:extend({
  {
      type = "container",
      name = "civilian-center",
      icon = "__CivilMod_0.1.1__/graphics/icons/icon-civiliancenter.png",
      flags = {"placeable-neutral", "placeable-player", "player-creation"},
      minable = {mining_time = 2, result = "civilian-center"},
      max_health = 350,
      corpse = "medium-remnants",
	  dying_explosion = "medium-explosion",
	  open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
	  close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
	  vehicle_impact_sound = { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
	  resistances =
	  {
		  {
			 type = "fire",
			 percent = 90
		  }
	  },
	  collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
      selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
	  fast_replaceable_group = "container",
	  inventory_size = 5,
      picture = 
	  {
        filename = "__CivilMod_0.1.1__/graphics/entity/civilian-center.png",
        priority = "high",
        width = 200,
        height = 200,
		shift = {1.0, -0.3},
      },
  }
})	

Re: Path error/first time mod/.png does not match any mod.

Posted: Sat Mar 05, 2016 4:30 pm
by keyboardhack
Remove the version number from the path.

Code: Select all

"__CivilMod__/graphics/icons/icon-civiliancenter.png",

Re: Path error/first time mod/.png does not match any mod.

Posted: Sat Mar 05, 2016 6:01 pm
by SimpleGiant
Thank you, worked great after i changed that.

Can you tell me why it wants the version number in the name, but not when i am calling paths?

Re: Path error/first time mod/.png does not match any mod.

Posted: Sat Mar 05, 2016 6:43 pm
by keyboardhack
SimpleGiant wrote:Thank you, worked great after i changed that.

Can you tell me why it wants the version number in the name, but not when i am calling paths?

It would be a pain to change the path every time you update the mod.