Nainstalovat Steam
přihlásit se
|
jazyk
简体中文 (Zjednodušená čínština)
繁體中文 (Tradiční čínština)
日本語 (Japonština)
한국어 (Korejština)
ไทย (Thajština)
български (Bulharština)
Dansk (Dánština)
Deutsch (Němčina)
English (Angličtina)
Español-España (Evropská španělština)
Español-Latinoamérica (Latin. španělština)
Ελληνικά (Řečtina)
Français (Francouzština)
Italiano (Italština)
Bahasa Indonesia (Indonéština)
Magyar (Maďarština)
Nederlands (Nizozemština)
Norsk (Norština)
Polski (Polština)
Português (Evropská portugalština)
Português-Brasil (Brazilská portugalština)
Română (Rumunština)
Русский (Ruština)
Suomi (Finština)
Svenska (Švédština)
Türkçe (Turečtina)
Tiếng Việt (Vietnamština)
Українська (Ukrajinština)
Nahlásit problém s překladem






Sure, just take a look at lua/mr/materials/map/displacements/**_displacements.lua
There are apply/restore functions you can easily call with data structures defined in
lua/mr/general/data/sh_data.lua
You'll be able to get the detected materials with MR.Displacements:GetDetected() and build my data format with MR.Data:CreateFromMaterial().
Just so you know, I actually scan the bsps to get these names, because traces can't retrieve all displacement material info.
The whole code is open to external addons and licensed under MIT, so feel free to use it as you wish and to call me back to take a look at your project hehe.
1. Material - [C]:-1
2. Apply - lua/mr/materials/cl_material.lua:149
3. func - lua/mr/materials/cl_material.lua:21
4. unknown - lua/includes/extensions/net.lua:34
and the only thing
i have found that works is restarting my game : (
[Map Retexturizer] lua/mr/materials/detail/sh_detail.lua:61: attempt to index a nil value
1. Get - lua/mr/materials/detail/sh_detail.lua:61
2. CreateFromMaterial - lua/mr/general/data/sh_data.lua:173
3. SetPreview - lua/mr/materials/cl_material_preview.lua:38
4. Create - lua/mr/gui/mpanel/cl_mpanel.lua:187
5. ControlPanelBuildFunction - lua/weapons/gmod_tool/stools/mr.lua:399
6. FillViaTable - gamemodes/sandbox/gamemode/spawnmenu/controlpanel.lua:126
7. ActivateTool - lua/includes/modules/spawnmenu.lua:116
8. DoClick - gamemodes/sandbox/gamemode/spawnmenu/toolpanel.lua:202
9. unknown - lua/vgui/dlabel.lua:254
On which map? I can change gm_construct skybox with no issues.
@dell spencer TF2 (dispenser)
Nice
@Artanimatorman
Which materials?
You need to use the "Displacements" section to change gm_construct grass, but I noticed the tool is buggy - trying to apply the material on the displacement instead of giving the expected warning.
@Azure
Change the alpha channel. It's a bar near the material preview.