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

Model Menu


Post New Thread Reply   
 
Thread Tools Display Modes
pRED*
Join Date: Dec 2006
Old 08-14-2007 , 16:26   Re: Model Menu
Reply With Quote #21

What version did you update from?
pRED* is offline
f64
Member
Join Date: Jun 2007
Location: Houston, TX USA
Old 08-14-2007 , 16:37   Re: Model Menu
Reply With Quote #22

It's working still. I had disabled some sql plugins.
f64 is offline
pRED*
Join Date: Dec 2006
Old 08-14-2007 , 16:48   Re: Model Menu
Reply With Quote #23

Lol nice work. Good that you got it working
pRED* is offline
l0gen
Member
Join Date: Apr 2006
Location: The Netherlands
Old 08-14-2007 , 16:53   Re: Model Menu
Reply With Quote #24

It doesn't seem to precache the models.

Code:
"Gman"
{
	"path"			"models/gman.mdl"
}
Doesn't work on de_dust2

While

Code:
"Oildrum"
{
	"path"			"models/props_c17/oildrum001.mdl"
}
Works, because that model is in the level (precached/loaded whatever)

The downside of this, Most of the people have cl_minmodels 1
So they don't see those models, And you can't change it with sm_cexec, because it's get blocked (not allowed).

Is there a way, to force a model?
__________________
l0gen is offline
pRED*
Join Date: Dec 2006
Old 08-14-2007 , 17:36   Re: Model Menu
Reply With Quote #25

Could you try it out with a cs model of some sort? It definately downloads and precaches for me. But i've got no clue about the cl_minmodels thing
pRED* is offline
l0gen
Member
Join Date: Apr 2006
Location: The Netherlands
Old 08-14-2007 , 18:44   Re: Model Menu
Reply With Quote #26

Quote:
Originally Posted by pRED* | NZ View Post
Could you try it out with a cs model of some sort? It definately downloads and precaches for me. But i've got no clue about the cl_minmodels thing

I can change models - t_leet.mdl, etc.

cl_minmodels 1, kinda ruins te fun, now I can't play as barrel and sneak arround dust2
__________________
l0gen is offline
pflclan
Junior Member
Join Date: Feb 2007
Location: MyrtleBeach, SC USofA
Old 08-16-2007 , 11:50   Re: Model Menu
Reply With Quote #27

i am sry but where do i place the models.ini and modeldownloads? actullay can u post where all the files go? i am lost with sourcemod so far i am new to it
nothing is getting downloaded and the menu is an unknown command in console
This is what i got:

addons/sourcemod/configs
-models.ini
-modeldownloads.ini

addons/sourcemod/gamedata
-modelmenu.gamedata.txt

addons/sourcemod/plugins
-ModelMenu.smx
Here is my models.ini
Code:
//Configure your menu here
"Models"
{
    //Name of the item to appear in the menu
    "Admin Only Models"
    {
        //Sourcemod admin group required to see/access this submenu
        "Admin"        "Skin Group1"

        //Models available for team 1 (terrorist / allies)
        "Team1"
        {
            //Name to appear in submenu
            "Cool Model 1"
            {
                //path to the model file. This will automatically be precached
                "path"        "models/player/dvshunter/tacitcalphoenix/t_phoenix.mdl"
            }
            
        }

        //Models available for team 2 (ct / axis)
        //"Team2"
        {
            //"CT Only Model"
            {
            //    "path"        "models/player/ics/ct_gsg9_admin/ct_gsg9.mdl"
            }    
        }
    }
}

//All other files needed for the above models must be listed in modeldownloads.ini
//This forces the clients to download the needed files
Here is my admin_groups.cfg
Code:
Groups
{
    /**
     * Allowed properties for a group:
     *
     *   "flags"           - Flag string.
     *   "immunity"        - Specifies a group to be immune to.  Use "*" for all or "$" for users with no group.
     *                         This key may be used multiple times.
     */
    "Default"
    {
        "immunity"        "$"
    }
    
    "Full Admins"
    {
        /**
         * You can override commands and command groups here.
         * Specify a command name or group and either "allow" or "deny"
         * Examples:
         *         ":CSDM"            "allow"
         *        "csdm_enable"    "deny"
         */
         Overrides
         {
         }
        "flags"            "abcdefghiz"
        "immunity"        "*"
    }
    "Skin Group1"
    {
        "immunity"        "$"
    }
    "Skin Group2"
    {
        "immunity"        "$"
    }
}
__________________
PfL - Psycho-de-lick Frog LickerZ





Last edited by pflclan; 08-16-2007 at 12:42.
pflclan is offline
f64
Member
Join Date: Jun 2007
Location: Houston, TX USA
Old 08-16-2007 , 17:44   Re: Model Menu
Reply With Quote #28

Everything looks fine, but you didn't show what you have in your admins.cfg or admins_simple.ini.
Make sure you have your admins listed for the proper group in either of those two files.

for admins_simple.ini:
Code:
"STEAM_0:0:12345"    "@Skin Group1"    //yourname
for admins.cfg:
Code:
Admins
{
    //Skin Group 1
    "yourname"
    {
        "auth"            "steam"
        "identity"        "STEAM_0:1:12345"
        "group"            "Skin Group1"
    }
}
f64 is offline
pflclan
Junior Member
Join Date: Feb 2007
Location: MyrtleBeach, SC USofA
Old 08-17-2007 , 01:25   Re: Model Menu
Reply With Quote #29

Nothing is getting Downloaded??? hmmmm i am thinking that modeldownloads files is in the wrong spot?
__________________
PfL - Psycho-de-lick Frog LickerZ




pflclan is offline
MoggieX
Veteran Member
Join Date: Aug 2007
Location: n00bville
Old 08-19-2007 , 16:42   Re: Model Menu
Reply With Quote #30

hey pred*,

This crashes my server under linux =/

The only errors I get logged are:

Code:
L 08/19/2007 - 22:07:37: SourceMod error session started
L 08/19/2007 - 22:07:37: Info (map "de_dust2") (file "errors_20070819.log")
L 08/19/2007 - 22:07:37: [SM] Native "LoadGameConfigFile" reported: Unable to open plugin.supercmds: Stream failed to open
L 08/19/2007 - 22:07:37: [SM] Displaying call stack trace for plugin "sm_super_cmds.smx":
L 08/19/2007 - 22:07:37: [SM]   [0]  Line 183, /home/groups/alliedmodders/forums/files/2/3/7/6/2/17765.attach::OnPluginStart()
L 08/19/2007 - 22:07:37: [admin-flatfile.smx] Error(s) detected parsing addons/sourcemod/configs/admins.cfg
L 08/19/2007 - 22:07:37: [admin-flatfile.smx]  (1) Line contained too many invalid tokens
The models download as they should and they are in the right folders.

This is my modeldownloads.ini

Code:
// CT FBI
models/player/ics/ct_gign_fbi/ct_gign.dx80.vtx
models/player/ics/ct_gign_fbi/ct_gign.dx90.vtx
models/player/ics/ct_gign_fbi/ct_gign.phy
models/player/ics/ct_gign_fbi/ct_gign.sw.vtx
models/player/ics/ct_gign_fbi/ct_gign.vvd
materials/models/player/ics/ct_gign_fbi/ct_gign.vmt
materials/models/player/ics/ct_gign_fbi/ct_gign.vtf
materials/models/player/ics/ct_gign_fbi/ct_gign_glass.vmt

// T FEMALE
models/player/ics/t_female/t_phoenix.dx80.vtx
models/player/ics/t_female/t_phoenix.dx90.vtx
models/player/ics/t_female/t_phoenix.phy
models/player/ics/t_female/t_phoenix.sw.vtx
models/player/ics/t_female/t_phoenix.vvd
materials/models/player/ics/t_female/chau_facemap.vmt
materials/models/player/ics/t_female/chau_facemap.vtf
materials/models/player/ics/t_female/t_phoenix_fem.vmt
materials/models/player/ics/t_female/t_phoenix_fem.vtf
And models.ini

Code:
//Configure your menu here
"Models"
{
    //Name of the item to appear in the menu
    "Admin Only Models"
    {
        //Sourcemod admin group required to see/access this submenu
        "Admin"        "Basic Admins"

        //Models available for team 1 (terrorist / allies)
        "Team1"
        {
            //Name to appear in submenu
            "Cool Model 1"
            {
                //path to the model file. This will automatically be precached
                "path"        "models/player/ics/t_guerilla_z/t_guerilla.mdl"
            }
        }

        //Models available for team 2 (ct / axis)
        "Team2"
        {
            "CT Only Model"
            {
                "path"        "models/player/ics/ct_gsg9_admin/ct_gsg9.mdl"
            }    
        }
    }
}
Any ideas?

Matt
__________________
MoggieX is offline
Send a message via Skype™ to MoggieX
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 19:50.


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