Need help running mafia headless

For script writing
Post Reply
User avatar
lotsofphil
Leader of rum ham
Posts: 4075
Joined: Mon Mar 01, 2010 3:56 pm

Need help running mafia headless

Post by lotsofphil » Fri Mar 09, 2012 4:25 pm

I have a script I want to run, smilegirl.ash. I want to make a (Windows) batch file that, when executed, logs in with smilegirl, runs the script and then logs out.

I tried and failed, so figured I'd ask for help here.

User avatar
lostcalpolydude
Forum Maestro
Posts: 2940
Joined: Wed Apr 23, 2008 6:54 pm

Re: Need help running mafia headless

Post by lostcalpolydude » Sat Mar 10, 2012 12:18 am

Code: Select all

cd C:/wherever/mafia/is
java -jar KoLmafia.jar --CLI < smilegirl.ash
Should do it. The first line of smilegirl.ash should be "login smilegirl", mafia needs to have smilegirl's password stored, and the last line should be "logout" or "quit" (depending on which you actually want). Not actually tested.
bmaher: Softcore character
lostcalpolydude: Hardcore character (abandoned)

User avatar
lotsofphil
Leader of rum ham
Posts: 4075
Joined: Mon Mar 01, 2010 3:56 pm

Re: Need help running mafia headless

Post by lotsofphil » Sat Mar 10, 2012 9:02 am

Awesome, thanks so much :)

Post Reply