Page 1 of 5

[Game] The Hungry Games [hungry_games] [0.4]

Posted: Sat Jan 26, 2013 01:59
by Splizard
I just watched the Hunger Games recently, which resulted in this...
Image

When you play a map with this game a glass wall is created which is 200x200 blocks around the center of the map,
it is an indestructable wall and players will always spawn inside the arena.
There are also chests scattered randomly around the arena which contain useful weapons and items.
When you die you drop all you items and start spectating.
After three minutes you get hungry and start starving.

Servers:
http://forum.minetest.net/viewtopic.php?id=5870

hungry_games, glass_arena, spawning, random chests and dead_drop mods:
License: GPLv2/later
Textures: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)

Please see other mod pages for info on there respective license's:
(minor modifications have been made to some of these mods)
Snow Biomes (GPLv2/later)
Farming (WTFPL)
Throwing (WTFPL)
Drowning (CC-BY-SA)
Minetest Game (LGPLv2)
Minecraft like item drop/pick up (WTFPL)
Survival ModPack (BSD 2 Clause)
Item Features (WTFPL)
Inventory Plus (GPLv3)
minetest-3d_armor (GPL v3)

Feel free to add sugestions on this topic and/or create a pull request at:
https://github.com/Splizard/hungry_games/

Known Bugs:
  • Very rarely there might be a hole in the wall where players might escape
Please help report bugs as this is in beta at the moment.

Download:
http://minetest.splizard.com/minetest/g ... es-0.4.zip (Version 0.4)
http://minetest.splizard.com/minetest/g ... es-0.3.zip (Version 0.3)

you will probably also need a map:

Download maps:
Default (A default map for up to 11 players) image
Halloween (A Halloween themed map for up to 19 players) image

Installing: This needs to go into your minetest games folder as it is NOT a mod.
The maps go in your minetest worlds folder.

ATTENTION SERVER ADMINS
When hosting a hungry games server please edit the hungry_games mod for configuring
the game, this is the hungry_games/init.lua file. The file is meant to document itself but if you need help understanding the configuration just ask.

Chat Commands:

Code: Select all

hg_admin:
/hg restart/start --starts the match
/hg stop --stops the match
/hg set spawn --sets where players respawn on death
/hg set lobby --sets where the players spawn when they join
/hg set player_# --set where players start the match, replace # with number (must be set in order to play a match)

hg_maker: (note after getting this priv you must logout/login to the server to get creative inventory)
/build --grants interact/fly and fast privilege

anyone:
/vote --vote to start the match
/register --register to take part in the next match
Compatible Mods:
Factions (LGPL)

Posted: Sat Jan 26, 2013 02:03
by kaeza
how about firearms? I'm awaiting jojoa to provide recipes for it. When he does so, I'll fix it so the guns require ammo to shoot.

Posted: Sat Jan 26, 2013 02:10
by Splizard
kaeza wrote:how about firearms? I'm awaiting jojoa to provide recipes for it. When he does so, I'll fix it so the guns require ammo to shoot.
Sure! although I would rather that firearms is an optional mod to this game then included by default.

Posted: Sat Jan 26, 2013 02:15
by jojoa1997
kaeza wrote:how about firearms? I'm awaiting jojoa to provide recipes for it. When he does so, I'll fix it so the guns require ammo to shoot.
i will try to get the recipes sometime soon i am busy. also any suggestions on recipes cause i can only use so much space

Posted: Sat Jan 26, 2013 03:35
by jojoa1997
I suggest making the chests refill every day so if there is a server where many people join then there could still be stuff in chests. Also make a start off area block that will make a start areas like the hunger games cornucopia. I love this mod and hopes someone hosts a server for it.
Edit:also have the food items in the chest have a chance to give more food.

Posted: Sat Jan 26, 2013 04:44
by davidpace
This. Looks. Amazing. +10000000000000000000000000000000000000000000000000000000000000000000000000000

Posted: Sat Jan 26, 2013 10:26
by sfan5
Holy sh**, this mod is awesome!
Moved to 'Minetest Games'

Posted: Sat Jan 26, 2013 11:22
by kaeza
sfan5 wrote:Holy sh**, this mod is awesome!
Moved to 'Minetest Games'
Tested it and I agree. My only suggestion would be to remove fire, to reduce lag on servers (especially when you set a forest on fire).
I hope to see a server hosting this game soon :D

Posted: Sat Jan 26, 2013 12:52
by jojoa1997
kaeza wrote:
sfan5 wrote:Holy sh**, this mod is awesome!
Moved to 'Minetest Games'
Tested it and I agree. My only suggestion would be to remove fire, to reduce lag on servers (especially when you set a forest on fire).
I hope to see a server hosting this game soon :D
Dont remove fire because when me and kaeza tested it there was too much lagf to begin with. mybe put a warning in the description of what the fire arrows can do
edit: also maybe make the glass llike a dome cause then that would be really cool
re edit: also instead of giving swords in the chests give ingots and sticks because that would be more like hunger games. still keep the swords but make the more rare. make people drop every thing when they die and also use the item drop because that makes picking up items easier and it wont create lag because you cant dig anything(except papyrus and leaves)

Posted: Sat Jan 26, 2013 21:32
by 0gb.us
13:00:47: ACTION[ServerThread]: Moving jojoa1997 to static spawnpoint at (0,5,0)
on_newplayer
giving give_initial_stuff to player
13:01:15: ACTION[ServerThread]: jojoa1997 times out. List of players:
13:01:16: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: .../games/hungry_games-master/mods/glass_arena/init.lua:45: attempt to index local 'pos' (a nil value)
13:01:16: ERROR[main]: stack traceback:

In thread 7ff30efde740:
/build/buildd/minetestc55-0.4.4/src/main.cpp:1760: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7ff30efde740:
#0 int main(int, char**)
Te code looks sound to me, but glass_arena crashed the game as soon as he logged in.

Posted: Sat Jan 26, 2013 21:43
by Splizard
0gb.us wrote:Te code looks sound to me, but glass_arena crashed the game as soon as he logged in.
The bug should be fixed now.

Posted: Sat Jan 26, 2013 22:19
by jojoa1997
Splizard wrote:
0gb.us wrote:Te code looks sound to me, but glass_arena crashed the game as soon as he logged in.
The bug should be fixed now.
i had to delete the teleport part because it wasnt working with my static spawn

Posted: Sun Jan 27, 2013 03:10
by jojoa1997
where can we set refill time

Posted: Sun Jan 27, 2013 03:30
by jojoa1997
please update the first post with what was added

Posted: Sun Jan 27, 2013 03:31
by Splizard
jojoa1997 wrote:where can we set refill time
In the file hungry_games/hungry_games/init.lua:

Code: Select all

--Set Chest Refill.
--The refill rate should not be set too low to reduce lag
--Uncomment one of the following...

----Can be set as an abm: [SAFE]
--random_chests.setrefill("abm", 1000)

----or as nodetimers: (refill rate is in seconds)
--random_chests.setrefill("nodetimer", 3600)

Posted: Sun Jan 27, 2013 03:48
by 0gb.us
Sorry, syntax error.
19:48:25: ERROR[main]: ========== ERROR FROM LUA ===========
19:48:25: ERROR[main]: Failed to load and run script from
19:48:25: ERROR[main]: /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua:
19:48:25: ERROR[main]: /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua:16: ')' expected (to close '(' at line 6) near 'end'
19:48:25: ERROR[main]: =======END OF ERROR FROM LUA ========
19:48:25: ERROR[main]: Server: Failed to load and run /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua
19:48:25: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua

Posted: Sun Jan 27, 2013 05:55
by jojoa1997
Please have the mod check to see if the player has other privs. I have them all and don't want to lose them. Also have a node that can spawn a start of point with a cornucopia so people can make a quick start off and add player spawn points for the pedistals around the cornucopia.

Posted: Sun Jan 27, 2013 08:11
by Splizard
0gb.us wrote:Sorry, syntax error.
19:48:25: ERROR[main]: ========== ERROR FROM LUA ===========
19:48:25: ERROR[main]: Failed to load and run script from
19:48:25: ERROR[main]: /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua:
19:48:25: ERROR[main]: /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua:16: ')' expected (to close '(' at line 6) near 'end'
19:48:25: ERROR[main]: =======END OF ERROR FROM LUA ========
19:48:25: ERROR[main]: Server: Failed to load and run /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua
19:48:25: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /home/us_0gb/.minetest/games/hungry_games-master/mods/spawning/init.lua
sorry should be fixed now

Posted: Sun Jan 27, 2013 13:12
by jojoa1997
if i have other privs like admin will they go away if i die. also could you make chests either refill every 24 hours(minetest time) or every time the time reaches 0. also please add in a command to be able to restart the hunger games which means grant everyone back interact and revoking fly and fast(except for those with admin privs) and also teleporting everyone back to spawn. and if only one person has interact left then the privs go back to interact,shout for every one. also could you make a command to reset the privs like "/reset privs" and one that resets privs and respawns everyone like "/reset game". also make shure that if someone has the priv or server privs then they arent affected by the privs change.

Posted: Mon Jan 28, 2013 01:00
by 0gb.us
A segfault occurs every time someone logs in now. I don't know what's going on, but I've never had the server segfault except while running this game ....

Posted: Mon Jan 28, 2013 01:05
by Splizard
0gb.us wrote:A segfault occurs every time someone logs in now. I don't know what's going on, but I've never had the server segfault except while running this game ....
strange... Im not sure what the problem would be, have you got the latest version of hungry_games?

Posted: Mon Jan 28, 2013 01:09
by jojoa1997
Splizard wrote:
0gb.us wrote:A segfault occurs every time someone logs in now. I don't know what's going on, but I've never had the server segfault except while running this game ....
strange... Im not sure what the problem would be, have you got the latest version of hungry_games?
the static spawns interfears with your spawning code

Posted: Mon Jan 28, 2013 01:11
by shortstop824
There is an error when I try to play. What do I do?

Posted: Mon Jan 28, 2013 01:11
by Splizard
@jojoa1997
ok set the static spawn in config of the latest version of hungry_games, not minetest.conf:

Code: Select all

--Set spawn point. [SAFE]
--Can be set as static:         spawning.set_spawn("static", {0,0,0})
--or dynamic (random spawn):     spawning.set_spawn("dynamic")
spawning.set_spawn("static", {0,0,0})

Posted: Mon Jan 28, 2013 01:19
by jojoa1997
can you add a 1 minute grace period