(Solved)boost::filesystem::path codecvt to wstring: error

Place to get help with not working mods / modding interface.
Minuit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Feb 19, 2016 8:18 pm
Contact:

(Solved)boost::filesystem::path codecvt to wstring: error

Post by Minuit »

Hi guy's

I add more equipment for my game but I don't understand this problem. if I change the file of icon and start the game, this message appears " boost::filesystem::path codecvt to wstring: error"

For exemple :

Code: Select all

data:extend(
{
{
    type = "technology",
    name = "advanced-electronics-3",
	icon = "__base__/graphics/icons/processing-unit.png",
    effects =
    {
      {
        type = "unlock-recipe",
        recipe = "processing-unit-or"
      },
        },
    prerequisites = { "advanced-material-processing-2", "advanced-electronics-2"},
    unit =
    {
      count = 60,
      ingredients = {{"science-pack-1", 1},{"science-pack-2", 1},{"science-pack-3", 1}},
      time = 10
    },
    order = "c-c-c"
  },
  }
  )
the game works

But if I change the icon's File

Code: Select all

data:extend(
{
{
    type = "technology",
    name = "advanced-electronics-3",
	icon = "__Equipement_avancé__/graphics/icons/processing-unit.png",
    effects =
    {
      {
        type = "unlock-recipe",
        recipe = "processing-unit-or"
      },
        },
    prerequisites = { "advanced-material-processing-2", "advanced-electronics-2"},
    unit =
    {
      count = 60,
      ingredients = {{"science-pack-1", 1},{"science-pack-2", 1},{"science-pack-3", 1}},
      time = 10
    },
    order = "c-c-c"
  },
  }
  )
Error.

But the file is placed well

If you can help me plz

Thanks you for your time.
Last edited by Minuit on Sat Feb 20, 2016 8:43 pm, edited 1 time in total.
VirBinarus
Burner Inserter
Burner Inserter
Posts: 15
Joined: Mon Feb 15, 2016 9:44 pm
Contact:

Re: boost::filesystem::path codecvt to wstring: error

Post by VirBinarus »

1. check all your folders are named correctly

2.
a. What does the info.json look like?
b. What's the folder name for your mod?
orzelek
Smart Inserter
Smart Inserter
Posts: 3924
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: boost::filesystem::path codecvt to wstring: error

Post by orzelek »

You are putting special character in path name - the e with dash. Game might not like it since it's an unicode character that won't convert to wstring.
Minuit
Burner Inserter
Burner Inserter
Posts: 5
Joined: Fri Feb 19, 2016 8:18 pm
Contact:

Re: boost::filesystem::path codecvt to wstring: error

Post by Minuit »

Thanks for answer.

It's spécial character. But that worked very well to it. Strange

Thanks again
Post Reply

Return to “Modding help”