{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiczj76m53mqtpbyr5ryrh4fsbuvgxafhuwwvsq3cgwlrocv66f7ua",
"uri": "at://did:plc:i7budt2wflrcfy6jtvfocbix/app.bsky.feed.post/3mjflyvd7wmr2"
},
"path": "/viewtopic.php?p=1278821#p1278821",
"publishedAt": "2026-04-13T09:56:12.000Z",
"site": "https://www.tt-forums.net",
"tags": [
"main.nut",
"info.nut",
"haverer"
],
"textContent": "Hi All!\nFirst post - I've tried and tried by using ChatGPT etc. but going around in circles!!\n\nI'd like to be able to ultimately save an entry to a MySQL database with my openTTD bank balance each game day.\nI know that I'll need to do something to read the output from the console etc... as openTTD can't directly access the database / php scripts. That's fine.\n\nI've made a game script with the help of AI which should output the balance but it doesn't run. I was wondering if anyone with more knowledge could help me.\n\nI am using version 15.3\n\nHopefully I've attached my info and main nut files to this post.\n\nThe script appears in the game settings fine, I can select it and start a game no problem, but it won't run and output the bank balance.\n\nTIA\n\nmain.nut\n\n\n\ninfo.nut\n\nStatistics: Posted by haverer — 13 Apr 2026 09:56\n\n* * *",
"title": "OpenTTD AIs and Game Scripts • Extracting Bank Balance Each Day",
"updatedAt": "2026-04-13T09:56:12.000Z"
}