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

CSGO Items API


Post New Thread Reply   
 
Thread Tools Display Modes
quasemago
Senior Member
Join Date: Dec 2018
Location: Brazil
Old 11-14-2019 , 01:14   Re: CSGO Items API
Reply With Quote #51

Quote:
Originally Posted by paulo_crash View Post
Someone would have fixed this problem with the latest version of PTaH:
Code:
L 11/13/2019 - 09:46:01: [SM] Exception reported: Invalid event PTaH_HookType specified
L 11/13/2019 - 09:46:01: [SM] Blaming: CSGO_Items.smx
L 11/13/2019 - 09:46:01: [SM] Call stack trace:
L 11/13/2019 - 09:46:01: [SM]   [0] PTaH
L 11/13/2019 - 09:46:01: [SM]   [1] Line 429, C:\Users\Michael\OneDrive\Documents\Development\PAWN\Projects\CSGO-Items\addons\sourcemod\scripting\CSGO_Items.sp::OnPluginStart
L 11/13/2019 - 09:46:01: [SM] Unable to load plugin "CSGO_Items.smx": Error detected in plugin startup (see error logs)
L 11/13/2019 - 09:46:05: [SM] Unable to load plugin "ItemLog.smx": Could not find required plugin "CSGO_Items"
Line 429
PHP Code:
PTaH(PTaH_GiveNamedItemHookGiveNamedItemPost); 
Should be
PHP Code:
PTaH(PTaH_GiveNamedItemPostHookGiveNamedItemPost); 
__________________
I accept requests for plugins and configuration of servers.


If you liked my work, consider making a donation via PayPal.

Last edited by quasemago; 11-14-2019 at 01:14.
quasemago is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 11-14-2019 , 08:39   Re: CSGO Items API
Reply With Quote #52

Quote:
Originally Posted by quasemago View Post
Line 429
PHP Code:
PTaH(PTaH_GiveNamedItemHookGiveNamedItemPost); 
Should be
PHP Code:
PTaH(PTaH_GiveNamedItemPostHookGiveNamedItemPost); 
Tried this change and error to compile:
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// CSGO_Items.sp
//
// C:\Users\boy-l\Google Drive\ZK Servidores\Addons\Counter Strike Global Offensive\Editar Plugins\addons\sourcemod\scripting\CSGO_Items.sp(429) : error 100: function prototypes do not match
// C:\Users\boy-l\Google Drive\ZK Servidores\Addons\Counter Strike Global Offensive\Editar Plugins\addons\sourcemod\scripting\CSGO_Items.sp(501) : error 100: function prototypes do not match
//
// 2 Errors.
//
// Compilation Time: 0,41 sec
// ----------------------------------------

Press enter to exit ...
It would be two lines that I have to change in this case.
paulo_crash is offline
quasemago
Senior Member
Join Date: Dec 2018
Location: Brazil
Old 11-14-2019 , 19:42   Re: CSGO Items API
Reply With Quote #53

Quote:
Originally Posted by paulo_crash View Post
Tried this change and error to compile:
It would be two lines that I have to change in this case.
Line 813:
PHP Code:
public void GiveNamedItemPost(int iClient, const char[] sClassname, const CEconItemView Itemint iEnt
Should be
PHP Code:
public void GiveNamedItemPost(int iClient, const char[] sClassname, const CEconItemView Itemint iEntbool OriginIsNULL, const float Origin[3]) 
Ref: https://github.com/komashchenko/PTaH.../PTaH.inc#L298
__________________
I accept requests for plugins and configuration of servers.


If you liked my work, consider making a donation via PayPal.

Last edited by quasemago; 11-14-2019 at 19:43.
quasemago is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 11-15-2019 , 09:58   Re: CSGO Items API
Reply With Quote #54

Quote:
Originally Posted by quasemago View Post
Line 813:
PHP Code:
public void GiveNamedItemPost(int iClient, const char[] sClassname, const CEconItemView Itemint iEnt
Should be
PHP Code:
public void GiveNamedItemPost(int iClient, const char[] sClassname, const CEconItemView Itemint iEntbool OriginIsNULL, const float Origin[3]) 
Ref: https://github.com/komashchenko/PTaH.../PTaH.inc#L298
Thank you, I did it.

I will be posting here the CSGO Items API compiled with SourceMod v1.10 and PTaH v1.1.1.

Thanks to @quasemago.

Last edited by paulo_crash; 06-03-2020 at 13:38.
paulo_crash is offline
Bara
AlliedModders Donor
Join Date: Apr 2012
Location: Germany
Old 11-23-2019 , 11:26   Re: CSGO Items API
Reply With Quote #55

Here's a version without SteamWorks and PTAH. It converts the csgo_english.txt to UTF-8 himself and rebase the items_game.txt with the help of Dynamic. It works completely locally now, without any required API.

It's not real tested, but with "ItemLog" it looks good.

// Edit:
I tested it with my knifes/ws plugins and works good.
Spoiler
Attached Files
File Type: sp Get Plugin or Get Source (CSGO_Items.sp - 232 views - 120.4 KB)
File Type: sp Get Plugin or Get Source (dynamic.sp - 202 views - 20.4 KB)
File Type: smx dynamic.smx (56.0 KB, 140 views)
File Type: smx CSGO_Items.smx (326.9 KB, 167 views)
__________________
Discord (Bara#5006) | My Plugins (GitHub)
You like my work? Support is not a crime.

Last edited by Bara; 11-23-2019 at 11:44.
Bara is offline
HenryTownshand
Junior Member
Join Date: Oct 2017
Old 04-12-2020 , 08:57   Re: CSGO Items API
Reply With Quote #56

I tried to convert a csgo_russian.txt
the text is empty
Attached Thumbnails
Click image for larger version

Name:	1.PNG
Views:	171
Size:	12.4 KB
ID:	180747   Click image for larger version

Name:	2.PNG
Views:	162
Size:	18.0 KB
ID:	180748  

Last edited by HenryTownshand; 04-12-2020 at 08:57.
HenryTownshand 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 15:39.


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