Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from MT-CTF:master #102

Open
wants to merge 350 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
350 commits
Select commit Hold shift + click to select a range
dda49fd
Fix donation limits (#1237)
src4026 Oct 15, 2023
bae190c
Fix crash
LoneWolfHT Oct 15, 2023
aa89b2d
Fix crash
LoneWolfHT Oct 20, 2023
4367da8
Fix bug with sword replacement priorities
LoneWolfHT Oct 25, 2023
2a2737f
Allow saving the order of items in your inv
LoneWolfHT Oct 25, 2023
8dc999e
Swap superior item pickups with inferior held ones
LoneWolfHT Oct 25, 2023
b0e1aa9
Make flagpoles slightly thicker
LoneWolfHT Oct 25, 2023
9fb71d3
Fix a few bugs
LoneWolfHT Oct 25, 2023
beafb63
Fix crash
LoneWolfHT Oct 25, 2023
56618fd
Fix players being able to use /clearinv
LoneWolfHT Oct 26, 2023
917e7e2
Save initial stuff position, not just order
LoneWolfHT Nov 1, 2023
797abe0
Make flag drop sounds quieter
LoneWolfHT Nov 1, 2023
60b745b
Add some logging to help catch a rare crash
LoneWolfHT Nov 1, 2023
284eda8
Fix luacheck warning
LoneWolfHT Nov 1, 2023
bb242c1
Remove unused textures
LoneWolfHT Nov 1, 2023
ba9cfc1
Treat class primaries the same in initial stuff positioning
LoneWolfHT Nov 1, 2023
8112aff
Warning text to inform on map being played in an unsupported mode (#1…
src4026 Nov 3, 2023
5614e34
Add time left to text shown when donation timer is not over (#1240)
src4026 Nov 3, 2023
267b2da
Fix bug with marker placement setting
LoneWolfHT Nov 14, 2023
5cf13b9
Add setting for auto-trash of stone swords, don't leave swapped sword…
LoneWolfHT Nov 14, 2023
202361e
Show what class is prev/next in class form
LoneWolfHT Nov 14, 2023
dde18eb
Don't reset initial stuff for captured teams
LoneWolfHT Nov 14, 2023
d0c053f
Change from 'stone' to 'glass' in the lava barrier name (#1243)
src4026 Nov 14, 2023
f3c4eb1
Make it possible to add a message to donations (#1242)
a-blob Nov 14, 2023
7330c1e
Make match skip vote more noticeable (#1239)
a-blob Nov 14, 2023
178bea7
Tweak skip vote changes
LoneWolfHT Nov 14, 2023
3b07d85
Fix potential bug
LoneWolfHT Nov 14, 2023
605d9a1
Show teammate nametags (If per-player entities are supported)
LoneWolfHT Nov 15, 2023
7dda342
Teammate nametag tweaks
LoneWolfHT Nov 15, 2023
00743e0
Fix crash
LoneWolfHT Nov 15, 2023
2fa7f3c
Give teammate nametags a background, dim the text
LoneWolfHT Nov 15, 2023
4d8bfa6
Improve settings GUI (#1238)
a-blob Nov 20, 2023
75ec171
Allow customizing teammate nametag style
LoneWolfHT Nov 20, 2023
d534180
Fix formspec lag when settings scrollbar is moved
LoneWolfHT Nov 20, 2023
5dfebc6
Notify player when combat mode timer increases while inside blocks (#…
a-blob Nov 25, 2023
c84c52d
Display how much score and captures are left until pro chest access (…
a-blob Nov 25, 2023
3f820ea
Add bullet ricochet (#1247)
a-blob Nov 25, 2023
48ea551
Update the random message about `/donate` to include the new message …
a-blob Nov 25, 2023
5daab62
Fix mis-placement of sound_play
LoneWolfHT Nov 25, 2023
ee4f02e
Fix barrier removal in low ram mode
LoneWolfHT Nov 26, 2023
c76c360
Fix rounding of score in pro chest message
LoneWolfHT Nov 27, 2023
2c3c6f4
Change the position of the inbox HUD and support more languages (#1249)
Methro Dec 5, 2023
296ad48
Add a new setting to auto-trash stone tools when you pick up better o…
HobbitPower Dec 5, 2023
b66c0d6
Make Reinforced Cobblestone harder to break for the enemy team (#1250)
a-blob Dec 5, 2023
63e7ca0
Slightly increase kb nade radius
LoneWolfHT Dec 5, 2023
d0dfa2c
Add an infinite snowball
LoneWolfHT Dec 5, 2023
006b67f
Update Maps Submodule
LoneWolfHT Dec 5, 2023
4683473
auto-trash stone tools P.2
LoneWolfHT Dec 5, 2023
a06b163
Fix email gui annoyances FINALLY
LoneWolfHT Dec 5, 2023
278930b
Fix crash
LoneWolfHT Dec 5, 2023
e07bfb1
Remove obstruction checks from kb nades
LoneWolfHT Dec 7, 2023
955bb28
Fix infinite snowball bug
LoneWolfHT Dec 7, 2023
bd5c921
Fix rounding of score in pro chest message
LoneWolfHT Dec 11, 2023
266bc48
Add command to place map barriers without WorldEdit (#1254)
a-blob Dec 15, 2023
1b4cec0
Improve ctf_gui logging
LoneWolfHT Dec 17, 2023
23fc531
Rework class formspec
LoneWolfHT Dec 23, 2023
dac7b11
Improve the formspec dev function
LoneWolfHT Dec 23, 2023
57bd373
Fix some vote_skip bugs (firekiller)
LoneWolfHT Dec 23, 2023
be85dd4
Don't apply healthbar patch to breath
LoneWolfHT Dec 23, 2023
2083e61
Fix issues with classes formspec
LoneWolfHT Dec 24, 2023
65201b3
Fix medkit usage on ice
LoneWolfHT Dec 29, 2023
01e5bf8
Make grenades break thin ice
LoneWolfHT Dec 29, 2023
d74731a
Handle sounds triggered at a specific player's position (#1257)
Emojigit Jan 2, 2024
76e98d4
Fix crash
LoneWolfHT Jan 2, 2024
1e97216
Improve flag status huds
LoneWolfHT Jan 2, 2024
176e710
Don't print random messages to chat
LoneWolfHT Jan 2, 2024
16ffceb
Show random messages in a map loading screen
LoneWolfHT Jan 2, 2024
c5b9f55
Update maps submodule
LoneWolfHT Jan 3, 2024
603572b
Show next map in map loading screen
LoneWolfHT Jan 3, 2024
500a3cc
Fix very rare crash
LoneWolfHT Jan 4, 2024
03a010b
Don't show loading screen during match vote
LoneWolfHT Jan 7, 2024
a81db99
Increase delay before game starts after restart
LoneWolfHT Jan 8, 2024
f72829e
Fix auto-trash setting
LoneWolfHT Jan 8, 2024
e3802cc
`/donate`: Add default message and swear filter (#1256)
src4026 Jan 9, 2024
5aaddd2
Try out new team balance code
LoneWolfHT Jan 24, 2024
da0ebed
Fix crash
LoneWolfHT Feb 5, 2024
87f15ca
Provide links to the licenses mentioned in the README.md (#1267)
Panquesito7 Feb 6, 2024
2b5f9c4
Revert "`/donate`: Add default message and swear filter (#1256)"
LoneWolfHT Feb 9, 2024
e2d5deb
Create pull_request_template.md
LoneWolfHT Feb 9, 2024
c315c73
Stop using pcall() for set_observers()
LoneWolfHT Feb 11, 2024
26ecb38
Don't use `minetest.register_on_item_pickup()` if it's not available
LoneWolfHT Feb 24, 2024
ba98b24
Fix rare crash?
LoneWolfHT Feb 24, 2024
3276bac
Bump mods/ctf/ctf_map/maps from `36fcc96` to `faa67a3` (#1273)
dependabot[bot] Mar 1, 2024
26379f8
Apply team balance improvements
LoneWolfHT Mar 6, 2024
206a59b
Fix potential crashes and a memleak
LoneWolfHT Mar 7, 2024
cac8fb1
Only load barrier removal data for the current map
LoneWolfHT Mar 12, 2024
17003f6
Bump mods/ctf/ctf_map/maps from `faa67a3` to `3216cd3` (#1274)
dependabot[bot] Mar 12, 2024
5c1b73c
Bump mods/ctf/ctf_map/maps from `3216cd3` to `631fc3f` (#1279)
dependabot[bot] Apr 5, 2024
1f8d9ee
Improve dev formspec tool
LoneWolfHT Feb 6, 2024
e590745
Give modes more control over the build timer
LoneWolfHT Feb 6, 2024
482d857
Allow teams that aren't a part of the gameplay loop
LoneWolfHT Feb 6, 2024
f847ac8
Fix potential knockback issues
LoneWolfHT Mar 20, 2024
4f6aaf6
Expose tp_player_near_flag to modes
LoneWolfHT Mar 20, 2024
f4d0ccf
Default to plains map if no maps support mode
LoneWolfHT Mar 20, 2024
912ee24
Allow modes to replace the team alloc function
LoneWolfHT Mar 20, 2024
230241a
Allow the creation of exclusive modes
LoneWolfHT Mar 20, 2024
11acc82
Allow modes to force a certain amount of rounds
LoneWolfHT Mar 20, 2024
d07a487
Misc Fixes
LoneWolfHT Apr 6, 2024
ddae765
Add ctf_report.register_on_report
LoneWolfHT Apr 20, 2024
3781b42
Add missing grenade group to poison grenade
LoneWolfHT Apr 20, 2024
d84bd58
Fix luacheck warning
LoneWolfHT Apr 20, 2024
8544e95
Fix guns not dealing damage
LoneWolfHT Apr 21, 2024
500e50b
Stop guns from causing knockback
LoneWolfHT Apr 21, 2024
a62c3aa
Update grenade punch groups
LoneWolfHT Apr 22, 2024
18d0b00
Allow map loading screen to overwrite itself
LoneWolfHT Apr 24, 2024
b2d9843
Include capture points in capture messages (#1287)
farooqkz May 13, 2024
a08c3cd
Prevent class switch cooldown if switching to the same class as befor…
a-blob May 13, 2024
40be264
Add Spanish translations where applicable (#1270)
Panquesito7 May 13, 2024
361191f
Add Minetest Tools to the suggested VSCode extension list (#1271)
Panquesito7 May 13, 2024
2ad37e5
Use a faster and newer Luacheck (#1269)
Panquesito7 May 13, 2024
cf04e71
playertag mod tweaks
LoneWolfHT May 14, 2024
e635b4b
Bugfix for teams that aren't playing
LoneWolfHT May 14, 2024
8a582a7
Fix issues with modes that have a set amount of rounds
LoneWolfHT May 14, 2024
e286269
Ranking command tweaks
LoneWolfHT May 17, 2024
4011f69
Give score for bringing tools/weapons to the team chest (#1173)
farooqkz May 17, 2024
38cc968
Translation fixes (#1291)
LuismiInTheZone May 19, 2024
2781059
Fix crash?
LoneWolfHT May 21, 2024
cbf7eeb
Attempt to ignore crash for now
LoneWolfHT May 21, 2024
85ce128
Ignore another crash for now
LoneWolfHT May 21, 2024
d0a5a4f
Revert latest playertag changes
LoneWolfHT May 21, 2024
2837285
Improve playertag code
LoneWolfHT May 21, 2024
6660f57
Require shout priv to send mails to non-staff (#1297)
src4026 Jun 1, 2024
6c94c17
Reduce donation timer from 5 to 2.5 minutes (#1296)
pl608 Jun 4, 2024
af02c57
Show map info on summary formspec (#1294)
a-blob Jun 4, 2024
de78d48
Show summary formspec if match skipped (#1293)
a-blob Jun 4, 2024
7abc3d2
Make indestructible blocks only deal damage near enemy flags (#1290)
pl608 Jun 4, 2024
5b3b3c2
Fix issue with unbreakable block damage
LoneWolfHT Jun 4, 2024
45598db
Make it a little harder to accidentally reset your rankings
LoneWolfHT Jun 5, 2024
6e1f0a8
Track flag attempt streaks P.1 (#1196)
farooqkz Jun 7, 2024
774c05d
Flag streak code improvements
LoneWolfHT Jun 7, 2024
72f07a1
Revert "Flag streak code improvements"
LoneWolfHT Jun 14, 2024
04226d0
Fix bug - Disappearing items in team chest (#1299)
mrtechtroid Jun 14, 2024
e5c4f92
Update maps submodule
LoneWolfHT Jun 14, 2024
9ec18bc
Fix issues with unbreakable node damage
LoneWolfHT Jun 18, 2024
8829468
Bump mods/ctf/ctf_map/maps from `e3266f6` to `c110506` (#1311)
dependabot[bot] Jun 24, 2024
90bdb60
Fix crashes when reverting to old way of removing barriers
LoneWolfHT Jun 24, 2024
46cfe4f
Update maps submodule
LoneWolfHT Jun 24, 2024
0fab807
Update maps submodule
LoneWolfHT Jun 24, 2024
c5d8fed
Fix forced peace at end of build time
LoneWolfHT Jun 24, 2024
39b11e8
Give extra score if the flag timer drops your flag. (#1308)
mrtechtroid Jun 26, 2024
8778e67
Show how many points your killer got when you're killed (#1306)
mrtechtroid Jun 26, 2024
11e6663
Add concept of HUD events channels and add the flag events to channel…
farooqkz Jun 26, 2024
a67555b
Update maps submodule
LoneWolfHT Jun 26, 2024
43ae75f
Show message to healer on healing a player
mrtechtroid Jun 27, 2024
6cb13ad
Misc hud event improvements
LoneWolfHT Jun 27, 2024
18819cd
Use voxel manip for barrier placing commands (#1265)
a-blob Jun 29, 2024
a77d8a2
Change donate command to accept multiple recipients (#1303)
lazylier Jun 29, 2024
c834d6e
Show classes about info even during cooldown period (#1320)
mrtechtroid Jun 29, 2024
61b8f88
Fix crash
LoneWolfHT Jun 30, 2024
05fc5fc
Fix crash
LoneWolfHT Jun 30, 2024
8edb4ba
Attempt to fix nametag crash
LoneWolfHT Jun 30, 2024
9d71325
Fix bug - Poison grenades deal no damage to enemies. (#1312)
mrtechtroid Jul 2, 2024
430bb29
Prevent item's special ability from activating during build time. (#1…
mrtechtroid Jul 2, 2024
be1da96
Fix spacing in donate messages (#1322)
qasdwer01 Jul 2, 2024
b308df8
Fix crash
LoneWolfHT Jul 3, 2024
32f9c0e
ctf_teams: Better logging for assert()
LoneWolfHT Jul 5, 2024
ed5bf21
Fix crash
LoneWolfHT Jul 5, 2024
015363a
Change team message format (#1324)
Themostrandom Jul 12, 2024
e08e877
Fix random_message translations, add support for French (#1325)
ClementMR Jul 12, 2024
8f6b285
Don't show flag huds to teams that aren't playing
LoneWolfHT Jul 17, 2024
f18be38
Fix crash
LoneWolfHT Jul 17, 2024
d5c73a8
Fix another crash
LoneWolfHT Jul 17, 2024
275c2c2
Improve flag detection after map placement
LoneWolfHT Jul 21, 2024
634365e
Allow controlling flag sound volume (#1328)
ClementMR Jul 25, 2024
125898a
Fix up flag sound setting
LoneWolfHT Jul 25, 2024
6a44485
Bump mods/ctf/ctf_map/maps from `3dad69c` to `26ed976` (#1334)
dependabot[bot] Aug 3, 2024
00c1e96
Update maps submodule
LoneWolfHT Aug 4, 2024
bff7fd0
Attempt to fix nametag bug
LoneWolfHT Aug 4, 2024
837ee4e
Fix bug in nametag bug fix (#1336)
Silvager Aug 6, 2024
e42b5ed
Bump mods/ctf/ctf_map/maps from `3dad69c` to `b3a2216` (#1338)
dependabot[bot] Aug 8, 2024
76de309
Add alias to donate command: /d (#1335)
Themostrandom Aug 8, 2024
7c7a94d
Only open treasure chest if an item is taken from it (#1301)
pl608 Aug 8, 2024
59de7bc
Use relative values for class visual_size changes (#1331)
pl608 Aug 8, 2024
727a7cd
Fix crash
LoneWolfHT Aug 8, 2024
2f8b1f8
Fix crash
LoneWolfHT Aug 8, 2024
3c05995
Fix another crash
LoneWolfHT Aug 8, 2024
e7543d7
Polish inventory (#1340)
a-blob Aug 16, 2024
49915ca
Use coroutines for rank sorting (#1342)
LoneWolfHT Aug 16, 2024
8a183ec
Allow putting a time limit on carried over pro chest access
LoneWolfHT Aug 16, 2024
15d6329
Remove some debug logging
LoneWolfHT Aug 16, 2024
b85642b
Fix rank reset code
LoneWolfHT Aug 16, 2024
911b741
Update post-reset pro chest access to work with the new system
LoneWolfHT Aug 16, 2024
ce50b80
Remove limit on capture score (#1339)
farooqkz Aug 17, 2024
517f859
Give way more score for killing a flag thief (#1302)
farooqkz Aug 17, 2024
3795542
Allow you to see /top50 players team when ingame.
mrtechtroid Aug 15, 2024
daf567f
Add "yellow" as a team color.
mrtechtroid Aug 17, 2024
9a28a95
Spikes of captured teams no longer damage.
mrtechtroid Aug 17, 2024
3079fd2
Give extra points to medics when thief captures the flag.
mrtechtroid Aug 17, 2024
b9c7363
Give more score for items returned that are more valuable
LoneWolfHT Aug 17, 2024
758b73f
Fix new_move physics setting not being disabled
LoneWolfHT Aug 18, 2024
0b332d4
Remove team alloc testing, tweak it slightly
LoneWolfHT Aug 18, 2024
8b82e6c
Don't count deaths for players not in a team
LoneWolfHT Aug 18, 2024
2581686
Reduce min capture score from 75 to 10
LoneWolfHT Aug 18, 2024
543698e
Fix duplicate text in flag cap message
LoneWolfHT Aug 18, 2024
9aa2bd8
Rework score calculations for healing the flag capturer
LoneWolfHT Aug 18, 2024
c94601c
Only prevent using tool abilities during build time if you're in a team
LoneWolfHT Aug 18, 2024
328c3c8
Make capture score double the average captured team member match score
LoneWolfHT Aug 18, 2024
f1e055e
Send flag capture message to chat in addition to IRC
LoneWolfHT Aug 18, 2024
82823d3
Fix capture announcement message
LoneWolfHT Aug 19, 2024
41987b6
Remove some useless debug logging
LoneWolfHT Aug 19, 2024
03a0e5e
Add ctf_teams.get_connected_players()
LoneWolfHT Aug 19, 2024
96afee0
Improve flag capture/attempt score
LoneWolfHT Aug 19, 2024
9d38d86
Fix score calculation including players not in a team
LoneWolfHT Aug 19, 2024
bd9e784
Tweak flag capture score rewards
LoneWolfHT Aug 19, 2024
af11ed5
Fix crash with default ranking storage
LoneWolfHT Aug 19, 2024
30bb20e
More capture reward tweaks
LoneWolfHT Aug 20, 2024
7c622b3
Remove kill list/flag huds if not in a team
LoneWolfHT Aug 20, 2024
8b6cce1
Update info logging for flag attempts and kills
LoneWolfHT Aug 22, 2024
7720712
Prevent autoclicker spam with blueberries
LoneWolfHT Aug 22, 2024
f0de38e
Add more info logs for flag captures
LoneWolfHT Aug 22, 2024
18e72d3
Add ratelimit to inventory save button
LoneWolfHT Aug 25, 2024
2592626
Add more factors to capture score, decrease score slope
LoneWolfHT Aug 27, 2024
1916c5e
Set max capture score to 800
LoneWolfHT Sep 2, 2024
fd8acc8
Bump mods/ctf/ctf_map/maps from `b3a2216` to `16dc662` (#1344)
dependabot[bot] Sep 2, 2024
f84649a
Update Maps Submodule
LoneWolfHT Sep 8, 2024
c2f0cd6
Fix item return reward exploit (thanks Anonomous)
LoneWolfHT Sep 8, 2024
f12342d
ctf_map: Preserve 'tree' group (Fixes #1346)
LoneWolfHT Sep 8, 2024
5d0271d
Only put a bounty on players that are playing
LoneWolfHT Sep 11, 2024
6098a8b
Only allow placing markers if you're in a playing team
LoneWolfHT Sep 11, 2024
80d625e
Add tracking of total rewards given to enemies on player death (#1345)
mpixelate Sep 12, 2024
e996150
Update Maps Submodule
LoneWolfHT Sep 14, 2024
34e4a92
Use new_move again
LoneWolfHT Sep 16, 2024
e9d7ce2
Increase default jump force to 1.2x. Add speed_crouch to physics api
LoneWolfHT Sep 18, 2024
2bb44a1
Increase crouch speed while sprinting by 1.1x (5.9+)
LoneWolfHT Sep 18, 2024
f5c4230
Fix enable_build_where_you_stand=false not working at player's feet
LoneWolfHT Sep 18, 2024
453f685
In addition to the default sprint trigger (aux+forward) allow aux+jum…
LoneWolfHT Sep 18, 2024
a2a8a84
Fix flag placement warning being too scary
LoneWolfHT Sep 24, 2024
f9eae34
Add touch_interaction to grenades
grorp Sep 25, 2024
7b41c57
Update MTG
LoneWolfHT Sep 27, 2024
826fb62
ctf_map: Preserve wood group
LoneWolfHT Sep 27, 2024
df3bbd1
ctf_kill_list: Add overridable show_to_player() func
LoneWolfHT Sep 27, 2024
b190c32
ctf_modebase: Add overridable get_allowed_nametag_observers() and cal…
LoneWolfHT Sep 27, 2024
f6abdd7
Change jump force from x1.2 to x1.1, change move speed from x1.0 to x1.1
LoneWolfHT Sep 28, 2024
7275365
Change how player speed increase is applied
LoneWolfHT Oct 9, 2024
702506a
Add logging for map duration
LoneWolfHT Oct 13, 2024
4e42cc4
Fix <1 physics modifiers not working
LoneWolfHT Oct 14, 2024
9fd38b6
Add support for mods adding their own maps
LoneWolfHT Oct 15, 2024
84736cb
Don't clear map if it was the last one to be played
LoneWolfHT Oct 16, 2024
a1aac7d
Allow completely overriding next map filtering
LoneWolfHT Oct 16, 2024
ac65eb8
Fix physics change to 0 not working
LoneWolfHT Oct 19, 2024
2c621a9
Fix missing dependencies
LoneWolfHT Oct 30, 2024
b853398
Make better tools replace weaker top row ones when put in player inv
LoneWolfHT Oct 30, 2024
38bd295
Add more missing mod.conf dependencies
LoneWolfHT Oct 30, 2024
dbdd20b
Make afkkick check for pos change instead of player keypress
LoneWolfHT Oct 30, 2024
402a019
Make sure sprint is limited to min/max values
LoneWolfHT Oct 31, 2024
2ce460a
Remove debug logging, fix missing mod.conf depends
LoneWolfHT Oct 31, 2024
486cfe1
Fix crashes with /put_bounty
LoneWolfHT Oct 31, 2024
556a2eb
Fix afkkick giving seconds left in decimal format
LoneWolfHT Nov 3, 2024
e207edf
Update Maps Submodule
LoneWolfHT Nov 5, 2024
a01635a
Allow donating maximum score by donating -1 or :max (#1350)
lazylier Nov 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


- [ ] This PR has been tested locally
16 changes: 0 additions & 16 deletions .github/workflows/build.yml

This file was deleted.

10 changes: 10 additions & 0 deletions .github/workflows/luacheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: luacheck
on: [push, pull_request]
jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Luacheck
uses: lunarmodules/luacheck@master
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ debug.txt
/mods/ctf/ctf_map/textures/*Back.*
/mods/ctf/ctf_map/textures/*Left.*
/mods/ctf/ctf_map/textures/*Right.*
/mods/ctf/ctf_map/textures/*_screenshot.png
/mods/ctf/ctf_map/textures/*_screenshot.png

*.blend1
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,22 @@ Note that this version may be slightly behind the git version, but it will be a
* If you use Visual Studio Code we recommend these extensions:
* https://marketplace.visualstudio.com/items?itemName=sumneko.lua
* https://marketplace.visualstudio.com/items?itemName=dwenegar.vscode-luacheck
* https://marketplace.visualstudio.com/items?itemName=GreenXenith.minetest-tools

## License

Created by [rubenwardy](https://rubenwardy.com/).
Developed by [LandarVargan](https://github.com/LoneWolfHT).
Previous Developers: [savilli](https://github.com/savilli).

Licenses where not specified:
Code: LGPLv2.1+
Textures: CC-BY-SA 3.0

### Textures
Check out [mods/](mods/) to see all the installed mods and their respective licenses.

* [Header](menu/header.png): CC BY-SA 4.0 by xenonca
* [Background Image](menu/background.png): CC0 (where applicable) by Apelta (Uses [Minetest Game](https://github.com/minetest/minetest_game) textures, the majority of which are licensed CC-BY-SA 3.0). The player skin used is licensed CC-BY-SA 3.0
Licenses where not specified:\
Code: [GNU LGPLv2.1+](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)\
Media: [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)

### Mods
### Textures

Check out [mods/](mods/) to see all the installed mods and their respective licenses.
* [Header](menu/header.png): [CC BY 3.0 Unported](https://creativecommons.org/licenses/by/3.0/) by [SuddenSFD](https://github.com/SuddenSFD)
* [Background Image](menu/background.png): [CC BY-SA 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/) (where applicable) by [GreenBlob](https://github.com/a-blob) (Uses [Minetest Game](https://github.com/minetest/minetest_game) textures, the majority of which are licensed [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)). The player skins used are licensed under [CC BY-SA 3.0 Unported](https://creativecommons.org/licenses/by-sa/3.0/)
* [Icon](menu/icon.png): [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/) by [SuddenSFD](https://github.com/SuddenSFD)
17 changes: 10 additions & 7 deletions docs/accurate_statbar.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@ index 46c947b6..f4372843 100644
local hud_ids = {}

local function scaleToDefault(player, field)
+ return player["get_" .. field](player)
- -- Scale "hp" or "breath" to the default dimensions
- local current = player["get_" .. field](player)
- local nominal = core["PLAYER_MAX_".. field:upper() .. "_DEFAULT"]
- local max_display = math.max(nominal,
- math.max(player:get_properties()[field .. "_max"], current))
- return current / max_display * nominal
+ if field == "health" then
+ return player["get_" .. field](player)
+ else
-- Scale "hp" or "breath" to the default dimensions
local current = player["get_" .. field](player)
local nominal = core["PLAYER_MAX_".. field:upper() .. "_DEFAULT"]
local max_display = math.max(nominal,
math.max(player:get_properties()[field .. "_max"], current))
return current / max_display * nominal
+ end
end

local function update_builtin_statbars(player)
7 changes: 5 additions & 2 deletions docs/ctf-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ctf_settings.register("my_setting", {
on_change = function(player, new_value)
<...>
end
}
})
```

### `ctf_settings.set(player, setting, value)`
Expand All @@ -39,7 +39,10 @@ ctf_settings.register("my_setting", {

---
# mods/ctf/
TODO
TODO, below is a collection of quick notes for later

## ctf_teams
* https://modern.ircdocs.horse/formatting.html#colors-16-98

---
# mods/mtg/
Expand Down
Binary file modified menu/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified menu/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified menu/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 26 additions & 9 deletions mods/apis/ctf_gui/dev.lua
Original file line number Diff line number Diff line change
@@ -1,31 +1,48 @@
local unset_function = "return "

function ctf_gui.show_formspec_dev(player, formname, formspec, formcontext)
local filepath = minetest.get_worldpath().."/ctf_gui/"
local filename = filepath.."file_edit.txt"
local slower_loop = false

minetest.chat_send_all("Started formspec editing file at "..filename)

minetest.mkdir(filepath)

local file = assert(io.open(filename, "w"))

file:write(formspec)

if type(formspec) ~= "function" then
file:write(formspec)
else
file:write(unset_function)
end
file:close()

local function interval()
if formspec:sub(1, 3) == "[f]" then
local result, form = pcall(loadstring(formspec:sub(4)), formcontext)
ctf_gui.show_formspec(player, formname, result and form or "")
if type(formspec) == "function" then
ctf_gui.show_formspec(player, formname, formspec(formcontext))
elseif formspec:match("^%s*return") then
local result, form = pcall((loadstring(formspec) or function() return function() end end)(), formcontext)

ctf_gui.show_formspec(player, formname,
result and form or "size[10,10]hypertext[0,0;10,10;err;"..minetest.formspec_escape(form or "").."]"
)

slower_loop = not result
else
ctf_gui.show_formspec(player, formname, formspec)
end

minetest.after(1, function()
minetest.after(slower_loop and 3 or 1, function()
local f = assert(io.open(filename, "r"))
local new_form = f:read("*a")

formspec = f:read("*a")
if new_form ~= unset_function then
formspec = new_form
end

f:close()

if formspec:match("^exit") then
if type(formspec) == "function" or not formspec:match("^exit") then
interval()
else
minetest.request_shutdown("Formspec dev requested shutdown", true)
Expand Down
12 changes: 11 additions & 1 deletion mods/apis/ctf_gui/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ function ctf_gui.init()
local action = ctx._on_formspec_input(pname, ctx, fields, ...)

if action == "refresh" then
minetest.log("action", "Refreshing formspec "..dump(ctx._formname).." to "..dump(pname))
minetest.show_formspec(pname, ctx._formname, ctx._formspec(ctx))
end
end
Expand Down Expand Up @@ -115,6 +116,7 @@ function ctf_gui.show_formspec(player, formname, formspec, formcontext)
context[player]._formname = formname
context[player]._formspec = formspec

minetest.log("action", "Showing new_formspec "..dump(formname).." to "..dump(player))
if type(formspec) == "function" then
minetest.show_formspec(player, formname, formspec(formcontext))
else
Expand Down Expand Up @@ -144,6 +146,7 @@ do
end
end

-- minetest.log("action", "[ctf_gui] unpacking: "..dump(l))
return format(base, unpck(l))
end

Expand Down Expand Up @@ -457,9 +460,16 @@ function ctf_gui.old_show_formspec(player, formname, formdef)
formdef._info = formdef
context[player] = formdef

minetest.show_formspec(player, formname, formspec)
if minetest.get_player_by_name(player) then
minetest.log("action", "Showing formspec "..dump(formname).." to "..dump(player))
minetest.show_formspec(player, formname, formspec)
end
end,
formdef, ctf_gui.ELEM_SIZE, ctf_gui.SCROLLBAR_WIDTH)
end

minetest.register_on_leaveplayer(function(player)
context[player:get_player_name()] = nil
end)

dofile(minetest.get_modpath("ctf_gui").."/dev.lua")
Loading