[0.15.11] circuit_condition rejects new comparator signals

This subforum contains all the issues which we already resolved.
Post Reply
justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

[0.15.11] circuit_condition rejects new comparator signals

Post by justarandomgeek »

When setting the condition on a lamp to Any!=0 with the following code:

Code: Select all

  local control = entity.get_or_create_control_behavior()
  if control.use_colors then
    control.circuit_condition = {
      condition={
        first_signal={name="signal-anything",type="virtual"},
        comparator="!=",
        constant=0,
        second_signal=nil
      },
      connect_to_logistic_network=false
    }
  end
I get an error that != is an Invalid Type Sign. Using '≠' in its place does work. The the docs indicate that != <= and >= should also work when looking at conditions on a Decider Combinator, and don't list what symbols to use for these operations at all on other circuit entities

Twinsen
Factorio Staff
Factorio Staff
Posts: 1329
Joined: Tue Sep 23, 2014 7:10 am
Contact:

Re: [0.15.11] circuit_condition rejects new comparator signals

Post by Twinsen »

The documentation was off. Must be one of "<", ">", "=", "≥", "≤", "≠".

Fixed in Version: 0.15.12.

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

Re: [0.15.11] circuit_condition rejects new comparator signals

Post by steinio »

Twinsen wrote:The documentation was off. Must be one of "<", ">", "=", "≥", "≤", "≠".

Fixed in Version: 0.15.12.
Which keyboard has this signs on:"≥", "≤", "≠"?
They may look nice but for modding they should be the common coders aquivalent ">=", "<=" and "<>".

Greetings, steinio.
Image

Transport Belt Repair Man

View unread Posts

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.15.11] circuit_condition rejects new comparator signals

Post by posila »

We will probably encapsulate it into defines.

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

Re: [0.15.11] circuit_condition rejects new comparator signals

Post by steinio »

posila wrote:We will probably encapsulate it into defines.
:thumbs up:
Image

Transport Belt Repair Man

View unread Posts

justarandomgeek
Filter Inserter
Filter Inserter
Posts: 300
Joined: Fri Mar 18, 2016 4:34 pm
Contact:

Re: [0.15.11] circuit_condition rejects new comparator signals

Post by justarandomgeek »

I don't mind the funny characters as long as the docs have them for easy copying ;)

Post Reply

Return to “Resolved Problems and Bugs”