Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Using generated json for fantasy demographic generator

A topic by omar-cheidde created Feb 03, 2022 Views: 612 Replies: 1
Viewing posts 1 to 2
(+1)

Hey Watabou, how are you?

I have created a non graphical demographics generator where you input main buildings/institutions you want in the city and the generator list all required buildings, people and occupations , as well as the city´s needed imports/exports. I would like to use the exported json to recreate the polygons and attribute the generated buildings to them. 

For instance, the user choses: 

  • Palace
  • Knightly Order (Medium)
  • Temple (Large)
  • Temple (Small)

The software generates a full list based on the given demographic recipe and selected buildings:

  • 105 small family homes
  • 8 guild forges
  • 6 blacksmiths
  • 4 taverns...

Imports [grain, wood, leather....]

Exports [weapons, armor, religious articles]

It is a bit more complicated than that but you get the idea ; )

The software would open your generated Json, recreate the polygons and measure them, and attribute them to the buildings based on the most suitable land area. When you mouse over your map, the info on the building would appear in unity.  The user workflow would be generate with your generator, import to unity and match to a generated settlement, auto link buildings and make adjustments by hand.

May I? Of course all my developments regarding this project would be open to you. I intend to start the implementation in March.

Thanks!

Developer

Hey!

Of course you may! The whole JSON export feature was initially implemented to enable using generated settlements by other software and only later was repurposed  for data exchange with the City Viewer. So yeah, it's a totally valid use case. Cheers!