Server Help

Bot Questions - 1v1 Dueling (mav's)

Anonymous - Thu Sep 29, 2005 9:21 am
Post subject: 1v1 Dueling (mav's)
I know mav made a duel bot; but the ini is so fucking confusing! Can someone explain the layout to me in better detail than his?
Maverick - Thu Sep 29, 2005 9:50 am
Post subject:
This is the duel.ini
Code: Show/Hide


[Boxes]
// Portals should be near the respawn area: bot warps players from here to the duel box
// Erase the boxes you don't need, 0-7 are supported
// Syntax: 0=x1 y1 x2 y2  x3 y3  x4 y4  x5 y5 x6 y6 name
//          source portal   |      |         |
//                     first drop  |         |
//                          second drop      |
//                                    box rectangle

//               ||       ||       ||               |
0=508 488 511 494  290 138  432 280  285 133 437 285 1 - North-West

All you need to do is to specify coordinates. Coordinates are paired; a x-coordinate and an y-coordinate number.

For each box you write a line like this:
0=<warp box coords> <spawn position player 1 inside duel box> <spawn position player 2 inside duel box> <duel box top left coord> <duel box bottom right coord> <Duel box name>

So you get for example:
0=508 488 511 494 290 138 432 280 285 133 437 285 This is Duel Box 1!

And for the second duel box:
1=487 506 493 509 138 290 280 432 133 285 285 437 This is Duel Box 2!

For each duel box, increase the number before the = .

How to get the Coordinates, Warp Box:
Click the Select tool
Select the area and get the numbers from the bottom status bar.
Notice how the numbers from this picture match the numbers in the CODE example.

How to get the Coordinates, Spawn Point 1:
Hold your mouse above the point where you want player #1 to spawn. Remember and write down the coordinates.

And the same for the rest.

BTW. I used SSME in the example images.
Cyan~Fire - Thu Sep 29, 2005 3:52 pm
Post subject:
Really. If you need a graphic tutorial to explain it, why not make it simpler? What ever happened to
Code: Show/Hide
[Box1]
Portal=
FirstDrop=
SecondDrop=
Box=

Maverick - Thu Sep 29, 2005 5:48 pm
Post subject:
lazyness to change the original bot sa_tongue.gif

http://catid.ssihosting.com/files/plugins/duel.zip

It's not really that hard at all and you only need to do it once to setup the bot.
Agurus - Tue Oct 04, 2005 11:23 am
Post subject:
Quote:

duel.dll build 1


Warnings:
If you decide to let the bot manage doors to indicate locked duel
boxes (recommended), the bot REQUIRES SYSOP.


About:
Hosts 1v1 duels. Players cannot interfere with duels.
Resets ships in safety zones.
Does not require players to learn bot !commands.

Does not keep score. Players decide how scores work,
when kills are disqualified, etc.


Installation:
Copy duel.dll and duel.ini to your MERVBot folder.
In spawns.txt, use duel.dll instead of blank.


In arena settings:

[+] optional: have the server allocate one player per team.
Why?
Because duels are 1v1, there is no reason to have teams.

[+] optional: disallow player attaching.
Why?
Players could otherwise jump into another pair's duel.
If you want to allow players to duel as turrets, skip this step.

{+} Make players spawn directly in the center.
Why?
There can be only one portal gate for each duel box, so the gates
should be centrally located. Ergo, the players should also be
centrally located, so they can easily get to the gates.
A safety zone in the center would be a good idea.


In the map:

{+} Create one portal gate for each duel box. Each gate should use a different
door tile type. The gates should be rectangular, and labelled with the name
of the duel box they connect to. They should be outside of the duel boxes.
Why?
When players enter a gate, they are warped to the associated duel box.
If the duel box is full, the gate's door tiles will be illuminated.
The gate area is rectangular, so the door tiles should be the same shape.
Labels are important so players can call others to their box.
NOTE: Only one gate for each duel box is allowed, DO NOT set up your
duel.ini such that more than one entry links to the same place.

{+} Create your duel boxes. They must be generally rectangular in shape.
Place them far from the central respawn area.
Why?
This is a limitation of the bot, which is unlikely to change.
Rectangles are a convenient way to describe the structures in duel.ini

{+} Boxes are enclosed. There should be no way to fly out of each duel box.
Why?
If a player is outside of a duel box, the box is re-opened for other players.

{+} Put at least a 3x3 square of safety tile under where you want players to
be transported when they enter the box. Create two of these regions
and place them at opposite ends of the duel box, preferably in corners.
Why?
Players could be spawn-killed easily without these areas.
They'll be warped to these drop points when they enter a portal gate.
Testing indicates that players prefer drop points to be located in box
corners, though this is not necessary.


In duel.ini:

1) Delete the example lines starting with #=.

For each duel box:

2) Create a line starting with the door tile value.

How to get the door tile value?
The door tile value can be found in SSME by clicking the dropper
tool and clicking a door tile used by one of the portal gates.
In the "Tileset" window, the appropriate door tile will be
selected. The number of tiles from the selected tile and the
first door tile is the number you should start with. This
number should be in the range of 0 to 7.

3) Press '=' and type the x y coordinates of the upper left tile in
the portal gate. Then type the x y coordinates of the lower right
tile in the portal gate. Separate each coordinate by white space.

Example:
#=x y x y
0=100 120 150 170

4) Type the x y coordinates of the first and second drop points.
These are the areas where players are dropped in the duel box.
Again, separate with white space.

Example:
#=x y x y x y x y
0=100 120 150 170 110 130 140 160

5) Type the x y coordinates of the upper left bound of the duel box.
Then type the x y coordinates of the lower right bound of the duel box.
You should go slightly outside of the actual bounds of the duel box,
because laggers may drift outside the box in the bot's eyes.

6) Type the name of the duel box. Ideally this would include
a name, a direction in which to find its portal, and an informal name.

Example:
0= ... 1 North - Bumpy Box

7) Repeat from #2 for each duel box.

Now you are ready to use the bot!



That is so damn detailed; You should upload a sample map or something
Cyan~Fire - Tue Oct 04, 2005 3:27 pm
Post subject:
It's not that hard.
Donkano - Tue Oct 04, 2005 4:30 pm
Post subject:
Cyan~Fire wrote:
What ever happened to
Code: Show/Hide
[Box1]
Portal=
FirstDrop=
SecondDrop=
Box=


Cyan is right. That would be more userfriendly and just as much programming work any ways.
Anonymous - Tue Oct 04, 2005 7:12 pm
Post subject:
what do you put in for the BOX= part? Can some a sample map or something
Maverick - Wed Oct 05, 2005 3:15 am
Post subject:
Guest, the plugin doesn't use
Code: Show/Hide
[Box1]
Portal=
FirstDrop=
SecondDrop=
Box=


Follow the directions in the 2nd post of this thread or Agurus post.
Solid_Fire - Sat Oct 08, 2005 6:03 pm
Post subject:
Code: Show/Hide
// Duel boxes should have no exits and fit within a rectangle

[Boxes]
// Portals should be near the respawn area: bot warps players from here to the duel box
// Erase the boxes you don't need, 0-7 are supported
// Syntax: 0=x1 y1 x2 y2  x3 y3  x4 y4  x5 y5 x6 y6 name
//          source portal   |      |         |
//                     first drop  |         |
//                          second drop      |
//                                    box rectangle
0=510 489 513 493  424 256  599 417  415 245 710 485 1 North - Regular
2=510 531 514 535  424 610  599 771  409 595 609 782 2 South - Regular


Ok, i have a couple questions.

This Set of coords, (
Code: Show/Hide
510 489 513 493
)
are the warp box coords, correct? (whereas you go into the box and get warped directly to the duel box)

Im not really understanding what the other sets of coords are for, im at a brainfart at the moment, so can someone please help me out..?
Maverick - Sun Oct 09, 2005 3:56 am
Post subject:
<warp box coords> <spawn position player 1 inside duel box> <spawn position player 2 inside duel box> <duel box top left coord> <duel box bottom right coord> <Duel box name>

The <warp box coords> are like the set of coords you posted; 510 489 513 493. The rest of the coordinates you need to enter are described above.
Solid_Fire - Sun Oct 09, 2005 3:57 am
Post subject:
Oh ok, thank you mav, Appreciate it icon_smile.gif I Just got a little confused. It happens.
Maverick - Sun Oct 09, 2005 3:58 am
Post subject:
No problem, good luck with it.
Solid_Fire - Sun Oct 09, 2005 9:24 pm
Post subject:
Hmm, it seems that when i try and go into the box, it doesnt warp me any where....does there need to be some kind of "Warp Tile" or something..i think im missing something...i'v got the warp box coords setup and stuff :/..so much thinking my it hurts.
Maverick - Mon Oct 10, 2005 4:33 am
Post subject:
Copy/Paste your .ini and your map (or PM it) so I can check it for errors.
Solid_Fire - Tue Oct 11, 2005 9:06 pm
Post subject:
Code: Show/Hide
// Duel boxes should have no exits and fit within a rectangle

[Boxes]
// Portals should be near the respawn area: bot warps players from here to the duel box
// Erase the boxes you don't need, 0-7 are supported
// Syntax: 0=x1 y1 x2 y2  x3 y3  x4 y4  x5 y5 x6 y6 name
//          source portal   |      |         |
//                     first drop  |         |
//                          second drop      |
//                                    box rectangle
0=467 482 511 545  197 508  305 509  415 245 710 485 Duel Box 1
1=510 531 514 535  424 610  599 771  409 595 609 782 Duel Box 2


I'll pm you the map.
Maverick - Thu Oct 13, 2005 5:37 am
Post subject:
This is your code and it should work. What you did wrong is that you took the coordinates from the wrong textbox of SSME. You need to take the coordinates from the most right one, not the one in the middle.



Code: Show/Hide
// Duel boxes should have no exits and fit within a rectangle

[Boxes]
// Portals should be near the respawn area: bot warps players from here to the duel box
// Erase the boxes you don't need, 0-7 are supported
// Syntax: 0=x1 y1 x2 y2  x3 y3  x4 y4  x5 y5 x6 y6 name
//          source portal   |      |         |
//                     first drop  |         |
//                          second drop      |
//                                    box rectangle
0=491 510 496 513  198 509  306 511  196 471 310 550 Duel Box 1
1=527 510 532 513  828 510  721 511  716 467 833 552 Duel Box 2

Solid_Fire - Thu Oct 13, 2005 6:52 pm
Post subject:
Ohh ok, thank you. I'll remember that next time. Appreciate the help mav icon_smile.gif.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group