Author Topic: Forcing a texture to be downloaded in v21  (Read 540 times)

How exactly would I achieve this?
In prior versions, we could do this:

Code: [Select]
datablock decalData(myDecalData)
{
     textureName = "./file.png";
     preload = true;
};

But as of v21, the decalData datablock class was removed.
I've tried using prints, but those limit the texture size to exactly 512x512.

I've done a temporary fix which is decreasing the width to 512 and adding some transparent padding to the bottom of the image (texture I need to use is 541x203) and then making it a print but I'd appreciate it if anybody could find a better way.

a cube with an image on it? i don't think that vehicles have a limit on their textures, just have it unspawnable

Having this problem too. Addons like Admin Shields were broken when decalData was chopped out of Blockland after r1682.


I am working on a fix for Admin Shields and whatever the fix for this is will help me out. Hope Zack0Wack0 doesn't mind. Its not like I'm gonna claim I made it.


UPDATE: Found a possible messy fix involving a File Downloader, but there's gotta be a better fix than that.
« Last Edit: August 31, 2012, 07:56:24 PM by Randomness »