Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Mon Oct 22, 2018 2:29 am

All times are UTC




Post new topic  Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Thu Aug 16, 2018 3:02 pm 
Offline
Engineer
Engineer

Joined: Thu Aug 16, 2018 2:56 pm
Posts: 3
Hi,

I'm currently renting/running a server from "Elite Game Server", and I'm wondering how I should write the AI code to get a random one to enter at given year:

In the openttd.cfg file I find the:
[ai_players]
none = start_date=730
none = start_date=730
none = start_date=730

I've tried something like this?
Advanced Capital Ventures = start_date = 1950
Trans Winter = start_date = 1950
ChooChoo = start_date = 1970
Mogul Trans Corp ltd. = start_date = 1970

I get some AI's to join, but they have no name, and they don't do anyting...
I've changed the:
[ai]
ai_in_multiplayer = true
ai_disable_veh_train = false
ai_disable_veh_roadveh = false
ai_disable_veh_aircraft = false
ai_disable_veh_ship = false

Can someone help me

Regards
Beleg :)


Top
   
PostPosted: Thu Aug 16, 2018 3:05 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1585
Location: Courbevoie, near Paris, France
The start date corresponds to when the AI starts after the foundation of your company in days.
So if you found your company in 1881 and want the AI to start in 1921, you should enter 29200 instead of 730.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Thu Aug 16, 2018 4:55 pm 
Offline
Engineer
Engineer

Joined: Thu Aug 16, 2018 2:56 pm
Posts: 3
aha, and how can I use specific AI's from Forums, or get them to have random "stats" so tha everygame is different? :)


Top
   
PostPosted: Thu Aug 16, 2018 6:21 pm 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1585
Location: Courbevoie, near Paris, France
AIs have their own stats, unless you know how to code AIs you cannot modify them.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Fri Aug 17, 2018 12:53 am 
Offline
Engineer
Engineer

Joined: Thu Aug 16, 2018 2:56 pm
Posts: 3
Just to be sure, this should work then:

[ai_players]
Nordlandsbanen = start_date=5
Fjellinjen = start_date=5
Norwegian Transport Network Holding = start_date=300
Vegamot = start_date=300
Vegfinans = start_date=600
Kvikkas = start_date=730
Nordtrafikk = start_date=850
Sporveien? = start_date=900
J�senfjord Rutelag = start_date=900
Hydro Transport? = start_date=1000
Torghatten Trafikkselskap = start_date=1000
Ivan Ulsund Rederi= start_date=1250
Brummen�s & Torgersen= start_date=1250
Buks�r og Berging = start_date=150
Fjord2 = start_date=1500


Top
   
PostPosted: Fri Aug 17, 2018 2:08 am 
Offline
Tycoon
Tycoon
User avatar

Joined: Fri Nov 03, 2017 6:57 pm
Posts: 1585
Location: Courbevoie, near Paris, France
Normally yes.

_________________
NewGRFs by Tony Pixel :
North American Passenger Railroads
Not Enough Subways


My screenshots


Top
   
PostPosted: Fri Aug 17, 2018 3:37 am 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5304
Location: The Moon
Beleg wrote:
how can I use specific AI's from Forums


You need to use the actual name of the AI (eg AdmiralAI, SimpleAI, CivilAI) rather than made-up company names.

In a running game, you can also use the console command start_ai <AIName>, or just start_ai to add a random AI.

_________________
Pikkarail.com blog | Patreon
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.