[solved][sty/CTF]some things that i cant see how to do
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
[solved][sty/CTF]some things that i cant see how to do
I'm making a server that features CTF, and i need rounds and 4 teams:
- i need that there's only one flag per team...it's annoying to have two/three
- i need that when someone takes the flag back, the round ends...
is it included in the pig sty patch or i should hack it myself?
- i need that there's only one flag per team...it's annoying to have two/three
- i need that when someone takes the flag back, the round ends...
is it included in the pig sty patch or i should hack it myself?
Last edited by epsy on Sun Dec 24, 2006 8:51 pm, edited 1 time in total.
Not sure if CTF has been tried with more than 2 teams.
The flag zones seem to work in much the same way as fortress zones, it is automatically assigned to the team who's spawn point is closest.
So theoretically, as long as you place the 4 flags in a symmetrical fashion with the spawn points, you should be okay.
About the round ending, I don't think that's currently a feature. I vaguely remember talk about having a set number of flag returns to win the round, which would be configurable, in your case 1. But I'm not sure this ever happened.
I've not seen groundpig for a while. If you see him, let me know.
The flag zones seem to work in much the same way as fortress zones, it is automatically assigned to the team who's spawn point is closest.
So theoretically, as long as you place the 4 flags in a symmetrical fashion with the spawn points, you should be okay.
About the round ending, I don't think that's currently a feature. I vaguely remember talk about having a set number of flag returns to win the round, which would be configurable, in your case 1. But I'm not sure this ever happened.
I've not seen groundpig for a while. If you see him, let me know.
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
yeah i did tried that, and it works mostly, but there isn't a setting like fortress_max_per_team for flags...ed wrote:Not sure if CTF has been tried with more than 2 teams.
The flag zones seem to work in much the same way as fortress zones, it is automatically assigned to the team who's spawn point is closest.
So theoretically, as long as you place the 4 flags in a symmetrical fashion with the spawn points, you should be okay.
I will see for that...About the round ending, I don't think that's currently a feature. I vaguely remember talk about having a set number of flag returns to win the round, which would be configurable, in your case 1. But I'm not sure this ever happened.
Wrtlprnft pointed out that pig's patch disables the fortress_max_per_team setting for some reason. Wrtl posted a patch for pig's patch somewhere, that reenabled it (among other tweaks).epsy wrote:yeah i did tried that, and it works mostly, but there isn't a setting like fortress_max_per_team for flags...
I see what you mean though. If less than 4 teams are present it will assign the flags to other teams. Can't see a way currently around this.
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
The thing with the multiple flags should be fixed in the post ed linked to.
I've made yet another patch which adds a FLAG_ROUND_END setting. If that's nonzero the round will end if a flag is brought home.
I've made yet another patch which adds a FLAG_ROUND_END setting. If that's nonzero the round will end if a flag is brought home.
There's no place like ::1
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
hmm...
the patch didn't worked for me...
i tried with revision 6287 of the 0.2.8.2 branch
the patch didn't worked for me...
i tried with revision 6287 of the 0.2.8.2 branch
Code: Select all
patching file language/english_base.txt
Hunk #1 succeeded at 1944 (offset -132 lines).
patching file src/tron/gArena.h
patching file src/tron/gSpawn.h
patching file src/tron/gWinZone.h
Hunk #8 succeeded at 252 (offset -1 lines).
patching file src/tron/gCycle.cpp
Hunk #2 succeeded at 48 with fuzz 2 (offset -1 lines).
Hunk #3 FAILED at 147.
Hunk #4 succeeded at 336 (offset 132 lines).
Hunk #5 succeeded at 652 (offset 132 lines).
Hunk #6 succeeded at 1247 (offset -46 lines).
Hunk #7 succeeded at 1454 (offset -54 lines).
Hunk #8 succeeded at 1464 (offset -54 lines).
Hunk #9 succeeded at 1577 (offset -157 lines).
Hunk #10 succeeded at 3474 with fuzz 2 (offset 1573 lines).
Hunk #11 succeeded at 4013 with fuzz 2 (offset 1576 lines).
Hunk #12 FAILED at 4330.
Hunk #13 FAILED at 4345.
Hunk #14 FAILED at 4482.
Hunk #15 FAILED at 4841.
Hunk #16 FAILED at 4965.
Hunk #17 FAILED at 4983.
Hunk #18 FAILED at 5154.
Hunk #19 FAILED at 5582.
Hunk #20 succeeded at 4371 (offset -610 lines).
Hunk #21 succeeded at 4532 (offset -610 lines).
9 out of 21 hunks FAILED -- saving rejects to file src/tron/gCycle.cpp.rej
patching file src/tron/gGame.cpp
Hunk #1 succeeded at 3124 (offset -71 lines).
Hunk #2 succeeded at 3148 (offset -71 lines).
Hunk #3 succeeded at 3165 (offset -71 lines).
patching file src/tron/gArena.cpp
patching file src/tron/gSpawn.cpp
patching file src/tron/gWinZone.cpp
Hunk #15 FAILED at 1481.
Hunk #16 FAILED at 1503.
Hunk #17 succeeded at 1546 (offset -6 lines).
Hunk #18 succeeded at 1608 (offset -6 lines).
Hunk #19 FAILED at 1697.
Hunk #20 succeeded at 1797 (offset -23 lines).
Hunk #21 succeeded at 1811 (offset -23 lines).
Hunk #22 succeeded at 1854 (offset -23 lines).
Hunk #23 succeeded at 1898 (offset -23 lines).
Hunk #24 FAILED at 2054.
Hunk #25 succeeded at 2658 (offset -27 lines).
4 out of 25 hunks FAILED -- saving rejects to file src/tron/gWinZone.cpp.rej
patching file src/tron/gParser.cpp
patching file src/tron/gCycle.h
Hunk #1 FAILED at 48.
Hunk #2 succeeded at 169 (offset 19 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/tron/gCycle.h.rej
patching file src/tron/gServerBrowser.cpp
patching file src/tron/gCycleMovement.h
Hunk #1 succeeded at 148 (offset -45 lines).
patching file src/engine/ePlayer.cpp
Hunk #2 succeeded at 1228 (offset -10 lines).
Hunk #3 succeeded at 1289 with fuzz 1 (offset -10 lines).
Hunk #4 succeeded at 1309 (offset -10 lines).
Hunk #5 succeeded at 1401 (offset -12 lines).
Hunk #6 succeeded at 1426 (offset -12 lines).
Hunk #7 succeeded at 1483 (offset -12 lines).
Hunk #8 succeeded at 1519 (offset -12 lines).
Hunk #9 succeeded at 1939 (offset -32 lines).
Hunk #10 succeeded at 2002 (offset -37 lines).
Hunk #11 succeeded at 2292 (offset -90 lines).
Hunk #12 succeeded at 2313 (offset -90 lines).
Hunk #13 succeeded at 3819 (offset -211 lines).
Hunk #14 succeeded at 3853 (offset -211 lines).
Hunk #15 succeeded at 3873 (offset -211 lines).
patching file src/engine/ePlayer.h
Hunk #2 succeeded at 296 (offset -1 lines).
patching file config/settings_dedicated.cfg
Hunk #1 succeeded at 287 (offset -49 lines).
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
still errors... 
it's right this one is for revision 6540 ?

Code: Select all
$ patch -p0 < pigstywrtl.patch
patching file language/english_base.txt
Hunk #1 succeeded at 1944 (offset -132 lines).
patching file src/tron/gArena.h
patching file src/tron/gSpawn.h
patching file src/tron/gWinZone.h
Hunk #8 succeeded at 252 (offset -1 lines).
patching file src/tron/gCycle.cpp
Hunk #2 succeeded at 48 with fuzz 2 (offset -1 lines).
Hunk #3 FAILED at 147.
Hunk #4 succeeded at 336 (offset 132 lines).
Hunk #5 succeeded at 652 (offset -636 lines).
Hunk #6 succeeded at 1247 (offset -811 lines).
Hunk #7 succeeded at 1454 (offset -817 lines).
Hunk #8 succeeded at 1464 (offset -817 lines).
Hunk #9 succeeded at 1577 (offset -920 lines).
Hunk #10 succeeded at 3474 with fuzz 2 (offset 837 lines).
Hunk #11 succeeded at 4013 with fuzz 2 (offset 840 lines).
Hunk #12 FAILED at 4330.
Hunk #13 FAILED at 4345.
Hunk #14 FAILED at 4482.
Hunk #15 FAILED at 4841.
Hunk #16 FAILED at 4965.
Hunk #17 FAILED at 4983.
Hunk #18 FAILED at 5154.
Hunk #19 FAILED at 5582.
Hunk #20 succeeded at 4371 (offset -1346 lines).
Hunk #21 succeeded at 4532 (offset -1346 lines).
9 out of 21 hunks FAILED -- saving rejects to file src/tron/gCycle.cpp.rej
patching file src/tron/gGame.cpp
Hunk #1 succeeded at 3124 (offset -109 lines).
Hunk #2 succeeded at 3148 (offset -109 lines).
Hunk #3 succeeded at 3165 (offset -109 lines).
patching file src/tron/gArena.cpp
patching file src/tron/gSpawn.cpp
patching file src/tron/gWinZone.cpp
Hunk #15 FAILED at 1481.
Hunk #16 FAILED at 1503.
Hunk #17 succeeded at 1546 (offset -6 lines).
Hunk #18 succeeded at 1608 (offset -6 lines).
Hunk #19 FAILED at 1697.
Hunk #20 succeeded at 1797 (offset -23 lines).
Hunk #21 succeeded at 1811 (offset -23 lines).
Hunk #22 succeeded at 1854 (offset -23 lines).
Hunk #23 succeeded at 1898 (offset -23 lines).
Hunk #24 FAILED at 2054.
Hunk #25 succeeded at 2658 (offset -27 lines).
4 out of 25 hunks FAILED -- saving rejects to file src/tron/gWinZone.cpp.rej
patching file src/tron/gParser.cpp
patching file src/tron/gCycle.h
Hunk #1 FAILED at 48.
Hunk #2 succeeded at 169 (offset 16 lines).
1 out of 2 hunks FAILED -- saving rejects to file src/tron/gCycle.h.rej
patching file src/tron/gServerBrowser.cpp
patching file src/tron/gCycleMovement.h
Hunk #1 succeeded at 148 (offset -45 lines).
patching file src/engine/ePlayer.cpp
Hunk #2 succeeded at 1228 (offset -10 lines).
Hunk #3 succeeded at 1289 with fuzz 1 (offset -10 lines).
Hunk #4 succeeded at 1309 (offset -10 lines).
Hunk #5 succeeded at 1401 (offset -12 lines).
Hunk #6 succeeded at 1426 (offset -12 lines).
Hunk #7 succeeded at 1483 (offset -12 lines).
Hunk #8 succeeded at 1519 (offset -12 lines).
Hunk #9 succeeded at 1939 (offset -32 lines).
Hunk #10 succeeded at 2002 (offset -37 lines).
Hunk #11 succeeded at 2292 (offset -90 lines).
Hunk #12 succeeded at 2313 (offset -90 lines).
Hunk #13 succeeded at 3819 (offset -211 lines).
Hunk #14 succeeded at 3853 (offset -211 lines).
Hunk #15 succeeded at 3873 (offset -211 lines).
patching file src/engine/ePlayer.h
Hunk #2 succeeded at 296 (offset -1 lines).
patching file config/settings_dedicated.cfg
Hunk #1 succeeded at 287 (offset -49 lines).
- wrtlprnft
- Reverse Outside Corner Grinder
- Posts: 1679
- Joined: Wed Jan 04, 2006 4:42 am
- Location: 0x08048000
- Contact:
This works for me:If all that doesn't help I can attach a source tree…
Code: Select all
svn co https://svn.sourceforge.net/svnroot/armagetronad/armagetronad/branches/0.2.8/armagetronad pig2
cd pig2
wget -O- http://wrtlprnft.ath.cx/pigstywrtl.patch | patch -p0
There's no place like ::1
-
- Adjust Outside Corner Grinder
- Posts: 2003
- Joined: Tue Nov 07, 2006 6:02 pm
- Location: paris
- Contact:
there is an error line 92, 109, 131 of the Makefile.am file
you should replace all ${scriptdir} to ${scriptdir}${scriptdir_suffix}
else that i had a problem...
and absolutely nothing in logs
you should replace all ${scriptdir} to ${scriptdir}${scriptdir_suffix}
else that i had a problem...
the init script i use:Error: Error in int main(int, char**) in tron/gArmagetron.cpp:534 :
Configuration files not found. Check your installation.
Code: Select all
#!/sbin/runscript
depend() {
need net.lo
}
start() {
ebegin "Starting armagetronad server thecowsfarm classic"
tron="/usr/local/bin/armagetronad-dedicated-0.2.8_alpha20061218"
config="/home/thecowsfarm/classic/config"
var="/home/thecowsfarm/classic/var"
log="/home/thecowsfarm/classic/log"
$tron --configdir $config --vardir $var >$log &
eend 0
}
stop() {
ebegin "pfff"
eend
}
restart() {
ebegin "pf"
eend
}