rambling

HNNNG I AM GOING TO DIE FROM THIS FEATURE CREEP

Was my reaction when I conceived of and blocked in an economics simulator into my engine… I still can’t generate useful terrain but once I get around that hurdle and implement a city generator I’ll have a game with a sprawling dynamic economy as in real life where the AI and players can either make or break it (and fix it, no matter how severe a depression is ultimately temporary; mind the game could end up in a state of widespread famine where every NPC or the vast majority die from starvation, the player doesn’t need to eat except in hardcore mode because a lot of players, me included, find such things tedious and annoying).

Well, rather the blocked out system needs to be fleshed out, currently it’s just a bunch of void interfaces. I’ll determine the area of famine based on cities, with an area around that city. then I’ll poll trade-routes for that city to see if the city can get food, assuming the city is willing to help them if they can’t afford it or if they can somehow obtain it through other peaceful or non-peaceful means. if the city can’t it will attempt other solutions and eventually work it out or die out, thus leaving a ghost town that might then be inhabited by bandits, monsters, or other things. this can all be done on non-loaded cities, merely through how the simulation state machine works, when it’s not actively doing something useful it can simulate the state of cities further out.

Essentially this allows me to solve the issue of a player hanging around an area plagued by widespread famine and then walk into an area that’s sprawling with life just a couple chunks away, instead this system allows me to keep a vast array of important events that can be super-simulated as the player approaches and determine the state of the area long before it’s within player view. in short, a sophisticated economic and environmental simulation, and I still haven’t figured out how to simulate water yet… and somehow this simulation depends on water simulation as that influences famine and drought. Did I mention that I specialize in framework code and not necessarily interactive code?

This framework does of course still need to be called and actively running, currently it’s some empty classes, some semi-built classes and a bit of pseudo code to serve as a reminder, but the actual important details are already blocked out. I can imagine this game being a huge failure because people will invariably find it far too complex, especially when they end up crashing the economy 😛
But guess what?

I care not for the success of the game, nor how long it takes. I’m making a game I want to play.

The simulation is at a few levels, per region level (essentially country), city level, city block level (for things such as gang wars, police raids, fires etc), per building level, per individual level.
These levels base entirely on how far away the player is, any of these have some parameters stored and are super-simulated as the player gets within reasonable range. It’s all a beautifully intricate hack, as in it’s not a real simulation, it only appears to be at surface value but to be fair, it doesn’t need to be anything else. It needs to be interactive, seem like a living sprawling world, yet be able to run on modest systems.

For a true simulation you can only have two of those.
You can have a living sprawling world that runs on a modest system but good luck getting it interactive (if real simulation, that is) or you could have an interactive living and sprawling world but that shit won’t run on any consumer end system.
You could also have an interactive simulation that runs on modest systems but it’s not going to feature living, sprawling economies at a massive super-global scale.

Really though, the job of a video game designer is to craft an illusion that suspends disbelief, the model doesn’t have to accurately represent real life; it only has to seem like it actively represents real life. A beautifully intricate multi-layered illusion it is, but it is nonetheless an illusion. An illusion you cannot even see at this stage because the framework code isn’t done, the back-end isn’t done and the front-end is a bunch of disjointed voxels because simplex hurts my brain.

Essentially what I’m conveying is that I don’t understand prioritization, good software design (too much feature creep) or how to actually develop software in a way that doesn’t suck… except I do, I just apparently don’t consider such things while coding.
More importantly I just felt I had to ramble about something and this was the first thing at hand, it’s very likely that the paragraphs are entirely disjointed, I didn’t proof read it, only spell checked it and checked the grammar.
I err… suppose you enjoyed the read if you got this far, have a nice day or something; I’m going to do something else now.

[insert witty title here]

Really more of a screenshot dump than a real post with a lot of text content.
nootextors
That’s some fine programmer art right there, I got the noise function working (this being a 32^3 chunk of the world just ripped out and displayed on its own, the triangle count is ludicrous because I haven’t implemented greedy meshing yet (because I haven’t implemented texture atlas loading or shader parsing yet, both of which are required to do greedy meshing and more importantly texturing said meshes)

interestingly the scaled octave noise is not significantly slower than raw noise (I expected it to be, but it was surprisingly insignificant compared to the rest of the chunk building), a potential optimization to that would be to generate the noise once per chunk and then just sample it once per block instead of generating samples on the fly per block, although it would spike memory usage and only slightly improve speed since this process is really rather prone to be optimized by the compiler and branch prediction would work very well on it since the algorithm runs thousands of times per chunk.

Anywho, there was something else I wanted to ramble about but I’ve since forgotten what that was merely through the process of writing this post so I’ll just dump this here, apologize for the lack of incoherency and then go to sleep.

… on that matter, I don’t know how featured images work… will it insert the image twice into the post since I already attached it? will it only show on the front page? I don’t know, but I will soon enough (by the time you’re reading this I’ll already know… so this paragraph is rather pointless), either way I won’t bother editing it if the results aren’t as expected.

EDIT: it did what I expected, well you’ll just have to deal with the same image showing up twice.

What is the meaning of tater tots, curtains and a chocolate rainbow?

If you didn’t figure it out by now my posts aren’t coherent, proofread or sensical in any way, shape or form (see the title). That doesn’t really matter as this is merely a sorting tool for my disorganized mind (if it can even be called that).

As per protocols here’s another post (in haiku form because why not):

I have naught to write
Except maybe about C++’s SDL.
Oh the pain, my brain!

On another note…
Of all minecraft structures
The best is a road.

I have lost my mind.
Implying I once had one
But that was a lie.

Posting in haiku
It is rather impromptu.
Also pretty hard.

This makes me weary
Why then do I continue?
Beats me, tee hee hee.

</sarcasm>
That’s really an awful lot of haiku writing (something I haven’t done since fifth grade, mind), the joke got rather boring after a while.
The last one might even be abysmal, who the hell rhymes “Beats me” with “tee hee hee”? (someone who needs to figure out a way to get the last line to 5 syllables while keeping the general theme of the specific haiku, that’s who).

I don’t even know what I should write about anyway, I could rant about why I don’t like SDL but that’s most likely not of interest to anyone and even if it was I don’t really care.
iterators don’t behave.
vectors also misbehave.
Or maybe I’m just an incompetent programmer, either way I’m fed up for today and I should just go to bed instead of writing a blog post at 3:43 am.

Ciao.

[sticky] I should write something…

Oh right, I’ll just make a sticky post for the top page to welcome people to my humble abode!
There. With that out of the way I can get to rambling about random things (hence the title), I actually rather enjoy fish. I mean it’s not as good as broccoli or minecraft but it’s neat.