Non Powered Lights

Started by vagineer1, October 27, 2014, 01:04:13 PM

Previous topic - Next topic

christhekiller


skullywag

ok im done.

Added a simple torch (hence the name of the mod) burns for 5 ingame minutes (18000 ticks) then burns out, even lets off a puff of smoke as it dies. Takes 1 log to build.

I might add animation (its not hard) also might add more smoke puffs as it burns. Could also lower the light emitted as it dies. All possible but for now this works as a temporary lightsource.

Grab from my github:

https://github.com/Skullywag/Rimworld-Mods (Download Zip right column, youll get all my mods but just turn on what you need)

You can also edit the burntime in the xml def. (cuz im nice like that).

Ill stick a thread up for it shortly.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Timber

Quote from: skullywag on October 27, 2014, 07:31:27 PM
ok im done.

Added a simple torch (hence the name of the mod) burns for 5 ingame minutes (18000 ticks) then burns out, even lets off a puff of smoke as it dies. Takes 1 log to build.

I might add animation (its not hard) also might add more smoke puffs as it burns. Could also lower the light emitted as it dies. All possible but for now this works as a temporary lightsource.

Grab from my github:

https://github.com/Skullywag/Rimworld-Mods (Download Zip right column, youll get all my mods but just turn on what you need)

You can also edit the burntime in the xml def. (cuz im nice like that).

Ill stick a thread up for it shortly.

That's stellar man! Please, please do an animated version, I'm just learning C# (coming from java) and I'd love to see a demo of an animated building for my own mod.

Also, offtopic maybe you have some tips on how to learn the ropes quickly. I'm trying to go through the Rimworld library but it's a bit slow :/
I ask not for a lighter burden but for broader shoulders. -Atlas

skullywag

Unfortunately i dont have any tips bar start small and build up (use others code but dont just copy and paste, read it and try to understand how its held together). Im a programmer by trade so I know a bit already.

Feel free to yank my code in any of my mods and if theres anything you dont get PM me.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Jaxxa

Quote from: Timber on October 27, 2014, 07:51:43 PM
That's stellar man! Please, please do an animated version, I'm just learning C# (coming from java) and I'd love to see a demo of an animated building for my own mod.

Also, offtopic maybe you have some tips on how to learn the ropes quickly. I'm trying to go through the Rimworld library but it's a bit slow :/

It looks like Haplo's "How to make an .dll-mod" contains an animated building.

https://ludeon.com/forums/index.php?topic=3408.0

skullywag

Of course the wind turbine! I yoinked his code from that for my wind turbine in MorePower as it was way more elegant than mine.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

vagineer1

Quote from: skullywag on October 27, 2014, 07:31:27 PM
ok im done.

Added a simple torch (hence the name of the mod) burns for 5 ingame minutes (18000 ticks) then burns out, even lets off a puff of smoke as it dies. Takes 1 log to build.

I might add animation (its not hard) also might add more smoke puffs as it burns. Could also lower the light emitted as it dies. All possible but for now this works as a temporary lightsource.

Grab from my github:

https://github.com/Skullywag/Rimworld-Mods (Download Zip right column, youll get all my mods but just turn on what you need)

You can also edit the burntime in the xml def. (cuz im nice like that).

Ill stick a thread up for it shortly.

Thanks Skully. Can the torch be refuelled or do we have to build it again? Either way thank you so much.
You see this tank?

This tank is the epitome of "I'm going to destroy you"


This tank can make Chuck norris cry.

All hail the Takemikazuchi.

vagineer1

Quote from: skullywag on October 28, 2014, 03:34:27 AM
Of course the wind turbine! I yoinked his code from that for my wind turbine in MorePower as it was way more elegant than mine.

I believe I have found a bug in the Simple Torch mod. It shows up in my game, I can build it, yet when it's construction is finished it does not show up where it has been built, nothing is in it's construction square after being built.
You see this tank?

This tank is the epitome of "I'm going to destroy you"


This tank can make Chuck norris cry.

All hail the Takemikazuchi.

skullywag

Rilly? Ill look into ot when i get home i probably guffed something up. Anyone else getting this, can you try placing it in dev mode for me?

And to the question about fuel. The torch dies out and has to be rebuilt, i felt this was easier to handle and made more sense than hauling more wood to a torch.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

skullywag

I just retested the mod it seems to work fine, are you using any other mods? any errors in the dev console?
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

vagineer1

Quote from: skullywag on October 28, 2014, 07:01:24 PM
I just retested the mod it seems to work fine, are you using any other mods? any errors in the dev console?

Just Glassworks and a few of your mods (Including Simple Torch)
You see this tank?

This tank is the epitome of "I'm going to destroy you"


This tank can make Chuck norris cry.

All hail the Takemikazuchi.