Search found 86 matches

by Cooldude2606
Sat Jun 13, 2020 4:14 pm
Forum: News
Topic: Friday Facts #351 - Beacon re-redesign & Simplified fluid mixing
Replies: 199
Views: 72966

Re: Friday Facts #351 - Beacon re-redesign & Simplified fluid mixing

We were originally considering some kind of tiling of beacons I really like the basic idea of it, but: - it doesn't Really make gameplay sense, the beacons don't interact with each other at all, they just add towards the close by machines, which is representative with separate units - it's quite a ...
by Cooldude2606
Sat Jun 13, 2020 2:11 am
Forum: News
Topic: Friday Facts #351 - Beacon re-redesign & Simplified fluid mixing
Replies: 199
Views: 72966

Re: Friday Facts #351 - Beacon re-redesign & Simplified fluid mixing

I want to start by saying I like the new design but a few posts have suggested improvements that add the finishing touches. I really like the reversed version. It's simple, clean and the spike goes from a bit too thin for air transmission to naturally communicating that the device is sending a signa...
by Cooldude2606
Wed Jun 10, 2020 1:00 am
Forum: Modding help
Topic: Render Text ? :o
Replies: 3
Views: 1132

Re: Render Text ? :o

its hard to setup Text in correct place... i was trying 10 times before it was in center and over market :D What might be useful is if you use "alignment" with draw_text. The default is to align the left corner, if you set the value to "center" then you dont need to worry about ...
by Cooldude2606
Tue Jun 09, 2020 4:11 pm
Forum: Modding help
Topic: Need a solution to getting cursor position while in map view
Replies: 2
Views: 791

Re: Need a solution to getting cursor position while in map view

I cant offer much help, but here is an older thread with a similar issue. TL;DR There is no way to get the current map or cursor position since both are non deterministic. The only work around is to make a custom capsule. I would suggest looking at the MIRV mod by Klonan for how he does a custom rem...
by Cooldude2606
Tue Jun 09, 2020 3:35 pm
Forum: Modding help
Topic: Render Text ? :o
Replies: 3
Views: 1132

Re: Render Text ? :o

LuaRendering is used to render things into the game world. If you are wanting to place text onto the players screen then you will want to use a GUI. There is a gui position referenced by LuaPlayer.gui.screen which you can then add labels onto. Once you add a label onto a player's screen you can chan...
by Cooldude2606
Tue Jun 09, 2020 2:57 pm
Forum: Modding help
Topic: Cant find certain documentation
Replies: 1
Views: 648

Re: Cant find certain documentation

You will want to use the event on_mod_item_opened which is called when the player uses the "Open item GUI" (default is right mouse button) control on an item defined with the "mod-openable" flag. Edit: In case you also need a pointer on how to make a GUI here is a post by Bilka I...
by Cooldude2606
Tue Jun 09, 2020 2:41 pm
Forum: Modding interface requests
Topic: LuaGUIElement.state :: string [RW]
Replies: 2
Views: 981

Re: LuaGUIElement.state :: string [RW]

This would be really nice to have. A few base game elements use this, for example setting logistic filters. As I code for a scenario rather than a mod, I dont have the option to define new styles and so that workaround is not an option for me. On a side note; should this not be under Modding interfa...
by Cooldude2606
Fri Jun 05, 2020 2:03 pm
Forum: News
Topic: Friday Facts #350 - Electric mining drill redesign
Replies: 104
Views: 52533

Re: Friday Facts #350 - Electric mining drill redesign

The new design and sounds are nice and really makes you feel like you are destroying the planet with these drills. One issue I have with the new design is how the north and south facing drills look very different to the east and west facing drills. When the output is to the east or west the distance...
by Cooldude2606
Tue Jun 02, 2020 8:56 pm
Forum: Not a bug
Topic: [0.18.28] Space breaks json parse
Replies: 2
Views: 677

Re: [0.18.28] Space breaks json parse

Sorry for the report, I have looked further into it and it appears that my custom command handler has an issue with parsing commands which include lots of quotation marks. This results in my commands becoming the following after parse: game.print(serpent.line( game.json_to_table('{"foo": [...
by Cooldude2606
Sat May 30, 2020 10:31 pm
Forum: Resolved Problems and Bugs
Topic: [Oxyd] [0.18.28] Stuck on waiting to save map
Replies: 16
Views: 8315

Re: [0.18.28] Stuck on waiting to save map

The server is running linux headless, will this still be of use? Details for the server and client are below. Also, when you say process dump, do you mean a net capture or some kind of memory dump? 0.000 2020-05-30 22:28:17; Factorio 0.18.28 (build 52459, linux64, headless) 0.035 Operating system: L...
by Cooldude2606
Sat May 30, 2020 4:33 pm
Forum: Not a bug
Topic: [0.18.28] Space breaks json parse
Replies: 2
Views: 677

[0.18.28] Space breaks json parse

Found a small bug with game.json_to_table. Adding a space after a comma or near the brackets stops the parser. Note a space after a colon has no effect. It would be nice if we could be allowed a space after the comma so it is more human readable. game.json_to_table('{"foo":[1,2,3],"ba...
by Cooldude2606
Fri May 29, 2020 9:33 pm
Forum: Resolved Problems and Bugs
Topic: [Oxyd] [0.18.28] Stuck on waiting to save map
Replies: 16
Views: 8315

Re: [0.18.28] Stuck on waiting to save map

To clarify, I have reported this issue before and have had it classed as not a bug. However, this has continually occured since my last report, and people playing on our servers have been reporting this issue to me. I am therefore opening another report as I believe that there is an underlying issue...
by Cooldude2606
Fri May 29, 2020 7:35 pm
Forum: Resolved Problems and Bugs
Topic: [Oxyd] [0.18.28] Stuck on waiting to save map
Replies: 16
Views: 8315

[Oxyd] [0.18.28] Stuck on waiting to save map

When trying to connect to some multiplayer games it will get stuck on the waiting for server to save map screen. This happans on multiple servers and is more frequent on servers with small maps. I also know, through hosting the deadicated server, that multiple people will experience this while conne...
by Cooldude2606
Fri May 29, 2020 3:49 pm
Forum: Modding help
Topic: How to access toggled state for a button.
Replies: 3
Views: 1054

Re: How to access toggled state for a button.

Not sure from the API side, but I think the selected style stuff is here... Types/StyleWithClickableGraphicalSetSpecification I was able to find this as well, but there is no mention of toggled state. I assume that it would be a property that would cause an element to show its selected style. Simil...
by Cooldude2606
Thu May 28, 2020 3:03 pm
Forum: Modding help
Topic: How to access toggled state for a button.
Replies: 3
Views: 1054

How to access toggled state for a button.

In the recent version alot of gui styles were changed. One of those was the removealo of selected style. Does any one know how to access the toggled state for a button? I have looked at the api for LuaGuiElement and LuaStyle but havent been able to find how you change the toggled state for a button....
by Cooldude2606
Fri Apr 17, 2020 5:42 pm
Forum: Modding help
Topic: What is builder.lua in lualib?
Replies: 4
Views: 839

Re: What is builder.lua in lualib?

Thanks for the quick replies, always interesting to find files that were forget about and to find out what they might have been for. :)
by Cooldude2606
Fri Apr 17, 2020 5:18 pm
Forum: Modding help
Topic: What is builder.lua in lualib?
Replies: 4
Views: 839

Re: What is builder.lua in lualib?

The last edit to it was 0.16, were there still plans to use this?
Would it have been similar to how compilatron built for you in the 0.17 introduction?
by Cooldude2606
Fri Apr 17, 2020 5:10 pm
Forum: Modding help
Topic: What is builder.lua in lualib?
Replies: 4
Views: 839

What is builder.lua in lualib?

There is builder.lua in the core lublib directory, if anyone could give me some insight on the following, very broad, questions it would be appreciated. What is it used for? Why is it using Lua 5.0/5.1 syntax for a module? Because its using the module function the file cant be required, so why is do...
by Cooldude2606
Sat Oct 19, 2019 9:22 pm
Forum: Duplicates
Topic: [0.17.72] Missing key in map-settings.example.json
Replies: 1
Views: 746

[0.17.72] Missing key in map-settings.example.json

After one of the previous updates we were unable to generate new maps from a scenario. We checked logs and saw that the prosess would termiate just after factorio was initialised. We recognised this as being a config error and so attempted to use the example files and found that the issue persisted....
by Cooldude2606
Thu Sep 19, 2019 3:54 pm
Forum: Releases
Topic: Version 0.17.69 - Stable 1
Replies: 45
Views: 33169

Re: Version 0.17.69

Added LuaPlayer::request_translation(). What is the purpose of this? I don't suppose one can save the string to a translated locale file so it can be shared with other players, so... huh? It can be used to search if a string is included in a translation for a player; for example if you have a set o...

Go to advanced search