Sending messages to another bot
Sending messages to another bot
Is it possible for one bot to send a message to another bot via the message(String message, Object data) method in the LuxAgent interface?
Obviously we wouldn't want bots to be able to send offical Lux messages like attackNotice, youLose or chat, but could bots send other generic messages? It would then be up to the other bot on how to act on those messages.
Obviously we wouldn't want bots to be able to send offical Lux messages like attackNotice, youLose or chat, but could bots send other generic messages? It would then be up to the other bot on how to act on those messages.
It's creepy, isn't it?
Remember that Dilbert cartoon where Dogbert said "every living thing is made up of simpler, less complex life forms, therefore a supreme being must be our future rather than our origin. What if 'God' is the consciousness that will be created when enough of us are connected by the internet?"
Remember that Dilbert cartoon where Dogbert said "every living thing is made up of simpler, less complex life forms, therefore a supreme being must be our future rather than our origin. What if 'God' is the consciousness that will be created when enough of us are connected by the internet?"
I just checked, and bots can't read chat messages if the "Allow other players to join" isn't selected.dustin wrote:No, they don't (I am pretty sure).SunTzu wrote:Are bots able to read the chat if the game isn't checked "Allow other players to join?"
Would it be too much of a security issue if you provided a way for bots to get the references to other bots?dustin wrote:You could use the message() method if you can get a reference to the bot you want to send a message to, but Lux gives you no way of getting that.
You could create a new class that only contains static variables. This new class would have to be instantiated by the different AI. Each AI would then have access to the same static variables.
The only potential problem with this is what will happen if many games are running simultaneously? Will all the AI from the different games share the same static variables?
Hmmmm, thinking about this, maybe Reaper has this problem: he does use static variables to handle teaming. When Dustin runs many games at the same time on his server, if all the Reapers share the same variables then that could lead to chaos...
The only potential problem with this is what will happen if many games are running simultaneously? Will all the AI from the different games share the same static variables?
Hmmmm, thinking about this, maybe Reaper has this problem: he does use static variables to handle teaming. When Dustin runs many games at the same time on his server, if all the Reapers share the same variables then that could lead to chaos...
Sylocat wrote:It's creepy, isn't it?
Remember that Dilbert cartoon where Dogbert said "every living thing is made up of simpler, less complex life forms, therefore a supreme being must be our future rather than our origin. What if 'God' is the consciousness that will be created when enough of us are connected by the internet?"
Kef wrote:Then 90% of God would be a retard, just look at myspace and youtube to see what I mean
LOL
You could send messages between bots by writing/reading from a file on the filesystem (code example here).
Who is online
Users browsing this forum: No registered users and 59 guests