SITREP #5 - UI, app system, citizen attributes (Patreon)
Videos
Content
DATABASE & PLUGINS INTERACTION
I found a more efficient way of handling the database aspect and I redid the whole logic I understand now why after so many years there are so few to almost none game implementation in VAM, figuring out how stuff works and adapting to it was a headache. Now I think I have all the backbones I needed and it's back to more fun stuff like actual game functionality. The systems I created to allow me to code in a way that's more familiar to me:
- persistent database: seamless updates; tables with ids and key value pairs; queries
- ephemeral database/session variables: allows me to save temporary variables and share them across my plugins
- lots of helper functions to update vam stuff dynamically
- dynamic functions with parameters to call from anywhere in vam
- custom lists with pagination and actions
APP SYSTEM
I spent a bit of time thinking about a different and more efficient way of implementing features and this is the solution I found. I created from the ground up a modular system I can use to list and interact with the game. "Apps" are sort of like dynamic plugins for elements of the Aeternum game, I didn't want to name them plugins to avoid confusion with vam plugins. This system helps:
- create lists of VAM stuff: selecting hairstyle, clothing, people
- create lists of Aeternum stuff like items, cards, selection screens and more
- create dynamic "pages" for the UI like help, home, end turn screen, settings, etc.
- implement features related to citizens and cities, interactions, minigames
ATTRIBUTES & PERCEPTION
Citizens now have 20 main attributes. Attributes will work along the Psychological and Physical profiles, I'll get into those another time. The values range from 1 to 20 in a similar fashion to Football Manager. Internal values are actually 0-99 but the player will see them on a smaller scale with a probability distribution. Most citizens have average attributes and it's more difficult to distinguish who's better at something. I didn't want this to be a spreadsheet simulator.. I added also a perception system which filters the value seen for the attributes based on who sees it. If your city has a low perception value (bad intel, wrong people in the wrong position) then you'll see less accurate values. The perception will be worse for citizens that are not at your court. At the lowest perception level almost all values will be binary, you'll only know that somebody is good or bad at something but have no clue how good or how bad at all. This also influences the AI and their decisions. When the AI picks/compares individuals they'll only have only as good intel as their perception allows them to.
GENDERS
Added male and futa procedural citizens to the game
UI
The way I see this going right now is something like in the video. The left panel is used for the selected item info panel similar to Crusder Kings. It will hold:
- information and interaction about the selected Citizen
- information and interaction about the selected City
- information and interaction about the selected Building
The center panel will hold mostly lists and text information. The right panel is an extra information and actions helper for the center panel. When editing stuff, something like in the attached image will load in front of the panels
Files
Previews only