Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Adding Models and Textures

Learn more on how to use Sandbox, or submit your own tutorials or resources.
Post Reply
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Adding Models and Textures

Post by Leo_V117 »

Right, im going to show you guys how to add your own custom models and textures, or, add models and textures that have been taken from cube 2/cube or any other software that is like PAS.

Firstly. Textures.

Everybody needs them to make a good map, agreed?

Okay, the texture files must be either *.jpg or *.bmp or *.png, thats all i work with for textures.
im using *.jpg, but the idea is the same. It makes no difference what you use.

Step 1: Make a folder in your "packages" folder and call it mytextures.
Step 2: Copy your preferred textures into that folder and give them a simple name. Eg. texture1, texture2, texture3... etc. (this makes the coding easier)
Step 3: copy a "package.cfg" file from any other textures folder and paste it into your new folder.
Step 4: Delete everything from the config file, and type:

Code: Select all

// "yourname" Custom Textures

setshader stdworld
Step 5: take the name of your textures and type this into the config file:

Code: Select all

texture 0 "mytextures/texture1.jpg"
If you have more textures, for example 5. this is what the code should look like:

Code: Select all

texture 0 "mytextures/texture1.jpg"
texture 0 "mytextures/texture2.jpg"
texture 0 "mytextures/texture3.jpg"
texture 0 "mytextures/texture4.jpg"
texture 0 "mytextures/texture5.jpg"
Now that the textures are coded in, all we need to do is allow the software to "register" the textures.

Step 1: open the "data" folder.
Step 2: find the file "default_map_settings.cfg" and open it.
Step 3: scroll all the way to the bottom of the list and below where it says this:

Code: Select all

texture 0 "golgotha/water2.jpg"
texscroll .2 -.2
texture 1 golgotha/water2over.png

setshader stdworld
You type this directly below:

Code: Select all

exec packages/mytextures/package.cfg
That section of the script should now look like this:

Code: Select all

texture 0 "golgotha/water2.jpg"
texscroll .2 -.2
texture 1 golgotha/water2over.png

setshader stdworld

exec packages/mytextures/package.cfg
now, save that and test it out.

Now for the models. Im taking them from Cube 2. Credited as always.

Step 1: go to "C:\Documents and Settings\Leo\Desktop\PlatinumArtsSandbox2.5\packages\models\doors"
Step 2: find your wanted folder. For example "C:\Documents and Settings\Leo\Desktop\Cube 2\Sauerbraten\packages\models\doors"
Step 3: copy the folder: "door_01" and paste it in the doors folder in PAS
Step 4: Open up "default_map_models" in the "data" folder in PAS.
Step 5: at the bottom of the config file, type this:

Code: Select all

mmodels "doors/door_01"
Step 6: save the config file and test out the models.

If any of these dont work, let me know and tell me your problem.

Credits to the creators of Cube 2 and PAS for the models.
Post Reply