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

Place to get help with not working mods / modding interface.
SimpleGiant
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 05, 2016 4:14 pm
Contact:

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

Post 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},
      },
  }
})	
keyboardhack
Filter Inserter
Filter Inserter
Posts: 478
Joined: Sat Aug 23, 2014 11:43 pm
Contact:

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

Post by keyboardhack »

Remove the version number from the path.

Code: Select all

"__CivilMod__/graphics/icons/icon-civiliancenter.png",
Waste of bytes : P
SimpleGiant
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Mar 05, 2016 4:14 pm
Contact:

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

Post 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?
keyboardhack
Filter Inserter
Filter Inserter
Posts: 478
Joined: Sat Aug 23, 2014 11:43 pm
Contact:

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

Post 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.
Waste of bytes : P
Post Reply

Return to “Modding help”