nov 11 dev blog

Started by Endoric, November 11, 2014, 03:01:51 PM

Previous topic - Next topic

Endoric

Nov 11  "Refactored the minification/installation system. Instead of the installed building containing the minified source item, the minified item contains the building.'

Is this like doctor who stuff?  its bigger on the inside?  (That's what i tell all the girls)

Matthiasagreen

I think it is more a behind the scenes change, though I could be wrong. When you build a sculpture, is it a regular sculpture with the capability of becoming a min version that can be moved around and transported, or do you build a mini version of the item that has the capability of becoming a larger version when it is installed?
Hi, my name is Matthias and I am a Rimworld Addict. It has been five seconds since my last fix...

Shinzy

Quote from: Endoric on November 11, 2014, 03:01:51 PM
Nov 11  "Refactored the minification/installation system. Instead of the installed building containing the minified source item, the minified item contains the building.'

Is this like doctor who stuff?  its bigger on the inside?  (That's what i tell all the girls)

I'm assuming that's related to the installing/uninstalling process of the statues

Edit: Or exactly what mr green said above me =P I should have read that one first

Matthiasagreen

Quote from: Shinzy on November 11, 2014, 03:08:45 PM
Edit: Or exactly what mr green said above me =P I should have read that one first

That's why the forum warns you when someone posts something while you are writing. ;)
Hi, my name is Matthias and I am a Rimworld Addict. It has been five seconds since my last fix...

Shinzy

Quote from: Matthiasagreen on November 11, 2014, 03:12:02 PM
Quote from: Shinzy on November 11, 2014, 03:08:45 PM
Edit: Or exactly what mr green said above me =P I should have read that one first

That's why the forum warns you when someone posts something while you are writing. ;)
I didn't get the warning so I guess you posted it exactly or just second before the moment I clicked 'Quote' =P

Matthiasagreen

Wow, i have never seen that happen. We are mentally in sync, you and I shinzy even though you are a few mental levels above me, o wise Shinzy
Hi, my name is Matthias and I am a Rimworld Addict. It has been five seconds since my last fix...

Shinzy

Quote from: Matthiasagreen on November 11, 2014, 03:42:06 PMo wise Shinzy

That's a string of words you never hear! *beams with pride like the sun*

oh.. wait what exactly do you mean by mental? *very suspicious*

Tynan

It's just code refactoring.

I realized that it makes more sense for the minified Thing to contain the building, rather than the other way around. This is because the building has more complex interfaces and outer behavior than the minified item, which is really just a dumb object that can be carried around and installed. In addition, it opens up the possibility of very easily minifying existing buildings like beds, tables, etc, without changing their code at all. All the complexities involved in minification can be concentrated in the MinifiedThing class, leaving the actual building code to just do what the actual building does.

There are actually theoretically other ways to do this overall, but I'm still choosing to model the minified object as a dumb common item with a the building data stored inside. It them has label/graphics/etc functions overridden to grab data from the inner building.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

StorymasterQ

Awesome, so now we can move objects without having to destroy it first?

Woo, flat pack Rimworld, here we come!
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. - Myself

The dubious quotes list is now public. See it here

Endoric


Tynan

Quote from: StorymasterQ on November 11, 2014, 08:27:56 PM
Awesome, so now we can move objects without having to destroy it first?

Woo, flat pack Rimworld, here we come!

Not necessarily for all items.
Tynan Sylvester - @TynanSylvester - Tynan's Blog

Haplo

Will it also hold relative positions?
Then we can make transportable tents:
You carry a small builder, install it and voila:
four walls, a door, a bed, a spaceship reactor ;)

StorymasterQ

Quote from: Haplo on November 12, 2014, 12:48:24 AM
Will it also hold relative positions?
Then we can make transportable tents:
You carry a small builder, install it and voila:
four walls, a door, a bed, a spaceship reactor ;)

o.O that sounds like a tent from Harry Potter.

"I love magic."
I like how this game can result in quotes that would be quite unnerving when said in public, out of context. - Myself

The dubious quotes list is now public. See it here

Thorin

I want a Tardis (or two  8) ) can't never have enough storage space around.
"Life is not a journey to the grave with the intention of arriving safely in a well preserved body, but rather to skid in broadside, totally worn out & proclaiming "WOW, what a ride!"

NoImageAvailable

Tents, beds, pff. What is really significant about this technology is now we can have movable tripod-mounted heavy machine guns. :D
"The power of friendship destroyed the jellyfish."