Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default Playermodel issue #26

Open
Selaviii opened this issue Jul 7, 2024 · 10 comments
Open

Default Playermodel issue #26

Selaviii opened this issue Jul 7, 2024 · 10 comments

Comments

@Selaviii
Copy link

Selaviii commented Jul 7, 2024

Hello,
I have a default playermodel issue. The model is not applying on connecting and instead its giving error messages that the model does not exist, I tried "model_vezenx,vezenx" not working. How do I solve this issue?

PlayerModelChanger.json

{
	"Models": {
		"model_vezenx": {
			"name": "vezen",
			"path": "characters/models/nozb1/a_prisoner_turok_player_model/a_prisoner_turok_player_model.vmdl",
			"side": "T",
			"permissions": [],
			"permissionsOr": [],
			"disableleg": false,
			"hideinmenu": true
		},
		"model_dozorcex": {
			"name": "dozorce",
			"path": "characters/models/nozb1/policeman_player_model/policeman_player_model.vmdl",
			"side": "CT",
			"permissions": [],
			"permissionsOr": [],
			"disableleg": false,
			"hideinmenu": true
		}
	},
	"MenuType": "centerhtml",
	"StorageType": "mysql",
	"MySQL_IP": "",
	"MySQL_Port": "",
	"MySQL_User": "",
	"MySQL_Password": "",
	"MySQL_Database": "",
	"MySQL_Table": "playermodelchanger",
	"ModelForBots": {
		"CT": "",
		"T": ""
	},
	"DisablePrecache": false,
	"DisableRandomModel": false,
	"DisableAutoCheck": false,
	"AutoResyncCache": false,
	"ConfigVersion": 1
}

DefaultModels.json

{
    "DefaultModels": {
        "all": {
        },
       "t": {
		"*": {
        "index": "model_vezenx",
		"force": true
			},
        },
        "ct": {
		"*": {
        "index": "model_dozorcex",
		"force": true
			}
        }
    }
}
@samyycX
Copy link
Owner

samyycX commented Jul 8, 2024

umm first you definitely shouldn't post your database credentials here. Although i have deleted it, it could be leaked already, please change your database password ASAP.

You should delete the comma in DefaultModels.json line 9, i deleted it and found out it works fine.
The modified DefaultModels.json will be:

{
	"DefaultModels": {
		"all": {
		},
		"t": {
			"*": {
				"index": "model_vezenx",
				"force": true
			}
		},
		"ct": {
			"*": {
				"index": "model_dozorcex",
				"force": true
			}
		}
	}
}

@Selaviii
Copy link
Author

Selaviii commented Jul 8, 2024

Well I am fucking stupid, Thank you so much!

@Selaviii Selaviii closed this as completed Jul 8, 2024
@Selaviii Selaviii reopened this Jul 8, 2024
@Selaviii
Copy link
Author

Selaviii commented Jul 8, 2024

Hey, also is there any way to compeltely disable the !model menu?

@samyycX
Copy link
Owner

samyycX commented Jul 11, 2024

Hey, also is there any way to compeltely disable the !model menu?

Sorry i missed your reply, it have been added in v1.6.0, see https://github.com/samyycX/CS2-PlayerModelChanger/releases/tag/release-v1.6.0

@Selaviii
Copy link
Author

Ok, Thanks.

@Selaviii
Copy link
Author

Also after the map change, the models just stop working. Any solution?

@samyycX
Copy link
Owner

samyycX commented Jul 13, 2024

Also after the map change, the models just stop working. Any solution?

I can't reproduce your problem. What else plugin are you using?

@Selaviii
Copy link
Author

@samyycX
Copy link
Owner

samyycX commented Jul 14, 2024

https://github.com/abnerfs/cs2-rockthevote

This plugin shouldnt cause any problem, try to remove all other plugin temporarily and see if the model stop working and if there are any error logs in server console

@Selaviii
Copy link
Author

It is the rock the vote plugin for some reason, after the map change the model just dont initialize. But if I restart the server it works on the main map, just after the map change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants