Page 1 of 1

gg_converter

PostPosted: Mon Dec 15, 2008 7:37 pm
by insanostaz
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)

PostPosted: Mon Dec 15, 2008 7:43 pm
by mpinheiro86
I have the same problem. =/
Some one can help us?

Thanks.

PostPosted: Mon Dec 15, 2008 7:55 pm
by Saul
I'll fix this in a moment.

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

PostPosted: Tue Dec 16, 2008 2:45 am
by insanostaz
Thanksssssssssssssssssssssssssssssssssssssssss

PERFECTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTT

Thank you so much

PostPosted: Tue Dec 16, 2008 3:04 am
by insanostaz
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

PostPosted: Tue Dec 16, 2008 10:46 am
by PitBull
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

Re:

PostPosted: Tue Dec 16, 2008 5:32 pm
by Saul
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.

PostPosted: Tue Dec 16, 2008 7:59 pm
by PitBull
You are so right :oops:

Whatever :D
~PitBull

PostPosted: Tue Dec 16, 2008 9:21 pm
by insanostaz
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

PostPosted: Sat Dec 20, 2008 2:20 am
by Xp3r7
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.

PostPosted: Sat Dec 20, 2008 4:36 am
by Warren
es_gg_database.sqldb is correct. That is a typo in the readme.

PostPosted: Sat Dec 20, 2008 12:34 pm
by Saul
It seems gg_convert.ini is corrupted somehow?

Re:

PostPosted: Sat Dec 20, 2008 3:13 pm
by Xp3r7
Saul wrote:It seems gg_convert.ini is corrupted somehow?


Where is this file located?

I dont see it anywhere in the r581 zip.

PostPosted: Sat Dec 20, 2008 7:10 pm
by PitBull
../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

PostPosted: Sat Dec 20, 2008 8:22 pm
by Saul
When I loaded gg_convert.ini in Komodo, it said it hadn't saved properly and asked to restore a backup (?)

Re:

PostPosted: Sun Dec 21, 2008 4:54 am
by Xp3r7
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.

PostPosted: Sun Dec 21, 2008 1:11 pm
by PitBull
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

Re:

PostPosted: Mon Dec 22, 2008 11:54 pm
by Saul
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.

PostPosted: Tue Dec 23, 2008 1:30 am
by Xp3r7
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.