gg_converter

Discussion about Included Addons

gg_converter

Postby insanostaz » Mon Dec 15, 2008 7:37 pm

I'd like to ask for your help. I'm having trouble converting the datebase from GG3 to GG5.

I followed these recommendations:

cfg/gungame5/gg_default_addons.cfg
//=========================================================
// CONVERTER
//=========================================================
// Allows you to upgrade your current winner database / spawnpoints from
// previous versions of GunGame (3/4) to GunGame 5 format.
//
// Options: 0 = Disabled
// 1 = Enabled

gg_convert 1


TO CONVERT GUNGAME3 WINNER DATABASE TO GG5 FORMAT:
1. Place your GG3 winner database (es_gg_winners_db.txt) in to ../cfg/gungame5/converter/gg3 winners/ folder.
2. Load up your server.
3. Enter "gg_convert 1" to load GunGame Convert.
4. Enter "gg_convert_winners3" to convert your GunGame3 winners in to GG5 format.

But it shows the following error:
**************************************************
GunGame Errorlog
Opened: 25/11/2008 @ [00:22:48]

Version Information:
* EventScripts: 2.0.0.248
* ES_Tools: (Not Installed)
* GunGame: 5.0.557
* Popup: oy28
* OS Type: nt
**************************************************


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Exception caught: 15/12/2008 @ [14:35:38] [Occurences: 1]

Additional Information:
-> Admin command call. "convert_winners3" was called by "CONSOLE".
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Traceback (most recent call last):

File "C:\jogos\source27034ggame\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1064, in callCommand
callback(userid, *arguments)

File "C:\jogos\source27034ggame\cstrike\addons\eventscripts\gungame\included_addons\gg_convert\gg_convert.py", line 155, in convert_winners3
if not x.startswith('STEAM_'):

AttributeError: 'KeyValues' object has no attribute 'startswith'

The log file and winners database are at the following address for download:
http://www.itwizard.com.br/gungame5/errolog5.0.557.txt
http://www.itwizard.com.br/gungame5/es_ ... ers_db.txt

I also need another information. When I was configuring the server I recall a config that, when enabled, made the player kill the enemy and his weapon
disappear, where can I find this config? Would it be possible to configure to kill two players and then make the weapon disappear?


Best Regards

Insanos Taz (Marco)
insanostaz

Private
Private
 
Posts: 9
Joined: Mon Dec 15, 2008 5:41 pm

Postby mpinheiro86 » Mon Dec 15, 2008 7:43 pm

I have the same problem. =/
Some one can help us?

Thanks.
mpinheiro86

Recruit
Recruit
 
Posts: 1
Joined: Mon Dec 15, 2008 6:02 pm
Steam Friends Name: Dark_Matrix

Postby Saul » Mon Dec 15, 2008 7:55 pm

I'll fix this in a moment.

Edit: Fixed in http://code.google.com/p/gungame-python ... tail?r=580
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Postby insanostaz » Tue Dec 16, 2008 2:45 am

Thanksssssssssssssssssssssssssssssssssssssssss

PERFECTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT

Thank you so much
insanostaz

Private
Private
 
Posts: 9
Joined: Mon Dec 15, 2008 5:41 pm

Postby insanostaz » Tue Dec 16, 2008 3:04 am

I also need another information. When I was configuring the server I recall a config that, when enabled, made the player kill the enemy and his weapon
disappear, where can I find this config? Would it be possible to configure to kill two players and then make the weapon disappear?

Best Regards

Insanos Taz (Marco)insanostaz
insanostaz

Private
Private
 
Posts: 9
Joined: Mon Dec 15, 2008 5:41 pm

Postby PitBull » Tue Dec 16, 2008 10:46 am

If you mean that he only has the knife left after a kill, enable gg_knife_elite in the gg_default_addons.cfg.

Best Regards,
PitBull
PitBull

GunGame5 Developer
GunGame5 Developer
User avatar
 
Posts: 66
Joined: Mon Nov 10, 2008 7:05 pm
Steam Friends Name: wergup_pitbull

Re:

Postby Saul » Tue Dec 16, 2008 5:32 pm

insanostaz wrote:I also need another information. When I was configuring the server I recall a config that, when enabled, made the player kill the enemy and his weapon
disappear, where can I find this config? Would it be possible to configure to kill two players and then make the weapon disappear?

Best Regards

Insanos Taz (Marco)insanostaz

gg_dead_strip 1 in gg_default_addons.cfg


PitBull wrote:If you mean that he only has the knife left after a kill, enable gg_knife_elite in the gg_default_addons.cfg.

Best Regards,
PitBull


See what I put above, I think you misunderstood him.
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Postby PitBull » Tue Dec 16, 2008 7:59 pm

You are so right :oops:

Whatever :D
~PitBull
PitBull

GunGame5 Developer
GunGame5 Developer
User avatar
 
Posts: 66
Joined: Mon Nov 10, 2008 7:05 pm
Steam Friends Name: wergup_pitbull

Postby insanostaz » Tue Dec 16, 2008 9:21 pm

Tks PitBull and Saul,

Both information are interesting //Ambas informações são interessantes

gg_dead_strip 1 = weapon of dead player disappears //desaparece a arma do jogador morto

gg_knife_elite 1 = player keeps only the knife after killing with the weapon //o jogador fica somente com a faca após ter matado com a arma

Ps: I'm writing in both languages to help people from Brazil too //Vou escrever nos dois idiomas para ajudar o pessoal do Brasil também
insanostaz

Private
Private
 
Posts: 9
Joined: Mon Dec 15, 2008 5:41 pm

Postby Xp3r7 » Sat Dec 20, 2008 2:20 am

I am having a similar issue with the GG4 to GG5 database conversions.

[GunGame] Check your console for output.
         es_sql open: C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike/cfg/gungame5/converter/gg4 winners/es_gg_database.sqldb database opened as gg_database.
         es_sql close: gg_database database closed.
         [GunGame] A Python exception was raised during the execution of convert_winners4. The server administrator has been notified.
         ==============================================================================
                              A GUNGAME EXCEPTION HAS BEEN CAUGHT
         ==============================================================================
          ...and logged in the error log. This file is available at:
          -> addons/eventscripts/gungame/logs/errorlog 5.0.581.txt
         ==============================================================================
         Additional information is available for this error below:
          -> Admin command call. "convert_winners4" was called by "CONSOLE".
         ==============================================================================
         Report the following error at http://forums.gungame5.com in the respective
          addon's topic, or as a GunGame bug.
         
         The traceback is available below, the most recent call is at the end.
         ******************************************************************************
         Traceback (most recent call last):
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1081, in callCommand
             callback(userid, *arguments)
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\gungame\included_addons\gg_convert\gg_convert.py", line 272, in convert_winners4
             gungamelib.echo('gg_convert', userid, 0, 'winners4:Converted', {'name': name, 'wins': wins, 'uniqueid': steamid})
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1973, in echo
             dict_addonLang[addon].echo(filter, level, string, tokens, showPrefix)
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1429, in echo
             cleanStr = self.__cleanString(self.__formatString(string, tokens, 'CONSOLE'))
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\gungamelib.py", line 1279, in __formatString
             rtnStr = self.strings(string, tokens)
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\langlib.py", line 64, in __call__
             return self.expand(text, opts, lang)
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\langlib.py", line 44, in expand
             k = self[text]
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_libs\python\langlib.py", line 42, in __getitem__
             return super(Strings, self).__getitem__(self.fallback)
           File "C:\GameServers\miamikid\GameServers\TC84106257523444220316086\cstrike\addons\eventscripts\_engines\python\lib\site-packages\configobj.py", line 563, in __getitem__
             val = dict.__getitem__(self, key)
         KeyError: 'en'
         ******************************************************************************
         [GunGame] CONSOLE ran: convert_winners4  


We own our own dedicated server and are having the hard drive worked on atm and we want to come back up on GG5 but not if we cant convert the database.


TO CONVERT GUNGAME4 WINNER DATABASE TO GG5 FORMAT:
1. Place your GG4 winner database (es_gg_database.txt) in to ../cfg/gungame5/converter/gg4 winners/ folder.
2. Load up your server.
3. Enter "gg_convert 1" to load GunGame Convert.
4. Enter "gg_convert_winners4" to convert your GunGame4 winners in to GG5 format.


That is what is in the readme file in /cfg/gungame/converter folder but we dont have a es_gg_database.txt file on our GG4 server.

We have an es_gg_database.sqldb file though.

Would that be causing the problem?

btw - We have gg_convert set to 1 in the gg_default_addons.cfg file also.
Xp3r7

Private
Private
User avatar
 
Posts: 33
Joined: Wed Dec 10, 2008 12:47 pm
Steam Friends Name: johkalhaups

Postby Warren » Sat Dec 20, 2008 4:36 am

es_gg_database.sqldb is correct. That is a typo in the readme.
Warren

Site Admin
Site Admin
 
Posts: 772
Joined: Fri Sep 05, 2008 2:59 am
Location: Boston, MA
Xfire Name: WMA9000

Postby Saul » Sat Dec 20, 2008 12:34 pm

It seems gg_convert.ini is corrupted somehow?
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Re:

Postby Xp3r7 » Sat Dec 20, 2008 3:13 pm

Saul wrote:It seems gg_convert.ini is corrupted somehow?


Where is this file located?

I dont see it anywhere in the r581 zip.
Xp3r7

Private
Private
User avatar
 
Posts: 33
Joined: Wed Dec 10, 2008 12:47 pm
Steam Friends Name: johkalhaups

Postby PitBull » Sat Dec 20, 2008 7:10 pm

../cstrike/cfg/gungame5/translations/gg_convert.ini.
But I don't think that the ini is the error, because I converted my winners with r581 without any problems.

~PitBull
PitBull

GunGame5 Developer
GunGame5 Developer
User avatar
 
Posts: 66
Joined: Mon Nov 10, 2008 7:05 pm
Steam Friends Name: wergup_pitbull

Postby Saul » Sat Dec 20, 2008 8:22 pm

When I loaded gg_convert.ini in Komodo, it said it hadn't saved properly and asked to restore a backup (?)
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Re:

Postby Xp3r7 » Sun Dec 21, 2008 4:54 am

PitBull wrote:../cstrike/cfg/gungame5/translations/gg_convert.ini.
But I don't think that the ini is the error, because I converted my winners with r581 without any problems.

~PitBull


Maybe when you updated to r581, you just uploaded the files/folders in your addons/eventscripts folder, leaving your cfg folder alone therefore using an older version of gg_convert.ini that works.

The one that comes packaged with r581 might be bad as Saul is trying to say.

Just a thought.

I dont know whats going on with it on my end.
Xp3r7

Private
Private
User avatar
 
Posts: 33
Joined: Wed Dec 10, 2008 12:47 pm
Steam Friends Name: johkalhaups

Postby PitBull » Sun Dec 21, 2008 1:11 pm

I uploaded all the files, but a good thought at all.
One thing I did not get till now: Except to the errors, did the conversion work?

~PitBull
PitBull

GunGame5 Developer
GunGame5 Developer
User avatar
 
Posts: 66
Joined: Mon Nov 10, 2008 7:05 pm
Steam Friends Name: wergup_pitbull

Re:

Postby Saul » Mon Dec 22, 2008 11:54 pm

PitBull wrote:I uploaded all the files, but a good thought at all.
One thing I did not get till now: Except to the errors, did the conversion work?

~PitBull


I severly doubt it. When something errors in Python, it halts all progress of the code below it.
Saul

GunGame5 Developer
GunGame5 Developer
 
Posts: 147
Joined: Sun Sep 07, 2008 3:29 pm
Xfire Name: saul0

Postby Xp3r7 » Tue Dec 23, 2008 1:30 am

Ok, I found a fix and it was the gg_convert.ini file.

What I did was just used the gg_convert.ini file from r577 (latest posted on Matties forum).

So now Im running r581 and uploaded the gg_convert.ini file from r577 and its good to go.

Just thought Id post what I did for anyone else having trouble and for the GG team to fix it in r581.
Xp3r7

Private
Private
User avatar
 
Posts: 33
Joined: Wed Dec 10, 2008 12:47 pm
Steam Friends Name: johkalhaups



Return to Included Addons

Who is online

Users browsing this forum: No registered users and 2 guests