Garry's Mod

Garry's Mod

Map Retexturizer
942 kommentarer
Gnilomord 10. nov. kl. 21.00 
It's a pity, this way some maps could be slightly edited.
Xalalau  [skaper] 10. nov. kl. 17.42 
No, they share the same RAM address.
Gnilomord 10. nov. kl. 8.26 
I haven't mastered the tool very well, but... Is it possible to change the materials of individual objects on a map? For example, there are two buildings on the map with identical textures. Is it possible to change the texture of just one building without affecting the other? I tried, and usually both ended up being edited.
Xalalau  [skaper] 1. nov. kl. 16.32 
Nice
MrNiceGuy518 1. nov. kl. 13.05 
Brilliant, thanks! I'm revamping an old version of Spacebuild to allow people to terraform planets on spacebuild maps - I wanted a way to turn barren moons into lush green landscapes once they get far enough in the tech tree. Yours is the only tool I've ever seen that can actually retexture displacements. If it turns into something cool I might release it!
Xalalau  [skaper] 1. nov. kl. 12.47 
Hey, ty.

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. :claugh:
MrNiceGuy518 30. okt. kl. 22.29 
Hey, I've got a quick question I was hoping you could answer - I'm working on a script for a personal project of mine, and I'd like to find a way to trigger a displacement material swap via LUA alone, are there any functions in your project I can call or data structures I can interface with to get that done without having to dissect the whole code base? Really impressive work, by the way.
Xalalau  [skaper] 24. okt. kl. 11.56 
Yep, but it's mainly the material swap issue as far as I know. Do you know other bugs? Disclaimer: models are not well supported because the addon is only meant to change map materials.
arlazian 19. okt. kl. 12.15 
lil buggy
Leo 8. okt. kl. 19.47 
MY WHOLE MAP TURNED INTO PURPLE AND BLACK 😭
Yuri Katrovich 7. aug. kl. 13.32 
[Map Retexturizer] lua/mr/materials/cl_material.lua:149: bad argument #1 to 'Material' (string expected, got nil)
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
Biovox 27. juli kl. 15.53 
this addon makes some textures wireframe,
Клоп Сергей 23. juni kl. 10.51 
Decals not working, gray background all of them
Xalalau  [skaper] 17. juni kl. 21.00 
Yeah, this bug is related to swapping materials in a very specific way, and I was never able to fully figure it out.
pearple 17. juni kl. 13.15 
sometimes when i change a texture it gets stuck as that texture and i cant remove it
and the only thing
i have found that works is restarting my game : (
MR. MAYHAM 8. juni kl. 10.08 
half life 3 here i come!
Xalalau  [skaper] 3. juni kl. 14.51 
I'd use the submaterial tool to copy and apply the skin on another model, then mapret would be able to also use it. I never fully implemented models suppport because it's not the real focus.
Kenshinius_YT 2. juni kl. 9.46 
is there a way to copy a texture of a skin or scroll through the textures for them?
Wolfboy1020 7. mai kl. 18.42 
how do I make certain map textures invisible?
Xalalau  [skaper] 15. apr. kl. 12.18 
Oh, I see. It's ok, ty 4 letting me know.
Space Shuttle Scam 14. apr. kl. 20.29 
also hey, I'm dumb as hell. it was a spawn menu addon. I fixed it by uninstalling it lol. I think it was one of those derma skins.
Xalalau  [skaper] 28. mars kl. 14.45 
Hello. Name of the map, please. Were you playing singleplayer or multiplayer?
Space Shuttle Scam 27. mars kl. 17.30 
for some reason the UI doesnt come up in the options menu when i click it. just gives me this error

[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
Xalalau  [skaper] 9. mars kl. 21.18 
Lmao tell me more. Which map and material is causing you trouble? Do you think you have a bug? Why do you hate my dear mr missing? I barely see them tbh
LλMBDA Huge SCP / Gmod Fan 9. mars kl. 20.23 
I HATE MR MISSING
Xalalau  [skaper] 5. mars kl. 18.10 
You don't.
taco 5. mars kl. 5.10 
where do i find the Materials! folder in file explorer :(
Xalalau  [skaper] 4. mars kl. 13.33 
I fixed the tool failing to warn users about how to change displacements.
Xalalau  [skaper] 4. mars kl. 13.08 
@khronos_inadvert
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.
Azure 28. feb. kl. 22.18 
If there's a way to make map textures render transparent / invisible it would be very appreciated to know about
Mephiles Dark 17. feb. kl. 15.30 
also it doesnt let me change the grass and sand textures in construct
Mephiles Dark 17. feb. kl. 15.28 
how do i use materials from the material tool? so its not just the map materials
crazy dave 17. feb. kl. 12.13 
my brain is burning
thegreaterhan 15. jan. kl. 20.03 
it just keeps telling me to change the skybox in the tool menu no matter what i do
Xalalau  [skaper] 16. des. 2024 kl. 20.32 
@rinasinaga Even after rewriting this tool I left the models support on a very basic state because it's supposed to only change map materials. Try the submaterial tool for this purpose.
Xalalau  [skaper] 16. des. 2024 kl. 20.28 
If I recall correctly it's a checkbox in the save dialog. Just click on the save button.
Felix_816YT 16. des. 2024 kl. 9.50 
Does anyone know how to disable auto saving?? (at least the text that appears in the game chat)
Printer Dude 13. okt. 2024 kl. 7.22 
When You Duplicate a Retexturized Object Then For Some Reason Everything ut That Reverts To Its Normal Texutre. Why Does This Happen?
EtriusSierra 4. sep. 2024 kl. 2.34 
Been experimenting with recreating locations from games; don't know how well it'll work for my purposes. Nevertheless, this is a fantastic mod. :)
Serial Designation N 17. aug. 2024 kl. 9.23 
yay now i can make gm_flatsand grass instead
LilMissKurisu 4. aug. 2024 kl. 12.48 
How do I make the textures stop glowing?
Pun bro 29. juli 2024 kl. 13.47 
cool
Xalalau  [skaper] 28. juli 2024 kl. 13.51 
Ok, I'll look into it. :steamthumbsup:
Pun bro 27. juli 2024 kl. 16.53 
I have the certain deathrun maps that appear to not allow those materials to appear in the list in Gm construct or anywhere else
Pun bro 27. juli 2024 kl. 16.44 
well there happens to be like this one https://steamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2780906821&searchtext=ancient+memes ancient memes, It doesn't list those memes
Xalalau  [skaper] 27. juli 2024 kl. 8.17 
Uhmm, I can consider it a bug. Can you give me the name of one of these maps?
Pun bro 27. juli 2024 kl. 5.02 
okay, I was just sad that some materials from certain maps aren't in the list and I wanted to go crazy with certain images that happen to be meme stuff and stuff that i just want to keep and save and put all over different maps and not say " material unknown"
Pun bro 27. juli 2024 kl. 5.00 
oh, okay, new features won't be done?
Xalalau  [skaper] 26. juli 2024 kl. 18.07 
Hi. I stopped adding new features a while ago, I just want this addon working as it should.
Pun bro 26. juli 2024 kl. 9.40 
could you make a feature in this addon where you can save packs of files of materials from Different maps?