[MOD 0.15.x] The Fat Controller. Remote train manager 2.0.7

Topics and discussion about specific mods
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

New version: The Fat Controller 0.3.19
  • Pagination for station filter window (default 60 per page)
  • Update gui only for online players
  • Fix error with Smarter Circuitry mod (thanks judos)
You can use /c remote.call("fat", "page_size", X) to change Stations per page, where X is the 3 times the number you want per column, e.g. 75 will result in 25 per column
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by CmdrKeen »

bug report -

dying while remote controlling the fat controller causes a game breaking bug where you're stuck as the god controller.
edit:
found a temporary fix to this:
/c game.local_player.set_controller({type=defines.controllers.character, character = game.get_surface(1).create_entity({name = "player", position={0,0}, force = game.forces.player})})
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

New version: The Fat Controller 0.3.20
  • simple toggle button to stop/resume all trains

    If the station list is filtered, it will only stop/resume matching trains
CmdrKeen wrote:dying while remote controlling the fat controller causes a game breaking bug where you're stuck as the god controller.
edit:
found a temporary fix to this:
/c game.local_player.set_controller({type=defines.controllers.character, character = game.get_surface(1).create_entity({name = "player", position={0,0}, force = game.forces.player})})
Interesting.. I assume it's MP (and not some mod that respawns you in SP when dying?) Also, the dying entity is the normal player character i guess.
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by CmdrKeen »

tried it with just this mod active (3.18)

same result- left as the god controller, no kill recorded. also- I forgot to mention the error I got (attached below)
Attachments
FAT_Crash.png
FAT_Crash.png (328.79 KiB) Viewed 10709 times
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

New version: The Fat Controller 0.3.21
  • fix bug when a player remote controlling a train gets killed
  • correctly display manual/auto mode for SmartTrains when wait forever is set
  • start/stop trains that are set to wait forever (SmartTrains)
To make the SmartTrain features work, you need the latest SmartTrains: https://forums.factorio.com/forum/vie ... 40#p127789

I know (at least) one achievement i'm gonna add once it's possible and TFC isn't made completely obsolete by Factorio 0.13 :D
n9103
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Feb 20, 2013 12:09 am
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by n9103 »

Code: Select all

* Absent Minded
Player killed while remote controlling a train.

* Wanton Recklessness
Kill a train you're remote controlling.
Colonel Failure wrote:You can lose your Ecologist Badge quite quickly once you get to the point of just being able to murder them willy-nilly without a second care in the world.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

New version: The Fat Controller 0.3.23
  • alert times can be set per force
  • added no fuel alarm, triggered when no fuel item in any locomotive of the train
n9103 wrote:

Code: Select all

* Absent Minded
Player killed while remote controlling a train.

* Wanton Recklessness
Kill a train you're remote controlling.
Nice, i still have another one in mind though :D
User avatar
StoneLegion
Filter Inserter
Filter Inserter
Posts: 687
Joined: Fri Sep 05, 2014 7:34 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by StoneLegion »

When going on my server today I get the following error when I click the Train+ button. When I do it again it's fine.

Image


Clicking each train after that is fine.
tetryon
Fast Inserter
Fast Inserter
Posts: 190
Joined: Wed Nov 04, 2015 2:49 am
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by tetryon »

In control.lua, the following line has a typo...

global.character = global.charactor or {}
and should be....
global.character = global.character or {}
Ringkeeper
Fast Inserter
Fast Inserter
Posts: 141
Joined: Wed Feb 03, 2016 7:16 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Ringkeeper »

tetryon wrote:In control.lua, the following line has a typo...

global.character = global.charactor or {}
and should be....
global.character = global.character or {}
in which line? Didn't found it.

Since 0.12.25 i can't join multiplayer game (fresh game) if FAT is active. My screen just goes blank, my wifes game (she is the host) freezes. Logs don't give much. Removing FAT solves the problem.

Mods used if important:
Mods
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

Ringkeeper wrote: in which line? Didn't found it.

Since 0.12.25 i can't join multiplayer game (fresh game) if FAT is active. My screen just goes blank, my wifes game (she is the host) freezes. Logs don't give much. Removing FAT solves the problem.
line 12 in version 0.3.23

What version are you using? Did that version work before 0.12.25?
Can you upload a log from both players after the crash? (factorio-current.log in the Factorio folder)
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by binbinhfr »

Hi,

very nice mod. It just seems to have problems with other mods that also "desincarnate" player / changing character. For example : YARM (viewtopic.php?f=92&t=16698&hilit=yarm) provides this kind of extra-view when you teleport to watch a ressource field.

test : if in YARM, you click on a eye-button to exit your body, then if you click on a train in FATC, when exiting the train, FATC will messup and displaying warnings in the console.

At the inverse, if you go into a train, and you call YARM, then YARM refuses to teleport because it says that you must be in your original body.

I guess that you could do the same test before entering a train, no ?

Thanks for your help and have a nice day.
My mods on the Factorio Mod Portal :geek:
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

Thanks for the report. I'm not sure how to solve this without breaking FAT for players that use a valid modded character (bigger inventory, faster walking speed etc., these changes all require a custom character protoype with another name than "player"). I guess excluding characters like the ones from YARM,Satellite Uplink station is the easier solution, there shouldn't be too many of those around.

Edit: Somehow i'm not able to reproduce the error: I looked at a resource patch with YARM, used C in FatController to jump to a train. Leaving via X or simple pressing the button for leave vehicle took me back to the resource path, canceling YARMs remote view took me back to my original character. Even jumping between 2 trains with FatController showed no warnings.

Can you provide a screenshot of the errors and tell me which versions of FatController (and YARM) you are using? I'm running a slightly more developed version of TFC 0.3.23 and YARM 0.7.16
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1524
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by binbinhfr »

Yes, I did not think about these other named true characters.

But, maybe you could at least test that player.character is not nil (god mode)
And also maybe, you could test if player.character entity has flag "not-on-map" (YARM use this flag, and FAT also, and UPLINK). That should save "real-life" characters, no ?

it's in line 552 of control.lua, before switching to train.

Thanks for your answer.
My mods on the Factorio Mod Portal :geek:
Ringkeeper
Fast Inserter
Fast Inserter
Posts: 141
Joined: Wed Feb 03, 2016 7:16 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Ringkeeper »

Choumiko wrote:
Ringkeeper wrote: in which line? Didn't found it.

Since 0.12.25 i can't join multiplayer game (fresh game) if FAT is active. My screen just goes blank, my wifes game (she is the host) freezes. Logs don't give much. Removing FAT solves the problem.
line 12 in version 0.3.23

What version are you using? Did that version work before 0.12.25?
Can you upload a log from both players after the crash? (factorio-current.log in the Factorio folder)
sorry, no problem anymore... somehow i overlooked that you maintain the mod. I just downloaded the attached on in first post :)
And yes, there i found then also the typo :D
captncraig
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Mar 10, 2016 3:37 am
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by captncraig »

Love this mod. One thing that would be cool is a custom name per train. I have a lot of trains that go to some stations, so just seeing "moving to coal pickup" doesn't really help me identify trains. It would be awesome if I could set a name per train and have the fat controller show me my friendly name for the train. That way I could have trains like "power plant coal delivery" or "iron to smelter" or stuff like that. It looks like maybe factorio already has clever names per train we may be able to overwrite and display or something. Thoughts?
Trev_lite
Inserter
Inserter
Posts: 43
Joined: Sat Mar 28, 2015 9:20 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Trev_lite »

Im having a problem.
When I try to load my game I get an error.

Code: Select all

Unkown key:"Error while running the on_init:
__TheFatController__/control.lua:295:
attempt to index field 'guiSettings' (a nil value)"
using a quick save I get another error after I load the game.

Code: Select all

Error while running the event handler:
__TheFatController__/control.lua:295:
attempt to index field "guiSettings' (a nil value)
edit: never mind. i had 0.3.1 by mistake not 0.3.23
diilmac
Burner Inserter
Burner Inserter
Posts: 14
Joined: Wed Mar 23, 2016 12:34 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by diilmac »

polish translation made by me
http://pastebin.com/c7BHMuSq
enkindle
Burner Inserter
Burner Inserter
Posts: 15
Joined: Fri Mar 18, 2016 6:44 am
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by enkindle »

This mod is causing MP desync, it appears to be related to the refreshTrainInfoGui function.
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: [MOD 0.12.x] The Fat Controller. Remote train management

Post by Choumiko »

diilmac wrote:polish translation made by me
http://pastebin.com/c7BHMuSq
Thanks, i'll add it in the next release.
enkindle wrote:This mod is causing MP desync, it appears to be related to the refreshTrainInfoGui function.
Are you crosma on github? If so, is everyone using your version of FatController with the time at station countdown? If not then that's most likely the cause for the desync as your game will have a different gui as the other players. I'll accept your PR once i pushed my changes (this weekend probably)
Post Reply

Return to “Mods”