Search found 8 matches

by bobkid
Wed Sep 30, 2015 12:13 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

OLD_DATABASE = 'C:\\Users\\my_user\\Desktop\\asd.sqlite' that worked for me. just went full retard at some point there xD edited my previous post, noticed again that the steamid is stored as VARCHAR(30) in the databank..... now how do i tackle this situation? and what I don't understand is ...
by bobkid
Wed Sep 30, 2015 12:01 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

Reading old database... Converting database... Traceback (most recent call last): File "C:\Users\my_user\Desktop\steamidfix.py", line 31, in <module> data = RE_STEAMID.sub(match_converter, data) TypeError: cannot use a string pattern on a bytes-like object right... the steamIDs are stored as VARCHA...
by bobkid
Tue Sep 29, 2015 8:12 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

steam = 'STEAM_' def steamid2to3(steamid): prefix, a, b = steamid.split(':') return '[U:1:%s]'% (int(b)*2+int(a)) plik = open('old.db', 'rb').readlines() rep = open('new.db', 'wb')...
by bobkid
Mon Sep 21, 2015 11:06 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

yes and i did try them but it didn't work. just saw that there was an update to those, gonna try it by tomorrow. thanks for telling :) just a question out of curiosity: what are those rb and wb things you were talking about in one of the topics? i'm interested in this kind of stuff and i want to lea...
by bobkid
Mon Sep 21, 2015 6:39 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

right..... so the player databank is sqlite. does someone happen to be familiar with that? the steamID is stored in there as VARCHAR. is there a way i can pick those up and convert them? i don't think there is a way but i'm a noob in those thing maybe someone knows something i don't :) or maybe it i...
by bobkid
Sun Sep 20, 2015 12:39 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

def steamid2to3(steamid): prefix, a, b = steamid.split(':') return '[U:1:%s]'% (int(b)*2+int(a)) basically if the playerlibrary does this (fetching and working with steamid3(that's what evenscripts is missing)) that would be a huge step forwar...
by bobkid
Sun Sep 20, 2015 10:47 am
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

If all your scripts are using playerlib.uniqueid to authenticate players, you could modify the function: uniqueid = steamid3to2(es.getplayersteamid(self.userid)) And add the following to the bottom of playerlib.py def steamid3to2(steamid): account_id = int(steamid[5:-1]&...
by bobkid
Sat Sep 19, 2015 8:40 pm
Forum: Whatever
Topic: EventScripts (CS:S) -> Source Python (CS:S)
Replies: 16
Views: 14548

EventScripts (CS:S) -> Source Python (CS:S)

Hi there. Since I've been experiencing lots of problems since the last game update where the steam ID format was changed I've been wondering if I could just kick out eventscripts and install source python instead. We have a few custom written files in python on our server for admin menus, items etc....

Go to advanced search