Can't get it to work the way I want

Ask questions and share info about GunGame 5

Can't get it to work the way I want

Postby vitorassuena » Sat Jan 08, 2011 12:12 am

Hello! I can't get my Gungame 5.1 to work the way I want. It works as the default, but I've made a few changes: reverse weapon, change weapon as soon as you kill someone, and other things. But when I get into the game it's like I've never done any of these changes. What can I do?

Also, I have this error in the console.
Traceback (most recent call last):
File "../eventscripts/es.py", line 272, in triggerEvent
self.EventListeners[eventname][listener](event_var)
File "../eventscripts/gungame51/gungame51.py", line 490, in player_death
if event_var['weapon'] != ggAttacker.weapon:
File "../eventscripts/gungame51/core/players/__init__.py", line 163, in weapon
return self.get_weapon()
File "../eventscripts/gungame51/core/players/__init__.py", line 461, in get_weapon
return get_level_weapon(self.level)
File "../eventscripts/gungame51/core/weapons/shortcuts.py", line 77, in get_level_weapon
return get_weapon_order(weaponOrderName).get_weapon(level)
File "../eventscripts/gungame51/core/weapons/shortcuts.py", line 33, in get_weapon_order
return WeaponManager().__weaponorders__[WeaponManager().gungameorder]
KeyError: 'default_weapon_order'
#
vitorassuena

Recruit
Recruit
 
Posts: 3
Joined: Fri Jan 07, 2011 11:55 pm

Postby satoon101 » Sat Jan 08, 2011 3:15 am

This is probably your issue:
GunGame51 Installation => Known Issues wrote:
    2.The current version of EventScripts has a small error that will cause GunGame51 to not load properly:
      1.Navigate to your servers ../addons/eventscripts/_libs/python/cfglib.py file
      2.Find the following line inside that file (line 106):
            es.mexec(self.cfgpath.replace(self.gamedir, '', 1))
      3.Change that line to:
            es.mexec('..' + self.cfgpath.replace(self.gamedir, '', 1))
      4.You must restart your server after making this change
Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Can't get it to work the way I want

Postby vitorassuena » Sat Jan 08, 2011 3:51 am

Thank you, it's working now :)
But, i'm having another issue: I can't change the weapon order! Could you please check out the file and tell me if there's anything I'm missing?
// ============================================================================
// >> WEAPON ORDER FILE
// ============================================================================
// Notes:
// * The file must be located under "cfg/gungame5/weapon_orders/".
// * Changing this variable in-game will result in arestart.
// * If gg_weapon_order_random = 1, this will be the starting weapon
// order.
// Default Value: "default_weapon_order"

// The file that will be used for the weapon order.
gg_weapon_order_file "reverse_weapon_order"

// ============================================================================
// >> RANDOM WEAPON ORDER FILE
// ============================================================================
// Options:
// 0 = (Disabled) use gg_weapon_order for a static weapon order.
// 1 = (Enabled) get a new weapon order each map change.
// Default Value: 0

// Randomly select a new weapon order file each map.
gg_weapon_order_random 0

// ============================================================================
// >> RANDOM WEAPON ORDER EXCLUDED FILES
// ============================================================================
// Options:
// "" = (Disabled) No weapon orders are excluding when choosing a random
// weapon order with gg_weapon_order_random enabled above.
// "name1,name2" = (Enabled) Exclude these orders when choosing a random
// weapon order with gg_weapon_order_random enabled above.
// Default Value: "weapon_short,nade_bonus_order"

// Excluded orders when choosing a random order with gg_weapon_order_random.
gg_weapon_order_random_excluded "weapon_short,nade_bonus_order"

// ============================================================================
// >> WEAPON ORDER SORT TYPE
// ============================================================================
// Options:
// #default = Order will go Top -> Bottom.
// #reversed = Order will go Bottom -> Top.
// #random = Order will be randomly shuffled.
// Note:
// #reversed and #random sort types will move hegrenade and knife levels
// to the end of the order.
// Default Value: "#default"

// The order in which the weapons and levels will be sorted.
gg_weapon_order_sort_type "#reversed"

//


Am I doing something wrong?
vitorassuena

Recruit
Recruit
 
Posts: 3
Joined: Fri Jan 07, 2011 11:55 pm

Postby satoon101 » Sat Jan 08, 2011 3:58 am

gg_weapon_order_file "reverse_weapon_order"

gg_weapon_order_sort_type "#reversed"
This is basically saying "reverse the order of weapons, and then reverse it again". Change one or the other back to the default value, and you should be good to go.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby vitorassuena » Sat Jan 08, 2011 4:12 am

Oh yeah! LOL thank you for your help, working perfectly now.
vitorassuena

Recruit
Recruit
 
Posts: 3
Joined: Fri Jan 07, 2011 11:55 pm



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 34 guests