Page 1 of 1

[0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Mon Dec 29, 2014 6:08 am
by AlyxDeLunar
Sure, we have a graphical representation of pollution, but who has time to look at different shades of red on a map? Not I! I'm an industrialist, and I function off cold, hard numbers.
So here is a work in progress mod to get just that! Ever curious about exactly how much pollution you have? This is for you!

Features:
-Placeholder graphics! A completely ripoff of the small electric pole! I'm a programmer, not a graphic artist!
-A custom GUI to display a numerical count of your pollution.
-Pollution Reader can be crafted at start, found in the logistics crafting section

Pollution Count is taken from an average value of the recorded pollution from every Pollution Reader you have placed.
Pollution Readers make use of the game.getpollution function, meaning they just read the pollution value in the chunk they reside in.

I only had to reload the game about 60 times while working this out (my second mod!), but I've got it all working stable. Probably. But I know it won't work for multiplayer, as I'm using game.player
Example
ToDo:
-Make it work in multiplayer
-Use something better than the base game electric pole for the graphic
-Other things to make it better?

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Mon Dec 29, 2014 8:34 am
by Degraine
I can think of a couple of things you could do. Truncate that number, for starters. I'm sure two decimal places will be sufficient.

Another thing would be to allow separate counters, rather than having a single readout for every pollution reader in the world, so you can monitor the dirtiness of separate facilities.

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Mon Dec 29, 2014 8:48 pm
by YuokiTani
What should i say ... i like the idea :) - and maybe this helps you a bit ...

ImageImageImage

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Mon Dec 29, 2014 10:10 pm
by AlyxDeLunar
Whoa! Where did you get those sprites? I can use them, really?

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Tue Dec 30, 2014 8:34 am
by AlyxDeLunar
Alright, I worked on it more today and got it to a point I feel it is mostly complete!
Link is here: https://forums.factorio.com/forum/vie ... f=14&t=769

I appreciate the feedback!
And YuokiTani, I really appreciate the sprites! It took a lot of stress off making the mod look nice :)

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Tue Dec 30, 2014 4:03 pm
by YuokiTani
AlyxDeLunar wrote:Whoa! Where did you get those sprites? I can use them, really?
this i have made around october 2012 for an other project, but this project dies around spring 2013 after about 9 years - if i remember correct. so i have many models/gfx laying around my harddrive waiting for a new good use.

i my old project/game this was a bomb-targeting-device you can see a bigger image below
view 2012 version
some overhaul and now its a peaceful device :)

Re: [0.11.x](0.5.0)[WIP] Record Your Stuff!

Posted: Tue Dec 30, 2014 9:34 pm
by AlyxDeLunar
Haha, well....bomb targeting device, pollution reader, what's the difference anyhow?
It looks pretty cool regardless, I am really impressed! And thanks again for letting me use it :)