Raised This Month: $12 Target: $400
 3% 

CSGO Items API


Post New Thread Reply   
 
Thread Tools Display Modes
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 01-25-2018 , 06:47   Re: CSGO Items API
Reply With Quote #31

Quote:
Originally Posted by xCoderx View Post
Should be fixed now, please download the latest version again thanks.
I upgraded and everything, but it continues with the same problem:
Quote:
L 01/25/2018 - 01:44:23: [CSGO_Items.smx] Item Schema successfully processed, syncing item data.

L 01/25/2018 - 01:444: [SM] Exception reported: Script execution timed out

L 01/25/2018 - 01:444: [SM] Blaming: CSGO_Items.smx

L 01/25/2018 - 01:444: [SM] Call stack trace:

L 01/25/2018 - 01:444: [SM] [1] Line 1370, C:\Users\Michael\OneDrive\Documents\Developme nt\PAWN\Projects\CSGO-Items\addons\sourcemod\scripting\CSGO_Items.s p::SyncItemData

L 01/25/2018 - 01:444: [SM] [2] Line 1019, C:\Users\Michael\OneDrive\Documents\Developme nt\PAWN\Projects\CSGO-Items\addons\sourcemod\scripting\CSGO_Items.s p::Timer_SyncSchema
paulo_crash is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 01-26-2018 , 10:54   Re: CSGO Items API
Reply With Quote #32

Quote:
Originally Posted by paulo_crash View Post
I upgraded and everything, but it continues with the same problem:
Unfortunately, The initial iteration has a lot of nested loops in order to properly link everything together, It needs some heavy optimization which I am going to be working on in the near future, The only way to work around this for now is by modifying your core.cfg and setting the slow script timeout to 0, I know its bad advice on my part and you should not be expected to do such thing, but after the initial loop (which I must warn you will hang your server for approximately 20-30 seconds after a restart) the rest of the code should be super fast and efficient.

This is a very important issue which is on my todo list to fix, For now though please consider my advice with the core.cfg option as a workaround.


Grab version 1.4.7, I have heavily optimized the speed, Should be around 5 seconds now.

Thanks.

Last edited by SM9; 01-26-2018 at 16:02.
SM9 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 01-27-2018 , 07:13   Re: CSGO Items API
Reply With Quote #33

The problem continues with the same flood on the console:
Quote:
L 01/27/2018 - 02:11:49: [SM] Exception reported: Script execution timed out

L 01/27/2018 - 02:11:49: [SM] Blaming: CSGO_Items.smx

L 01/27/2018 - 02:11:49: [SM] Call stack trace:

L 01/27/2018 - 02:11:49: [SM] [1] Line 505, C:\Users\Michael\OneDrive\Documents\Developme nt\PAWN\Plugins\Active\include\string.inc::Ex plodeString

L 01/27/2018 - 02:11:49: [SM] [2] Line 1410, C:\Users\Michael\OneDrive\Documents\Developme nt\PAWN\Projects\CSGO-Items\addons\sourcemod\scripting\CSGO_Items.s p::SyncItemData

L 01/27/2018 - 02:11:49: [SM] [3] Line 1024, C:\Users\Michael\OneDrive\Documents\Developme nt\PAWN\Projects\CSGO-Items\addons\sourcemod\scripting\CSGO_Items.s p::Timer_SyncSchema

L 01/27/2018 - 02:11:50: [CSGO_Items.smx] Item Schema successfully processed, syncing item data.
I also noticed that the servers are restarting due to this BUG, ​​because when I shoot the plugin simply stops rebooting.

And only this error flood is left on the console and it is marked as offline in the community list.

Anyway thanks for trying to fix, I'll be waiting for more updates on your part.

Last edited by paulo_crash; 01-28-2018 at 13:19.
paulo_crash is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 01-28-2018 , 15:18   Re: CSGO Items API
Reply With Quote #34

I get around script timeouts by making use of RequestFrame between major functions.

A base plugin that does this also disables hibernation before starting if required them setting it back.
__________________
Neuro Toxin is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 02-14-2018 , 19:53   Re: CSGO Items API
Reply With Quote #35

Quote:
Originally Posted by xCoderx View Post
Unfortunately, The initial iteration has a lot of nested loops in order to properly link everything together, It needs some heavy optimization which I am going to be working on in the near future, The only way to work around this for now is by modifying your core.cfg and setting the slow script timeout to 0, I know its bad advice on my part and you should not be expected to do such thing, but after the initial loop (which I must warn you will hang your server for approximately 20-30 seconds after a restart) the rest of the code should be super fast and efficient.

This is a very important issue which is on my todo list to fix, For now though please consider my advice with the core.cfg option as a workaround.


Grab version 1.4.7, I have heavily optimized the speed, Should be around 5 seconds now.

Thanks.
I saw that you are updating the plugin still at the link: https://bitbucket.org/SM91337/csgo-items/commits/all

Would it be the correction of BUGS? Hope so

Last edited by paulo_crash; 02-14-2018 at 19:55.
paulo_crash is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 02-15-2018 , 02:04   Re: CSGO Items API
Reply With Quote #36

Quote:
Originally Posted by paulo_crash View Post
I saw that you are updating the plugin still at the link: https://bitbucket.org/SM91337/csgo-items/commits/all

Would it be the correction of BUGS? Hope so
Set SlowScriptTimeout to 0 in core.cfg to fix your error you posed above
ESK0 is offline
paulo_crash
AlliedModders Donor
Join Date: May 2016
Location: Brazil
Old 02-15-2018 , 09:21   Re: CSGO Items API
Reply With Quote #37

Quote:
Originally Posted by ESK0 View Post
Set SlowScriptTimeout to 0 in core.cfg to fix your error you posed above
I'll be doing the test, thank you.

One question only about this command, does it harm the plugins or the server in any way? Does the plugins work?

Last edited by paulo_crash; 02-15-2018 at 09:22.
paulo_crash is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 02-15-2018 , 10:17   Re: CSGO Items API
Reply With Quote #38

Quote:
Originally Posted by paulo_crash View Post
I'll be doing the test, thank you.

One question only about this command, does it harm the plugins or the server in any way? Does the plugins work?
Its working great.. The only reason for this is that parsing all the data takes more time than is SlowScriptTimeout.. It can be fixed with using RequestFrame as mentioned above or with this.. If you are not familiar with sourcemod coding.. You should set SlowScriptTimeout to 0
ESK0 is offline
plock
Senior Member
Join Date: Feb 2016
Location: noitacoL
Old 06-15-2018 , 13:22   Re: CSGO Items API
Reply With Quote #39

If I download the files and host it on a localhost, will it work? Or it requires some php functions/api to load properly via plugin?
__________________
~tuturu

Owner/Developer at Kniv
My Steam Profile
plock is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 06-15-2018 , 20:35   Re: CSGO Items API
Reply With Quote #40

This reads the items script. No http APIs are used.
__________________
Neuro Toxin 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 19:47.


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