Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I gave you credit in one of the screenshots, 'cuz you were a great help.
Look at the third reply to that thread.
{
"$basetexture" "benio/Curio_Zenith_Clear"
"$translucent" 1
}
But in-game, nothing happens: http://www96.zippyshare.com/v/kq7ru3eh/file.html
I'm thinking the translucent, makes it completely invisible, but without that the material goes broken and doesn't show up in-game, anyway. What could I be doing wrong, now? /:|
But when I copied and pasted (and/or imported) it to be a .vtf, it showed up as this: http://www80.zippyshare.com/v/XxydB0Me/file.html
"LightmappedGeneric"
{
"$basetexture" "benio/Curio_Zenith_Clear"
"$translucent" 1
}
That must be why it's not showing up at all; there needs to be something added in this file in order to have the white emblem show up and not the black background, right?
http://wiki.garrysmod.com/page/Workshop_Addon_Creation
https://developer.valvesoftware.com/wiki/$translucent
I recommend saving your texture as a .tga before importing it into VTFedit. .png files tend to glitch out with transparency.
You wouldn't happen to know how to make a material with transparent parts, would you? I was trying to make the emblem with the black background cleared out and it came out wrong in the game. /:|
And...how do I turn this into an addon for everyone to share?
restructure your files like so:
garrysmod/addons/<addon_name>/lua/autorun/Curio_Zenith.lua
garrysmod/addons/<addon_name>/materials/benio/Curio_Zenith.vtf
garrysmod/addons/<addon_name>/materials/benio/Curio_Zenith.vmt
Make sure your VMT file says the $basetexture is "benio/Curio_Zenith"
If so, then I failed because I couldn't find it in the Materials list; I had to use the Extended Spawn Menu to find them, only to see that they were textureless.
After making windows show the file extension, make a new text file and change the .txt to a .lua.
Then look at the code. If you need to create the material itself, there are youtube tutorials for that.