Skip to main content

Lists on lists on lists

It's alive!! Well the very infantile functional proof of concept for the idea that is the procedural generation for the universe of Galliventurer is alive.



Above is the result of a single generation run at the time of writing (hopefully I remember to save a copy of that function and update the call as it will soon be changing). It's quite rudimental at the moment. A random selection from a few different lists without any inter-relational weights or even the possibility of child entities. At the moment (again time of writing) the objects "discovered" aren't even saved! 😱




In the very near future however, the procedural generation will have a few steps. The beginning being a random selection of an entity type. This very top level will consist of:
  • System
  • Stars
    • dwarfs
    • giants
    • neutron
  • Planets
  • Asteroids
  • Comets
  • Junk/debris
  • Substellar object (brown dwarf)
  • Moons
  • Nebula
From this first there will be a series of inner lists for each type. Certain types will have a children property with a range of likely amounts of sub entities. For example a system would have a children range of 1 to 3 stars; a star would have a children range of 2 to 100 which could be planets, asteroids, junk, substellar, etc and so on. The beauty is, everything is referential. An object has it's properties: uid, data (colour, size, life time, etc), optionally (dependent on type) an array of children uids, and physical mapping through an array of vector coordinates in neighbours & possibly game centric id references like shaders, terrain maps, etc.

Side note, we're currently moving house, not by choice but hey that's the rental life. Whilst packing up my office area, I stumbled upon my raspberry pi. I think I've found my first embarking pylon. Periodically & regularly running the procedural generation and punching it to the database!

Comments

Popular posts from this blog

Knowledge is Power - Society is Weak

Never more true than today, knowledge is power. Or more aptly in today's world the ability to provide & control the flow of knowledge is power. Recently there's been several large course corrections occur, several years too late but hey, better late than never as the saying goes. This highlights one of the biggest and most major flaws with the way we consume information on the internet. Social media, for good and for ill, is now a major source of information and "news" for millions of people across the planet. There are countless examples of the way that misinformation & even disinformation is created, spread and broadcast across the web. None more prevalent & far reaching than social media. Social media disarms in a way that in person discussion & social interaction previously couldn't. If you heard a story in person that even one or two people could corroborate it would be easy to accept as true, or just as easily refuted by the same small number...

Burnout

After several months of near constant stressing about work deadlines & topsy-turvy project schedules, I finally came to terms with the fact that I had burnout.  Recently I've had a growing sense of apathy & general disinterest towards work. A deep feeling that I can only describe as a feeling of treading water, with no hope of forward momentum or progression any time soon. The tasks I've been managing & proceeding through are important but feel very much in the auditing, administrative & policy driven arena; rather than the outcomes focused problem solving I'm more accustomed to.  It's odd however, until I recently took some much needed time away from work that I realised I was also in the grips of the complete antithesis state of full blown obsession/worry over messages, deadlines & not blocking other people's progress by them waiting on something from me. Subconsciously I think this last stems from having a burning need for this process to fina...

Embracing the Procedural

It's been a hot minute since I've had a chance to update regarding Galliventurer. After playing around a fair bit with backends and trying a number of different nosql databases, one of which has been running pretty solidly with the existing discovered universe of a few hundred (470+ presently) stars and their 24k+ satellite bodies. Things are humming along quite nicely and there is even the beginning implementations of some actual game functionality, such as flying the (placeholder) ship through the universe in a soon to be released build! However there are several things that I hope to address in the very near future: 1. Procedural Universe Whilst the universe is cool and all at the moment, it's very rudimentary and no where near close to the level of detail I'm after. From researching a bit, I've found everything that currently takes up space in the database can actually reside solely in an algorithm and follow the whole procedural generation a lot more faithfully...