IPB

Welcome Guest ( Log In | Register )

4 Pages V « < 2 3 4  
Reply to this topicStart new topic
> Scripting, how scripting for CP maps will be done
MarD
post Sep 10 2009, 12:20 AM
Post #61


RCBot Fan
****

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



Heyyo,

One thing I realized is atm the script might not be setup to work with cp_granary. Essentially for cp_granary the third point only opens after point 1 and 2 are captured.. so can you define multiple capture points?

example of what cp_gravelpit would have to look like:

CODE
#
# RCBot2 Script Gravelpit CP
#
#
:setup_time:60
:on_reset:
blue_attack:1
red_defend:1
blue_attack:2
red_defend:2
areas:1,2,3

:on_blue_cap:#Gravelpit_cap_A,#Gravelpit_cap_B
red_defend:3
blue_attack:3
areas:1,2,3
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Sep 10 2009, 11:40 AM
Post #62


Admin
*****

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



QUOTE(MarD @ Sep 10 2009, 01:20 AM) *

Heyyo,

One thing I realized is atm the script might not be setup to work with cp_granary. Essentially for cp_granary the third point only opens after point 1 and 2 are captured.. so can you define multiple capture points?

example of what cp_gravelpit would have to look like:

CODE
#
# RCBot2 Script Gravelpit CP
#
#
:setup_time:60
:on_reset:
blue_attack:1
red_defend:1
blue_attack:2
red_defend:2
areas:1,2,3

:on_blue_cap:#Gravelpit_cap_A,#Gravelpit_cap_B
red_defend:3
blue_attack:3
areas:1,2,3



Yeah I know of this problem, it will require a change to scripting.


(Scripts actually support additional CPS however it is not currently implemented...

in the future you could do this

blue_attack:1,2

etc..

but at the moment it will not be used and you just need to focus on one CP at a time... unfortunately.)

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Sep 10 2009, 12:01 PM
Post #63


RCBot Guru
*****

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



QUOTE(Cheeseh @ Sep 10 2009, 11:40 AM) *

Yeah I know of this problem, it will require a change to scripting.
(Scripts actually support additional CPS however it is not currently implemented...

in the future you could do this

blue_attack:1,2

etc..

but at the moment it will not be used and you just need to focus on one CP at a time... unfortunately.)

Does PL scripting work/will it be added in a update?
Seeing MarD's goldrush script made me wonder about it.
And it will make RED win PL maps a little easier.
Before PL update:RED always wins.
After PL update:BLU always wins.
with PL update,i mean shadow's PL addon that makes the bots push the kart.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
MarD
post Oct 1 2009, 07:24 AM
Post #64


RCBot Fan
****

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



Heyyo,

QUOTE(Fillmore @ Sep 10 2009, 04:01 AM) *

Does PL scripting work/will it be added in a update?
Seeing MarD's goldrush script made me wonder about it.
And it will make RED win PL maps a little easier.
Before PL update:RED always wins.
After PL update:BLU always wins.
with PL update,i mean shadow's PL addon that makes the bots push the kart.

Yes PL scripting works, and it is in the latest beta... BUT, I think the defend waypoints aren't working in payload maps just quite yet... I set them everywhere for that area, defending bots tend to run around the map to wherever they want... but everything else works great, such as "areaonly" types for doors that open and close depending on caps, sentry, teleentrance, teleexit and sniper flags all work fine with areas... it just seems to be defend points.

I'm not running any addons with PL maps, and bots push the kart without problems.. maybe make sure you're using the latest version of RCbot2 which is v0.51.

I've tweaked up the PL_badwater waypoints as good as I can.
http://rcbot.bots-united.com/uploads/MarDp...20revision1.zip
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sjru
post Oct 13 2009, 12:28 AM
Post #65


Advanced Member
***

Group: Members
Posts: 94
Joined: 4-June 09
From: Posadas, Misiones, Argentina.
Member No.: 1,567



Hello there, i've realised that rcbot now has support for arena maps, however I don't know if the procedure is the same as CP maps for scripting.
Can anyone give ideas of this, please?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Oct 13 2009, 12:27 PM
Post #66


RCBot Guru
*****

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



QUOTE(Sjru @ Oct 13 2009, 12:28 AM) *

Hello there, i've realised that rcbot now has support for arena maps, however I don't know if the procedure is the same as CP maps for scripting.
Can anyone give ideas of this, please?

It works just like scripting CP maps.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fillmore
post Oct 20 2009, 05:14 PM
Post #67


RCBot Guru
*****

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



I'm having some problems with my payload script.
I waypointed and scripted pl_dbheights_b5,but ran into an issue.
When bots cap the first checkpoints,RED team still uses area 1 defend points.
on stage 2,bots try to enter stage 1.
my script is down here:

#
# DUSTBOWL HEIGHTS PAYLOAD
#
# Map Start
# STAGE 1
#
:setup_time:70
:on_reset:
blue_attack:1
red_defend:1
areas:1,2
#
# CHECKPOINT 1,STAGE 1
#
:on_blue_cap:#Dustbowl_cap_A_1
blue_attack:2
red_defend:2
areas:2
#
# CheckPoint 2,STAGE 1
#
:on_blue_cap:#Dustbowl_cap_A_2
blue_attack:3
red_defend:3
areas:3,4
#
# CheckPoint 1,STAGE 2
#
:on_blue_cap:#Dustbowl_cap_B_1
blue_attack:4
red_defend:4
areas:4
#
# CheckPoint 2,STAGE 2
#
:on_blue_cap:#Dustbowl_cap_B_2
red_defend:5
blue_attack:5
areas:5
#
# CheckPoint 1,STAGE 3
#
:on_blue_cap:#Dustbowl_cap_C_1
red_defend:6
blue_attack:6
areas:5
#
# CheckPoint 2,STAGE 3
#
:on_blue_cap:#Dustbowl_cap_C_2
red_defend:7
blue_attack:7
areas:5
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

4 Pages V « < 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 - 01:16 PM