[Mod] Arena_lib [4.6.0] [arena_lib]

User avatar
Zughy
Member
Posts: 272
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by Zughy » Post

UPDATE - Arena_lib 4.1.0

What's new
  • Minigame property in_game_physics, to customise physics
  • Minigame property hotbar, to display custom hotbar slots and aspect
  • Command /kick is now /arenakick to avoid whatever overlapping with other mods
  • Code performance and readability improved
  • DOCS updated
Bugfixes
  • CRASHFIX: people leaving while in queue weren't removed properly
  • CRASHFIX: quitting while inside the editor made the game crash
  • Bugfix: player properties weren't assigned when joining an arena
  • Bugfix: in some cases if an entire team left, game kept going
  • Bugfix: in some cases, when teams were enabled, signs weren't updated at quitting

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

Code: Select all

ModError: Failed to load and run script from /home/example/.minetest/mods/minigames/init.lua:
/home/example.minetest/mods/minigames/init.lua:1: attempt to index global 'arena_lib' (a nil value)
stack traceback:
	/home/noah/.minetest/mods/minigames/init.lua:1: in main chunk
Siehe debug.txt für Details.ModError: Failed to load and run script from /home/example/.minetest/mods/minigames/init.lua:

User avatar
Zughy
Member
Posts: 272
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by Zughy » Post

debiankaios wrote:
Tue Dec 08, 2020 17:04

Code: Select all

ModError: Failed to load and run script from /home/example/.minetest/mods/minigames/init.lua:
/home/example.minetest/mods/minigames/init.lua:1: attempt to index global 'arena_lib' (a nil value)
stack traceback:
	/home/noah/.minetest/mods/minigames/init.lua:1: in main chunk
Siehe debug.txt für Details.ModError: Failed to load and run script from /home/example/.minetest/mods/minigames/init.lua:
Did you add arena_lib as a dependency?

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

oh, no thank you!

thvk
Member
Posts: 12
Joined: Sun Jul 19, 2020 17:36
In-game: sirio thvk

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by thvk » Post

When i try to start an arena(block_league) i get the following error:

Code: Select all

2021-01-08 14:01:19: ERROR[Main]: ServerError: AsyncErr: environment_Step: Runtime error from mod '*builtin*' in callback environment_Step(): ...test_5/minetest/bin/../builtin/game/forceloading.lua:17: attempt to perform arithmetic on field 'x' (a nil value)
2021-01-08 14:01:19: ERROR[Main]: stack traceback:
2021-01-08 14:01:19: ERROR[Main]: 	...test_5/minetest/bin/../builtin/game/forceloading.lua:17: in function 'get_blockpos'
2021-01-08 14:01:19: ERROR[Main]: 	...test_5/minetest/bin/../builtin/game/forceloading.lua:40: in function 'forceload_block'
2021-01-08 14:01:19: ERROR[Main]: 	...test/bin/../mods/block_league/bl_modes/game_main.lua:88: in function 'load_ball'
2021-01-08 14:01:19: ERROR[Main]: 	...test/bin/../mods/block_league/bl_modes/game_main.lua:79: in function 'round_start'
2021-01-08 14:01:19: ERROR[Main]: 	...test/bin/../mods/block_league/bl_modes/game_main.lua:48: in function 'display_and_start_countdown'
2021-01-08 14:01:19: ERROR[Main]: 	...test/bin/../mods/block_league/bl_modes/game_main.lua:45: in function 'func'
2021-01-08 14:01:19: ERROR[Main]: 	.../minetest_5/minetest/bin/../builtin/common/after.lua:20: in function '?'
2021-01-08 14:01:19: ERROR[Main]: 	...minetest_5/minetest/bin/../builtin/game/register.lua:433: in function <...minetest_5/minetest/bin/../builtin/game/register.lua:417>
2021-01-08 14:01:19: ERROR[Main]: stack traceback:
I have installed all depencies and lua jit. Is this my fault or a fault of the mod?

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

Zughy wrote:
Fri Apr 03, 2020 20:45
I won't update my mods on the forum anymore. Check them out on ContentDB instead!

Image

Arena_lib is a library for Minetest working as a core for any arena mini-game you have in mind.
It comes with an arena manager and a signs system. The latter creates a bridge inside your own server between the hub and your actual mod (deathmatch, capture the flag, assault, you name it). In other words, you don't have to do the boring job and you can focus exclusively on your minigame.

Example of how to implement arena_lib

Code: Select all

arena_lib.register_minigame("Call of Zughy", {
  prefix = "[CoZ] ",
  hub_spawn_point = { x = 5, y = 10, z = 4 },
  teams = {
    "red",
    "blue"
  },
  teams_color_overlay = {
    "crimson",
    "blue"
  },
  disabled_damage_types = {
    "fall"
  },
  queue_waiting_time = 20,
  show_minimap = true,
  properties = {
    planting_locations = {{x=30, y=20, z=40}, {x=5, y=20, z=80}}, --you can override these parameters via your mod, of course
  },
  temp_properties = {
    kill_leader = " ",
    is_bomb_planted = false
  },
  player_properties = {
    killstreak = 0,
    has_bomb = false
  },
  team_properties = {
    rounds_won = 0
  }
})

Read the full documentation
: https://gitlab.com/zughy-friends-minete ... er/DOCS.md

License: GPL 3
Mod dependencies: default, signs_lib, (optional) hub manager
Known conflicts: anything overriding the default respawn behaviour, such as Beds

Download: https://gitlab.com/zughy-friends-minete ... v4.1.0.zip

ContentDB: https://content.minetest.net/packages/Zughy/arena_lib/
GitLab: https://gitlab.com/zughy-friends-minetest/arena_lib
Issue Tracker: https://gitlab.com/zughy-friends-minete ... b/-/issues

A few mods using arena_lib
Murder by Giov4
Skywars by Giov4
How can i place sign, i can't it do how you it discribe in the docs!

MisterE
Member
Posts: 211
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by MisterE » Post

to start: have an arena constructed
1) type /[your_mod_name] create [your_arena_name]
2) type /[your_mod_name] edit [your_arena_name]
3) you are given several edit tools
4) use the tool that looks like a sign.
5) you are given a sign. Place it.
6) use the tool that looks like a sign with a [+] on the sign you placed
7)use the [back] tool
7.5) do whatever else you need to to set up the arena, like spawners...
8)use the [enable_arena] tool
9)enjoy

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

MisterE wrote:
Thu Jan 21, 2021 04:39
to start: have an arena constructed
1) type /[your_mod_name] create [your_arena_name]
2) type /[your_mod_name] edit [your_arena_name]
3) you are given several edit tools
4) use the tool that looks like a sign.
5) you are given a sign. Place it.
6) use the tool that looks like a sign with a [+] on the sign you placed
7)use the [back] tool
7.5) do whatever else you need to to set up the arena, like spawners...
8)use the [enable_arena] tool
9)enjoy
The command don't exist

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

How can i say the position of spawner?

MisterE
Member
Posts: 211
Joined: Sun Feb 16, 2020 21:06
GitHub: MisterE123
IRC: MisterE
In-game: MisterE

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by MisterE » Post

to set spawners, use the spawners item in the main section of the editor. You will be given a spawner + item. go to each spawner location and use the plus spawner item. To start over, you can use the clear all spawners item. when finished, press back and enable

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

Ok I have it understand

User avatar
1faco
Member
Posts: 20
Joined: Tue Sep 08, 2020 20:32
GitHub: minefaco
In-game: faco

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by 1faco » Post

BUG: https://imgur.com/54i5kLb.png

Minetest 5.4 dev

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

Can you translate this to english? Then i can you maybe help

User avatar
1faco
Member
Posts: 20
Joined: Tue Sep 08, 2020 20:32
GitHub: minefaco
In-game: faco

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by 1faco » Post

debiankaios wrote:
Sun Jan 24, 2021 21:33
Can you translate this to english? Then i can you maybe help
review debug.txt for more details.

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

1faco wrote:
Sun Jan 24, 2021 21:40
debiankaios wrote:
Sun Jan 24, 2021 21:33
Can you translate this to english? Then i can you maybe help
review debug.txt for more details.
Can i show the sourcecode?

User avatar
Zughy
Member
Posts: 272
Joined: Thu Mar 26, 2020 18:23
GitHub: belongs_to_microsoft
In-game: Zughy
Location: Italy
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by Zughy » Post

1faco wrote:
Sun Jan 24, 2021 19:10
BUG: https://imgur.com/54i5kLb.png

Minetest 5.4 dev
Hello, thanks for the report.

1. Are you using LuaJIT to compile? It's needed
2. Does it happen on 5.3 too?

@MisterE: thank you for helping him :)

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.1.0] [arena_lib]

by debiankaios » Post

Zughy wrote:
Mon Jan 25, 2021 11:32
1faco wrote:
Sun Jan 24, 2021 19:10
BUG: https://imgur.com/54i5kLb.png

Minetest 5.4 dev
Hello, thanks for the report.

1. Are you using LuaJIT to compile? It's needed
2. Does it happen on 5.3 too?

@MisterE: thank you for helping him :)
My spleef is soon finished. Maybe today!

User avatar
debiankaios
Member
Posts: 206
Joined: Thu Dec 03, 2020 12:48
In-game: debiankaios Nowe
Location: germany
Contact:

Re: [Mod] Arena_lib [4.6.0] [arena_lib]

by debiankaios » Post

Can me someone help? I want in a abm do that if the arena is the node swap to spleef:tnt. Thank you for help.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests