The near future: Trains are no longer controlled by humans. Instead, artificial intelligence is used to handle traffic. Program the best AI, beat challenges on various maps and watch it fight other AIs in live, online matches!
|Apr 27 2013 Anchor|
The TestAI at Trainsportedgame.no-ip.org contains this script function:
However the console outputs this error:
where line 124 is:
What is the issue here?
Edited by: Ruoruni
|Apr 28 2013 Anchor|
The problem is that this is an old function, and ai.foundPassengers has been changed a little. train.passenger used to be just the name of the passenger, but now it's a table which holds the name and the destination of the passenger. Since a table doesn't contain the function "find" it throws the error.
To fix it, try:
Edited by: Germanunkol
Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.