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?
AI assistant?
Moderator: OpenTTD Developers
AI assistant?
Real life transport planner
My projects:Link to my UK Scenario|Scenario Builder GS
Do check out my 3D unity transport game: transporter
Re: AI assistant?
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.
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.
My add-ons: • AdmiralAI fix • Persistence for vehicle evolution lines
My pictures: • The animation thread
My pictures: • The animation thread
Re: AI assistant?
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?
Is there a good way to communicate with the script either via the console or gs story pages?
Real life transport planner
My projects:Link to my UK Scenario|Scenario Builder GS
Do check out my 3D unity transport game: transporter
Re: AI assistant?
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.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets

Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: AI assistant?
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:
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?
Real life transport planner
My projects:Link to my UK Scenario|Scenario Builder GS
Do check out my 3D unity transport game: transporter
Who is online
Users browsing this forum: No registered users and 7 guests