Just decided to upload it.
http://binaries.openttd.org/bananas/ail ... S-1.tar.gz
I have no idea how to describe this thing, so here's a copy paste from the readme.
SCPClient_CompanyValueGS
========================
This library includes a Script Communication Protocol Client for AIs to be
able to play in a game running the Company Value GS game script with SCP
enabled.
-- API docs --
See main.nut of the library which have commented public members for more
details.
IsCompanyValueGSGame() - ret: bool
IsCompanyValueGSInGoalMode() - ret: bool
IsCompanyValueGSInRankingMode() - ret: bool
GetBestCompanyID() - ret: CompanyID
GetBestCompanyValue() - ret: integer (£)
GetCurrentTargetValue() - ret: integer (£)
RankingList() - ret: AIList (CompanyID, integer (£)) value sorted
GetCompanyIDRank(company_id) - par: CompanyID; ret: integer (#)
GetCompanyIDValue(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToTarget(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToBest(company_id) - par: CompanyID; ret: integer (£)
GetCompanyIDDiffToNext(company_id, next) - par: CompanyID, bool; ret: integer (£)
-- Library design idea --
The idea is that other GSes may provide SCPClient_<some other lib>, and
that AIs will want to include more than one of them. Therefore this
library does not initialize or include the SCP library. Instead you pass
an instance of it to the SCPClient constructor.
SCPClient_CompanyValueGS
Discuss the new AI features ("NoAI") introduced into OpenTTD 0.7, allowing you to implement custom AIs, and the new Game Scripts available in OpenTTD 1.2 and higher.
Moderator: OpenTTD Developers
Return to “OpenTTD AIs and Game Scripts”
Jump to
- Read These First
- ↳ News
- ↳ FAQ / Help Centre
- General
- ↳ Forum Suggestions and Feedback
- ↳ Real-World Transport Discussion
- ↳ Off-Topic
- ↳ Forum Games
- OpenTTD
- ↳ General OpenTTD
- ↳ OpenTTD Problems
- ↳ OpenTTD Suggestions
- ↳ OpenTTD Graphics
- ↳ OpenTTD AIs and Game Scripts
- ↳ OpenTTD Development
- Transport Tycoon Graphics Development
- ↳ Graphics Releases
- ↳ Graphics Development
- ↳ NewGRF Technical Discussions
- Transport Tycoon
- ↳ Transport Tycoon (2013)
- ↳ General Transport Tycoon
- ↳ Transport Tycoon (Original)
- ↳ Transport Tycoon Deluxe
- ↳ Problems
- ↳ Screenshots, Scenarios and Saved Games
- ↳ Screenshots
- ↳ Scenarios and Saved Games
- TTDPatch
- ↳ General TTDPatch
- ↳ Problems with TTDPatch
- ↳ Suggestions
- ↳ Graphics
- Chris Sawyer's Locomotion
- ↳ General Locomotion
- ↳ Locomotion Problems, FAQs and Tutorials
- ↳ Locomotion Beginners
- ↳ Locomotion Scenarios and Saved Games
- ↳ Locomotion Graphics, Modifications & Tools
- Other Projects and Games
- ↳ Simutrans
- ↳ Transport Giant
- ↳ 3DTT (Trains & Trucks Tycoon)
- ↳ Zugspiel
- ↳ Railroad Tycoon Series
- ↳ P1SIM
- Archived Forums
- ↳ Owen's TT Station Forum (Archived Posts)
- ↳ alt.games.microprose.transport-tyc
- ↳ Transport Empire
- ↳ Transport Empire Development
- ↳ Transport Empire Coding
- ↳ Transport Empire Graphics
- ↳ Transport Empire Development Archive
- ↳ Transport Unlimited
Who is online
Users browsing this forum: No registered users and 10 guests