Search found 30 matches

by kikker450
Wed Dec 20, 2017 4:31 pm
Forum: Modding help
Topic: How to set up a scroll pane properly
Replies: 1
Views: 1229

Re: How to set up a scroll pane properly

Define the dimensions of the scroll plane in the code itself. (see more at http://lua-api.factorio.com/0.16.6/LuaStyle.html)

main_gui = player.gui.center.add({type = "frame",name = "popup",direction = "vertical"})
your_scroll_pane = main_gui.add(({type = "scroll-pane",name = "popup-scroll"})
your ...
by kikker450
Sat Jun 10, 2017 9:39 pm
Forum: Modding help
Topic: train stuffs prototype : rail_category
Replies: 1
Views: 949

Re: train stuffs prototype : rail_category

It's not callable through lua it seems and there seems only to be "regular", so nothing? Probably like the plane entity, a placeholder for further expansion.

Maybe some mod doing something with it through data but I don't know about that.
by kikker450
Sat Jun 10, 2017 9:34 pm
Forum: Modding help
Topic: New Enemy Faction
Replies: 2
Views: 1670

Re: New Enemy Faction

Yes, check the LuaForce for more info.
by kikker450
Sat Jun 10, 2017 9:31 pm
Forum: Modding help
Topic: How do I remove an item from a drop-down?
Replies: 12
Views: 5198

Re: How do I remove an item from a drop-down?

check the lua commands next time before asking these kinds of questions.

you have at least two options:

Code: Select all

drop_down.items[drop_down.selected_index] = nil 
dorp_down.set_item(drop_down.selected_index, nil)
by kikker450
Wed Jun 07, 2017 7:49 pm
Forum: Mods
Topic: [MOD 0.15.18] Ratio Tree 0.0.8
Replies: 4
Views: 4357

Re: [MOD 0.15.18] Ratio Tree 0.0.6

Thank you, Productivity and speed modules can be done but the gui will be a lot more complicated and every change would require regenerating the whole tree again. I will first look into a helmod plugin to just fill in a production line for you with the correct values so you can add beacons and ...
by kikker450
Mon May 29, 2017 7:41 am
Forum: Modding interface requests
Topic: direction property in scroll-panes
Replies: 0
Views: 740

direction property in scroll-panes

Since there is a direction property in flows i'm curious why there isn't in scroll-panes. Could that be added? They're always vertical now.
by kikker450
Mon May 29, 2017 7:37 am
Forum: Implemented mod requests
Topic: Simple property requests (something that exists but has no way to read/write it)
Replies: 139
Views: 53762

Re: Simple property requests (something that exists but has no way to read/write it)

MightyMooquack wrote:LuaEntityPrototype.resource_categories
Is this added for the next patch? (you're usually so quick :( ) I kinda of want this for finding and calculating miners and pumpjacks in RatioTree
by kikker450
Fri May 26, 2017 11:49 am
Forum: Mods
Topic: [MOD 0.15.18] Ratio Tree 0.0.8
Replies: 4
Views: 4357

[MOD 0.15.18] Ratio Tree 0.0.8

Name: Ratio Tree
Version: 0.0.6
Factorio-Version: 0.15.18
Author: kikker450
Download: Ratio Tree
Description: Find out the ratio's of anything.
Multiplayer: untested, though reports of slowness
License: MIT
Release: 26/05/17

-- It doesn't need to change game data files.

Features:
Automatic ...
by kikker450
Mon May 22, 2017 12:02 pm
Forum: Ideas and Requests For Mods
Topic: [Request] Assembler Productivity
Replies: 9
Views: 3466

Re: [Request] Assembler Productivity

pieppiep wrote: http://lua-api.factorio.com/latest/LuaS ... ce.pollute
The position parameter is just the position from the polluting entity.
You can add negative pollution that way?
by kikker450
Mon May 22, 2017 12:01 am
Forum: Modding interface requests
Topic: Gui borders
Replies: 0
Views: 1080

Gui borders

Hi there,
I've been building a GUI mod and run into a GUI breaking problem:

Sample tree 3.png

To explain what exactly is happening here: there is al table with one column which is filled horizontal flowcharts which is in turn filled with sprites and empty sprites. All with fixed minimum and ...
by kikker450
Sun May 21, 2017 9:15 pm
Forum: Modding help
Topic: Pallet Storage Help
Replies: 6
Views: 2804

Re: Pallet Storage Help

Thanks for the report, it's always nice to see conclusive posts. I didn't help with your second request because it was essentially bug fixing which you should figure out on your own.

Have tried figuring out how transport belt works so you can make a pallet that way?
by kikker450
Sun May 21, 2017 6:15 pm
Forum: Ideas and Requests For Mods
Topic: [Request] Assembler Productivity
Replies: 9
Views: 3466

Re: [Request] Assembler Productivity

In theory it should be possible, you can read and write the bonus_progress of a Lua entity (http://lua-api.factorio.com/latest/LuaEntity.html#bonus_progress). So if you keep track of the assembling-machines and change the bonus_progress at every tick according to some multiplier (which changes after ...
by kikker450
Sun May 21, 2017 2:59 pm
Forum: Modding help
Topic: Problem adding player sprite
Replies: 4
Views: 2176

Re: Problem adding player sprite


I've been over every resource I can find and still no luck, that tutorial was no help either, as it doesn't even begin to cover what I need to do.

If anyone could point me in the right direction I'd appreciate it, at the moment I have to choose between having the player sprite show the armor or ...
by kikker450
Fri May 19, 2017 9:51 am
Forum: Modding help
Topic: Technology count_formula
Replies: 3
Views: 1794

Re: Technology count_formula

The lua has all the math function imported so that shouldn't be a problem: http://lua-users.org/wiki/MathLibraryTutorial
Have you tried assuring that the output is always a integer (and not a float)? Otherwise I don't know.
by kikker450
Fri May 19, 2017 9:42 am
Forum: Modding help
Topic: Problem adding player sprite
Replies: 4
Views: 2176

Re: Problem adding player sprite

Wait you're replacing complete base game files? I recommend a simple modding tutorial on the basics on how to add stuff in general: https://wiki.factorio.com/Tutorial:Modd ... al/Gangsir.
by kikker450
Thu May 18, 2017 8:45 pm
Forum: Modding help
Topic: Pallet Storage Help
Replies: 6
Views: 2804

Re: Pallet Storage Help

I can assure you that properly scripting and designing that would be an absolute pain if you do any kind of stacking of items. You will need manual shadows for every stack of item of every size. If you you don't do that they will just be there, floating awkwardly. The thing you could do is do a ...
by kikker450
Thu May 18, 2017 8:03 pm
Forum: Modding help
Topic: Change module stats in control.lua
Replies: 10
Views: 3850

Re: Change module stats in control.lua

Load the entities you want to replace with in the midgame beforehand and write some script to replace every entity (with LuaEntity not LuaEntityPrototype) with that pre-written entity when you want to.
by kikker450
Thu May 18, 2017 7:47 pm
Forum: Modding help
Topic: Prevent bot upgrades to apply to mod-bots?
Replies: 4
Views: 2257

Re: Prevent bot upgrades to apply to mod-bots?

I've never experimented with that but either a research applies a permanent modifier or permanently changes stats. In either case you have to replace all entities and recipes every time research is done with the old stats to keep them outdated.

And looking at the raw files always helps: (Factorio ...
by kikker450
Wed May 17, 2017 1:43 pm
Forum: Modding help
Topic: Drawing information-trees
Replies: 0
Views: 794

Drawing information-trees

Hi,

I have made a (half-completed) gui mod where you can request the ratio's in tree form by filling in the number of assemblers and the recipe. It automatically takes your most recently researched assemblers and smelters.

As you can see the layout isn't that bad but I would very much like to ...
by kikker450
Sat May 13, 2017 10:28 am
Forum: Modding help
Topic: [15.10] on_robot_mined_entity event doesn't always trigger
Replies: 10
Views: 4291

Re: [15.10] on_robot_mined_entity event doesn't always trigger

Yes it does. You're printing the same message over and over which hits the spam prevention and doesn't show the extra messages since they're all identical.

Quick side question, I've searched through the forums (on "spam prevention") and looked through the settings ingame but is there a way to ...

Go to advanced search