Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

Hi Oleg, love all of your work! I've been happily using MFCG + Viewer + misc. subcomponent generators from many years now on a succession of heavy-duty MacBook Pros, but for the last few months I've been unable to create any new City Generator ~json (for any size City) that will render correctly in Viewer. Each time I try, the Viewer only renders the streets.  Here's a sample of the error out from Chrome Developer console:

-----

Uncaught TypeError: Cannot read properties of undefined (reading '0')

    at ia.addWall (ToyTown2.js:1007:149)

    at Pf.add (ToyTown2.js:1023:328)

    at Ka.reset (ToyTown2.js:987:72)

    at Va.load (ToyTown2.js:1058:237)

    at af.callback (ToyTown2.js:1057:490)

    at Of.__dispatchEvent (ToyTown2.js:51:511)

    at Of.dispatchEvent (ToyTown2.js:49:212)

    at Of.openFileDialog_onComplete (ToyTown2.js:2257:453)

    at c.onload (ToyTown2.js:2257:358)

-----

Current env: MBP M2 (2023), MacOS 15.7.3 (24G419)

Chrome Version 145.0.7632.160 (Official Build) (arm64)

-----

Any suggestions that you could offer for working around this error would be greatly appreciated!

TV

(+1)

Update: I figured out that the problem arises if the new/newly relocated (?) Settings > *Windows* option is toggled on. Since this is toggled on by default, it wasn't immediately obvious. 

So MFCG outputs cannot be rendered by City Viewer if (building) windows are represented, at least on one MacOS/Chrome combination...

Hi! For me the viewer works fine with all configuration combinations incl. "Windows" (macOS + Chrome). Occasionally, I receive similar reports, but I don't know what causes the problem and it looks like the viewer still works for most users... A couple of question:

  • Do the built-in maps display normally?
  • Have you tried exports from other generators (VG, Urban Places)?