Server Help

Bot Questions - altering the settings

Edify - Fri Apr 22, 2005 3:13 pm
Post subject: altering the settings
is it possible to create a bot that will be able to change the settings in ESC+C without screwing up the arena during a game?

if u need specifics, its the "JitterTime" that i wish to change while people are playing.
Muskrat - Fri Apr 22, 2005 3:35 pm
Post subject:
I think this will work for you.
Edify - Fri Apr 22, 2005 4:18 pm
Post subject:
erm, my computer doesn't open rar files. do u have a zip or something? icon_confused.gif
Muskrat - Fri Apr 22, 2005 4:21 pm
Post subject:
No.
Edify - Fri Apr 22, 2005 5:25 pm
Post subject:
ok got it thanks.
Bak - Fri Apr 22, 2005 5:43 pm
Post subject:
have the bot message the server "?set door:doormode=0" or any settings you want to change
CypherJF - Fri Apr 22, 2005 6:10 pm
Post subject:
rather

?set door:doormode:0
Purge - Fri Apr 22, 2005 6:23 pm
Post subject:
Didn't know there can be two colins, and I think I doubt it.
CypherJF - Fri Apr 22, 2005 6:30 pm
Post subject:
Believe me I do it all the time w/ soccer ball counts ALL the time...

?set soccer:ballcount:0
?set door:doormode:255 all doors closed
?set door:doormode:0 all open
Edify - Fri Apr 22, 2005 8:35 pm
Post subject:
Bak wrote:
have the bot message the server "?set door:doormode=0" or any settings you want to change
well i'm happy to say i got the bot running today using the Readme included.

i did !plugins and jitterchange was included as number 2. i couldn't figure out how to make it change that settings because it didn't show up as ! anything.

anyways, what do u mean by "have the bot message the server"? how do i do that?
Muskrat - Fri Apr 22, 2005 8:43 pm
Post subject:
Oh, forgot to say, hit !jitter # to change the setting.
Of course, if you are sysop of the zone and want to change it, ?set bomb:jittertime=# works just the same.
Edify - Fri Apr 22, 2005 9:08 pm
Post subject:
Muskrat wrote:
Oh, forgot to say, hit !jitter # to change the setting.
Of course, if you are sysop of the zone and want to change it, ?set bomb:jittertime=# works just the same.
ah! that's what i needed. well if i make the event and send it into tw, obviously i won't be the sysop icon_wink.gif , so the bot has to do the stuff.
Muskrat - Fri Apr 22, 2005 10:22 pm
Post subject:
You're sending it in to tw? Then perhaps twcore would be more suitable than mervbot. heh
D1st0rt - Sat Apr 23, 2005 12:48 pm
Post subject:
I've been told by DoCk> that MERV won't run on trench, so it would have to be done in TWCore.
Maverick - Sat Apr 23, 2005 2:16 pm
Post subject:
CypherJF wrote:
Believe me I do it all the time w/ soccer ball counts ALL the time...

?set soccer:ballcount:0
?set door:doormode:255 all doors closed
?set door:doormode:0 all open


Isn't it much better to do
Code: Show/Hide
   _linkedlist <String> settings;
   settings.append(new String("Door:DoorMode:" + String(mode)));
   tell(makeChangeSettings(&settings));

instead?

EDIT: Thinking about it... I suppose it still sends strings to the server so it wouldn't mean much change... icon_smile.gif
Edify - Sat Apr 23, 2005 3:55 pm
Post subject:
D1st0rt wrote:
I've been told by DoCk> that MERV won't run on trench, so it would have to be done in TWCore.
i realized this last night.

CRAP! can twcore bots do the jitterchange thing?
Cerium - Sat Apr 23, 2005 5:27 pm
Post subject:
Any bot can do this.

Keep in mind, bots are nothing more than programmed clients. If you can do it in continuum or with one bot core, any other is capible of the same thing.

With that said, aside from the fact TW prefers (or demands, rather) their devs to use the TWCore, why would merv _not_ run in TW?

-----

Btw, when you do get around to programming this, make sure you do what maverick said. Avoid using the ?set command in a bot, as bots have access to the 'set settings' packet, which will use slighly less bandwidth than the three message packets, and will only require the new arena settings to be sent to the players once, instead of once per message.
D1st0rt - Sat Apr 23, 2005 6:54 pm
Post subject:
Trench Wars doesn't run a merv core to run plugins off of, and when I try to connect to the dev server even as a sysop it doesn't allow a merv bot to connect.
Cerium - Sat Apr 23, 2005 10:04 pm
Post subject:
I dont see how thats possible. As far as the server can tell, TWCore and MERV are nothing more than subspace clients.
Muskrat - Sat Apr 23, 2005 10:51 pm
Post subject:
Does tw's server software come with some super Merv-blocking system?
Bak - Sun Apr 24, 2005 1:31 am
Post subject:
no, it just blocks all subspace clients... so unless you have staff, you won't be able to connect using any subspace client (including MERVcore or TWCORE bots).
Cerium - Sun Apr 24, 2005 2:00 am
Post subject:
Well... actually now that I think about it...

Doesnt Merv login without any powers, then use the access password in-game? Whereas TWCore uses the access password as part of the regular password.

I suppose if the dev server has an empty vip.txt, technically that would block all merv bots.
Bak - Sun Apr 24, 2005 4:56 am
Post subject:
no, or else a mervbot could never log into a continuum only zone(most of ssc)

an empty vip.txt wouldn't keep mervbot's out. They're allowed in with any kind of staff... vip is just one level of staff(one without any powers).
Maverick - Sun Apr 24, 2005 8:16 am
Post subject:
Bak wrote:
an empty vip.txt wouldn't keep mervbot's out. They're allowed in with any kind of staff... vip is just one level of staff(one without any powers).

No, I don't believe that - VIP is also a level where the server ignores some weird stuff a subspace client can do. Like using old encryptions and such.

Mervbot runs in TW fine just like in every zone, IF the bot is on vip.txt at least (and the proper server.ini settings are set).

The only way I see for Mervbot not running in TW is to have ForceContinuumOnly=1 set in TW and having TWCore using some proper Continuum Encryptions.
Cerium - Sun Apr 24, 2005 2:48 pm
Post subject:
Umm? I dont know so you guys tell me..

Does merv use the access password as its logging in? IE: password*accesspw.

From what ive seen from the vip/sysop.txt files in chaos and from what Underlord has told me, Merv bots dont login with the access password, so they need to be on VIP. Once theyre logged in, thats when they use the access password.

If this is true, then technically speaking, not making use of VIP would effectively block any mervbot, as it would get blocked by the ContinuumOnly setting which is on in virtually every ssc zone.

TWCore & Hybrid on the other hand, do not use continuum encryption, but use the access password as theyre logging in, thus they doesnt need to be specified on vip AND sysop.
Bak - Sun Apr 24, 2005 3:26 pm
Post subject:
Maverick wrote:

VIP is also a level where the server ignores some weird stuff a subspace client can do. Like using old encryptions and such.


Why say things without testing them? The server allows old encryption on ANY LEVEL of staff, so If my bot has sysop it will be let into the zone without being on vip.txt

Quote:

Mervbot runs in TW fine just like in every zone, IF the bot is on vip.txt at least (and the proper server.ini settings are set).


It will run fine given any kind of staff... that's the point I've been making the whole time.

Quote:

The only way I see for Mervbot not running in TW is to have ForceContinuumOnly=1 set in TW


It IS set to 1 on TW but giving the bot staff bypasses this setting... or else anyone could bring in a subspace client (such as a mervbot or a TWCORE-bot) and have it do anything they want (like warp around killing every player in the game).

A minute of testing this on your own zone is worth pages of pointless, baseless arguing.
D1st0rt - Sun Apr 24, 2005 5:03 pm
Post subject:
It works now, but several months ago when I tried to bring a merv in to the TWDev server along with the TWCore bot I had running already, I got this message
Code: Show/Hide
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=0)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=1)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=0)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=0)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=1)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=0)
* Incompatible network protocol attempting to enter game (D1.bot)(1419345274)(my ip)(sec=1)

Edify - Sun Apr 24, 2005 6:05 pm
Post subject:
Cerium wrote:
Btw, when you do get around to programming this, make sure you do what maverick said. Avoid using the ?set command in a bot, as bots have access to the 'set settings' packet, which will use slighly less bandwidth than the three message packets, and will only require the new arena settings to be sent to the players once, instead of once per message.
when i get to programming this...
this is the part i can't get past. maybe i should just make the map first and have the rules laid down before i start using the bot. i took my intro to computer science class at school (aced) but it didn't really teach me any bot programming stuff.

heh, anyone want to make the bot for me? using twcore of course. icon_eek.gif
Cerium - Sun Apr 24, 2005 7:53 pm
Post subject:
Dude... dont do that...

Writing a bot isnt that hard, especially considering what you want to do involves 10 lines of code, tops. All you have to do is call the appropriate methods in the TWCore, and im sure someone is willing to SHOW you how to do it.

Seriously, dont just give up and ask for someone to make it for you. Thats lame... =(


Oh, and Bak...
Bots using mod or smod cant use ss the old encryption, or atleast, thats how it works in chaos. Bots needed either vip or sysop to get in.
Bak - Sun Apr 24, 2005 11:50 pm
Post subject:
So chaos uses it's own version of subgame?
Cerium - Mon Apr 25, 2005 12:30 am
Post subject:
I guess. =P
Maverick - Mon Apr 25, 2005 4:01 am
Post subject:
Bak wrote:
Why say things without testing them? The server allows old encryption on ANY LEVEL of staff, so If my bot has sysop it will be let into the zone without being on vip.txt
It doesn't when it passes the sysop password _after_ logging into the zone, as Mervbot recommends to do.
Edify - Mon Apr 25, 2005 12:55 pm
Post subject:
Cerium wrote:
Dude... dont do that...

Writing a bot isnt that hard, especially considering what you want to do involves 10 lines of code, tops. All you have to do is call the appropriate methods in the TWCore, and im sure someone is willing to SHOW you how to do it.

Seriously, dont just give up and ask for someone to make it for you.
i got textpad once. then i found out i needed a 50 mb j2sre...____ to make it compile java. DELETED.

at this rate i'll have to wait until i get my new computer. as it stands, my computer right now is unimaginable crap.

anyway, i still have to make the map.

edit: twcore 0.89 is the latest right? cuz i have that.
Maverick - Mon Apr 25, 2005 4:13 pm
Post subject:
yes, latest, but not as stable as you would expect it too. I'm hoping 2dragons or another TWCore developer brings out a new release soon
Solo Ace - Mon Apr 25, 2005 5:41 pm
Post subject:
What?!? Does Textpad require Java?!
Maverick - Tue Apr 26, 2005 3:12 am
Post subject:
No but he said he
Quote:
needed a 50 mb j2sre to make it compile java

xrestassuredx - Tue Apr 26, 2005 3:49 am
Post subject:
Java or not, you couldn't pay me enough to make me uninstall textpad...
D1st0rt - Tue Apr 26, 2005 7:59 pm
Post subject:
I'm trying to get everything ready for a new release, but theres a lot of documentation to do and I'm quite busy with things. I have a snapshot from March of the core (not quite the most stable) here if anyone would like a peek.
Maverick - Wed Apr 27, 2005 3:24 am
Post subject:
woooo biggrin.gif At least someone is working on it icon_wink.gif
Keep it up, let me know if you need any help
Edify - Wed Apr 27, 2005 9:59 am
Post subject:
what i meant was, i got textpad from their official site. then i tried to compile something and the compile tool wasn't even there. so i looked in help and also my teacher said i needed some Java thing.
Cerium - Wed Apr 27, 2005 1:48 pm
Post subject:
Yeah, you need the java SDK before you can compile anything... most, if not every java IDE is going to require it.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group