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

How to detect a problem and understand class error codes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 08-05-2010 , 14:43   How to detect a problem and understand class error codes
Reply With Quote #1

Ok so you installed ZR on your server and you're totally positive everything is in place, but the damn thing won't load. Here's what you should do:
  • 1. CHECK YOUR ERROR LOGS!!!!!!!

    They are located at addons/sourcemod/logs/errors_<date>.log

  • 2. Most of the time, if everything is installed right, there will be stuff printed here by zombiereloaded.smx. Everything is pretty cut and dry about telling you what and where the problem is. But one error might be confusing:

    Quote:
    [zombiereloaded.smx] [Player Classes] [Config Validation] Warning: Invalid class at index 6, disabled class. Class error flags: 8388736.
    What the heck does 8388736 mean you may ask? Well here is how you unscramble the code. I'll refer to 8388736 as the error code.

  • 3. That number is something called a "bitfield" It is meant to be read in it's base 2 (binary) form. So go to this binary converter page and enter in the error code into the Decimal text field.

  • 4. We will be looking at the number in the Binary text field. In this case '8388736' is '100000000000000010000000' in binary. Every '1' you see in the binary number is an invalid value in the class that it prints in the error. (Class indexes start from 0) Ok, so, starting from the right count over until you hit a '1'. The '1' is in the 8th slot from the right, so first go to your playerclasses config file (sourcemod/configs/zr/) and find the class at the specified index. An index of '6' is the 7th class in the file. Next, find the 8th attribute from the top. This value is invalid.

  • 5. Fix it.

  • 6. Repeat for every '1' in the binary number. And for every class index that has an error code.

  • 7. Restart the server.


Good luck and hopefully this helps.
__________________

Last edited by Greyscale; 08-10-2010 at 16:09.
Greyscale is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 08-28-2010 , 15:52   Re: How to detect a problem and understand class error codes
Reply With Quote #2

Update: In r643 it will give individual error messages per attribute.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
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 03:10.


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