IPB

Welcome Guest ( Log In | Register )

4 Pages V < 1 2 3 4 >  
Reply to this topicStart new topic
> Scripting, how scripting for CP maps will be done
naMelesS
post Aug 7 2009, 12:45 PM
Post #41


Member
**

Group: Members
Posts: 46
Joined: 24-June 09
Member No.: 1,585



QUOTE(Fillmore @ Aug 2 2009, 05:35 AM) *

ok,I just need to get the map,peak at the map and then lend a hand.
I'll edit this message when I'm done.
EDIT: The map apparently works like Granary,but both teams have 1 control point.
At the rounds start,both teams attack capture point with the area "3".
According to your script, Capture point with area "3" IS BLU's 2nd point.
Just mod the script so the RED bots will cap their second point,and your script will function.


Umm, its my scripts done..?? just checking.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Aug 7 2009, 01:04 PM
Post #42


RCBot Guru
*****

Group: Waypointers
Posts: 447
Joined: 1-April 09
Member No.: 1,511



QUOTE(wyn10 @ Aug 7 2009, 12:20 AM) *

You mean the name for each cp?

the areas you gave the control points.
with the "rcbot waypoint setarea"command.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Aug 7 2009, 01:58 PM
Post #43


RCBot Guru
*****

Group: Waypointers
Posts: 447
Joined: 1-April 09
Member No.: 1,511



QUOTE(naMelesS @ Aug 7 2009, 12:45 PM) *

Umm, its my scripts done..?? just checking.
#
# RCBot2 Script ORANGE_X3 CP
#
#
:on_reset:
blue_attack:4
blue_defend:0
red_attack:2
red_defend:0
areas:4,2
#
#
#
:on_blue_cap:Control Point 4!
blue_attack:3
blue_defend:4
areas:4
:on_red_cap:Control Point 4!
red_attack:5
red_defend:4
blue_attack:4
blue_defend:5
areas:4
#
#
#
:on_blue_cap:Control Point 3!
red_attack:3
red_defend:2
blue_attack:2
blue_defend:3
areas:3
:on_red_cap:Control Point 3!
red_attack:4
red_defend:3
blue_attack:3
blue_defend:4
areas:3
#
#
#
:on_blue_cap:Control Point 2!
red_attack:2
red_defend:1
blue_attack:1
blue_defend:2
areas:2
:on_red_cap:Control Point 2!
red_attack:3
red_defend:2
areas:2

The capture areas are from 1 to 5, Left to right on the HUD.
just incase I put areas your map doesnt have.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
naMelesS
post Aug 7 2009, 02:40 PM
Post #44


Member
**

Group: Members
Posts: 46
Joined: 24-June 09
Member No.: 1,585



QUOTE(Fillmore @ Aug 7 2009, 09:58 PM) *

#
# RCBot2 Script ORANGE_X3 CP
#
#
:on_reset:
blue_attack:4
blue_defend:0
red_attack:2
red_defend:0
areas:4,2
#
#
#
:on_blue_cap:Control Point 4!
blue_attack:3
blue_defend:4
areas:4
:on_red_cap:Control Point 4!
red_attack:5
red_defend:4
blue_attack:4
blue_defend:5
areas:4
#
#
#
:on_blue_cap:Control Point 3!
red_attack:3
red_defend:2
blue_attack:2
blue_defend:3
areas:3
:on_red_cap:Control Point 3!
red_attack:4
red_defend:3
blue_attack:3
blue_defend:4
areas:3
#
#
#
:on_blue_cap:Control Point 2!
red_attack:2
red_defend:1
blue_attack:1
blue_defend:2
areas:2
:on_red_cap:Control Point 2!
red_attack:3
red_defend:2
areas:2

The capture areas are from 1 to 5, Left to right on the HUD.
just incase I put areas your map doesnt have.


The bots still seems to have a problem, the red bot just went to the mid point while the blu bots just stand on the first point.

Did you try the map (cp_orange_x3)?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Aug 7 2009, 11:03 PM
Post #45


RCBot Guru
*****

Group: Waypointers
Posts: 447
Joined: 1-April 09
Member No.: 1,511



QUOTE(naMelesS @ Aug 7 2009, 02:40 PM) *

The bots still seems to have a problem, the red bot just went to the mid point while the blu bots just stand on the first point.

Did you try the map (cp_orange_x3)?

You could give me your CP areas (From RED to BLU) and then I can fix the script.
Yes,I tried the map,waypointed the map,scripted the map and they worked ok.
So... I think your areas might be different than my areas.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
naMelesS
post Aug 8 2009, 01:20 AM
Post #46


Member
**

Group: Members
Posts: 46
Joined: 24-June 09
Member No.: 1,585



QUOTE(Fillmore @ Aug 8 2009, 07:03 AM) *

You could give me your CP areas (From RED to BLU) and then I can fix the script.
Yes,I tried the map,waypointed the map,scripted the map and they worked ok.
So... I think your areas might be different than my areas.


Umm, CP areas?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Aug 8 2009, 02:16 AM
Post #47


RCBot Guru
*****

Group: Waypointers
Posts: 447
Joined: 1-April 09
Member No.: 1,511



QUOTE(naMelesS @ Aug 8 2009, 01:20 AM) *

Umm, CP areas?

sorry 'bout that.
meant to say that what are the areas you gave the 'capture' waypoints.
From RED to BLU.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
naMelesS
post Aug 8 2009, 07:37 AM
Post #48


Member
**

Group: Members
Posts: 46
Joined: 24-June 09
Member No.: 1,585



QUOTE(Fillmore @ Aug 8 2009, 10:16 AM) *

sorry 'bout that.
meant to say that what are the areas you gave the 'capture' waypoints.
From RED to BLU.


From Blu Starting point - Control Point 5! Area 4
From Blu Second point - Control Point 4! Area 3
From Middle Point - Control Point 3! Area 2
From Red Second Point - Control Point 2! Area 1
From Red Starting Point - Control Point 1! Area 0
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Aug 8 2009, 09:54 AM
Post #49


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(naMelesS @ Aug 8 2009, 07:37 AM) *

From Blu Starting point - Control Point 5! Area 4
From Blu Second point - Control Point 4! Area 3
From Middle Point - Control Point 3! Area 2
From Red Second Point - Control Point 2! Area 1
From Red Starting Point - Control Point 1! Area 0

dont use area 0, start from area 1
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Aug 8 2009, 02:36 PM
Post #50


RCBot Guru
*****

Group: Waypointers
Posts: 447
Joined: 1-April 09
Member No.: 1,511



QUOTE(naMelesS @ Aug 8 2009, 07:37 AM) *

From Blu Starting point - Control Point 5! Area 4
From Blu Second point - Control Point 4! Area 3
From Middle Point - Control Point 3! Area 2
From Red Second Point - Control Point 2! Area 1
From Red Starting Point - Control Point 1! Area 0

use rcbot waypoint shitfareas.
doesn't that add +1 to all capture areas or add +1 area to all waypoints?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Aug 9 2009, 01:33 AM
Post #51


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(Fillmore @ Aug 8 2009, 02:36 PM) *

use rcbot waypoint shitfareas.
doesn't that add +1 to all capture areas or add +1 area to all waypoints?



Adds 1 to all . But also the script itself needs fixed
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
naMelesS
post Aug 9 2009, 04:39 AM
Post #52


Member
**

Group: Members
Posts: 46
Joined: 24-June 09
Member No.: 1,585



QUOTE(Cheeseh @ Aug 9 2009, 09:33 AM) *

Adds 1 to all . But also the script itself needs fixed


Add all area to 1?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MarD
post Aug 29 2009, 03:02 AM
Post #53


RCBot Fan
****

Group: Waypointers
Posts: 139
Joined: 30-September 04
From: Canada EH?
Member No.: 419



Heyyo,

So Cheeseh.. I've been working on pl_goldrush waypoints for a few days now because the last post from Geralt says he was going to add scripts to Pl_goldrush last July. I hate to also nag but I've been trying to fix up pl_goldrush since I love the map, but I'm having problems with the "areaonly" flag not working even when I set areas from both what the cart shows and even custom areas for the gates that only stay open for some time until capture events happen.

CODE
#
# PL_GOLDRUSH
#
# Map Start
# Stage 1 CheckPoint A
#
:setup_time:70
:on_reset:
red_defend:1
blue_attack:1
areas:1
#
# Stage 1 CheckPoint B
#
:on_blue:cap#Goldrush_cap_1_A
red_defend:2
blue_attack:2
areas:2,8
#
# Stage 2 CheckPoint A
#
:on_blue:cap#Goldrush_cap_1_B
red_defend:3
blue_attack:3
areas:3,4
#
# Stage 2 CheckPoint B
#
:on_blue:cap#Goldrush_cap_2_A
red_defend:4
blue_attack:4
areas:3,4,9
#
# Stage 3 CheckPoint A
#
:on_blue:cap#Goldrush_cap_2_B
red_defend:5
blue_attack:5
areas:5,6,7,10
#
# Stage 3 CheckPoint B
#
:on_blue:cap#Goldrush_cap_3_A
red_defend:6
blue_attack:6
areas:5,6,7
#
# Stage 3 CheckPoint C
#
:on_blue:cap#Goldrush_cap_3_B
red_defend:7
blue_attack:7
areas:5,6,7
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Geralt
post Aug 29 2009, 06:09 AM
Post #54


RCBot Fan
****

Group: Waypointers
Posts: 198
Joined: 6-February 09
From: Australia
Member No.: 1,465



Yeah - I've been extremely busy recently, not sure when I'll have time to do anymore of this.

Feel free to edit and re-distribute my waypoints as you want mate. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MarD
post Aug 30 2009, 03:52 AM
Post #55


RCBot Fan
****

Group: Waypointers
Posts: 139
Joined: 30-September 04
From: Canada EH?
Member No.: 419



Heyyo,

QUOTE(Geralt @ Aug 28 2009, 10:09 PM) *

Yeah - I've been extremely busy recently, not sure when I'll have time to do anymore of this.

Feel free to edit and re-distribute my waypoints as you want mate. smile.gif

Cool beans, I'll do it for the maps since I've lost my waypoints and don't feel like redoing them all by hand again.. hahaha, so thanks for the permission.

Do you know Geralt if the areaonly flags work for PL maps? thus far I've had zero luck even though I've tried a lot of diff stuff... do the areaonly flags have to match the flags of the cart before or after the point of capture?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Aug 30 2009, 11:28 AM
Post #56


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(MarD @ Aug 30 2009, 04:52 AM) *

Heyyo,
Cool beans, I'll do it for the maps since I've lost my waypoints and don't feel like redoing them all by hand again.. hahaha, so thanks for the permission.

Do you know Geralt if the areaonly flags work for PL maps? thus far I've had zero luck even though I've tried a lot of diff stuff... do the areaonly flags have to match the flags of the cart before or after the point of capture?

Hi mard, its good to see you around, sorry i could not reply sooner, i was just taking time to think about things. plus I have other problems in the real world just now which is slowing me down here

it loosk like your script has a problem at these points here
CODE

:on_blue:cap


it should be

CODE

:on_blue_cap:


extra underscore and colon at the end, . Sorry i can't help much further just now, hope it helps
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MarD
post Sep 1 2009, 03:53 AM
Post #57


RCBot Fan
****

Group: Waypointers
Posts: 139
Joined: 30-September 04
From: Canada EH?
Member No.: 419



Heyyo,

QUOTE(Cheeseh @ Aug 30 2009, 03:28 AM) *

Hi mard, its good to see you around, sorry i could not reply sooner, i was just taking time to think about things. plus I have other problems in the real world just now which is slowing me down here

it loosk like your script has a problem at these points here
CODE

:on_blue:cap


it should be

CODE

:on_blue_cap:


extra underscore and colon at the end, . Sorry i can't help much further just now, hope it helps

LOL! I'm gonna keel over and die if that was the only problem... cause I actually copied the code from PLR_pipeline.. and I just checked that file, and lo and behold.. it was typed wrong once in there.. and it's the one line I copied, lol dammit.. so for your next release you might wanna fix the typo in there too. tongue.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
wyn10
post Sep 2 2009, 11:30 PM
Post #58


Member
**

Group: Members
Posts: 24
Joined: 27-July 09
Member No.: 1,626



Could that orange x3 script be fixed, or can someone show me how to fix it...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Sep 3 2009, 07:04 PM
Post #59


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(wyn10 @ Sep 3 2009, 12:30 AM) *

Could that orange x3 script be fixed, or can someone show me how to fix it...

just move the areas up by one,

CODE

#
# RCBot2 Script ORANGE_X3 CP
#
#
:on_reset:
blue_attack:5
blue_defend:1
red_attack:3
red_defend:1
areas:1,5,3
#
#
#
:on_blue_cap:Control Point 4!
blue_attack:4
blue_defend:5
areas:4,5
:on_red_cap:Control Point 4!
red_attack:6
red_defend:5
blue_attack:5
blue_defend:6
areas:5,6
#
#
#
:on_blue_cap:Control Point 3!
red_attack:4
red_defend:3
blue_attack:3
blue_defend:4
areas:3,4
:on_red_cap:Control Point 3!
red_attack:5
red_defend:4
blue_attack:4
blue_defend:5
areas:4,5
#
#
#
:on_blue_cap:Control Point 2!
red_attack:3
red_defend:2
blue_attack:2
blue_defend:3
areas:2,3
:on_red_cap:Control Point 2!
red_attack:4
red_defend:3
areas:3,4


But I am just guessing since I have not tried the WAypoints
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
DrPuffinKind
post Sep 5 2009, 01:58 AM
Post #60


RCBot Fan
****

Group: Members
Posts: 127
Joined: 3-August 09
Member No.: 1,638



QUOTE(Cheeseh @ Sep 3 2009, 03:04 PM) *

just move the areas up by one,

CODE

#
# RCBot2 Script ORANGE_X3 CP
#
#
:on_reset:
blue_attack:5
blue_defend:1
red_attack:3
red_defend:1
areas:1,5,3
#
#
#
:on_blue_cap:Control Point 4!
blue_attack:4
blue_defend:5
areas:4,5
:on_red_cap:Control Point 4!
red_attack:6
red_defend:5
blue_attack:5
blue_defend:6
areas:5,6
#
#
#
:on_blue_cap:Control Point 3!
red_attack:4
red_defend:3
blue_attack:3
blue_defend:4
areas:3,4
:on_red_cap:Control Point 3!
red_attack:5
red_defend:4
blue_attack:4
blue_defend:5
areas:4,5
#
#
#
:on_blue_cap:Control Point 2!
red_attack:3
red_defend:2
blue_attack:2
blue_defend:3
areas:2,3
:on_red_cap:Control Point 2!
red_attack:4
red_defend:3
areas:3,4


But I am just guessing since I have not tried the WAypoints



wont work... bots will never cap middle point... i just redid this... look here for my waypoints and script... my script may work with old waypoints, but i am not going to guarantee that... all i know is it works as i linked it.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

4 Pages V < 1 2 3 4 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th June 2025 - 05:21 PM