Azgaar / Fantasy-Map-Generator

Web application generating interactive and highly customizable maps
https://azgaar.github.io/Fantasy-Map-Generator
Other
4.61k stars 664 forks source link

Burg Population By Group #1047

Closed GeckoNickDeveloper closed 8 months ago

GeckoNickDeveloper commented 8 months ago

Problem The process of edit the population of burgs is kinda tedious 'cause it has to be done one by one.

Solution Add a column in the csv file that explicit the group of the burg, allowing a faster modification of a large number of burgs in terms of population through the usage of softwares like Google Sheet or Excel.

Alternatives Define a minimum and maximum number of population per group and add a button to regenerate populations within this range

DeuzeksMcKinna commented 8 months ago

If you want to raise/lower population of all burgs, go to Tools>Units and slide the Urbanization Rate up or down.

Azgaar commented 8 months ago

We don't really have groups other that cities and towns, but we may have them in the furure.

DeuzeksMcKinna commented 8 months ago

In the meantime, if you want to apply a multiplier to burgs of a certain culture, state, etc. you could do so from the Console with the following code pack.burgs.forEach(b => { if (!b.i) return; // b.state also works for this if (b.culture = 1) { // change the 1.5 multiplier to your desired one b.population = b.population * 1.5; // For example, increase population by 50%

// You can perform any other population modification here

} });

This only requires using the console first with pack.cultures or pack.states to find out the numeric ID of the aggrupation that you want to alter.

GeckoNickDeveloper commented 8 months ago

Thank you for your fast reply.

Could I suggest in that case to add a subdivision between towns, cities and capitals as 3 distinct groups?

Il mar 27 feb 2024, 20:40 Azgaar @.***> ha scritto:

We don't really have groups other that cities and towns, but we may have them in the furure.

— Reply to this email directly, view it on GitHub https://github.com/Azgaar/Fantasy-Map-Generator/issues/1047#issuecomment-1967467113, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSP5WFMZ2IIU77KJILW2ODYVYZCTAVCNFSM6AAAAABD4WTVZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRXGQ3DOMJRGM . You are receiving this because you authored the thread.Message ID: @.***>

DeuzeksMcKinna commented 8 months ago

Cities already is the group for Capitals, every other burg is in the "Towns" group.

Azgaar commented 8 months ago

Yes, and there is a plan to add villages as a separate group. Maybe even make this group configurable and based on population.

DeuzeksMcKinna commented 8 months ago

Yes, and there is a plan to add villages as a separate group. Maybe even make this group configurable and based on population.

That reminds me I haven't worked on the Mass-Burg-Assign code!

GeckoNickDeveloper commented 8 months ago

Just sayin', you guys seems extremely dedicated! I hope live will treat you well <3

Il mer 28 feb 2024, 23:10 DeuzeksMcKinna @.***> ha scritto:

Yes, and there is a plan to add villages as a separate group. Maybe even make this group configurable and based on population.

That reminds me I haven't worked on the Mass-Burg-Assign code!

— Reply to this email directly, view it on GitHub https://github.com/Azgaar/Fantasy-Map-Generator/issues/1047#issuecomment-1970003778, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALSP5WCXY3ALUIAPEEXOWYDYV6TMFAVCNFSM6AAAAABD4WTVZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZQGAYDGNZXHA . You are receiving this because you authored the thread.Message ID: @.***>

Azgaar commented 8 months ago

Covered in Trello tickets: