AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Off-Topic (https://forums.alliedmods.net/forumdisplay.php?f=15)
-   -   Question about .QC file (https://forums.alliedmods.net/showthread.php?t=304975)

GasmoN 02-02-2018 21:59

Question about .QC file
 
I created one model file, with two submodels (like in jailbreak extreme mod)

PHP Code:

$bodygroup submodel
{
studio "leet_county"
studio "leet"


But how can I set custom .bmp skins for each submodel I added?
What to write in .QC file? I read something about $texturegroup
but I need an example.

PS: Idk if this thread is in right place, i didn't knowed where to post it.

fysiks 02-02-2018 23:15

Re: Question about .QC file
 
Off-Topic is the only place that would be appropriate for modeling questions (since this is a plugin scripting forum).

GasmoN 02-03-2018 03:22

Re: Question about .QC file
 
Well, i'm sorry for posting in wrong place, but can you help me anyway?

Ghosted 02-03-2018 08:59

Re: Question about .QC file
 
https://developer.valvesoftware.com/wiki/$texturegroup

! Add .bmp after file name

GasmoN 02-03-2018 09:41

Re: Question about .QC file
 
Quote:

Originally Posted by Ghosted (Post 2576071)

Can you give me the example????
I want only "leet_county" model to have multiple skins (Orange.bmp, blue.bmp, etc.)
What is the full code for that?

Ghosted 02-03-2018 09:46

Re: Question about .QC file
 
Quote:

Originally Posted by GasmoN (Post 2576087)
Can you give me the example????
I want only "leet_county" model to have multiple skins (Orange.bmp, blue.bmp, etc.)
What is the full code for that?

X = leet_county skin name (bmp file name)

Code:

$texturegroup "LeetCountySkins"
{
{ "X.bmp" } { "X.bmp" }
{ "X.bmp" } { "NewSkinName1.bmp" }
{ "X.bmp" } { "NewSkinName2.bmp" }
}

or this one:

Code:

$texturegroup "X.bmp"
{
{ "X.bmp" }
{ "NewSkinName1.bmp" }
{ "NewSkinName2.bmp" }
}


GasmoN 02-03-2018 10:08

Re: Question about .QC file
 
PHP Code:

$bodygroup submodel
{
studio "GSG9"
studio "gign"
studio "sas"
studio "ref_rex_player_byReega_zm7up_2016_fix"
studio "leet_county"
}

$texturegroup "t_leet_county.bmp"
{
"t_leet_county.bmp" }
"t_leet_county_yellow.bmp" }
"t_leet_county_grey.bmp" }


This crashes my 3D MilkShape and model won't open.

t_leet_county.bmp is default texture used in .mdl file
These two textures, yellow and grey I added in the same folder. What is wrong with this?

PS: I tried both ways, same result.

Ghosted 02-03-2018 10:19

Re: Question about .QC file
 
Quote:

Originally Posted by GasmoN (Post 2576093)
PHP Code:

$bodygroup submodel
{
studio "GSG9"
studio "gign"
studio "sas"
studio "ref_rex_player_byReega_zm7up_2016_fix"
studio "leet_county"
}

$texturegroup "t_leet_county.bmp"
{
"t_leet_county.bmp" }
"t_leet_county_yellow.bmp" }
"t_leet_county_grey.bmp" }


This crashes my 3D MilkShape and model won't open.

t_leet_county.bmp is default texture used in .mdl file
These two textures, yellow and grey I added in the same folder. What is wrong with this?

PS: I tried both ways, same result.

where it stucked ? what was last output message ?
i have already tested those methods and both are working to me.
(make sure they are in same dimensions)
(crash can be caused when texture dimensions are very big)

GasmoN 02-03-2018 10:27

Re: Question about .QC file
 
ref_shot_knife_blen... and just pop up "ms3d.exe has stopped working" message.
Dimensions of all 3 textures are 512 x 512, actually that is the same texture just with changed colors.
Location of that textures is in folder where .qc file is.

Ghosted 02-03-2018 10:28

Re: Question about .QC file
 
Quote:

Originally Posted by GasmoN (Post 2576099)
ref_shot_knife_blen... and just pop up "ms3d.exe has stopped working" message.
Dimensions of all 3 textures are 512 x 512, actually that is the same texture just with changed colors.
Location of that textures is in folder where .qc file is.

can you attach files?


All times are GMT -4. The time now is 20:27.

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