zone flag where flag dont go back

NOTE: this is an informal bug post place ONLY. Real bugs should be posted on GitHub
Post Reply
User avatar
mathiaz
Private First Class
Private First Class
Posts: 45
Joined: Sat May 27, 2006 11:59 pm

zone flag where flag dont go back

Post by mathiaz » Thu Feb 28, 2019 10:39 pm

Hi,

In attached file a map with zone flag.
often don t go back to the zone.
Is there misconfiguration or bug?

Configuration :

-a 50 38
-publicaddr tomato.freemyip.com:5154
-publickey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-p 5154
-autoTeam
-d
-sb
-j
-lagdrop 3
-lagwarn 400
-maxidle 300
-ms 3
-password xxxxxxxxxxx
+r
-srvmsg "When you have to shoot, don t speak, shoot"
-tk
-c
-world "/path/to/breizh_wall.bzw"
-groupdb "/path/to/groupdb.txt"

:cry: :roll:
Attachments
breizh_wall.bzw
(4.77 KiB) Downloaded 25 times
<°)))><|

User avatar
tainn
Private First Class
Private First Class
Posts: 173
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: zone flag where flag dont go back

Post by tainn » Thu Feb 28, 2019 11:11 pm

Which flags (team flags or WG) are you trying to send back to the zone specified and when?

If you are trying to send back the team flags, you have already set everything you could without plugins:

Code: Select all

zone
  name zf_red
  position -300 -5 15
  size 1 1 1
  safety 1
end 
zone
  name zf_blue
  position -300 5 15
  size 1 1 1
  safety 3
end 
The safety argument will result in the team flags flying to their specified zones when dropped above 'unsafe' objects such as a pyramid.

If you are trying to send back the WG flags, the best action would be to reduce max flag grabs to 1. You can do that by inputting the following line in either your options object or the conf file:

Code: Select all

-set _maxFlagGrabs 1
This presents solutions without the use of plugins.

User avatar
Zehra
Private First Class
Private First Class
Posts: 622
Joined: Sun Oct 18, 2015 3:36 pm
Location: Arctic

Re: zone flag where flag dont go back

Post by Zehra » Thu Feb 28, 2019 11:14 pm

The following should solve the issue: '-set _maxFlagGrabs 0'
(Simply set the above within the command line, map file or configuration file.)
It may also be done within game as the following slash command without the quotes: '/set _maxFlagGrabs 0'

-Zehra
Those who are critical of me, I'll likely be the same of them. ~Zehra
There's always something to remember and it's been a game I love. ~Zehra
The time spent is a time which can never be regained, so it's a time to enjoy. ~Zehra
The decisions we make are the ones we look forward too and the ones we regret. ~Zehra
There's a difference between knowing my name and knowing me, one shows respect to my name and the other is to who I am. ~Zehra

See where I've last been active at Strayers.

User avatar
mathiaz
Private First Class
Private First Class
Posts: 45
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz » Thu Feb 28, 2019 11:41 pm

Thanks for the answer.
The problem come from the zoneflag WG 1.
<°)))><|

User avatar
mathiaz
Private First Class
Private First Class
Posts: 45
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz » Fri Mar 01, 2019 9:22 am

I simplify my question :

#******* test.bzw ***********
world
size 100
end
options
+r
-j
-ms 4
-sl WG 1
-fb
-set _shotSpeed 110
-set _tankSpeed 28
-set _wingsJumpCount 20
-publictitle "Breizh tomato - shoot through WALL - ctf "
end
#*******************
zone
zoneflag WG 1
position 0 50 0
end
zone
zoneflag WG 1
position 0 -50 0
end
#******************

When i run this map with
bzfs -world test.bzw

The flag go back to the zoneflag randomly
<°)))><|

User avatar
tainn
Private First Class
Private First Class
Posts: 173
Joined: Sun Nov 18, 2018 7:25 pm
Location: zone of the phantoms

Re: zone flag where flag dont go back

Post by tainn » Fri Mar 01, 2019 11:23 am

In the same place that you have the following:

Code: Select all

-set _shotSpeed 110
-set _tankSpeed 28
-set _wingsJumpCount 20
Insert one more line:

Code: Select all

-set _maxFlagGrabs 1
This will make the WG flag always zap back to the zone specified, meaning both after a death or a drop. You have also specified a shot limit for WG being 1, meaning it will also force a drop after one shot.

User avatar
mathiaz
Private First Class
Private First Class
Posts: 45
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz » Fri Mar 01, 2019 1:02 pm

It works now.
Thanks a lot.
<°)))><|

User avatar
mathiaz
Private First Class
Private First Class
Posts: 45
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz » Fri Mar 01, 2019 1:05 pm

I understand quickly but i need long explanations ...
<°)))><|

Post Reply