Page 1 of 5

[Game] CaptureTheFlag [capturetheflag]

Posted: Fri Jul 17, 2015 18:48
by rubenwardy
Game | Server

Image

Two teams battle to snatch and return the enemy's flag, before the enemy takes their own!

As seen on the Capture the Flag server

Download
View on Github

License
Created by: rubenwardy.
Copyright (c) 2013 - 2015
Code: LGPL 2.1 or later.
Textures: CC-BY-SA 3.0

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sat Jul 18, 2015 11:13
by horse_lover
Great work! This is amazing!
I had one problem about the server: there are no coloured name tags but on the screenshot shown there are. This makes it confusing because I've been killed by my own team mates even when I had the opposite flag...
But other than that this is great. I like the idea for the different classes. It would add more to the game. I'll be looking forward to it!!

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Jul 19, 2015 10:05
by rubenwardy
What version of Minetest do you use?

I can't remember when colored tags were added.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Jul 19, 2015 10:19
by horse_lover
0.4.12
But I played this on android, maybe that's the issue? I'm currently traveling so I cannot try it on my PC...
BTW I'm talking about the server, not my own singleplayer game.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Jul 19, 2015 10:34
by rubenwardy
Colored name tags must have been added in 0.4.12-dev. I'll look into changing the player skins.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Mon Sep 07, 2015 10:04
by rubenwardy
horse_lover wrote:Great work! This is amazing!
I had one problem about the server: there are no coloured name tags but on the screenshot shown there are. This makes it confusing because I've been killed by my own team mates even when I had the opposite flag...
But other than that this is great. I like the idea for the different classes. It would add more to the game. I'll be looking forward to it!!
Added colored player skins.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Fri Nov 27, 2015 01:09
by Diamond knight
I think there should be a setting in a conf file for pregenerated bases.
One of the issues i have on your server is that when both sides have a good fortress it is fun, but when someone wins and game restarts it is too easy to get enemy flag as one could just run in and grab it without dying and the matches become annoyingly short and not as fun as i feel they should be.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Fri Nov 27, 2015 01:15
by rubenwardy
I'm working on that. There's going to be a new map which makes it harder to just go from one base to another, with lots of cover.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Fri Jan 22, 2016 20:15
by lightonflux
Played on your server rubewardy and the thing i missed is colour coded chats. Every player was prefixed with the team name / colour, but a colour coded chat would be easier to read.

And team channels would be a nice addition to the game (or modpack?).

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Fri Jan 22, 2016 20:33
by rubenwardy
lightonflux wrote:Played on your server rubewardy and the thing i missed is colour coded chats. Every player was prefixed with the team name / colour, but a colour coded chat would be easier to read.p/quote]

Not possible with Minetest currently, without being hacky. The code has been made, but not merged.
lightonflux wrote:And team channels would be a nice addition to the game (or modpack?).
Use /t your message to send.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 17:25
by Carlos
I have a problem when the game ends the server goes down in "Resetting the map, This May take a few moments ...". I could find that

Code: Select all

minetest.delete_area (vector.new (r, r, r), vector.new (r, r, r))
It causes the error, how I can fix it?. thanks.

Tengo un problema, cuando termina la partida se cae el servidor en "Resetting the map, this may take a few moments..." . pude encontrar que

Code: Select all

minetest.delete_area(vector.new(-r, -r, -r), vector.new(r, r, r))
provoca el error, ¿Como puedo solucionarlo?. Gracias.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 17:50
by rubenwardy
You need to actually give me an error message for me to do anything about it.

I have no problems with my server, the only crashes I get are engine bugs, which happens roughly every 6 days. Segfaults.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 18:17
by Carlos
leaves no error message, or debug.txt,
When you remove the line minetest.delete_area (vector.new (r, r, r), vector.new (r, r, r)) the server is not shut up

I Minetest 0.4.13

debug.txt

15:29:32: WARNING: Undeclared global variable "dye" accessed at ...e/minetest/games/minetest_game/mods/shooter/crossbow.lua:8
2016-02-07 15:29:32: ACTION[main]: Logging chat plus to: /*****/chatplus-log.txt
[CaptureTheFlag] (init) Initialising!
[CaptureTheFlag] (init) Creating Default Settings
[CaptureTheFlag] (settings) - diplomacy: false
[CaptureTheFlag] (settings) - players_can_change_team: false
[CaptureTheFlag] (settings) - allocate_mode: 3
[CaptureTheFlag] (settings) - autoalloc_on_joinplayer: true
[CaptureTheFlag] (settings) - friendly_fire: true
[CaptureTheFlag] (settings) - gui.tab.diplo: false
[CaptureTheFlag] (io) Loading CTF state
[CaptureTheFlag] (init) Done!
[CaptureTheFlag] (utils) Cleaning player lists
[CaptureTheFlag] (utils) - Adding player Administrador to team red
[CaptureTheFlag] (chat) Initialising...
[CaptureTheFlag] (settings) - node_ownership: false
[CaptureTheFlag] (colors) Initialising...
[CaptureTheFlag] (settings) - colors.skins: true
[CaptureTheFlag] (settings) - colors.nametag: true
[CaptureTheFlag] (settings) - gui.tab.settings: false
[CaptureTheFlag] (flag) Initialising...
[CaptureTheFlag] (settings) - flag.capture_take: true
[CaptureTheFlag] (settings) - flag.waypoints: true
[CaptureTheFlag] (settings) - flag.nobuild_radius: 2
[CaptureTheFlag] (settings) - gui.team.teleport_to_flag: false
[CaptureTheFlag] (settings) - gui.tab.flags: false
[CaptureTheFlag] (settings) - match: true
[CaptureTheFlag] (settings) - match.destroy_team: false
[CaptureTheFlag] (settings) - match.teams: red, red, 138, 19, 172; blue, blue, -169, 12, -167
[CaptureTheFlag] (settings) - match.clear_inv: true
[CaptureTheFlag] (settings) - match.build_time: 90
[CaptureTheFlag] (settings) - match.map_reset_limit: 200
[CaptureTheFlag] (settings) - match.remove_player_on_leave: true
[CaptureTheFlag] (chat) Initialising...
2016-02-07 15:29:32: ACTION[ServerThread]: Announcing to servers.minetest.net
2016-02-07 15:29:32: ACTION[main]: .__ __ __
2016-02-07 15:29:32: ACTION[main]: _____ |__| ____ _____/ |_ ____ _______/ |_
2016-02-07 15:29:32: ACTION[main]: / \| |/ \_/ __ \ __\/ __ \ / ___/\ __\
2016-02-07 15:29:32: ACTION[main]: | Y Y \ | | \ ___/| | \ ___/ \___ \ | |
2016-02-07 15:29:32: ACTION[main]: |__|_| /__|___| /\___ >__| \___ >____ > |__|
2016-02-07 15:29:32: ACTION[main]: \/ \/ \/ \/ \/
2016-02-07 15:29:32: ACTION[main]: World at [/****/Captura la Bandera]
2016-02-07 15:29:32: ACTION[main]: Server for gameid="minetest" listening on 0.0.0.0:30002.
2016-02-07 15:30:43: ACTION[ServerThread]: Administrador [10.0.0.3] joins game.
2016-02-07 15:30:43: ACTION[ServerThread]: Administrador joins game. List of players: Administrador
2016-02-07 15:30:43: ACTION[ServerThread]: Giving initial stuff to player Administrador
15:30:43: WARNING: Assignment to undeclared global "hp" inside a function at .../share/minetest/games/minetest_game/mods/gauges/init.lua:22.
15:30:43: WARNING: Assignment to undeclared global "breath" inside a function at .../share/minetest/games/minetest_game/mods/gauges/init.lua:23.
2016-02-07 15:31:19: ACTION[ServerThread]: [CaptureTheFlag] (flag) Administrador picked up blue's flag
[CaptureTheFlag] (team) message posted to team board
[CaptureTheFlag] (team) message posted to team board
2016-02-07 15:31:46: ACTION[ServerThread]: [CaptureTheFlag] (flag) Administrador captured blue's flag
[CaptureTheFlag] (team) message posted to team board
[CaptureTheFlag] (team) message posted to team board
[CaptureTheFlag] (flag) Deleting flag from blue at (-169, 12, -167)
[CaptureTheFlag] (flag) Adding flag to red at (-169, 12, -167) <----- why?

________________________________________________________
minetest.conf

name = Administrador
map-dir = *****
server_dedicated = true
minimap_shape_round = false
public_serverlist = true
aux1_descends = false
doubletap_jump = false
fast_move = true
free_move = false
noclip = true
viewing_range_nodes_min = 155
cinematic = false
fixed_map_seed = 8946877758248915402
mg_name = v6
world_config_selected_mod = 15
language = es
num_emerge_threads = 3
give_initial_stuff = true
enable_pvp = true
mgv6_spflags = nojungles, biomeblend, mudflow, nosnowbiomes, noflat
map_generation_limit = 300
vote.kick_vote = false
barrier = 202
regen_interval = 10
regen_amount = 1
random_messages_interval = 60
ctf.colors.skins = true
ctf.colors.nametag = true

ctf.flag.capture_take = true
ctf.flag.waypoints = true
ctf.flag.nobuild_radius = 2

ctf.allocate_mode = 3
ctf.diplomacy = false
ctf.players_can_change_team = false
ctf.node_ownership = false
ctf.friendly_fire = true
ctf.autoalloc_on_joinplayer = true

ctf.match = true
ctf.match.teams = red, red, 138, 19, 172; blue, blue, -169, 12, -167
ctf.match.build_time = 90
ctf.match.clear_inv = true
ctf.match.destroy_team = false
ctf.match.reset_on_winner = true
ctf.match.map_reset_limit = 200
ctf.match.remove_player_on_leave = true

ctf.gui.tab.flags = false
ctf.gui.tab.settings = false
ctf.gui.tab.diplo = false
ctf.gui.team.teleport_to_flag = false
creative_mode = false
enable_damage = true
server_announce = true
server_name = Captura la Bandera

maintab_LAST = multiplayer
menu_last_game = minetest

remote_port = 30002
port = 30002

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 18:48
by rubenwardy
Crashes without errors posted to debug.txt are usually segfaults.

What minetest version do you use?

To find out more we'll need to make a debug build. What operating system are you running on? If you're running on Linux, you need to install gdb. You then need to compile minetest using cmake. -DCMAKE_BUILD_TYPE=debug
And then run minetest by doing

gdb bin/minetest

Then in the console that appears type:

run

When it crashes, then type

bt full

Keep pressing space to see all the output, then copy and paste that here. It's possible that it may expose passwords depending on where it crashed, so look for "password" or "pass" in the output and censor it before pasting.

Thanks.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 19:44
by OrangeSoda
tbh it gets a bit boring when you play on the same seed over and over again, maybe the seed should change once a month, I'd love it if there was a huge lake between the blue and red team's bases and you'd have to use a boat to get from one to the other.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Feb 07, 2016 19:55
by Carlos
OS: linux kubuntu 15.04 64 bits
Minetest 0.4.13

The program does not stop himself, he stops working

this is all that appears:

https://mega.nz/#!PEkkDJqD!ZlupadHxxgWX ... Iik71eLQXw

(The maximum number of allowed characters is 60000.)

Thanks.

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Thu Mar 24, 2016 20:21
by snowflake
Can I be a IRC ?

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Apr 03, 2016 08:00
by snowflake
I think the games needs more than 20 players because everyone wants to play

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Sun Apr 03, 2016 20:57
by prof-turbo
You're may be talking about the server, not the game in itself.

The fact is having a powerful computer running all the time is not possible for everyone, and Minetest uses a lot of power from the computer. If it could be better, it would, but actually, I think rubenwardy can't do that :).

Also if you want to talk about the servr from now, please refer to this topic : viewtopic.php?f=10&t=13157&start=175

Re: [Game] Capture the Flag [WIP][0.1][capturetheflag] - New

Posted: Tue Apr 05, 2016 23:56
by rubenwardy
Updates:

Image
  • Kill history
  • Fix grenades and make them less rare
  • Fix chatplus bug
  • Fix kills being counted twice
  • Change nametag color on flag pick up
  • Remove rules mod
  • Add irc support to ctf_match
  • Better team creation code

Re: [Game] CaptureTheFlag [WIP-0.1][capturetheflag] - Kill h

Posted: Sun Apr 10, 2016 15:18
by stu
Very nice, this game just keeps getting better. Can I ask you why you changed the grenade's time_from_last_punch from 1 to 2? I never did fully understand how that is supposed to work.

Re: [Game] CaptureTheFlag [WIP-0.1][capturetheflag] - Kill h

Posted: Mon Apr 11, 2016 00:38
by rubenwardy
I was debugging, trying to work out how to make grenades damage players. Turns out that it was a bug in ctf_pvp_engine/ctf/team.lua:register_on_punch_player, not shooter. So, it was testing that I forgot to undo.

Re: [Game] CaptureTheFlag [WIP-0.1][capturetheflag] - Kill h

Posted: Fri Apr 29, 2016 18:06
by snowflake
This Game was Amazing when i frist joined....
i started to choose this as my fav server and played on it like many times..

BUT now
the server is so laggy, its called lag spikes. Calinou posted github page about this
when someone walks it will take like 10 seconds and they move.
This Prevent killing and gameplay

Re: [Game] CaptureTheFlag [WIP-0.1][capturetheflag] - Kill h

Posted: Fri Apr 29, 2016 18:06
by snowflake
another thing is - what happen to IRC>.

i tried using kiwi and freenode . it didn't work

Re: [Game] CaptureTheFlag [WIP-0.1][capturetheflag] - Kill h

Posted: Fri Apr 29, 2016 23:20
by rubenwardy
I disabled the mod that I think is to blame, but I will be trying to fix that mod.
Due to some users abusing the IRC channel by fighting through it, I limited it to only authorised users. That's no longer the case though.