c# - Invalid Path while processing Font with MGCB -


i'm playing around monogame , can't add font. when adding font monogame pipeline tool can't build project anymore.

visual studio stopps following error:

der befehl ""c:\program files (x86)\msbuild\monogame\v3.0\tools\mgcb.exe" /@:"c:\dev\mini\mini\content\content.mgcb" /platform:windows /outputdir:"c:\dev\mini\mini\content\bin\windows" /intermediatedir:"c:\dev\mini\mini\content\obj\windows" /quiet" wurde mit dem code 1 beendet. 'fontdescriptionprocessor' had unexpected

(sorry, german, think can understand problem ; ) )

when execute error throwing command more helping error:

c:\dev\mini\mini\content>"c:\program files (x86)\msbuild\monogame\v3.0\tools\mgcb.exe" /@:"c:\dev\mini\mini\content\content.mgcb" /platform:windows /outputdir:"c:\dev\mini\mini\content\bin\windows" /intermediatedir:"c:\dev\mini\mini\content\obj\windows" build started 07.08.2015 23:15:43

skipping c:/dev/mini/mini/content/game/character.png skipping c:/dev/mini/mini/content/splashscreen/splashscreengame.png skipping c:/dev/mini/mini/content/game/background.png c:/dev/mini/mini/content/fonts/default.spritefont c:/dev/mini/mini/content/fonts/default.spritefont: error: processor 'fontdescriptionprocessor' had unexpected failure! system.argumentexception: illegales zeichen im pfad. bei system.io.path.checkinvalidpathchars(string path, boolean checkadditional) bei system.io.path.ispathrooted(string path)
bei microsoft.xna.framework.content.pipeline.processors.fontdescriptionprocessor.findfontfilefromfontname(string fontname, string fontdirectory) bei microsoft.xna.framework.content.pipeline.processors.fontdescriptionprocessor.process(fontdescription input, contentprocessorcontext context) bei microsoft.xna.framework.content.pipeline.contentprocessor`2.microsoft.xna.framework.content.pipeline.icontentprocessor.process(object input, contentprocessorcontext context) bei monogame.framework.content.pipeline.builder.pipelinemanager.processcontent(pipelinebuildevent pipelineevent)skipping c:/dev/mini/mini/content/splashscreen/splashscreen.xml skipping c:/dev/mini/mini/content/game/game.xml

build 3 succeeded, 1 failed.

time elapsed 00:00:00.19.

i understand, path c:/dev/mini/mini/content/fonts/default.spritefont invalid, don't see invalid characters. .spritefont file generated monogame tool , not imported. did miss something?

i on windows 10, monogame pipeline tool on version 3.5.0.465 , mgcb.exe has version 3.5.0.465, too.

edit: when checking path myself, looks ok , moving whole project other harddrive doesn't @ all.

edit2: okey. looks not font path. path loaded registry. line registrykey.getvalue(current).tostring(); inside findfontfilefromfontname method returns arial.ttf\00\0\0\0\0\0. , update question or make answer.

after testing around came solution (or found problem...): font paths in registry corrupted. fonts uppercase date value throwing errors. when encounter similar problem take in registry under "software\\microsoft\\windows nt\\currentversion\\fonts"l, check chosen font or change different one. hope solution you, too. (and when know, why registry data got corrupted, please let me know.)

enter image description here


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -