F.A.R.L breaks with my mod "Workbench" - I may have fixed..

The raillayer; must have, if you want to play with railway.

Moderator: Choumiko

akipfer
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat May 05, 2018 4:02 am
Contact:

F.A.R.L breaks with my mod "Workbench" - I may have fixed..

Post by akipfer »

I was happy as i could be, u know, playing factorio and all....then u make a train, a FARL module, and bammm, error all over the screen(printed, not crash)
can anyone tell me what i need to do to fix it? any idea, direction at all would be massive help already!


FARL CODE BELOW
if farl:update(event) then
GUI.updateGui(farl)
end

That's the code

local player = game.players[event.player_index]
if event.created_entity.name == "workbench-mk1" then


link to my 1st mod :D https://mods.factorio.com/mod/Workbench
Attachments
ErrorWorkbench-FullyAutomatedRaillayer-Factorio.JPG
ErrorWorkbench-FullyAutomatedRaillayer-Factorio.JPG (185.11 KiB) Viewed 4484 times
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: F.A.R.L breaks with my mod "Workbench" - I may have fixed..

Post by steinio »

What's in your on_robot_built event?

Looks like farl doesn't filter out not farl things.
Image

Transport Belt Repair Man

View unread Posts
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: F.A.R.L breaks with my mod "Workbench" - I may have fixed..

Post by Choumiko »

Workbench crashes the game when a robot builts anything (unrelated to FARL).

The on_robot_built_entity doesn't contain event.player_index. Remove line 3 in your control.lua and it should be fine. The player variable you assign isn't used in the function at all
sicky337
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Dec 30, 2019 8:42 pm
Contact:

Re: F.A.R.L breaks with my mod "Workbench" - I may have fixed..

Post by sicky337 »

Choumiko how come you stopped updating FARL. Its one of the best MODS in the game.

Would you be so kind as to update it please
Kyralessa
Filter Inserter
Filter Inserter
Posts: 752
Joined: Thu Sep 29, 2016 5:58 pm
Contact:

Re: F.A.R.L breaks with my mod "Workbench" - I may have fixed..

Post by Kyralessa »

sicky337, I realize you're probably trying to ask politely, but the way you're asking is in fact rude.

"Would you be so kind as to update it please?" is the way native speakers request something sarcastically.

It carries the connotation "I can't believe I even have to ask this; you obviously ought to have done it already."

Before posting a request like this, you might consider running it by an AI to double-check the tone.
Post Reply

Return to “F.A.R.L”