View unanswered posts | View active topics It is currently Sun Nov 09, 2025 12:32 am



Reply to topic  [ 4 posts ] 
 scripting with ChatGPT 
Author Message
Lieutenant Commander
User avatar

Joined: Sun Jan 29, 2006 3:00 am
Posts: 800
Location: Iowa
Post scripting with ChatGPT
Is anybody working on teaching an AI to do some TWX scripting?

I've gone from thinking I'd never need AI to wondering if a couple
years from now we'll be totally dependent on its use.

_________________
#+++
The early bird may get the worm, but the second mouse gets the cheese.
#---


Wed May 28, 2025 8:43 am
Profile ICQ YIM
Ensign
User avatar

Joined: Mon Dec 26, 2011 8:41 am
Posts: 210
Post Re: scripting with ChatGPT
We won't be dependent on it - it's just a productivity tool.

And anyway, it looks like ChatGPT already knows some stuff. Here's what it gave me for the prompt "can you write a twxproxy script that moves colonists from sector 1 to planet number 23 in the current sector and assigns them to fuel ore?"

I haven't tested it.

(edit:) looks like it's not gonna get to sector 1 unless it's right next door, maybe. But if you tell that to ChatGPT it'll probably fix it properly. Then you'll find another problem, and you can get ChatGPT to help you fix that, too. And on and on, just like with any other language. It's pretty tedious but it still beats doing all of it yourself. Sometimes.

# SCRIPT: move_colonists_to_planet23.ts
# PURPOSE: Move colonists from sector 1 to a planet in another sector, then assign to Fuel Ore

proc main
# Move to sector 1
setTextLineTrigger 1 moveDone "Command [TL="
send "1*"
pause
:moveDone

# Check if we have colonists in our hold
setTextLineTrigger 2 checkColonists "Citadel command (?=Help)"
send "c"
pause
:checkColonists

# Launch from citadel
send "q"

# Assuming we're carrying colonists now
# Move to the destination sector (example: 5)
# If you want to stay in current sector and planet is here, skip this
# Uncomment below and change sector if needed
# setTextLineTrigger 3 warpDone "Command [TL="
# send "5*"
# pause
:warpDone

# Land on planet #23
setTextLineTrigger 4 planetMenu "Planet #23 command (?=Help)"
send "l23"
pause
:planetMenu

# Transfer all colonists from ship to planet
setTextLineTrigger 5 planetMenu2 "Planet #23 command (?=Help)"
send "tc"
pause
:planetMenu2

# Assign colonists to Fuel Ore production
setTextLineTrigger 6 prodMenu "Production command (?=Help)"
send "p"
pause
:prodMenu

# Assign all available colonists to Fuel Ore
setTextLineTrigger 7 done "Production command (?=Help)"
send "f"
pause
:done

# Done!
send "q"
halt
end

_________________
I'm a monkey and I have mad monkey skills for hire.
https://codemonkeyfromspace.com


Wed Jun 04, 2025 8:41 pm
Profile ICQ WWW
Commander
User avatar

Joined: Wed May 01, 2013 11:28 pm
Posts: 1345
Location: Rural Indiana
Post Re: scripting with ChatGPT
Micro is working on that since he can't see well anymore he's using it as a programing tool. not for twx though.


sk

_________________
Star Killer
USA(RETIRED)
Loyalty Above All Else Except Honor
Playing with integrity is more important than winning
HHT 2015 Champs: Cloud09
2015 Lottery Tournament Winning Team Member
2016 Big Game Draft Tournament Winning Team Member
HHT 2016 Champs: Cloud09
HHT 2021 Champs(Just For Showing Up)
HHT 2022 Champs(For 90mins of Play)

Star Killer's Ice9 TWGS
Viper's Pit V1 TWGS
Website: http://sk-twgs.com
Email: starkillerstwgs@yahoo.com
Discord: Star Killer#0358
Ice 9 V2 TWGS: SK-TWGS.COM PORT 2002
Viper's Pit V1 TWGS: V1.SK-TWGS.COM PORT 23
Now The Fastest TWGS in the West
https://www.facebook.com/StarKillersTradeWars/
To help offset the server(s) hosting bill donate via PayPal to: starkillerstwgs@yahoo.com


Wed Jun 25, 2025 3:33 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1133
Location: Augusta, GA
Post Re: scripting with ChatGPT
Astrochimp wrote:
We won't be dependent on it - it's just a productivity tool.

And anyway, it looks like ChatGPT already knows some stuff. Here's what it gave me for the prompt "can you write a twxproxy script that moves colonists from sector 1 to planet number 23 in the current sector and assigns them to fuel ore?"

I haven't tested it.

(edit:) looks like it's not gonna get to sector 1 unless it's right next door, maybe. But if you tell that to ChatGPT it'll probably fix it properly. Then you'll find another problem, and you can get ChatGPT to help you fix that, too. And on and on, just like with any other language. It's pretty tedious but it still beats doing all of it yourself. Sometimes.

# SCRIPT: move_colonists_to_planet23.ts

You're fired, ChatGPT. That script was terrible. :)

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Fri Oct 10, 2025 11:07 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.