[Game] CaptureTheFlag [capturetheflag]

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

[Game] CaptureTheFlag [capturetheflag]

by rubenwardy » Post

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
Last edited by rubenwardy on Tue Apr 05, 2016 23:57, edited 2 times in total.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
horse_lover
Member
Posts: 91
Joined: Mon Jan 12, 2015 21:51
IRC: LizzardBeth
In-game: horse_lover LizzardBeth
Location: The future

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

by horse_lover » Post

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!!
Blue Roses are my thing
Love horses ;D
Fishies too <3 Fish Lore - Aquarium Fish Information

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

What version of Minetest do you use?

I can't remember when colored tags were added.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
horse_lover
Member
Posts: 91
Joined: Mon Jan 12, 2015 21:51
IRC: LizzardBeth
In-game: horse_lover LizzardBeth
Location: The future

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

by horse_lover » Post

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.
Blue Roses are my thing
Love horses ;D
Fishies too <3 Fish Lore - Aquarium Fish Information

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

Colored name tags must have been added in 0.4.12-dev. I'll look into changing the player skins.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Diamond knight
Member
Posts: 475
Joined: Sun Apr 19, 2015 19:50
GitHub: Diamondknight
In-game: Ferrumprinceps
Location: Chilling in Constantinople
Contact:

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

by Diamond knight » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
lightonflux
Member
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof
Location: Germany

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

by lightonflux » Post

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?).

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Carlos
New member
Posts: 3
Joined: Sun Feb 07, 2016 17:17
GitHub: CarlBarr

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

by Carlos » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Carlos
New member
Posts: 3
Joined: Sun Feb 07, 2016 17:17
GitHub: CarlBarr

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

by Carlos » Post

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

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

OrangeSoda
Member
Posts: 58
Joined: Sat Sep 26, 2015 19:42
In-game: SG

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

by OrangeSoda » Post

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.

Carlos
New member
Posts: 3
Joined: Sun Feb 07, 2016 17:17
GitHub: CarlBarr

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

by Carlos » Post

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.

snowflake
Member
Posts: 215
Joined: Mon Nov 16, 2015 16:50

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

by snowflake » Post

Can I be a IRC ?

snowflake
Member
Posts: 215
Joined: Mon Nov 16, 2015 16:50

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

by snowflake » Post

I think the games needs more than 20 players because everyone wants to play

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

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

by prof-turbo » Post

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

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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
Attachments
kill_hist.png
kill_hist.png (49.13 KiB) Viewed 8445 times
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

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

by stu » Post

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.

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

snowflake
Member
Posts: 215
Joined: Mon Nov 16, 2015 16:50

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

by snowflake » Post

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

snowflake
Member
Posts: 215
Joined: Mon Nov 16, 2015 16:50

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

by snowflake » Post

another thing is - what happen to IRC>.

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

User avatar
rubenwardy
Moderator
Posts: 6969
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

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.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests