Python Forum
SagaSim [ongoing project] - short summary
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SagaSim [ongoing project] - short summary
#1
Hi all. :)

I'm creating in my free time a simulation that was inspired by multiple sources (thelifeengine, crusader king II/III, dwarf fortress or life in general to name a few). General gist of it is the simulation of life for every person as well as social interaction and general prediction of how things could transpire on a semi large scale (I’m aiming for population between 30k-50k after this point it’s just too much data floating around and python starts to rapidly slow down :( ). However with how the things did develop I’m focused now more on singular person and their relations in family. Since the name SagaSim. Simulation starts in the year 500 and one tick takes 1 year (possible in the future I will divide it to 52 week).

Here is a small list (circa 80%) of features developed to this point (from basic to semi advanced systems, a lot still in the plan phase):
- Trait genetic inheritance (hair/eye colour, lifespan etc but also partly character’s traits (lazy, wrathful etc) ) with chance of mutation
- Character trait system + positive and negative expectations from spouse
- Dynamic relation with spouse (based on traits and life events e.g. birth increases relation)
- Settlements work economy system with upgradeable buildings
- People’s migration system
- Life Event system based on character’s traits or other events (e.g. death during labour or death from the old age or negligence)
- Families Branches creation during migration
- Wealth inheritance
- Family tree generator: both up (to ancestors) and down (to descendants)
- Interactive inspector screen
- Simulation time speed control
- Basic criminal system based on character’s traits (plans for rival/enemies etc)
- Spouse’s name change based on culture variable
- Basic tax system (plans for complex eco system based on demand and supply etc
- Basic accommodation system (people live in houses and have to pay upkeep)
- Fertility system based on personal fertility, traits and food surplus in town
- Starting simulation variable parameters
- Name’s generator based on Culture and/or independent list provided as simulation variable

Main sim loop is running on basic python with few minor libraries (since I like to develop from scratch most of the times) and GUI is developed using PyGame (again I try to do things from scratch were I can).
Right now it’s only a simulation but I’ve plans to implement system of game event (just like in paradox games) for the interaction with the player. But that is the future.

For now, I would like to ask for any feedback (in general, about particular systems, ideas, implementation, gui design, how to improve things etc) . I would be very glad to know your thoughts. :) (I attach some example: 1) singular person inspector screen 2) family tree 3) settlement screen)
Link to the GIT if anyone wants to try it out. Beware code is a huge mess. :P

Spacebar pauses the simulation and by default it will end (and close) after year 1200 or after “q” is pressed. More info in Help button. Enjoy :)

Attached Files

Thumbnail(s)
           
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020