Why base. results in "the index base does not(...)"? -solved

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

Post Reply
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Why base. results in "the index base does not(...)"? -solved

Post by Kogut »

Why base. results in "the index base does not exitsts"? Squirrel documentation: http://www.squirrel-lang.org/doc/squirrel3.html#d0e1738

Example of AI attached (name: TEST)
Attachments
test.tar
(4 KiB) Downloaded 59 times
Last edited by Kogut on 11 Oct 2012 18:25, edited 1 time in total.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Why base. results in "the index base does not exitsts"?

Post by frosch »

Just a wild guess. OTTD uses squirrel 2.x. Can you find the "base." syntax on this page?

http://www.squirrel-lang.org/doc/squirrel2.html

I can only find the syntax with the explicit name of the base class.
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: Why base. results in "the index base does not exitsts"?

Post by Kogut »

Is 2.x version number or is it 2.something, not sure what (I want to update wiki)?
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: Why base. results in "the index base does not exitsts"?

Post by Alberth »

'x' in version numbers like 2.x is commonly meant to be "some number", ie 2.something
('x' is just a lot shorter than 'something' :) )
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: Why base. results in "the index base does not exitsts"?

Post by Kogut »

Anybody that knows exact version is invited to edit http://wiki.openttd.org/AI:Squirrel
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: Why base. results in "the index base does not exitsts"?

Post by Yexo »

The last stable release, 2.2.5. Updated the wiki with the version.
Kogut
Tycoon
Tycoon
Posts: 2493
Joined: 26 Aug 2009 06:33
Location: Poland

Re: Why base. results in "the index base does not(...)"? -so

Post by Kogut »

Thanks!
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Post Reply

Return to “OpenTTD AIs and Game Scripts”

Who is online

Users browsing this forum: No registered users and 11 guests