Garry's Mod
Map Retexturizer
942 comentarios
Gnilomord 10 NOV a las 21:00 
It's a pity, this way some maps could be slightly edited.
Xalalau  [autor] 10 NOV a las 17:42 
No, they share the same RAM address.
Gnilomord 10 NOV a las 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  [autor] 1 NOV a las 16:32 
Nice
MrNiceGuy518 1 NOV a las 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  [autor] 1 NOV a las 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 OCT a las 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  [autor] 24 OCT a las 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 OCT a las 12:15 
lil buggy
Leo 8 OCT a las 19:47 
MY WHOLE MAP TURNED INTO PURPLE AND BLACK 😭
Yuri Katrovich 7 AGO a las 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 JUL a las 15:53 
this addon makes some textures wireframe,
Клоп Сергей 23 JUN a las 10:51 
Decals not working, gray background all of them
Xalalau  [autor] 17 JUN a las 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 JUN a las 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 JUN a las 10:08 
half life 3 here i come!
Xalalau  [autor] 3 JUN a las 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 JUN a las 9:46 
is there a way to copy a texture of a skin or scroll through the textures for them?
Wolfboy1020 7 MAY a las 18:42 
how do I make certain map textures invisible?
Xalalau  [autor] 15 ABR a las 12:18 
Oh, I see. It's ok, ty 4 letting me know.
Space Shuttle Scam 14 ABR a las 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  [autor] 28 MAR a las 14:45 
Hello. Name of the map, please. Were you playing singleplayer or multiplayer?
Space Shuttle Scam 27 MAR a las 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  [autor] 9 MAR a las 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 MAR a las 20:23 
I HATE MR MISSING
Xalalau  [autor] 5 MAR a las 18:10 
You don't.
taco 5 MAR a las 5:10 
where do i find the Materials! folder in file explorer :(
Xalalau  [autor] 4 MAR a las 13:33 
I fixed the tool failing to warn users about how to change displacements.
Xalalau  [autor] 4 MAR a las 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 a las 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 a las 15:30 
also it doesnt let me change the grass and sand textures in construct
Mephiles Dark 17 FEB a las 15:28 
how do i use materials from the material tool? so its not just the map materials
crazy dave 17 FEB a las 12:13 
my brain is burning
thegreaterhan 15 ENE a las 20:03 
it just keeps telling me to change the skybox in the tool menu no matter what i do
Xalalau  [autor] 16 DIC 2024 a las 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  [autor] 16 DIC 2024 a las 20:28 
If I recall correctly it's a checkbox in the save dialog. Just click on the save button.
Felix_816YT 16 DIC 2024 a las 9:50 
Does anyone know how to disable auto saving?? (at least the text that appears in the game chat)
Printer Dude 13 OCT 2024 a las 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 a las 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 AGO 2024 a las 9:23 
yay now i can make gm_flatsand grass instead
LilMissKurisu 4 AGO 2024 a las 12:48 
How do I make the textures stop glowing?
Pun bro 29 JUL 2024 a las 13:47 
cool
Xalalau  [autor] 28 JUL 2024 a las 13:51 
Ok, I'll look into it. :steamthumbsup:
Pun bro 27 JUL 2024 a las 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 JUL 2024 a las 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  [autor] 27 JUL 2024 a las 8:17 
Uhmm, I can consider it a bug. Can you give me the name of one of these maps?
Pun bro 27 JUL 2024 a las 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 JUL 2024 a las 5:00 
oh, okay, new features won't be done?
Xalalau  [autor] 26 JUL 2024 a las 18:07 
Hi. I stopped adding new features a while ago, I just want this addon working as it should.
Pun bro 26 JUL 2024 a las 9:40 
could you make a feature in this addon where you can save packs of files of materials from Different maps?