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

Troubleshooting the loadouts module.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-18-2013 , 23:46   Troubleshooting the loadouts module.
Reply With Quote #1

Assuming that it's a module, I'm gonna call it that just to make things easier.

I've been working on the database the past few days for the store for my community and I've come across an issue related to the Loadouts module. It's probably my fault(which I'm fairly sure it is), I need a method to fix this while keeping the database for my users. I wiped the database 'store_users_item_loadouts' and 'store_loadouts' or Truncated but after doing so, I realized that the list of users was in there as well for each ID and each loadout. I'm not too sure if this caused the problem(which is probably did) but I'd like to point out my theory.

When users click on 'Loadouts' in the menu for the store, the menu just closes and the server gets some errors in both 'store' and 'errors' logs.

Code:
L 03/18/2013 - 20:41:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/18/2013 - 20:41:36: [SM] Native "Store_GetLoadoutGame" reported: Error encountered while processing a dynamic native
L 03/18/2013 - 20:41:36: [SM] Displaying call stack trace for plugin "store\store-loadout.smx":
L 03/18/2013 - 20:41:36: [SM]   [0]  Line 270, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::IsLoadoutAvailableFor()
L 03/18/2013 - 20:41:36: [SM]   [1]  Line 181, C:\Users\Alon\Documents\GitHub\store\scripting\store-loadout.sp::Event_PlayerSpawn()

L 03/18/2013 - 20:41:36: [SM] Plugin encountered error 15: Array index is out of bounds
L 03/18/2013 - 20:41:36: [SM] Displaying call stack trace for plugin "store\store-backend.smx":
L 03/18/2013 - 20:41:36: [SM]   [0]  Line 1679, C:\Users\Alon\Documents\GitHub\store\scripting\store-backend.sp::Native_GetLoadoutGame()
Code:
2013-03-18 17:33:36 [store/store-loadout.smx]         WARN  | No loadout found.
2013-03-18 17:33:36 [store/store-loadout.smx]         WARN  | No loadout found.
2013-03-18 17:33:36 [store/store-loadout.smx]         WARN  | No loadout found.
I'd also like to ask the question as to the best method to clearing cache? I'm not sure how.

Cheers,
- Jack

Last edited by alongub; 03-19-2013 at 05:25. Reason: Removed the Issue prefix
Drixevel is offline
alongub
Veteran Member
Join Date: Aug 2009
Location: Israel
Old 03-19-2013 , 01:36   Re: Troubleshooting the loadouts module.
Reply With Quote #2

Execute the following SQL

Code:
INSERT INTO `store_loadouts` (`display_name`, `game`, `class`, `team`) VALUES
('A', NULL, NULL, NULL),
('B', NULL, NULL, NULL),
('C', NULL, NULL, NULL);
__________________
alongub is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-19-2013 , 03:02   Re: Troubleshooting the loadouts module.
Reply With Quote #3

Quote:
Originally Posted by alongub View Post
Execute the following SQL

Code:
INSERT INTO `store_loadouts` (`display_name`, `game`, `class`, `team`) VALUES
('A', NULL, NULL, NULL),
('B', NULL, NULL, NULL),
('C', NULL, NULL, NULL);
Thank you, that worked.

Cheers,
- Jack
Drixevel is offline
Reply



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 09:33.


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