Help with adding new textures

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
stealthpanda1
Member
Member
Posts: 18
Joined: September 3rd, 2012, 2:34 pm

Help with adding new textures

Postby stealthpanda1 » January 23rd, 2013, 5:31 pm

Hey all, I havn't had musch time lately, but today, I was trying to figure out how to add some textures of mine to pas, and was encountering some problems. Here's my code so far:


// mytextures By Stealthpanda
setshader stdworld
texture 0 "mytextures/1_met.jpg"
texture 0 "mytextures/1_store.jpg"
texture 0 "mytextures/2_store.jpg"
//texture 0 "mytextures/4_wall.jpg"
//texture 0 "mytextures/5_wall.jpg"
exec packages/mytextures/packages.cfg

Help!

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Help with adding new textures

Postby chocolatepie33 » January 23rd, 2013, 7:01 pm

1. use the [code][/code] button when dealing with code.

2. The final line (exec packages/...) needs to go at the end of data/default-map-settings.cfg (or a similarly named file), that way the commands are executed and the textures are added when you create a new map.
Julius wrote:Contribute to http://www.opengameart.org NOW!

Save the wiki!

stealthpanda1
Member
Member
Posts: 18
Joined: September 3rd, 2012, 2:34 pm

Re: Help with adding new textures

Postby stealthpanda1 » January 23rd, 2013, 7:50 pm

Thanks, got it working, and also, How would one make their textures smaller, sayyy, by 50%?

chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Help with adding new textures

Postby chocolatepie33 » January 23rd, 2013, 10:44 pm

use the command /vscale ## where ## is the decimal percent (e.g. 50% = 0.5) you want to scale it down (or up) to.
Julius wrote:Contribute to http://www.opengameart.org NOW!

Save the wiki!


Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 3 guests