Search found 55 matches

by mat1k
Mon Aug 05, 2019 6:11 pm
Forum: Modding interface requests
Topic: Allow setting hidden_from_player_crafting on a LuaRecipe
Replies: 1
Views: 1101

Re: Allow setting hidden_from_player_crafting on a LuaRecipe



But I'm sure there could be more use cases for this, like custom scenarios for example.


Like hiding all but the basic recipes from player crafting.
Then creating research to allow the player to gradually unlock more advanced recipes for hand crafting.

I don't think hidden_from_player ...
by mat1k
Fri Aug 02, 2019 9:31 pm
Forum: Ideas and Requests For Mods
Topic: Use Items from Trunk
Replies: 3
Views: 1968

Re: Use Items from Trunk

Vehicle Grid adds a grid to all vehicles, Cars, tanks, Trains, etc so you can use equipment in them.

Personally, I use it to put lasers on my trains as anti-bug protection, but you can also put a roboport in there and it will use anything in that vehicles inventory.
For trains put the roboport on ...
by mat1k
Mon Jul 29, 2019 6:12 pm
Forum: Modding help
Topic: on_player_fast_transferred Problem
Replies: 7
Views: 2211

Re: on_player_fast_transferred Problem

Selmak-TokRa wrote: Mon Jul 29, 2019 2:40 pm ok thanks,
then i must look for an other way.
If you tell us what your trying to achieve. Someone may already have code to do it they are willing to share
by mat1k
Sun Jul 28, 2019 8:56 am
Forum: Modding help
Topic: on_player_fast_transferred Problem
Replies: 7
Views: 2211

Re: on_player_fast_transferred Problem

If i recall, ConsoleOutput() sends the text to the lua console used to start the game. If you start the game normally it goes nowhere.

Use game.print("fast transfer event") instead to print to the in-game chat.
by mat1k
Fri Jul 26, 2019 9:32 pm
Forum: Ideas and Requests For Mods
Topic: Lamp + Arithmetic combinator = Pixel
Replies: 11
Views: 4849

Re: Lamp + Arithmetic combinator = Pixel

Changing the dependencies line in info.json to read:

"dependencies": ["base", "? sixbit_lamps"],

Should work.
by mat1k
Fri Jul 26, 2019 9:26 pm
Forum: Ideas and Requests For Mods
Topic: Lamp + Arithmetic combinator = Pixel
Replies: 11
Views: 4849

Re: Lamp + Arithmetic combinator = Pixel



Updated to 0.0.2:


Great! I tested new version, it seems everything works fine.
There's only one strange phenomenon which becomes visible when zooming out an array of LEDs: some cells looks diferent, like semitransparent:


I also noticed it doesn't work with Six Bit Lamps mod color signals ...
by mat1k
Sat Jul 20, 2019 6:57 pm
Forum: Modding help
Topic: Detect when modules changed
Replies: 3
Views: 1288

Re: Detect when modules changed


script.on_event(defines.events.on_gui_closed, function(event)
if not event.entity then return end
local module_slots = event.entity.prototype.module_inventory_size
if not module_slots or module_slots == 0 then return end

game.print("modules were potentially edited")
end)

I don't think ...
by mat1k
Sat Jul 20, 2019 8:42 am
Forum: Modding help
Topic: Detect when modules changed
Replies: 3
Views: 1288

Detect when modules changed

I'm trying to find a way to detect when a player adds, removes, or changes the modules in a drill or assembling machine.

Is there an event that triggers for this? or a way to work around to check modules after gui closed?
by mat1k
Sat Jul 20, 2019 8:30 am
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton



When i incrase the speed with modules, just the smelting faster, but mining its same speed. is it possible work both with modules? Or only smelting? Or possible double modules (1 for mining 1 for smelting)?
Thank you!


That is a limitation of how it works. There is actually a mining drill ...
by mat1k
Sat Jul 20, 2019 8:19 am
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

I'll add in the translations, and the stack filter inserter to the recipe but I don't see any way to justify needing a furnace mining drill to make it.

A furnace mining drill is an electric drill, furnace and inserter. Changing to a filter inserter makes sense as it only wants iron so we can argue ...
by mat1k
Sat Jul 20, 2019 3:47 am
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

It is done ... I think ...
At least no-one in this house can break it. It is now on the mod portal.
Double Furnace Mining Drill

If I missed something please tell me.
by mat1k
Fri Jul 19, 2019 10:41 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

So....

Taking a little more time than expected but I think I might be getting close.

Going to have a new entity so the double furnace and Furnace Mining drill are still usable separately.
The new entity will be locked behind a new research with both the Double Furnace and Furnace Mining Drill ...
by mat1k
Wed Jul 17, 2019 8:42 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton




Yea, discovered that. Though it has a setting that only allows it to be placed on oil

It's defined due resource_categories only:
data.raw["mining-drill"].pumpjack.resource_categories[1] = "basic-fluid"

So if you make just the
for i, m_drill in pairs (data.raw["mining-drill"]) do
table ...
by mat1k
Wed Jul 17, 2019 6:26 pm
Forum: Resolved Requests
Topic: Prototype Documentation
Replies: 20
Views: 7720

Re: Prototype Documentation


Something that annoys me when I use the wiki: I'm always missing a link back to the 'Prototype definitions'-overview-site. Maybe that's just me having a weird workflow, but I'm often visiting this site when I'm trying to find infos about another prototype.


I hear that. I've taken to keeping the ...
by mat1k
Tue Jul 16, 2019 10:42 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

I'm going to use an if statement to check for basic-solids and first. That will make it compatible with mods that add other drills to harvest non-vanilla resources
by mat1k
Tue Jul 16, 2019 9:00 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

darkfrei wrote: Tue Jul 16, 2019 8:50 pm
mat1k wrote: Tue Jul 16, 2019 6:09 pm Then it was just a matter of adding the new resource category to all drills so they can still mine it normally.
Note that the oil pumpjack is also a mining drill, we are need the exception here.
Yea, discovered that. Though it has a setting that only allows it to be placed on oil
by mat1k
Tue Jul 16, 2019 6:09 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

I was testing this last night. By moving iron ore to separate category it stops the furnace mining anything except the iron. Then it was just a matter of adding the new resource category to all drills so they can still mine it normally.

I fell asleep before i could test it fully though.
by mat1k
Mon Jul 15, 2019 8:44 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

That will work BUT you would lose the ability to use that entity for it's normal use. I think he wants to be able to smelt to iron or steel by placing the appropriate machine. Also the furnace mining drill is used for copper and stone too

When i get home I'll look at creating a new entity to mine ...
by mat1k
Mon Jul 15, 2019 6:19 pm
Forum: Ideas and Requests For Mods
Topic: [Request - completed] Double Furnace Mining Drill by mat1k
Replies: 42
Views: 15646

Re: [Request] Furnace with double smelting and mining funciton

It seems doable from what i recall of the mods. I run both but am at work so can't check the code right now. Pretty sure the double furnace simply uses a seperate crafting category with some power and speed adjustments for balance
by mat1k
Wed Jun 26, 2019 7:22 am
Forum: Modding help
Topic: Modding Ore Richness
Replies: 1
Views: 1415

Modding Ore Richness

I'm trying to increase the base richness of all ores. I want ores in the starting area and surrounding map to be 200M+ and then expand from there without increasing the actual size of the ore patches themselves.

The resources.lua files are extremely confusing.

Go to advanced search