.. Hello? Anyone here? No?
Then I guess it’s just me on the job today. Everyone else is still on vacation.
I suppose I could be persuaded to share a couple tidbits in a short post. You guys have been terribly patient over the holidays so I guess you’ve earned it.
(And this is what I get for falling to The Plague and taking weirdly offset vacation time. On the up side, I used a pitcher of week-old coffee to  anoint myself lead programmer and used my new-found sense of intellectual invincibility to write some absolutely fascinating Lua script to convert our Lua entity definitions to XML readable by the UI system so that we can display commodities in UI widgets. I’m hyperventilating just writing about that one.)
(No, but seriously: Regular expressions! Oh man.)
What else? Oh, designing UI and creating UI assets. Management. Working on contracts. Not a lot you want to see just yet — but Micah did fix a longstanding bug that’s been confounding my development of forests, and I can show that!
Forests Oh Man
Here’s how to works: game objects in Clockwork Empires can be asked to wake(), which means their update function is called on every game cycle. You don’t want every tree, rock, and blade of grass in the game to do this because that bogs the game down with unneeded processing. You do want all characters, for example, to do this though because they’ve got interesting things to do, thoughts to have, and fellow colonists to get angry at.
The problem with wake() is that sleep() didn’t work (due, apparently to one misplaced logical operator a couple thousand lines deep in the codebase). So if you wake a tree, god help you if you wanted to put it back to sleep. This lead to sequences like this:
So this doesn’t happen anymore. Thanks Micah!
With that done, we here at Gaslamp Games hope you have a safe & lovely New Year and a totally awesome 2014!
(And you can bloody well bet I’m taking tomorrow off. By which I mean today, the day this post appears, because I wrote this yesterday. Through time. It’s really a lot like that episode of Star Trek where they find Data’s head buried under San Francisco, except in this Nicholas is the alien with the soul stealing machine — and by soul stealing machine I mean Brian Hook’s massive collection of whisky. Which was awesome. Then Daniel is Worf or something.)
In conclusion, thanks for following us through 2013 — the next year is going to be exciting!
It is well known that the Lesser-Feathered Dodo can — and should — be reduced to a Perfectly Safe zeppelin fuel additive.
You could probably use a controlled version of this glitch as a consequence of fooling with things beyond the ken of man
I would think it would make more sense as Dark Magicks for the native sorcerors.
Yes! That dude’s a genius. Murder trees, please.
So how do inanimate objects wake up, if I leave one tree in the forest will it eventually regrow the forest? Or do need some special tree tonic for that, preferably one made from human remains?
Happy new year!
> convert our Lua entity definitions to XML readable by the UI system so that we can display commodities in UI widgets
From my complete ignorance: wouldn’t it have been easier to make the UI system understand Lua?
Happy new year too !
To answer your question basically : XML is a way to structure text data, which makes it very easy to be understood by machine or human.
Lua is not a data structure but a scripting language, that is executed and not read.
I’m sure the tech wiz at Gaslamp games will find many things to say about my novice explanation, but at least you get the big picture đŸ˜›
Not parsing XML with regex, now, are you? Bad idea to incite anger in The Infernal Entities Which Do Not Allow XML To Be Parsed With Regex.
Oh man, there’s a horror movie buried in this bug.
Pingback: Looking Forward 2014. » The Scientific Gamer The Scientific Gamer