LuaCircuitNetwork::get_signal vs LuaConstantCombinatorControlBehavior::get_signal

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 372
Joined: Tue Jul 08, 2014 10:06 am
Contact:

LuaCircuitNetwork::get_signal vs LuaConstantCombinatorControlBehavior::get_signal

Post by LuziferSenpai »

Hey,

I found something that is a bit weird.
LuaCircuitNetwork::get_signal returns a signal value/count as a int, not a full Signal.
On the other hand LuaConstantCombinatorControlBehavior::get_signal returns a full Signal.

Shouldnt it be LuaCircuitNetwork::get_signal_value instead of LuaCircuitNetwork::get_signal?

Simple Reason is: You dont get the signal, you get the signal value as a int.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai

Bilka
Factorio Staff
Factorio Staff
Posts: 3299
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: A consistency error in the API

Post by Bilka »

Moved to modding interface requests.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Modding interface requests”