Help with adding new textures

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the when posting support requests.

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
stealthpanda1
Member
Member
Posts: 18
Joined: September 3rd, 2012, 2:34 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

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.

stealthpanda1
Member
Member
Posts: 18
Joined: September 3rd, 2012, 2:34 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

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
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

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.


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Sandbox General Support”

Who is online

Users browsing this forum: No registered users and 7 guests