(01-29-2018, 05:55 AM)Tjoeker Wrote: You will have a lot of fun, updating all airliners.I will definiately continue working on them.
You got the routes-code correct.
Yes, AI uses these files to create new routes and buy new airliners.
We had a discussion a few months ago about these premade routes.
It was said they made airliners predictable if you've played with them a few times.
But please, continue your awesome work.
I believe we should have it optional:
-Either the airliner doesn't use these files and fully uses its intelligence to create routes
-or the airliner uses its intelligence for creating routes, while preferring these premade onces.
(And I'd probably mostly play with the 'prefer preset routes' mostly.)
Anyway, I came up with some new instructions for the .xml's, what should be added to the aircrafts, which I will list Here:
1. buyfrom="xxxx" - Specifies the year from when the airline company can buy the specified aircraft.
2. buytill="xxxx" - Specifies a year until the selected aircraft will be purchased by the airline company.
3. sellfrom="xxxx" - Specifies the year from when the airline company can start selling the specific aircrafts.
4. selltill="xxxx" - Specifies the year till when the airline company must sell all the the specific aircrafts.
5. forcebuyin="xxxx" - Instructs the AI to buy all specified airliners the same year (maxing them out as specified by the late="x" command now, in the future the midgame="x" comand).
6. forcesellin="xxxx" - Instructs the game to sell all the specified airliners the same year.
7. replacewith="name" - Instructs the AI to replace the model with an another specific model
8. replacecount="x" - Instructs the AI to replace the old models count with the new models count.
9. replacefrom="xxxx" - The year since the replace should be held.
10. replacetill="xxxx" - the year the replacement should be finished.
11. forcereplace="xxxx" - Replaces the aircrafts the specified year (only can be done if replacecount is="1")
12. leaseable="true/false" - Instructs the AI to Lease or not to Lease the aircraft (this could be catchy to create, I leave it to Pjank if wants to implement it).
13. midgame="x" - Midgame specific aircraft count. If the game decides to sell them, it will be the max, and then the late will become "0" again.
For example:
<airliners>
<airliner type="Boeing 737-500" early="0" midgame="4" late="0" buyfrom="2003" buytill="2004" forcesellin="2008" leaseable="true"></airliner>
</airliners>
Or:
<airliners>
<airliner type="Boeing 737-200" early="0" late="7" forcebuyin="1973" replacewith="Boeing 737-500" replacecount="3" replacefrom="1988" replacetill="1990" sellfrom="1989" selltill="1991" leaseable="false"></airliner>
</airliners>
And here are some new instructions for the routes:
1. datestorun="1,2,3,4,5,6,7" - Explains the game what day should he create lines. (1-monday, 2-tuesday, 3-wednesday, ect...)
2. runcount="1,x-y" - Explains the game how many times a day should it run the line.
3. runcount(x)="1" - Specifies a day when the run count should be different.
For Example:
<route destination1="BUD" destination2="DUB" opened="1985" closed="2199" datestorun="1,3,4,6" runcount="2" runcount(3)="1"/>)
QuickTips:
- If the AI doesn't have enough money for the replacement, it should take out a loan for it.
- At the replacing procedure the AI would replace randomly the aircrafts from the poll. The game should copy the assigned timetable to the new aircraft.
For now this is all I came up with.
Later maybe I will have some more ideas for the AI.
Have a nice day guys!