Raised This Month: $32 Target: $400
 8% 

[TF2] TF2 Item DB (replaces tf2itemsinfo)


Post New Thread Reply   
 
Thread Tools Display Modes
Zolika1351
Junior Member
Join Date: Jun 2015
Old 06-29-2017 , 07:09   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #131

Can't run py script, it gives me this error:
Code:
Traceback (most recent call last):
  File "D:\!STEAMCMD_SERVER\tf2_normalserver\tf2idb\tf2idb.py", line 129, in <module>
    dbc.execute('INSERT INTO new_tf2idb_capabilities (id,capability) VALUES (?,?)', (id, name))
NameError: name 'name' is not defined
0
Traceback (most recent call last):
  File "D:\!STEAMCMD_SERVER\tf2_normalserver\tf2idb\tf2idb.py", line 129, in <module>
    dbc.execute('INSERT INTO new_tf2idb_capabilities (id,capability) VALUES (?,?)', (id, name))
NameError: name 'name' is not defined
Tried fakuivan's script too, it got me this error:

Code:
Loading configs...
Traceback (most recent call last):
  File "D:\!STEAMCMD_SERVER\tf2_normalserver\tf2idb\tf2idb.py", line 25, in <module>
    parsedconfig = vdf.parse(cfh)
  File "D:\!STEAMCMD_SERVER\tf2_normalserver\tf2idb\vdf.py", line 93, in parse
    line += "\n" + itr.next()
AttributeError: 'list_iterator' object has no attribute 'next'

Last edited by Zolika1351; 06-29-2017 at 07:13.
Zolika1351 is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 06-29-2017 , 14:15   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #132

If you plan on using this version of the plugin, use bottiger's script (run it on python2) as I don't plan on updating my version of the script since it's a lost cause (it was one of my first times writing something on python, I don't like how it turned out), I'd rather take the time to make an item schema extension. I personally use this version of the plugin https://github.com/FlaminSarge/tf2idb since the script included is python3 compatible, with the changes I posted on top.
__________________
fakuivan is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 07-09-2017 , 16:59   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #133

using flamingsarge's edition;
compiled plugins using sourcemod 1.8
compiled database using python 3.6

..and i get this error
Quote:
L 07/09/2017 - 13:50:08: [SM] Exception reported: no such table: tf2idb_item
L 07/09/2017 - 13:50:08: [SM] Blaming: tf2idb.smx
L 07/09/2017 - 13:50:08: [SM] Call stack trace:
L 07/09/2017 - 13:50:08: [SM] [0] SetFailState
L 07/09/2017 - 13:50:08: [SM] [1] Line 104, tf2idb.sp::OnPluginStart
using flamingsarge's edition;
compiled plugins using sourcemod 1.8
used sample-db-2015-12-18 database

..and i get this error
Quote:
L 07/09/2017 - 13:54:46: [SM] Exception reported: no such column: slot
L 07/09/2017 - 13:54:46: [SM] Blaming: tf2idb.smx
L 07/09/2017 - 13:54:46: [SM] Call stack trace:
L 07/09/2017 - 13:54:46: [SM] [0] SetFailState
L 07/09/2017 - 13:54:46: [SM] [1] Line 114, tf2idb.sp::OnPluginStart
island55 is offline
fakuivan
Senior Member
Join Date: Nov 2015
Old 07-10-2017 , 23:06   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #134

You need to build the database using the script FlaminSarge provided in the repository. If you keep getting those errors, open an issue on the GitHub repo. Glhf.
__________________
fakuivan is offline
AI_
Member
Join Date: Oct 2014
Location: Canada
Old 10-21-2017 , 09:36   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #135

Here's my database after the Jungle update, for those who need to use the new items.
Attached Files
File Type: zip tf2idb.zip (794.0 KB, 264 views)
__________________
AI_ is offline
Dr.Doctor
AlliedModders Donor
Join Date: Feb 2017
Location: Hong Kong
Old 10-21-2017 , 09:40   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #136

Quote:
Originally Posted by AI_ View Post
Here's my database after the Jungle update, for those who need to use the new items.
Thanks AI I love uuu
__________________
Dr.Doctor is offline
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 10-21-2017 , 18:53   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #137

./tf2idb.py
Traceback (most recent call last):
File "./tf2idb.py", line 114, in <module>
i.get('holiday_restriction'), has_string_attribute)
IntegrityError: NOT NULL constraint failed: new_tf2idb_item.item_name
25052
Traceback (most recent call last):
File "./tf2idb.py", line 114, in <module>
i.get('holiday_restriction'), has_string_attribute)
sqlite3.IntegrityError: NOT NULL constraint failed: new_tf2idb_item.item_name

native version.
dedimark is online now
cheddar
Member
Join Date: Sep 2015
Old 10-21-2017 , 20:03   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #138

Quote:
Originally Posted by AI_ View Post
Here's my database after the Jungle update, for those who need to use the new items.
So I used this sq file, and reloaded the tf2idb.smx but the giveweapon plugin still seems to be out of date. Am I missing a step?
cheddar is offline
bottiger
AlliedModders Donor
Join Date: Dec 2010
Old 10-21-2017 , 20:17   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #139

Quote:
Originally Posted by dedimark View Post
./tf2idb.py
Traceback (most recent call last):
File "./tf2idb.py", line 114, in <module>
i.get('holiday_restriction'), has_string_attribute)
IntegrityError: NOT NULL constraint failed: new_tf2idb_item.item_name
25052
Traceback (most recent call last):
File "./tf2idb.py", line 114, in <module>
i.get('holiday_restriction'), has_string_attribute)
sqlite3.IntegrityError: NOT NULL constraint failed: new_tf2idb_item.item_name

native version.
I have uploaded a fix. Valve added items that have blank fields which wasn't expected.
__________________
bottiger is offline
island55
Senior Member
Join Date: Aug 2010
Location: charleston
Old 10-21-2017 , 23:43   Re: [TF2] TF2 Item DB (replaces tf2itemsinfo)
Reply With Quote #140

so your updated version renders flaminsarge's outdated? cause the coding is very different

Last edited by island55; 10-21-2017 at 23:44.
island55 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode