Friday Facts #174 - Mod gui

Regular reports on Factorio development.

User avatar
badgamernl
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Sat Aug 29, 2015 4:03 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by badgamernl » Fri Jan 20, 2017 5:41 pm

Plss make the mod-gui scenario friendly, it would help my server allot! It would also be cool if there was a way to make server side and client side code and the communication between the client and the server. Take for instance garry's mod it has client and server side code and a way to communicate with a database. This would add the possibility to make a ranking system that will in return get you a more stable player base. Or add a permissions system, but wy make it yourself when the community can make it! The problem with factorio now is that when you make a server and want admins on it they can run commands and then the achievement system says console command used in return players will leave because of it. It would also be cool if there was a server list ranking system and a bookmark system to make the life of players easier!
Last edited by badgamernl on Fri Jan 20, 2017 6:02 pm, edited 3 times in total.
-- Explosive Gaming a factorio server community, or join the discord --

Wingman24
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Jun 27, 2016 10:37 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Wingman24 » Fri Jan 20, 2017 5:42 pm

Do we have an ETA on .15? (Sorry if I missed this in a previous FF)

justarandomgeek
Fast Inserter
Fast Inserter
Posts: 247
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by justarandomgeek » Fri Jan 20, 2017 5:43 pm

I like the new buttons, and the consistency that they'll provide, but I hope they'll be backported to 0.14 during 0.15's experimental phase. If not, I fear many mods will not use them, since they'll still be maintaining the 0.14 fork of the mods, and will have to keep the old-way button code for that anyway.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3935
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Klonan » Fri Jan 20, 2017 5:44 pm

Wingman24 wrote:Do we have an ETA on .15? (Sorry if I missed this in a previous FF)
No ETA yet - Further news when we have it folks

KatherineOfSky
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Wed Mar 30, 2016 7:54 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by KatherineOfSky » Fri Jan 20, 2017 5:48 pm

Interesting! It will be nice to see a more cohesive layout for the mod buttons!

One thing I have been wanting for trains is the ability to name them with Route Names, (and sort by this function). In a large factory, I have dozens of trains, and I have to identify them by their stops... which is time-consuming. They also change their order on the page, so I can't remember them by their position.

With a Route Name, it would be MUCH easier to identify them, enabling simple Copy & Paste of their schedules to add throughput, etc.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3935
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Klonan » Fri Jan 20, 2017 5:48 pm

justarandomgeek wrote:I like the new buttons, and the consistency that they'll provide, but I hope they'll be backported to 0.14 during 0.15's experimental phase. If not, I fear many mods will not use them, since they'll still be maintaining the 0.14 fork of the mods, and will have to keep the old-way button code for that anyway.
With 0.15 mods will have to be updated anyway, which will be a good time to try the new system.
Generally modders don't maintain version of the mods for previous versions of the game, and simply say update to experimental if you want the latest version.

We won't be releasing another 0.14 version, so there is no way to backport the Lua file

User avatar
apriori
Filter Inserter
Filter Inserter
Posts: 255
Joined: Thu Feb 18, 2016 8:13 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by apriori » Fri Jan 20, 2017 5:51 pm

Standardisation of GUI-appearance is cool. But its unification is better I suppose. I been thinking of making mod that unifies several mod GUI elements into popup groups.
e.g.
It should free the screen greatly, but causes usability issues... Dunno what to do. =)
Can't wait for 0.15!
Any code or mods posted by me are WTFPL, unless otherwise copyrights are specified.

User avatar
jockeril
Filter Inserter
Filter Inserter
Posts: 336
Joined: Sun Feb 08, 2015 11:04 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by jockeril » Fri Jan 20, 2017 6:14 pm

Station color change (and the ability to copy it from the train! ) is a small detail - but one that shows how much you guys care - you guys are great and I LOVE this game!

My gf knows - if I'm playing Factorio - it's a lost day for her and I cannot be interrupted :mrgreen:

Think I'm going to stream now
[request] RTL support please

My mods

Formally Hebrew translator for FARL & EvoGUI mods

join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !
Image

Xenomorph
Inserter
Inserter
Posts: 42
Joined: Tue Dec 27, 2016 4:45 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Xenomorph » Fri Jan 20, 2017 6:16 pm

Klonan wrote:
Wingman24 wrote:Do we have an ETA on .15? (Sorry if I missed this in a previous FF)
No ETA yet - Further news when we have it folks
I hate when there is no ETA and i love it at the same time.

Take all the time you need to make 0.15 perfect.

Glitterspin
Burner Inserter
Burner Inserter
Posts: 17
Joined: Thu Oct 20, 2016 1:52 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by Glitterspin » Fri Jan 20, 2017 6:19 pm

Another problem is that with multiple mods installed, there is no overall control about how and where the Gui elements interact and 'fight' with one another for space.

So to begin to help this, I've implemented an optional Lua script that modders can use, which should help unify things, as well as being simple to use for anybody new.
require("mod-gui")
function create_gui(player)
mod_gui.get_button_flow(player).add
{
type = "sprite-button",
name = "My_mod_button",
sprite = "item/my-mod-item",
style = mod_gui.button_style
}
mod_gui.get_frame_flow(player).add
{
type = "frame",
name = "My_mod_frame",
caption = "My mod frame",
style = mod_gui.frame_style
}
end
I don't speak Lua yet sadly. The code doesn't look like a priority list; what does it do to prevent conflicts?



@KatherineOfSky, I love the route-name idea! It would help a lot even in small factories with relative newbies like me; a route name makes it a lot more obvious what's going on.
Last edited by Glitterspin on Fri Jan 20, 2017 6:23 pm, edited 1 time in total.
Looking for people to play with! Not sure the ettiquette or things. Ideally, I'd like peeps that can play fairly often, and with voicechat.

BlackLight
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Sep 12, 2015 11:01 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by BlackLight » Fri Jan 20, 2017 6:22 pm

jockeril wrote:Station color change (and the ability to copy it from the train! ) is a small detail - but one that shows how much you guys care [...]
Indeed, I find that also very neat!

P.S.
Since landfills got added to the game I only played vanilla Factorio.
First I was, ok lets read that MOD stuff, but I don't really care to much about that. Then at the end the station color and "NICE!". :D

bNarFProfCrazy
Fast Inserter
Fast Inserter
Posts: 177
Joined: Sat Apr 23, 2016 7:11 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by bNarFProfCrazy » Fri Jan 20, 2017 6:33 pm

It would be nice if there is an option to hide a (mod) GUI element or sort them as a player, because if the big ones are located in the middle of the window they take away precious space.

User avatar
SHiRKiT
Filter Inserter
Filter Inserter
Posts: 688
Joined: Mon Jul 14, 2014 11:52 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by SHiRKiT » Fri Jan 20, 2017 6:39 pm

Are you still planning to add the configurations for mods as you previously said?

justarandomgeek
Fast Inserter
Fast Inserter
Posts: 247
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by justarandomgeek » Fri Jan 20, 2017 6:41 pm

Klonan wrote:
justarandomgeek wrote:I like the new buttons, and the consistency that they'll provide, but I hope they'll be backported to 0.14 during 0.15's experimental phase. If not, I fear many mods will not use them, since they'll still be maintaining the 0.14 fork of the mods, and will have to keep the old-way button code for that anyway.
With 0.15 mods will have to be updated anyway, which will be a good time to try the new system.
Generally modders don't maintain version of the mods for previous versions of the game, and simply say update to experimental if you want the latest version.

We won't be releasing another 0.14 version, so there is no way to backport the Lua file

During 0.14's experimental, I had to release some bugfixes for some of my mods for both versions. I released *identical* code for both, apart from the one line in info.json listing waht version it was for. (As a sidenote, it would be nice in such a case to be able to declare it works on both.) It wouldn't surprise me if others use a similar strategy during the interim period, but that would mean being unable to use the new features at all until such releases end - and especially given that the old way still works and works on both, I can see people doing this, which means we may not get nice standard buttons until some time after 0.15 goes stable.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2273
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by steinio » Fri Jan 20, 2017 6:45 pm

bNarFProfCrazy wrote:It would be nice if there is an option to hide a (mod) GUI element or sort them as a player, because if the big ones are located in the middle of the window they take away precious space.
Yes sorting them by myself would be great.
Image
Transport Belt Repair Man
My little mods: Link | My favourite mods: Bob's Mods | Angel's Mods | Yuoki Railway Core | EvoGUI | Logistic Train Network
Factorio Cheat Sheet by Denis Zholob

View unread Posts

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Adil » Fri Jan 20, 2017 7:50 pm

No way to backport a lua file?!
Just how much compatibility did you break there?
Also, even in your example, most of the buttons are there simply because they have nowhere to go and optional hiding functionality implementation would take more lines than the core logic of the most of those mods.
So, some applet panel equivalent, which player could tweak himself might be good.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 3935
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Friday Facts #174 - Mod gui

Post by Klonan » Fri Jan 20, 2017 8:09 pm

Adil wrote:No way to backport a lua file?!
Just how much compatibility did you break there?
Also, even in your example, most of the buttons are there simply because they have nowhere to go and optional hiding functionality implementation would take more lines than the core logic of the most of those mods.
So, some applet panel equivalent, which player could tweak himself might be good.
Theres no compatibility issue, just that we won't have a whole new 0.14 release just to add a single Lua file

Its right that mods put the button there because there is nowhere else, but also because its the simplest and most convenient way of adding the button -> frame functionality

Rseding91
Factorio Staff
Factorio Staff
Posts: 9973
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by Rseding91 » Fri Jan 20, 2017 8:13 pm

SHiRKiT wrote:Are you still planning to add the configurations for mods as you previously said?
It has been done for a few months now.
If you want to get ahold of me I'm almost always on Discord.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 2994
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Friday Facts #174 - Mod gui

Post by DaveMcW » Fri Jan 20, 2017 8:13 pm

What we really want is a built-in manager to show/hide mod guis.

In theory this could be done with a player-created mod, but the marketing and support is so tedious that no one wants to do it.
Last edited by DaveMcW on Fri Jan 20, 2017 8:14 pm, edited 1 time in total.

Post Reply

Return to “News”

Who is online

Users browsing this forum: Absolute, kenmras, maniak1349