I’ve read from a few people who’ve done similar sorts of things that the solution to this problem is to just have everything track everything to begin with. Hunger level, heart rate, mood, everything you can possibly think of to track, and then just have everything else inherit from that global class. A lot of the values will be zero for some objects, but that’s okay, after all a storage crate doesn’t need a mood, both at some point in the future maybe you want to add an emotional box, and your code will definitely handle it now. Otherwise you have to go back in and alter everything every time you make a slight change.
allo@sh.itjust.works 2 weeks ago
“Now, I understand why so few companies have attempted to develop a life simulation game. The challenge isn’t just additive the more you try to build—it’s exponential. At a certain point, finding bugs in this vast world we’ve created feels like playing tag with invisible ghosts.”
He’s not bragging; it’s honesty. I’m thankful he is sharing the experience. I know totally what he’s talking about. I remember trying to make a simulation of reality in the wc3 map editor in elementary school. Add the weather so the plants grow. Tie growth variables also in to deer eating them. wolves eat the deer. So everything needs hunger variables. But already we start having the ‘exponential growth’ he is talking about: because what about the Weather and the Deer? And the Weather and Wolves? Add aspect of the world for one type of object (weather for plants), and suddenly you have to figure out how or whether it relates to everything else you have (Deer and Wolves). Now let’s say we add villagers and Structures. Every time we add something, we have more nodes to consider the interrelations of.
It’s easy when there are few systems and few types of things (like a cardgame of creatures with atk and def), but it escalates quick and does exactly what he’s saying the more systems you try to accurately include and farther toward ‘full life sim’.
So im just a noob, but I see clearly this is what he is conveying to us. (probably cuz i tried a similar path in elementary school. if i remember correctly i ran in to this same issue, scale was too big too big project and i switched to something else)
echodot@feddit.uk 2 weeks ago
rhombus@sh.itjust.works 2 weeks ago
A more complicated but ultimately faster approach is using a structure like an Entity Component System. You build an entity (deer, person, plant) out of components that are just data (health, hunger, mood), and then each type of component has a corresponding system that updates all the components at once based on other values. It’s somewhat similar, but you save space on unnecessary components not being added, and it packs the data together in way that is faster for the computer to iterate through.
redhorsejacket@lemmy.world 2 weeks ago
shalafi@lemmy.world 2 weeks ago
LOL, forgot about that tacky bastard.
redhorsejacket@lemmy.world 2 weeks ago
He sucks, but it was such a good set-up for a shitty Dice Man style joke, I couldn’t resist.
Paradachshund@lemmy.today 2 weeks ago
Hey another kid who grew up wc3 modding! I did a ton of that too.
AmosBurton_ThatGuy@lemmy.ca 2 weeks ago
I made a tower defense map in the Starcraft map editor when I was a kid , but it was based off of anti air rather than anti ground like the other TD maps at the time. I got it working pretty damn well (at least IMO) but I didn’t have internet at the time and that was on my dads work laptop so it sadly got lost.
I don’t think I could recreate that now if I tried, crazy what you can do as a bored kid with too much time.
Paradachshund@lemmy.today 2 weeks ago
That’s cool! I made tons of stuff but most of it never got finished or released cause I just kept starting the next thing. Probably the wildest thing I ever made was a prototype for a sidescrolling platformer in wc3. It had keyboard movement and ability usage, jumping, a heart counter in the top left, enemies, powerups… It was kind of janky but it worked surprisingly well considering what I built it in.
AmosBurton_ThatGuy@lemmy.ca 2 weeks ago
God damn, that sounds awesome! Those map editors were seriously impressive for their time, so many cool things you could do with them. I also liked making “campaign” maps but with hero units and harder AI (SC base ai was too easy but you could set it to be harder through the map editor) or those “maze” maps where you have to keep the units you start out with alive through a bunch of different encounters.
Ahh good times!
allo@sh.itjust.works 2 weeks ago
o the memories lol.
<3 both of u. I was Pixie_Tails on US east and west and in one of the big mapmaking guilds on east. I look back and think wc3 was the mentally healthiest part of my childhood. My most fun thing was a game like dota but with a huge natural map and a minute at the start for everyone to choose their castle locations. Like you could choose to be on a hill, along a river, etc. Then there were diff biomes to choose your hero from and the hero choices spawned like pkmn and there were rares. and choosing base unit types. then it became like dota where units spawned at castles and attackmoved to other castles. Was epic.
My weakness was unit and ability balancing since it didnt interest me so i never did it.
anyway, we thought up and made these as kids. i think that’s the coolest thing
Sonotsugipaa@lemmy.dbzer0.com 2 weeks ago
T̸h̶e̴ ̷f̵o̶g̴ ̷w̴a̷s̴ ̸h̸u̵n̵g̴r̸y̸,̸ ̶i̴t̷ ̵a̸t̶e̵ ̵t̷h̵e̶ ̸w̴o̸l̷v̷e̸s̴
allo@sh.itjust.works 2 weeks ago
that would be a super cool touch in a game
Secret of the Haunted Forest
Player eventually realizes the reason for the unexplained corpses is the hunger mechanic applies to the fog too.
snugglesthefalse@sh.itjust.works 2 weeks ago
I’m just reminded of the fog men in kenshi