[MOD 0.13] Smart Display - circuit informations display

Topics and discussion about specific mods
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

[MOD 0.13] Smart Display - circuit informations display

Post by binbinhfr » Sat Apr 30, 2016 4:12 pm

Infos
  • Type: Mod
  • Name: SmartDisplay
  • Description: Adds an item that can display numbers from the circuit network, with several formating options.
  • Tested-With-Factorio-Version: 0.13.0
  • Locale: english, french, german
  • Multiplayer compatible: tested on a headless server...
  • Tags: Circuit Network, display
  • License: You are free to use and distribute this mod and also to modify it for personal use, but not to release a modified version without permission (unless visibly not maintained anymore).
  • Portal download : https://mods.factorio.com/mods/binbinhfr/SmartDisplay
smartdisplay-screencopy01.jpg
smartdisplay-screencopy01.jpg (15.44 KiB) Viewed 14558 times
Description
Download
For Factorio 0.13.X :
Please now use the portal for downloads (see link above or use ingame mod install/update), as I won't update both downloads links here anymore.
Last edited by binbinhfr on Fri Aug 05, 2016 5:35 pm, edited 39 times in total.
My mods on the Factorio Mod Portal :geek:

judos
Filter Inserter
Filter Inserter
Posts: 255
Joined: Mon Dec 08, 2014 11:17 am
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by judos » Tue May 03, 2016 10:52 pm

Oh wow, I didn't know it's possible to actually read the signal value. No that I saw your implementation I'm amazed :D Just downloaded the mod and it is really cool to have this kind of display in the game. :D

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by binbinhfr » Wed May 04, 2016 7:27 am

judos wrote:Oh wow, I didn't know it's possible to actually read the signal value. No that I saw your implementation I'm amazed :D Just downloaded the mod and it is really cool to have this kind of display in the game. :D
Infact, as I mention in the presentation, this clever implementation of signal reading by dichotomy is from GopherAtl (the "deduceSignalValue" function). But I swear the rest is from me :D
My mods on the Factorio Mod Portal :geek:

HeiRos
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Apr 10, 2016 5:26 am
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by HeiRos » Thu May 05, 2016 7:30 pm

There is a problem with non-english letters. Using "Rohöl" as prefix causes the error

Code: Select all

Error while running the event handler: __SmartDisplay__/control.lua:378: Unknown entity name: sd_font_char_10_195

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by binbinhfr » Thu May 05, 2016 8:18 pm

HeiRos wrote:There is a problem with non-english letters. Using "Rohöl" as prefix causes the error

Code: Select all

Error while running the event handler: __SmartDisplay__/control.lua:378: Unknown entity name: sd_font_char_10_195
Yes I know that. I asked the dev for this, but it seems that LUA (the language of factorio API) does not support unicode.
See my post here about the subject : viewtopic.php?f=58&t=24107

Sorry... You have to use standard ascii letters signs and numbers. See the font I created in graphics/font-arial.png

But I'll try to suppress this error anyway.
My mods on the Factorio Mod Portal :geek:

HeiRos
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Apr 10, 2016 5:26 am
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by HeiRos » Thu May 05, 2016 8:39 pm

binbinhfr wrote:Sorry... You have to use standard ascii letters signs and numbers. See the font I created in graphics/font-arial.png
I know the problems with non-ASCII chars, but the mod should not crash if somebody accidentally types it. At the moment I use

Code: Select all

		asc = string.byte(c)
		-- prevents crash for non-ascii-chars
		if asc < first_asc or asc > last_asc then
			asc = 63
		end
		--debug( c, "=", tag )
		deco = surf.create_entity({name = "sd_under_c" .. font_scale_tag, force = force, position = {x,y}})
to prevent this. Not a good solution, but better then nothing.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.0

Post by binbinhfr » Thu May 05, 2016 9:03 pm

HeiRos wrote:Not a good solution, but better then nothing.
Yes good solution for the moment. I forgot this simple test. I release a new version v1.0.1
My mods on the Factorio Mod Portal :geek:

HeiRos
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Apr 10, 2016 5:26 am
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.1

Post by HeiRos » Thu May 05, 2016 9:23 pm

And here is a german localization for the next version:

Code: Select all

gui-smadisp-frame = Intelligente Anzeige Nr. __1__
gui-smadisp-prefix = Präfix:
gui-smadisp-suffix = Suffix:
gui-smadisp-scale = Größe x__1__
gui-smadisp-align-left = linksbündig
gui-smadisp-align-center = zentriert
gui-smadisp-align-right = rechtsbündig
gui-smadisp-lfix = Länge: __1__
gui-smadisp-lead = Führende Nullen
gui-smadisp-update = AKTUALISIEREN

[technology-name]
smart-display = Intelligente Anzeige

[technology-description]
smart-display = Technologie zur Anzeige von Werten aus dem Schaltungsnetzwerk

[item-name]
smart-display-visible = Intelligente Anzeige

[item-description]
smart-display-visible = Element zur Anzeige von Werten aus dem Schaltungsnetzwerk 

[recipe-name]
smart-display-visible = Intelligente Anzeige

[entity-name]
smart-display-visible = Intelligente Anzeige
smart-display = Intelligente Anzeige

[entity-description]
smart-display-visible = Element zur Anzeige von Werten aus dem Schaltungsnetzwerk
smart-display = Element zur Anzeige von Werten aus dem Schaltungsnetzwerk
Oops, I was to slow for 1.0.1. :)

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.2

Post by binbinhfr » Thu May 05, 2016 9:35 pm

Thx for the locale !

So here is v1.0.2
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.3

Post by binbinhfr » Fri May 06, 2016 7:57 am

Here is v1.0.3
better management of display priority : player can now walk nicely on the smartdisplay.
My mods on the Factorio Mod Portal :geek:

Neotix
Filter Inserter
Filter Inserter
Posts: 597
Joined: Sat Nov 23, 2013 9:56 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.3

Post by Neotix » Fri May 06, 2016 8:41 am

Can you add option to show text also on map (it can have standard font like train station)?

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.3

Post by binbinhfr » Fri May 06, 2016 8:54 am

Neotix wrote:Can you add option to show text also on map (it can have standard font like train station)?
I do not understand what you mean. Can't you already see the text on the map ?
My mods on the Factorio Mod Portal :geek:

Neotix
Filter Inserter
Filter Inserter
Posts: 597
Joined: Sat Nov 23, 2013 9:56 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.3

Post by Neotix » Fri May 06, 2016 9:33 am

I mean the map after pressing "M" when you see entire factory. On that map you can see players and stations names.
It would be great to see also text from selected smart displays. In that way we could use map as operator's display (similar to that https://www.isa.org/uploadedImages/Cont ... PandID.jpg) where we see various status and values from entire factory.

I event posted almost year ago a mod request (viewtopic.php?f=33&t=15016) and your mod is almost what I need.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.3

Post by binbinhfr » Fri May 06, 2016 10:04 am

Neotix wrote:I mean the map after pressing "M" when you see entire factory. On that map you can see players and stations names.
It would be great to see also text from selected smart displays. In that way we could use map as operator's display (similar to that https://www.isa.org/uploadedImages/Cont ... PandID.jpg) where we see various status and values from entire factory.

I event posted almost year ago a mod request (viewtopic.php?f=33&t=15016) and your mod is almost what I need.
Ok, I understand better. I never worked on the "M" map before, so I will see if it is possible.
My mods on the Factorio Mod Portal :geek:

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by binbinhfr » Fri May 06, 2016 5:53 pm

So, this special one for Neotix :
v1.0.4 = option to display the message also on the general map ("M" key).
My mods on the Factorio Mod Portal :geek:

Neotix
Filter Inserter
Filter Inserter
Posts: 597
Joined: Sat Nov 23, 2013 9:56 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by Neotix » Fri May 06, 2016 6:07 pm

Now this mod is awesome in another level of awesomeness. Just place display in critical spots and monitor situation in factory on map. No more running throe entire factory only to check if something is wrong. Put display in every outpost and check if it's depleted. Build power detector and monitor electricity level. Entire map can become operator's display that are using in real life.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by binbinhfr » Fri May 06, 2016 6:18 pm

Neotix wrote:Now this mod is awesome in another level of awesomeness.
No more running throe entire factory only to check if something is wrong.
Thx for the awesomeness ! :mrgreen:

You don't like to run everywhere ? Well, maybe you'll like my next mod... Suspense... ;)
My mods on the Factorio Mod Portal :geek:

Neotix
Filter Inserter
Filter Inserter
Posts: 597
Joined: Sat Nov 23, 2013 9:56 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by Neotix » Fri May 13, 2016 9:09 am

I found another minor issue. Map is not refreshing under Fog of War. So to see actual values, it need radar near smart displays.

User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1523
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by binbinhfr » Fri May 13, 2016 10:27 am

Neotix wrote:I found another minor issue. Map is not refreshing under Fog of War. So to see actual values, it need radar near smart displays.
I'm afraid I cannot deal with that. It's a factorio limitation. It would be too cheaty to automatically integrate a free radar in these display ;-)
My mods on the Factorio Mod Portal :geek:

NoriSilverrage
Fast Inserter
Fast Inserter
Posts: 157
Joined: Mon Mar 21, 2016 1:19 pm
Contact:

Re: [MOD 0.12.X] Smart Display 1.0.4

Post by NoriSilverrage » Fri May 13, 2016 9:13 pm

Pretty awesome! Thanks for making this. I really like the show on the map feature and being able to have prefix/suffix options.
The sizing thing could be useful, but going from 1x to 2x is a big jump. I'm guessing you can't do 1.5x though...
Is any chance of being able to change colors or add decimals/commas? :)

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: No registered users