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

[ANY] Class Backend


Post New Thread Reply   
 
Thread Tools Display Modes
Author
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Plugin ID:
2489
Plugin Version:
1.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A uniform backend that can be used for player classes.
    Old 08-12-2011 , 14:16   [ANY] Class Backend
    Reply With Quote #1

    Cool! How does this work?
    This reads SMC (KeyValue) files in your SourceMod/ClassManager directory and stores the data in tries.

    Everything in Path_SM/configs/ClassManager/ALoad/ loads first, and regardless of the map.
    Everything in Path_SM/configs/ClassManager loads second, and dependent on the prefix of the map.

    For example, if the map is de_dust, you could have a file called de_dust.cfg, de_du.txt, and de_.ur all providing different user classes. It doesn't matter what the file extension is. Provided it's a valid KV file, all should go well.

    I have nothing to interface with this. What will this do for me?
    Think of it as a fuel-powered Lawn mower without fuel.

    I want to write a plugin that uses this.
    Awesome! Take a look at the include. If I end up having to make API changes, they will not break compatibility with your plugin.

    I have an issue with the backend! >:O
    Well that sucks. Post whatever it is in the thread.

    Your include file is a bit bonkers...
    Yeah, I know. If you have any suggestions, or if you want to clean it up. By all means please do.

    Credits
    Psychonic - Putting up with my constant questions
    Berni/Graczu - Took a look at their map config implementations.
    dvander/Greyscale/javalia/MatthiasVance/Seta00/rhelgeby - Looking at my old structure and or providing helpful comments (<Seta00> trie harder).
    Attached Files
    File Type: sp Get Plugin or Get Source (ClassBackend.sp - 713 views - 7.1 KB)
    File Type: inc classbackend.inc (1.6 KB, 318 views)

    Last edited by KyleS; 08-12-2011 at 19:26. Reason: Typography Error.
    KyleS is offline
    Peace-Maker
    SourceMod Plugin Approver
    Join Date: Aug 2008
    Location: Germany
    Old 08-15-2011 , 12:13   Re: [ANY] Class Backend
    Reply With Quote #2

    Uhm, what could i use this for? Imagine i'd wanted to switch to this backend to handle the player classes in smconquest - would i get any advantages?

    Lot's of love <3
    __________________
    Peace-Maker is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 08-15-2011 , 12:26   Re: [ANY] Class Backend
    Reply With Quote #3

    Quote:
    Originally Posted by Peace-Maker View Post
    Uhm, what could i use this for? Imagine i'd wanted to switch to this backend to handle the player classes in smconquest - would i get any advantages?

    Lot's of love <3
    Just ease of use on users. If your plugin is active, read the Tries and away you go. Each person seems to have their own generic implementation of this. To me at least it just creates a mess for the end user and removes all customization. The main player that has this kind of is ZR. However, map config player classes are pretty rough with it. Since this allows for multiple sources (Static/Generic classes, then specific ones per map prefix and or specific map), it can drastically change the game easily lessening the load for the server admin

    Hope that helped
    KyleS is offline
    Thrawn2
    Veteran Member
    Join Date: Apr 2009
    Old 08-15-2011 , 12:37   Re: [ANY] Class Backend
    Reply With Quote #4

    i don't really get what this does currently =D
    what's up with that map<->playerclass relation?
    or let's start earlier: what's a playerclass? a trie storing custom information saved in a keyvalues file? that doesn't seem very specific to a playerclass (as in 'soldier', 'demoman', 'common infected', 'uberzombie' etc) to me - and then i'd rather use a function like Trie_LoadFromKeyvalues() and Trie_SaveAsKeyValues(). I'd even less make them dependent on a specific map.

    Please elaborate a bit more, as i'm suspecting i've completely missed the point of this ;)
    __________________
    einmal mit profis arbeiten. einmal.
    Thrawn2 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 10:36.


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