Page 1 of 1

AI assistant?

Posted: 30 Nov 2019 10:45
by jimbob
Is it possible to create a game script or ai to assist the player company? What methods are there for the player to communicate with it?

I'm more familiar with the ai api than the gs one so is it possible to create an interactive gui in a gs?

Re: AI assistant?

Posted: 30 Nov 2019 11:39
by odisseus
That's an interesting idea, and it's definitely feasible. In fact, something similar can already be achieved with the current AIs.

You can use cheats to take control of an AI company in a single player game. This will effectively turn the AI into your ally. However, every AI has its own ideas about what to build and when, and it won't actually assist you in building according to your plans.

I can imagine a dedicated assistant AI, which would take hints from the signs or the rail structure, and would complete menial tasks, such as building long stretches of rails, or adding new vehicles when cargo supply grows.

Re: AI assistant?

Posted: 30 Nov 2019 15:59
by jimbob
Reading the api it looks like a gs can perform actions as any company which is half the problem.

Is there a good way to communicate with the script either via the console or gs story pages?

Re: AI assistant?

Posted: 01 Dec 2019 07:03
by kamnet
You could start the game in server mode, that way Player 1 can be populated by an AI and directly controlled by a GameScript. You can then join the server and take control of Player 1.

Re: AI assistant?

Posted: 05 Dec 2019 20:47
by jimbob
Okay so assisting the player's company is the easy half, how can the player and ai communicate easily?

I'd like to avoid reading and writing to signs if possible, can the ai read/write to:
  • chat
  • the debug console
  • a settings page?
  • a GS story?