TrainStation Bot

04/26/2015 21:40 Zinal#1
Hello everyone!

I've made a bot for the facebook game TrainStation, written in AutoIT.
Seeing as it works pretty good (better than expected), I'll share it will everyone!

Requirements:
  • AutoIT Installed (Can be found [Only registered and activated users can see links. Click Here To Register...]
  • A Facebook Account! (Dah!)
  • Hints enabled in the game
  • Running the game on High-Quality

Features:
  • Unload Trains from Station
  • Unload Trains from Docks
  • Unload Trains from Town
  • Send Trains on a 10 minute trip
  • Catch "easter eggs/mail packages"
  • Automatically close any dialog that pops up
  • Resolution independant

How does it work?
This bot uses the hint arrows in the game to determine what to do. When a train arrives at the station, the arrow will be pointing at each of the waggons and lastly the engine itself.

Once the bot is started, press CTRL + Shift + T on your keyboard to actually start/stop the bot, you will see in the log window (and a tooltip window) if the bot was started or if an error occurred.

Files & Folders in the zip archive:
  • TS.au3 - The main file to run with AutoIT's Editor
  • ImageSearchDLL.dll - A dll file which contains functions to search the screen for a subimage
  • ImageSearch_hacked.au3 - An AutoIT script file that interfaces the .dll file
  • images - A folder that contains all the subimages used in the script
The zip file is password protected. The password is:

Note:
The reason that I do not recommend fullscreen is because it will take longer for the script to search the whole screen than the default size of the window.


Changelog

Version 1.1

Changes:
  • Removed support for catching floating mails (Didn't work as expected)
  • Faster train unloading
  • Cleared up the code a bit
  • Changed the start/stop hotkey to Ctrl + Shift + T

[Only registered and activated users can see links. Click Here To Register...]

Suggestions or comments are always welcome!
04/28/2015 00:23 jmencoliss#2
can't get the bot working
04/28/2015 14:23 Zinal#3
Quote:
Originally Posted by jmencoliss View Post
can't get the bot working
What is not working? Is the script running correctly in AutoIT? (Either in the Editor or an icon in the traybar)

If so, try the hotkey CTRL + Break to make it run.

Version 1.1 Released

Changes:
  • Removed support for catching floating mails (Didn't work as expected)
  • Faster train unloading
  • Cleared up the code a bit
  • Changed the start/stop hotkey to Ctrl + Shift + T

Download link in the first post!
05/13/2015 16:00 Keks666#4
Hi,:handsdown:

skript works fine,
except of sending trains 10min.
Skript klicks on an empty train, but then closes the window, and repeat...
Don't know if it's because of the STEAMTOPIA update (beacuse there are new places you can send the trains -6min- and -20min-) or because of the "close" button in the "send train to...." window?

Would be great if you debug this :D
05/24/2015 13:52 vjann#5
Forging like a charm :)
06/15/2015 00:14 pindul#6
Good Afternoon, i tried to make the script working but it worked for 3 hours and now nothing to do, not working anymore, suggestion?
06/25/2015 16:15 Deadtift#7
Greetings, I tried the script. If I press "ctrl + shift + T" I see a tooltip near the mouse that tell me "TS-Bot starting..." but after that nothing happen and i don't get any error message even if i start it whitout the game open.
There is any resolution restriction? The script folder must be in the AutoIT folder or it's ok if it's n my desktop?
08/17/2015 10:00 creamer1#8
Hi there, Love the bot, only issue is it wont send Resource trains for me, Passenger/XP/Mail trains are fine, Just not my resource one.
08/17/2015 11:58 FoRtZa***DyNaMo#9
hack for Diggy's Adventure?
08/17/2015 12:01 creamer1#10
Another issue I have is that it wont get passed the achievement/level up popup from the game.
09/22/2015 20:10 CAMMARO#11
Any news regarding new version ?
Ty
09/23/2015 18:12 Zinal#12
I'm in the process of recreating the whole bot from the ground up.
Much has changed since the last version I played so this might take a week or two.
But I'll keep you updated!
10/07/2015 13:22 christiaantje#13
Hey Zinal,

The main automated features of the bot are:
• Sending local trains
• Sending international trains (To friends)
• Receiving and sending out gifts (To friends)
• Replenish your station flags.
• Use Whistle

On the website u will find a live overview from your train fleet. The amounts u send out.

Just check it out if u have time, i think u guess can appreciate our effort.

[Only registered and activated users can see links. Click Here To Register...] does the job perfectly!
03/09/2016 06:11 talon12#14
I followed all the instructions and can't get the autobot to work. There is a dialog box that says that TS bot is starting but there is no followup. No dialog boxes or tools for the bot.
11/16/2016 10:02 der-ghost#15
I was on search for a Bot yesterday and found this one, after looking into the AU Script and fixing some Images to the new GameVersion. It just run now, (not perfect yet, but its useable for sending trains and using whistles). I also Added a Error Tooltip, so People would see Why it didnt start.


I added a new Hotkey to Toggle Between 6,10 and 30 minutes.

Only Requirement at the moment is to have a "Train Cooldown" on the TopLeft
as this verifies the TopLeft to Start with and Mr.Bills head without Icons (no mail or something on him)

If anybody wants it, let me know. I May fix the collect Mail and Speed up some things later.. But at the moment this is what i use.