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: 64
Joined: Sat May 27, 2006 11:59 pm

zone flag where flag dont go back

Post by mathiaz »

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 208 times
<°)))><|
User avatar
tainn
Private First Class
Private First Class
Posts: 278
Joined: Sun Nov 18, 2018 7:25 pm
Location: phantom_zone;

Re: zone flag where flag dont go back

Post by tainn »

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: 914
Joined: Sun Oct 18, 2015 3:36 pm
Location: Within the BZFS API and Beyond it
Contact:

Re: zone flag where flag dont go back

Post by Zehra »

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
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.
Visit BZList.net for a modern HTML5 server stats site.

Click here to view the 101 Leaderboard & Score Summaries Last updated 2021-01-12 (YYYY-MM-DD)
Latest 101 thread
User avatar
mathiaz
Private First Class
Private First Class
Posts: 64
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz »

Thanks for the answer.
The problem come from the zoneflag WG 1.
<°)))><|
User avatar
mathiaz
Private First Class
Private First Class
Posts: 64
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz »

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: 278
Joined: Sun Nov 18, 2018 7:25 pm
Location: phantom_zone;

Re: zone flag where flag dont go back

Post by tainn »

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: 64
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz »

It works now.
Thanks a lot.
<°)))><|
User avatar
mathiaz
Private First Class
Private First Class
Posts: 64
Joined: Sat May 27, 2006 11:59 pm

Re: zone flag where flag dont go back

Post by mathiaz »

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