Search found 6 matches

by leo_85
Sun Jan 21, 2024 1:28 am
Forum: Ideas and Suggestions
Topic: Add a way to have null fields in game.table_to_json() function
Replies: 3
Views: 598

Add a way to have null fields in game.table_to_json() function

hello, I'm working on a mod that use the game.table_to_json function a lot. The problem I face is that, in Lua, setting a table value to nil is equivalent to removing this value from the table and because of this the fields does not appear in the json, but I have plenty of usecases where I need some...
by leo_85
Mon Nov 27, 2023 2:34 pm
Forum: Modding help
Topic: Does headless factorio have an API for playing the game? - Looking to train an AI to do so
Replies: 3
Views: 770

Re: Does headless factorio have an API for playing the game? - Looking to train an AI to do so

Hi there, I'm a CS student interested in training an AI to play my favourite game so the factory can grow even when I'm not playing. There's a couple of things that would make this nice, and I'm wondering if factorio supports them: - Speed up play: It would really speed up training if I could run f...
by leo_85
Thu Nov 23, 2023 6:18 pm
Forum: Modding help
Topic: mod communicating with the outside world
Replies: 7
Views: 1335

Re: mod communicating with the outside world

thank you everyone i think i have all i need to start my project!
by leo_85
Wed Nov 22, 2023 5:26 pm
Forum: Modding help
Topic: mod communicating with the outside world
Replies: 7
Views: 1335

Re: mod communicating with the outside world

I was interested in this before. But you have already found all the info you need. Rcon for data in, file writing for data out. It's up to you to make a good protocol. But you can send data io as JSON so writing and parsing is trivially handled my your chosen languages (for the external program) JS...
by leo_85
Wed Nov 22, 2023 1:30 pm
Forum: Modding help
Topic: mod communicating with the outside world
Replies: 7
Views: 1335

Re: mod communicating with the outside world

Not sure if this is related to what you want or if you are familiar with it but i have seen factorio game communicating to people on phone using discord. I know it is used for moderation so you can read the ingame chat from discord. You can see research, and i think also receive custom notification...
by leo_85
Wed Nov 22, 2023 10:59 am
Forum: Modding help
Topic: mod communicating with the outside world
Replies: 7
Views: 1335

mod communicating with the outside world

hello! first thing first, my english is broken, i'll do my best (sorry in advance) so! i'd love to make a mod that allow you to monitor and manage you factory through your phone via an app, by this i mean: - read/write in the chat - kick/ban/mute/promote player (if admin) - see progression of and be...

Go to advanced search