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

[CSS/DoDS] Advanced Model Menu - Clientpref req.


Post New Thread Reply   
 
Thread Tools Display Modes
Author
joshtrav
Senior Member
Join Date: Sep 2009
Plugin ID:
1158
Plugin Version:
1.02
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Clientpref Model Selection tool with multiple tier access. Mani like.
    Old 09-14-2009 , 03:46   [CSS/DoDS] Advanced Model Menu - Clientpref req.
    Reply With Quote #1

    supported mods:
    Counter-Strike Source
    Day of Defeat Source

    joinwcs_models
    This is sort of a mix of the Model Menu, Sm_skinchooser, and the feel of mani. I wouldn't say its a rip off of anyone's work personally, considering the only things taken were the gamedata and sdk calls. I hope no one is upset about it, if so let me know and I can remove it.

    I did find the permanent mute for single server plugin very useful to learn and help understand the cookie system. For that I give credit to: http://forums.alliedmods.net/showthread.php?t=71863
    version: 1.02

    install info
    The installation for this is not too difficult.

    Anyone using version previous to 1.0 just place the smx file in the plugins directory and it will re-organize your configs for you and get rid of the un-needed files.

    You need to have clientpref installed and the database running.

    plugins/joinwcs_models.smx
    into the addons/plugins directory.

    configs/models/model_downloads.txt
    This is required for all downloads (this plugin supports download tables) - you do not need to include the mdl files here

    confgs/models/model_team2.txt
    This is required for all models you want on the counter terrorist team. The format is as follows:
    Code:
    Model Name Here$model/path/here.mdl
    There can be no white space at the end or around the $ please.

    confgs/models/model_team1.txt
    This is the same setup as the model_team2.txt file.

    configs/models/useraccess.txt
    This is the most important file. This dictates who gets access to what tiers (again I will explain tiers below)
    The format is as follows:
    Code:
    STEAM_0:1:15610822$30
    Again, no white space at the end or around the $ please.

    configs/models/tier_team#.txt
    The purpose of these files are to assign tiers (0,2,4,8,16) to the models for each team. The syntax is modelname$tier# , for example:
    Code:
    Ghostrider$0
    Babycrab$2
    Line1 - assigns modelname "Ghostrider" defined in model_team#.txt to the public tier "0"
    Line2 - assign modelname "Babycrab" defined in model_team#.txt to tier "2"

    commands
    sm_reloadmodels - this reloads any changes made to the useraccess, model, and tier files. Think of this just the same as sm_reloadadmins.
    sm_models - used to be backwards compatible with all other model menus. sm_settings will have the same exact effect.

    information about this plugin
    A friend asked me to make him a tiered model menu similar to a mani equivalent so I did so. Its a bit advanced on the setup and requires a bit of effort, but the end effect is pretty nice.

    The tier system is a multiple level system, that allows you to grant access to an individual based on steamid. You can have up to 5 levels.

    Level 0 is always public model access.
    The rest of the levels multiple, level 2, 4, 8, and 16.

    This is so you can make it so an individual has access to only one tier or multiples.

    For example, one person is set to 14, which is access to level 2, 4, and 8.

    One other thing to know:
    All files are not needed. If you only want T models, only include the model_downloads and T files, etc.

    This is my first public so any criticism would be nice.

    All of the files are included in the zip so you can see some type of examples.

    Good luck and enjoy!

    off topic info
    This has been tested and seems to work just fine with wcs mods so far. This includes .75, .77, and python by Fred & Jeff.
    This does not interface with sourcemod admins. It is independent.

    change history
    Code:
    -1.02
    +-Bug fix for tier 2 (14) - thanks CSSbot
    -1.01
    +-Bug fix for repeated model names - thanks CSSbot
    -1.0
    -Reworked the way the files are processed.
    ++Added DoD:S support for teams, not classes (yet)
    +-If you have a previous version, you do not need to update files. It will auto-generate the new files, and remove the old for you!
    -Reworked variables to be more reader friendly and to allow easier streamlining of other mods.
    --Removed gamedata and SKDcalls. Using SetEntityModel now to have better support with DoD:S. (Was having linux issues with sdk calls)
    -0.1b
    ++Added a TrimString check. Some white space issues were causing problems for folks. You can still have spaces between the model names but not at the ends please. 
    -0.1a
    +-converted long path to BuildPath functions
    Attached Files
    File Type: sp Get Plugin or Get Source (joinwcs_models.sp - 2573 views - 25.7 KB)
    File Type: zip joinwcs_models_full.zip (20.7 KB, 2646 views)

    Last edited by joshtrav; 10-07-2009 at 00:41. Reason: Update from errors.
    joshtrav is offline
    TechKnow
    Senior Member
    Join Date: Nov 2007
    Old 09-14-2009 , 04:12   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #2

    This IS the Ultimate Skin/Model Plugin for Sourcemod!

    JT and I have collaborated on this and with his master scripting it has come to life.


    I use this plugin myself and will aid anyone in help setting this up, It is very easy and understandable.


    I personally endorce and support this model plugin!


    TechKnow
    __________________
    "Stupd is what Stupid dose"
    MY MODELS SITE
    http://techknowmodels.19.forumer.com/index.php

    Last edited by TechKnow; 09-14-2009 at 04:24.
    TechKnow is offline
    andi67
    Veteran Member
    Join Date: Mar 2007
    Location: Somewhere near you!!!
    Old 09-14-2009 , 05:43   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #3

    Nice work , I have took a look into your plugin , one thing is you should add more mods in gamedata.txt like dods ect.
    I will test it out later.
    __________________
    Waiting for HL3,Day of Defeat3 ,but will it ever come? So I'm gonna play COD WW2.>>>>SM_SKINCHOOSER<<<<
    >>You need Models for DODS/CSS/CSGO , than click here!!!<<
    andi67 is offline
    CenT
    Senior Member
    Join Date: Aug 2009
    Location: FRANCE
    Old 09-14-2009 , 17:04   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #4

    Plugins does not work on CSS, I followed exactly configuration to be made, models downloads not and when I selectionne the model nothing takes place : (: ( here are my configurations:

    model_downloads.txt :

    //materials\models\player\techknow\ackbar\ackba r.vtf

    // Fisher
    materials/models/player/elis/fs/f4.vmt
    materials/models/player/elis/fs/f4.vtf
    materials/models/player/elis/fs/f4_norm.vtf
    materials/models/player/elis/fs/t_guerilla.vmt
    materials/models/player/elis/fs/t_guerilla.vtf
    materials/models/player/elis/fs/t_guerilla_normal.vtf
    materials/models/player/elis/fs/t_phoenix.vmt
    materials/models/player/elis/fs/t_phoenix.vtf
    materials/models/player/elis/fs/t_phoenix_normal.vtf
    materials/models/player/elis/fs/tac_light.vmt
    materials/models/player/elis/fs/tac_light.vtf
    materials/models/player/elis/fs/tac_light_normal.vtf
    materials/models/player/elis/fs/zsgogs_d.vmt
    materials/models/player/elis/fs/zsgogs_d.vtf
    materials/models/player/elis/fs/zsgogs_d_normal.vtf
    models/player/elis/fsv2/fischer.dx80.vtx
    models/player/elis/fsv2/fischer.dx90.vtx
    models/player/elis/fsv2/fischer.mdl
    models/player/elis/fsv2/fischer.phy
    models/player/elis/fsv2/fischer.sw.vtx
    models/player/elis/fsv2/fischer.vvd

    // Matrixchief red
    materials/models/player/slow/matrixchief_red/ogg_mcex.vmt
    materials/models/player/slow/matrixchief_red/ogg_mcex.vtf
    materials/models/player/slow/matrixchief_red/ogg_mcvx.vmt
    materials/models/player/slow/matrixchief_red/ogg_mcvx.vtf
    materials/models/player/slow/matrixchief_red/ogg_mcvx_n.vtf
    materials/models/player/slow/matrixchief_red/ogg_polybump.vtf
    models/player/slow/matrixchief_red/matrixchief.dx80.vtx
    models/player/slow/matrixchief_red/matrixchief.dx90.vtx
    models/player/slow/matrixchief_red/matrixchief.mdl
    models/player/slow/matrixchief_red/matrixchief.phy
    models/player/slow/matrixchief_red/matrixchief.sw.vtx
    models/player/slow/matrixchief_red/matrixchief.vvd
    models/player/slow/matrixchief_red/matrixchief.xbox.vtx

    // Mr Smith
    models/player/techknow/smith/smith.dx80.vtx
    models/player/techknow/smith/smith.dx90.vtx
    models/player/techknow/smith/smith.mdl
    models/player/techknow/smith/smith.phy
    models/player/techknow/smith/smith.sw.vtx
    models/player/techknow/smith/smith.vvd
    materials/models/player/techknow/smith/smithbody.vmt
    materials/models/player/techknow/smith/smithbody.vtf
    materials/models/player/techknow/smith/smithbody-n.vtf
    materials/models/player/techknow/smith/smithhead.vmt
    materials/models/player/techknow/smith/smithhead.vtf
    materials/models/player/techknow/smith/smithhead-n.vtf
    materials/models/player/techknow/smith/smithshoe.vmt
    materials/models/player/techknow/smith/smithshoe.vtf
    materials/models/player/techknow/smith/smithshoe-n.vtf

    //CowGirl
    materials/models/player/slow/cowgirl/cowgirlbody.vmt
    materials/models/player/slow/cowgirl/cowgirlbody.vtf
    materials/models/player/slow/cowgirl/cowgirlbody_normal.vtf
    materials/models/player/slow/cowgirl/cowgirlface.vmt
    materials/models/player/slow/cowgirl/cowgirlface.vtf
    materials/models/player/slow/cowgirl/cowgirlface_normal.vtf
    models/player/slow/cowgirl/cowgirl.dx80.vtx
    models/player/slow/cowgirl/cowgirl.dx90.vtx
    models/player/slow/cowgirl/cowgirl.mdl
    models/player/slow/cowgirl/cowgirl.phy
    models/player/slow/cowgirl/cowgirl.sw.vtx
    models/player/slow/cowgirl/cowgirl.vvd
    models/player/slow/cowgirl/cowgirl.xbox.vtx

    //Trinity
    models/player/techknow/trinity/trinity.mdl
    models/player/techknow/trinity/trinity.dx80.vtx
    models/player/techknow/trinity/trinity.dx90.vtx
    models/player/techknow/trinity/trinity.phy
    models/player/techknow/trinity/trinity.sw.vtx
    models/player/techknow/trinity/trinity.vvd
    materials/models/player/techknow/trinity/chrome_buckle.vmt
    materials/models/player/techknow/trinity/chrome_buckle.vtf
    materials/models/player/techknow/trinity/chrome_buckle_n.vtf
    materials/models/player/techknow/trinity/chrome_glass.vmt
    materials/models/player/techknow/trinity/chrome_glass.vtf
    materials/models/player/techknow/trinity/trinitypantsF.vmt
    materials/models/player/techknow/trinity/trinitypantsF.vtf
    materials/models/player/techknow/trinity/trinitypantsF_n.vtf
    materials/models/player/techknow/trinity/trinityskin3.vmt
    materials/models/player/techknow/trinity/trinityskin3.vtf
    materials/models/player/techknow/trinity/trinityskin3_n.vtf

    //MatrixChief Blue
    materials/models/player/slow/matrixchief_blue/ogg_mcex.vmt
    materials/models/player/slow/matrixchief_blue/ogg_mcex.vtf
    materials/models/player/slow/matrixchief_blue/ogg_mcvx.vmt
    materials/models/player/slow/matrixchief_blue/ogg_mcvx.vtf
    materials/models/player/slow/matrixchief_blue/ogg_mcvx_n.vtf
    materials/models/player/slow/matrixchief_blue/ogg_polybump.vtf
    models/player/slow/matrixchief_blue/matrixchief.dx80.vtx
    models/player/slow/matrixchief_blue/matrixchief.dx90.vtx
    models/player/slow/matrixchief_blue/matrixchief.mdl
    models/player/slow/matrixchief_blue/matrixchief.phy
    models/player/slow/matrixchief_blue/matrixchief.sw.vtx
    models/player/slow/matrixchief_blue/matrixchief.vvd
    models/player/slow/matrixchief_blue/matrixchief.xbox.vtx

    //Neo
    models/player/techknow/neo_v2/neo_v2.dx80.vtx
    models/player/techknow/neo_v2/neo_v2.dx90.vtx
    models/player/techknow/neo_v2/neo_v2.mdl
    models/player/techknow/neo_v2/neo_v2.phy
    models/player/techknow/neo_v2/neo_v2.sw.vtx
    models/player/techknow/neo_v2/neo_v2.vvd
    materials/models/player/techknow/neo_v2/Face.vmt
    materials/models/player/techknow/neo_v2/Face.vtf
    materials/models/player/techknow/neo_v2/Face_n.vtf
    materials/models/player/techknow/neo_v2/neocoat.vmt
    materials/models/player/techknow/neo_v2/neocoat.vtf
    materials/models/player/techknow/neo_v2/neoLeatherBoots.vmt
    materials/models/player/techknow/neo_v2/neoLeatherBoots.vtf
    materials/models/player/techknow/neo_v2/neoLeatherBoots_n.vtf
    materials/models/player/techknow/neo_v2/neopants.vmt
    materials/models/player/techknow/neo_v2/neopants.vtf

    ========================================

    model_list_ct.txt :

    //barry-Bee$models\player\techknow\bee\berry.mdl
    Fisher$models/player/elis/fsv2/fischer.mdl
    MasterChief Blue$models/player/slow/matrixchief_blue/matrixchief.mdl
    Neo Matrix$models/player/techknow/neo_v2/neo_v2.mdl
    Trinity Matrix$models/player/techknow/trinity/trinity.mdl
    model_list_t.txt :

    //Crowe$models\player\techknow\crowe\crowe.mdl
    MasterChief RED$models/player/slow/matrixchief_red/matrixchief.mdl
    Mr Smith Matrix$models/player/techknow/smith/smith.mdl
    CowGirl$models/player/slow/cowgirl/cowgirl.mdl

    ===========================================
    tier_16_t.txt :

    //Demon
    MasterChief RED
    Mr Smith Matrix
    CowGirl

    tier_16_ct.txt :

    //Winged Elf
    Fisher
    MasterChief Blue
    Neo Matrix
    Trinity Matrix
    ===================================
    user_access.txt :

    STEAM_0:1:12679177$30
    STEAM_0:1:13005207$30


    Correct configuration?

    I work at present with Sourcemod v1.2.1
    CenT is offline
    joshtrav
    Senior Member
    Join Date: Sep 2009
    Old 09-14-2009 , 18:27   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #5

    I have not accounted for white space. That could be your issue.

    This will also not work if you do not have clientpref installed along with the database configs that come standard with the SM install.

    I made you a quick zip of your files without white space. If that doesn't help check your logs for the error log files and let me know what they say.

    This should work however, so long as the files are actually uploaded.

    -Josh

    -Edit:
    Looked at my code a bit and I doubt the white space would cause such a lack of anything to occur. The !models / !settings menu would still show regardless of what loaded, as that is the base clientpref menu.

    This leads me to believe you do not have clientpref.smx loaded.

    Let me know.

    2nd Edit:
    Also make sure you have the gamedata file installed. If this is not installed you will not hook player_spawn as the plugin will error on load.
    Attached Files
    File Type: zip CenT.zip (1.8 KB, 819 views)

    Last edited by joshtrav; 09-14-2009 at 18:30.
    joshtrav is offline
    joshtrav
    Senior Member
    Join Date: Sep 2009
    Old 09-14-2009 , 18:29   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #6

    Quote:
    Originally Posted by andi67 View Post
    Nice work , I have took a look into your plugin , one thing is you should add more mods in gamedata.txt like dods ect.
    I will test it out later.
    I can toy with this but I have never coded for anything other then CS:S.

    I will look at some wikis and see if I can download a trial of it or something to test some settings out.
    joshtrav is offline
    CenT
    Senior Member
    Join Date: Aug 2009
    Location: FRANCE
    Old 09-14-2009 , 19:50   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #7

    Good evening, the download of Models works, the display(posting) of the menu! Models works, the plugins: clientpref.smx is good to load(charge), the only thing(matter) which does not work it is just as I wish to put myself a skins, it applies in no way, with any models to configure celà does not work, nevertheless his(her,its) to work with skinschooser.smx auparavent. But I thank déja for the problem of white in the files of configuration, celà is already a settled(adjusted) problem ^^

    [EDIT] The file : clientmenu.gamedata.txt is installed(settled) well, but there is any configuration to be brought on this file?

    Last edited by CenT; 09-14-2009 at 19:53.
    CenT is offline
    joshtrav
    Senior Member
    Join Date: Sep 2009
    Old 09-14-2009 , 20:00   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #8

    It should say in chat "Terrorist model set" or "Counter Terrorist model set"

    After which your skin will not change until the round restarts.

    If the model appears, and the choice occurs, the model is either the wrong path (it will show in your error log with the catch) or you are not waiting for the round to end.

    As I said in the PM to you I can try to help a bit more if you tell me what your server is.
    joshtrav is offline
    CenT
    Senior Member
    Join Date: Aug 2009
    Location: FRANCE
    Old 09-14-2009 , 20:05   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #9

    Here is an error of sourcemod:

    L 09/15/2009 - 01:542: SourceMod error session started
    L 09/15/2009 - 01:542: Info (map "de_dust2") (file "errors_20090915.log")
    L 09/15/2009 - 01:542: [joinwcs_models.smx] File: , does not exist
    L 09/15/2009 - 01:563: [joinwcs_models.smx] File: , does not exist
    L 09/15/2009 - 01:58:28: [joinwcs_models.smx] File: , does not exist

    IP Server : 94.23.7.177:27015
    Server French
    CenT is offline
    TechKnow
    Senior Member
    Join Date: Nov 2007
    Old 09-14-2009 , 20:11   Re: [CSS] Advanced Model Menu - Clientpref req.
    Reply With Quote #10

    andi67:
    If you want to try to get this to work with DOD try replaceing the clientmenu.gamedata.txt with the one I have posted here. I dont know if it will make it work but I think it might. I have tested this version of the gamedata with this plugin in CSS and the plugin still works correctly.

    CenT:
    As for this plugin not working for you see if this will help, add the sql-lite.smx to your plugins and replace your databases.cfg in your config folder with this one, see if that helps, as for the sp for sql-lite.smx I dont have it and im not sure where i got it but it gets alot of things to work for me.
    Attached Files
    File Type: txt clientmenu.gamedata.txt (859 Bytes, 756 views)
    File Type: cfg databases.cfg (495 Bytes, 684 views)
    File Type: smx sql-lite.smx (9.9 KB, 682 views)
    __________________
    "Stupd is what Stupid dose"
    MY MODELS SITE
    http://techknowmodels.19.forumer.com/index.php

    Last edited by TechKnow; 09-14-2009 at 20:20.
    TechKnow 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 23:10.


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