Page 1 of 1

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

Posted: Sat Feb 20, 2016 6:17 pm
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.

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

Posted: Sat Feb 20, 2016 6:57 pm
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?

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

Posted: Sat Feb 20, 2016 6:59 pm
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.

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

Posted: Sat Feb 20, 2016 8:42 pm
by Minuit
Thanks for answer.

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

Thanks again