View unanswered posts | View active topics It is currently Sun Apr 26, 2026 9:23 am



Reply to topic  [ 5 posts ] 
 has anyone ever made an AI? 
Author Message
Staff Sergeant

Joined: Sun Dec 17, 2006 7:01 pm
Posts: 17
Unread post 
Has anyone tried to make a script that tries to win with no outside user intervention?


Fri Dec 22, 2006 5:33 am
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
There are scripts that are close, however running AFK you would die. Players adapt in endless ways and would eventually figure out your AI and SD you.

Some players run world trade/steal scripts AFK and that is a sure way to die. I have seen players run scripts that warp into dock to refurb their ships (stealing, fueling, or alien capping) thinking that their macros would keep them safe - they don't when it is done by an AFK script.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Fri Dec 22, 2006 6:52 am
Profile ICQ
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Speaking of which what is the simplest bot to use with say 25 maxed SBB ports and a mobile planet.  We are in a big bubble and I am doing by hand with _ck_planet_nego.cts and _ck_buydown.cts

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Fri Dec 22, 2006 10:51 pm
Profile ICQ
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 
Cernnunos wrote:
Speaking of which what is the simplest bot to use with say 25 maxed SBB ports and a mobile planet.  We are in a big bubble and I am doing by hand with _ck_planet_nego.cts and _ck_buydown.cts


Sorry I don't know of the simplest bot to use for this but a very simple (no error checking) outline of a script would be:

# get sectors - either by entry or reading a file
echo "*Enter sectors seperated by a space"
getConsoleInput $sectorList

# init variables to be used for the gosubs

# setup a loop to move through the sectors
:loopStart
   # get the sector to warp to
   setVar $i 1
   getword $sectorList $tradeSector $i
while ($tradeSector > 0)
      # warp to sector
      send "p" $tradeSector "*y"
      # gosub to set CK's variables
      gosub :loadBuydown
      load "_ck_buydown.cts"
     # setup a waitfor for the ending text
      waitfor "whatever the text is"
     # gosub to setup nego vars
      gosub :loadSell
     load "_ck_planet_nego.cts"
     # another waitfor
     waitfor "whatever this text is"
     add $i 1
     getword $sectorList $tradeSector $i    
end
# add commands to go "home"
halt


#------- gosubs

:loadBuydown
setVar $_CK_BUYDOWN_FUELROUNDS $CKBUYDOWNFUEL
setVar $_CK_BUYDOWN_ORGROUNDS $ckbuydownorg
setVar $_CK_BUYDOWN_EQUIPROUNDS $CKBUYDOWNEQUIP
setVar $_CK_BUYDOWN_MODE $ckbuydownmode
saveVar $_CK_BUYDOWN_FUELROUNDS
saveVar $_CK_BUYDOWN_ORGROUNDS
saveVar $_CK_BUYDOWN_EQUIPROUNDS
saveVar $_CK_BUYDOWN_MODE
return

:loadSell
setVar $_CK_PNEGO_FUELTOSELL $ckpnegofuel
setVar $_CK_PNEGO_ORGTOSELL $ckpnegoOrg
setVar $_CK_PNEGO_EQUIPTOSELL $ckpnegoEquip
saveVar $_CK_PNEGO_FUELTOSELL
saveVar $_CK_PNEGO_ORGTOSELL
saveVar $_CK_PNEGO_EQUIPTOSELL
return

          

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sat Dec 23, 2006 3:37 am
Profile ICQ
Gameop
User avatar

Joined: Sun Oct 08, 2006 2:00 am
Posts: 991
Unread post 
Prom,

I just wrote one without the loop. And I was coming here to ask how to loop the same 9 lines while pulling the sectors from a file. Thanks for the loop structure. I will get it into my script. 

Ideally I would like to look into the twx database, find all off the SBB ports that are fully upgraded, read the sectors into a file, read the file into the script.

Cernnunos

PS: With your help I came up with something good for me and it works like a charm.

_________________
"All warfare is based on deception..." - Art of War
"Time will tell all tales" - SG
Any advanced tactic in TW is indistinguishable from cheating.


Sat Dec 23, 2006 3:53 am
Profile ICQ
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 29 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.