HungerGames

Approved HungerGames 1.6.0b

No permission to download

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
Can you copy paste me your config?
INI:
[DefaultItems]
Bandage=2

[Rewards]
M4=1
Large Medkit=5

[Random]
Items=3
SItems=2
Count=50
Count2=5
Count3=5
Count4=20
Count5=2
Count6=5
MTimes=2
Times=5
ItemRewards=False
StoreRewards=False
MinRewards=2
MaxRewards=6

[RandomItems]
1=Stone Hatchet
2=Pick Axe
3=MP5A4
4=M4
5=9mm Pistol
6=Shotgun
7=Hand Cannon
8=P250
9=Pipe Shotgun
10=Hunting Bow
11=Bolt Action Rifle
12=Revolver
13=Hatchet
14=Cloth Helmet
15=Cloth Vest
16=Cloth Pants
17=Cloth Boots
18=Leather Helmet
19=Leather Vest
20=Leather Pants
21=Leather Boots
22=Rad Suit Helmet
23=Rad Suit Vest
24=Rad Suit Pants
25=Rad Suit Boots
26=Kevlar Helmet
27=Kevlar Vest
28=Kevlar Pants
29=Kevlar Boots

[SItems]
1=Silencer
2=Holo sight
3=Laser Sight
4=9mm Ammo
5=556 Ammo
6=Handmade Shell
7=Shotgun Shells
8=Arrow
9=Bandage
10=Large Medkit
11=Small Medkit
12=Small Rations
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
INI:
[DefaultItems]
Bandage=2

[Rewards]
M4=1
Large Medkit=5

[Random]
Items=3
SItems=2
Count=50
Count2=5
Count3=5
Count4=20
Count5=2
Count6=5
MTimes=2
Times=5
ItemRewards=False
StoreRewards=False
MinRewards=2
MaxRewards=6

[RandomItems]
1=Stone Hatchet
2=Pick Axe
3=MP5A4
4=M4
5=9mm Pistol
6=Shotgun
7=Hand Cannon
8=P250
9=Pipe Shotgun
10=Hunting Bow
11=Bolt Action Rifle
12=Revolver
13=Hatchet
14=Cloth Helmet
15=Cloth Vest
16=Cloth Pants
17=Cloth Boots
18=Leather Helmet
19=Leather Vest
20=Leather Pants
21=Leather Boots
22=Rad Suit Helmet
23=Rad Suit Vest
24=Rad Suit Pants
25=Rad Suit Boots
26=Kevlar Helmet
27=Kevlar Vest
28=Kevlar Pants
29=Kevlar Boots

[SItems]
1=Silencer
2=Holo sight
3=Laser Sight
4=9mm Ammo
5=556 Ammo
6=Handmade Shell
7=Shotgun Shells
8=Arrow
9=Bandage
10=Large Medkit
11=Small Medkit
12=Small Rations
Oh well. I can't see any issue, but I see you are putting ammo to SItems, which isn't really the correct place to do.

Here is the config I use. Give It a try and tell me if It's working. Also, if you think you need to reload the plugin you can also try: python.reload HungerGames

INI:
[DefaultItems]
Bandage=3
Small Rations=1
Torch=1

[Rewards]
MP5A4=1
Small Medkit=3
Research Kit 1=1
9mm Ammo=60
P250=1
Leather Vest=2
9mm Pistol=1
Wood=400
Metal Fragments=300
Blood=40
Revolver=2
Leather Pants=1
Handmade Shell=60
Pipe Shotgun=1
HandCannon=1
Low Grade Fuel=15

[Random]
Items=32
Count=60
Count2=5
Count3=5
Count4=20
Count5=2
Count6=6
MTimes=3
Times=5
SItems=2
ItemRewards=True
StoreRewards=False
MinRewards=3
MaxRewards=6

[SItems]
1=Silencer
2=Holo sight

[RandomItems]
1=Stone Hatchet
2=Pick Axe
3=P250
4=9mm Ammo
5=556 Ammo
6=Shotgun Shells
7=M4
8=Kevlar Helmet
9=Hatchet
10=Large Medkit
11=Small Medkit
12=F1 Grenade
13=Revolver
14=9mm Pistol
15=Shotgun
16=Kevlar Vest
17=Leather Pants
18=Leather Helmet
19=Hunting Bow
20=Arrow
21=Pipe Shotgun
22=Handmade Shell
23=HandCannon
24=MP5A4
25=Bolt Action Rifle
26=Kevlar Pants
27=Leather Boots
28=Leather Vest
29=Kevlar Boots
30=Flashlight Mod
31=Flare
32=Handmade Lockpick
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
INI:
[DefaultItems]
Bandage=2

[Rewards]
M4=1
Large Medkit=5

[Random]
Items=3
SItems=2
Count=50
Count2=5
Count3=5
Count4=20
Count5=2
Count6=5
MTimes=2
Times=5
ItemRewards=False
StoreRewards=False
MinRewards=2
MaxRewards=6

[RandomItems]
1=Stone Hatchet
2=Pick Axe
3=MP5A4
4=M4
5=9mm Pistol
6=Shotgun
7=Hand Cannon
8=P250
9=Pipe Shotgun
10=Hunting Bow
11=Bolt Action Rifle
12=Revolver
13=Hatchet
14=Cloth Helmet
15=Cloth Vest
16=Cloth Pants
17=Cloth Boots
18=Leather Helmet
19=Leather Vest
20=Leather Pants
21=Leather Boots
22=Rad Suit Helmet
23=Rad Suit Vest
24=Rad Suit Pants
25=Rad Suit Boots
26=Kevlar Helmet
27=Kevlar Vest
28=Kevlar Pants
29=Kevlar Boots

[SItems]
1=Silencer
2=Holo sight
3=Laser Sight
4=9mm Ammo
5=556 Ammo
6=Handmade Shell
7=Shotgun Shells
8=Arrow
9=Bandage
10=Large Medkit
11=Small Medkit
12=Small Rations
Here is why btw:

INI:
; The randomized Item will have a quantity.
; It will random a quantity between 1-20. Setting this to 2 will random between 1-2.
; This RANDOM IS FOR AMMO
Count=20
Count2=5 ; Random number for medkits 1-5
Count3=5; Random number for Grenades 1-5
Count4=20 ; Random number for Arrows 1-20
Count5=2 ; Random number for Attachments 1-2 (0 to disable)
Count6=5 ; Random number for flares 1-5
 

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
Here is why btw:

INI:
; The randomized Item will have a quantity.
; It will random a quantity between 1-20. Setting this to 2 will random between 1-2.
; This RANDOM IS FOR AMMO
Count=20
Count2=5 ; Random number for medkits 1-5
Count3=5; Random number for Grenades 1-5
Count4=20 ; Random number for Arrows 1-20
Count5=2 ; Random number for Attachments 1-2 (0 to disable)
Count6=5 ; Random number for flares 1-5
Thanks, it works great now. Great plugin btw, I'm sure my server will love it :)
 
  • Like
Reactions: DreTaX

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
So it worked great up until now, and I have not made any changes to it. The add chests command doesn't seem to work at all anymore even if I reinstall the plugin with everything fresh. I get this from that command
Code:
[11/1/2015 11:16:30 AM] [Error] Error in plugin HungerGames:
[11/1/2015 11:16:30 AM] [Error] Traceback (most recent call last):
  File "<string>", line 506, in On_Command
ValueError: An element with the same key already exists in the dictionary.
And the other command that I'm having trouble with is the cleanchests, it worked perfectly this morning, I come back and it doesn't want to work. Once again I had not changed anything. Here is that error
Code:
[11/1/2015 3:06:02 PM] [Error] Error in plugin HungerGames:
[11/1/2015 3:06:02 PM] [Error] Traceback (most recent call last):
  File "<string>", line 497, in On_Command
  File "<string>", line 896, in FindChest
TypeError: list objects are unhashable
Any advice? I hope I'm not being a pain in the ass right now, it just that there is always a problem that pops up and I really hate that, thanks for helping me and trying to figure it all out ;)
 

Sturt

Plugin Developer
Plugin Developer
Jan 4, 2015
71
38
8
46
So it worked great up until now, and I have not made any changes to it. The add chests command doesn't seem to work at all anymore even if I reinstall the plugin with everything fresh. I get this from that command
Code:
[11/1/2015 11:16:30 AM] [Error] Error in plugin HungerGames:
[11/1/2015 11:16:30 AM] [Error] Traceback (most recent call last):
  File "<string>", line 506, in On_Command
ValueError: An element with the same key already exists in the dictionary.
And the other command that I'm having trouble with is the cleanchests, it worked perfectly this morning, I come back and it doesn't want to work. Once again I had not changed anything. Here is that error
Code:
[11/1/2015 3:06:02 PM] [Error] Error in plugin HungerGames:
[11/1/2015 3:06:02 PM] [Error] Traceback (most recent call last):
  File "<string>", line 497, in On_Command
  File "<string>", line 896, in FindChest
TypeError: list objects are unhashable
Any advice? I hope I'm not being a pain in the ass right now, it just that there is always a problem that pops up and I really hate that, thanks for helping me and trying to figure it all out ;)
Ok the cleanchests works fine now, idk what went wrong later today. But that's all good now :)
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
I have a small problem with hunger games

Ad is correct, items spawn correctly, the wall breaks correctly, the items are properly cleaned at the end ....

The problem is that all players using / hg join, only one is transported

Why does this happen?
It may be because I only have added only one spawn point?

Thank you very much!!! :)
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
[4/4/2016 2:37:18 PM] [Error] [IronPython] Error in plugin HungerGames:
[4/4/2016 2:37:18 PM] [Error] Traceback (most recent call last):
File "<string>", line 1287, in On_PlayerKilled
File "<string>", line 1243, in EndGame
File "<string>", line 1182, in ResetWalls
File "<string>", line 886, in FindWalls
SystemError
 

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
[4/4/2016 2:37:18 PM] [Error] [IronPython] Error in plugin HungerGames:
[4/4/2016 2:37:18 PM] [Error] Traceback (most recent call last):
File "<string>", line 1287, in On_PlayerKilled
File "<string>", line 1243, in EndGame
File "<string>", line 1182, in ResetWalls
File "<string>", line 886, in FindWalls
SystemError
This happens when players are moving right before the start.

Loading stops at 25%
 
Last edited:

tarynkelley

Retired Staff
Retired Staff
Trusted Member
Nov 14, 2015
575
178
28
Parts Unknown
Is it possible to add a timer so that hungergames can be only started every x minutes?

Or freezeing a player until the game starts?
 
Last edited:

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
577
612
63
HI!!! It would be nice if players of the second and third place obtain rewards and these were they could set