安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






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.