Portal 2

Portal 2

Community maps. For science.
Welcome to Aperture Laboratories, home of the Perpetual Testing Initiative. Easily create, share and play test chambers authored by and for the Portal 2 community. Do your part! Contribute to Science!
Learn More
Custom Turret textures
I've been trying to make a simple red turret for my hammer map using this guide:https://www.thinking.withportals.com/forum/topic/how-to-have-a-custom-turret-skin-in-your-map-t3762/?part=1
But anytime I check my turret_red.mdl in Portal 2 Authorising Tools model viewer the turrrt_casing.vtf texture shows up as missing texture. I've been banging my head against the keyboard to figure out a solution but I'm out of ideas.
The Model Viewer says "*** ERROR *** Can't load VMT" if it's any clue.
< >
Showing 1-2 of 2 comments
Rooke 39 22 Jan, 2024 @ 6:05pm 
Open the properties for "npc_portal_turret_floor" then click the "Edit" button so you're NOT doing a smart edit.
Then add property "rendercolor" and for the value put in the RGB value:

255 0 0 - Red
0 255 0 - Green
0 0 255 - Blue

Change the values from 0 to 255 for a combination that gives you the color you want.
MustNotMust 3 22 Feb, 2024 @ 12:57pm 
Hi, I worked out my error a month ago and it works now, soI forgot to explain where I did my ♥♥♥♥ up
First the textures for turret_red.mdl
When I started to recolour the texture of the turret I forgot to do it in Gimp, so that I can add an alpha channel layer, the one resopnsible for the transparency of the image
Secondly, the vscripts, I used a vscript:
function ChangeModel()
{
Entities.FindByName(null,"modelname").SetModel("path/to/my/model.mdl")
}
This means that when you place the Turret entity in hammer you have to give it a name, like Suzie
Then you change the Entities.FindByName(null,"modelname") to Entities.FindByName(null,"Suzie") so all turrets named Suzie will be changed to the new turret model you've been working on
< >
Showing 1-2 of 2 comments
Per page: 1530 50