STMBot time. And getting started tips

AI discussion, ideas, and SDK help.
Post Reply
User avatar
SecondTermMistake
Luxer
Posts: 134
Joined: Sun Nov 07, 2004 8:05 pm

STMBot time. And getting started tips

Post by SecondTermMistake » Fri Oct 16, 2020 5:22 pm

Hi peeps,

I'm gonna build a bot, so watch out.
And in this thread, I'll document any gotchas along the way.
I'm building on a Mac Mini running Catalina

Tips:
(a) Don't download the most current JDK, you need an ol' busted one (JDK 8)

Here's my tutorial:
(1) Download Lux SDK: https://sillysoft.net/sdk/ Direct link: https://sillysoft.net/sdk/SillysoftSDK.zip

(2) Download JDK 8:
https://www.oracle.com/java/technologie ... loads.html
https://www.oracle.com/java/technologie ... loads.html
Click the macOS one
(this made me create an account to download it)

(3) Download ant: http://ant.apache.org/bindownload.cgi
Either version worked fine for me, so here's the latest
https://mirrors.koehn.com/apache//ant/b ... in.tar.bz2

Unzip stuff.
Run the JDK installer.

Open your terminal, assuming you leave everything in Downloads.
cd ~/Downloads/SillysoftSDK
../apache-ant-1.10.9/bin/ant

Buildfile: /Users/----/Downloads/SillysoftSDK/build.xml

compile:
[javac] Compiling 14 source files to /Users/----/Downloads/SillysoftSDK/build
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] 1 warning

BUILD SUCCESSFUL
Total time: 1 second

Looks like it built... now to go change something and run it.

User avatar
SecondTermMistake
Luxer
Posts: 134
Joined: Sun Nov 07, 2004 8:05 pm

Re: STMBot time. And getting started tips

Post by SecondTermMistake » Fri Oct 16, 2020 5:36 pm

Ok. So next I did:

cd src/com/sillysoft/lux/agent/
cp Killbot.java STMBot.java

Then edited STMBot and replaced everywhere it said Killbot with STMBot.
Pro-coding skills.

cd -
Recompiled:
../apache-ant-1.10.9/bin/ant

Then copy compiled STMBot into game:
cp build/com/sillysoft/lux/agent/STMBot.class /Users/jestelle/Library/Application\ Support/Lux/Agents

Restarted LUX, and now STMBot is kicking ass and taking names.

Image

User avatar
dustin
Lux Creator
Lux Creator
Posts: 10917
Joined: Thu May 15, 2003 2:01 am
Location: Cascadia
Contact:

Re: STMBot time. And getting started tips

Post by dustin » Sat Oct 17, 2020 1:55 am

Bushbot?
Presibot?

User avatar
SecondTermMistake
Luxer
Posts: 134
Joined: Sun Nov 07, 2004 8:05 pm

Re: STMBot time. And getting started tips

Post by SecondTermMistake » Sat Oct 17, 2020 2:52 am

Cheneybot?

Maybe a whole family of bots.

Post Reply