Page 1 of 1

[MOD 0.12.x] Assembler Light

Posted: Sun Dec 13, 2015 11:25 pm
by obstinate
Type: Mod
Name: Assembler Light
Description: Adds a light to the front of active assemblers.
License: MIT License
Version: 0.0.1
Release: 2015-12-13
Tested-With-Factorio-Version: 0.12.20
Category: Convenience
Tags: graphic, utility
Download-Url: https://github.com/jaguilar/Factorio-As ... _0.0.2.zip
Website: https://github.com/jaguilar/Factorio-Assembler-Light
License
Long description
Pictures
Version history

Re: [MOD 0.12.x] Assembler Light

Posted: Wed Dec 16, 2015 2:02 pm
by ssilk
Why is this in gameplay-changes?
Moved to non-changing. :)

Re: [MOD 0.12.x] Assembler Light

Posted: Sat Apr 09, 2016 1:36 pm
by BlackHat
I love this mod. But have one small issue.

IF you put Modules in it (ie Assembler 3 with 4 modules) it covers the indicator light.

Can the location of the light be tweaked to be a little lower so its not covered by the Modules when they are inserted?

Re: [MOD 0.12.x] Assembler Light

Posted: Mon Apr 11, 2016 9:58 am
by Speadge
whith having 4 modules i still see the light below the modules.

what do u expect? make a pic :)

Re: [MOD 0.12.x] Assembler Light

Posted: Tue Apr 12, 2016 3:45 pm
by BlackHat
Ok, with 4 modules only about 40-50% of the indicator light is covered. (making it harder to see)
BUT if you only put 3 Modules in it, it covers about 75% of the indicator light.

AND, if its 3 green Efficiency 3 modules, because of the similar color, I cant tell if its running unless I zoom way in to spot the edge of the indicator below the module.

My question remains, Can the indicator light be moved slightly so its not being covered by modules when they are inserted in the Assembly machines.

Re: [MOD 0.12.x] Assembler Light

Posted: Wed Apr 13, 2016 3:12 am
by obstinate
It could definitely be moved . . . but I'm a bit lazy to do it. If you want to take a crack at it, you can see how the lights are made on the factory sprites. Send me updated images and I'll put them in. :P

Re: [MOD 0.12.x] Assembler Light

Posted: Wed Apr 13, 2016 11:22 am
by BlackHat
Oh, I was hoping the position could be adjust by tweaking some value in the lua file.

I did not realize the sprites would need to be rebuilt to adjust the location. :(

Oh will. Thanks for the info.

Re: [MOD 0.12.x] Assembler Light

Posted: Wed Apr 13, 2016 12:33 pm
by BlackHat
Ok, it did not make sense to me that you needed to change the sprites to adjust the position. and when I looked at the indicator light sprite, it did not look like you could move it.

So I started playing around with the values in the lua, trying to figure out what did what and restarting the game after every change. and found that it looks like

Code: Select all

shift = { .50, 1.0 }
is the variable that changes the position of the light.

By changing it from " .50, 1.0 " to " .75, 1.15 " for each of the 3 assemblers

Code: Select all

shift = { .75, 1.15 }
it relocated the light to the right and down.

(FIRST = Origional Location, SECOND = New Location, Third = New Location with Modules installed)
Post.jpg
Post.jpg (102.67 KiB) Viewed 18724 times

Re: [MOD 0.12.x] Assembler Light

Posted: Fri Apr 15, 2016 2:30 am
by obstinate
Sorry, I had totally forgotten that's how I did it. Since it's so easy to fix, I did so. I tagged release 0.0.2. I've tested it briefly on my own factorio and it seems to work fine. Please check the updated link. (Thanks for the contribution!)

Re: [MOD 0.12.x] Assembler Light

Posted: Fri Apr 15, 2016 6:42 pm
by SilentSean
Great mod, being able to see when assemblers are actually active makes some thing so much easier to diagnose

Re: [MOD 0.12.x] Assembler Light

Posted: Tue Apr 26, 2016 4:37 pm
by Roktaal
By adding

Code: Select all

light = {intensity = 1, size = 6, shift = { .75, 1.15 }}
to the end of each, you can make it glow as well

Image

Re: [MOD 0.12.x] Assembler Light

Posted: Fri Apr 29, 2016 8:47 pm
by obstinate
Fascinating. I'm not sure that's a good fit for this mod but it sure is nifty. Thanks for sharing.

Re: [MOD 0.12.x] Assembler Light

Posted: Sun May 01, 2016 12:01 am
by Smoovious
If it is going to have a small light glow (and probably a smaller radius and not as bright... perhaps use a directional light like the head-/flash-light), perhaps make it more green to match the color of the assembler light.

-- Smoov

Re: [MOD 0.12.x] Assembler Light

Posted: Wed May 18, 2016 5:13 pm
by Jackalope_Gaming
Obstinate, I made a pull request for you on the Github that nearly halves the number of lines of code needed to make the mod work and would enable supporting other mods much more easily if you'd like.

Re: [MOD 0.12.x] Assembler Light

Posted: Tue Jun 07, 2016 5:16 pm
by steinio
Does this mod add an accu to the assemblers?

It would be ok, but just curious because i have 5MJ accu capacity without accus ;)

Re: [MOD 0.12.x] Assembler Light

Posted: Sat Jun 11, 2016 10:33 pm
by Jackalope_Gaming
Nope, this mod only adds an animation to the front of assemblers. No accumulators.

Re: [MOD 0.12.x] Assembler Light

Posted: Sun Aug 28, 2016 3:23 pm
by Thomasnotused
I updated this to 0.14 because I got bored, enjoy!

https://www.dropbox.com/s/t84bgmjbbpde9 ... 3.zip?dl=1