NOTE: This thread is for developer's discussion of the Cemetech AI script. If you are not a developer (a.k.a. Kerm Martian, jpez, or elfprince13) don't post here unless you've been told otherwise.
The only obstacle standing in our way is the following function, the one that continously updates the bot's move destination. If I could just find the code called when toybox spawns bots, I could do it so easily...
EDIT: Ok, it was easy finding the toybox code, but I'm having an impossible time finding the addbot(%client) function. Unfortunately, Google Desktop doesn't index the content of.cs files, so I can't just do a quick, simple search.
Hey Jon - I know how to do timeout functions. I'm gonna test it...
Oh, btw, here are some useful functions, in case you hadn't discovered them for yourself:
listclients(); //access to the elusive null numbers!
addbot(%client); //adds a following bot - must find code for this!
<player's null number>.player //the player object - you can have lots of fun messing around with this object
<bot/bot's null number>.setshapename(%name); //gives the bot a name that other people see
As I noted, we MUST find the code for addbot() - it contains the secret to making a following bot. From there, we just have to change the client parameters and arm the bot.
Ahhh, excellent, excellent...
I just joined the Blockland forums - I'll start a bot thread as soon as I get the confirmation email.
You probably won't get it until this evening. Here's a tip: don't post on the official blockland forums. Badspot hates TBM. Post instead on http://forum.mix-networks.com
Oh, ok, thanks for the tip.
OK, I almost got it working...
Edit: check out the code in killbots.cs...
a you Kerm, and you ability to spend 18 hours a day working on Blockland. I was gonna get this!
I swear, I checked killbots.cs, and it didn't have the addbot() function...
rotfl...get "Info(something) Search and Replace"
It's a program - you set search directory, subdirs, search string, filestypes, and it'll search within any type of file. You can also make it replace every instance of the search string with something else.
Gah...I relied on GoogleDesktop, which doesn't index the content of non-text files, even if they're text files with a different extension tacked on
What's the path for that? I could have sworn that I looked at killbots.cs, and I didn't see it...
errrr...tbm/server/scripts I believe?
I must have been looking at common\server\scripts\killbots.cs. Oops.
On second thought, I HAD looked at that file. I had skipped over it because I thought it was some sort of model file (because it's killbots.cs.dso), but now I see at the top it has all the bot functions. Not quite what I was hoping for, but it's a start.
DTS/DIF = model
CS = C# Code
CS.DSO = Compiled C# code
Well, it must be decompiled, I says! I need to know how addbot() works!
Could you repost that code you showed me on AIM yesterday?
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.
» Go to Registration page
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 vote in polls in this forum