Author Topic: Decal Downloader Beta  (Read 6132 times)

Well I made the decal downloader for Retail and it kinda works but it need fixing.
First off it will make User who are joining download the Face/decal but for them to see/use the new Decals they must restart Blockland.

Known issues: Not Downloading ether the Decal it self or the mini icon for the Menu.

How to use it:
You put the Decals.cs file into your Blockland/add-ons/ Folder.
To add your Decals you must open the decals.cs with notepad and you should see this:
Code: [Select]
datablock DecalData(DecalParticle)
{
//Face Decals
   textureName = "base/data/shapes/player/faces/smileyGrom";
   textureName = "base/client/ui/avatarIcons/face/smileyGrom";
// Chest Decals
//   textureName = "base/data/shapes/player/decals/mod-hash";
//   textureName = "base/client/ui/avatarIcons/decal/mod-hash";
};
Rename the mod-hash and smileygrom to your own Decals but make sure you do not change the name to some thing that doesn't exist or Blockland will Get errors.
To add more simply do some thing like this:
Code: [Select]
datablock DecalData(DecalParticle)
{
//Face Decals
   textureName = "base/data/shapes/player/faces/smileyGrom";
   textureName = "base/client/ui/avatarIcons/face/smileyGrom";
   textureName = "base/data/shapes/player/faces/smileyhair";
   textureName = "base/client/ui/avatarIcons/face/smileyhair";
// Chest Decals
   textureName = "base/data/shapes/player/decals/mod-hash";
   textureName = "base/client/ui/avatarIcons/decal/mod-hash";
   textureName = "base/data/shapes/player/decals/mod-girl";
   textureName = "base/client/ui/avatarIcons/decal/mod-girl";
};
Take note that the // used are in front of the scripts so Blockland ignores them and they are there to show you an example so ether Rename mod-hash to a real Decal or just leave it for future Reference.
Do not ever Delete the // front of Chest Decals & Face Decals EVER!
Once you have done all the Decals you want when you start a server make sure you Tick decals in the addons menu.

Unsure of what I just said or have any Questions just ask, and yes I don't know much about scripting.

so if i have a custom face and go into a almost full server, whoever has this mod will download the face automatically and will see it when i spawn?

Badspot

  • Administrator
so if i have a custom face and go into a almost full server, whoever has this mod will download the face automatically and will see it when i spawn?

Downloads only happen from server->client.  You cannot upload files to the server when you connect.

Sorry for SUPER OMEGA ALMIGHTY BUMP

But could someone please make a less buggy, or fully working one of these?

« Last Edit: August 29, 2008, 04:21:31 AM by SolarFlare »

Not tested but this should work, if Packer's does. Drop it into your Add-Ons folder and check it in the Add-Ons menu. It works automatically, you don't have to edit the script. It simply reads your faces/decals folder and does everything for you.

The second file is an icon downloader, which is like the decal downloader except instead of decals, it works on item icons and chat icons.
No, sorry but it didn't work...There was no communication with the server and client, when it came to downloading decals.

I'm pretty sure this broke in v8.

I'm pretty sure this broke in v8.
Yeah it sorta did, but my updated one works fine but I'm not going to type out how to use it.

SolarFlare's version, maybe the original too, breaks Add-On loading for me and several others (See last page).

It didn't even work for me when I made it force-write the 'Companion Cube' heart decal I have to the file to make it download to people... I hoped that since the auto-downloading of textures doesn't download that file, yours might make it work.

SolarFlare's version, maybe the original too, breaks Add-On loading for me and several others (See last page).

It didn't even work for me when I made it force-write the 'Companion Cube' heart decal I have to the file to make it download to people... I hoped that since the auto-downloading of textures doesn't download that file, yours might make it work.
I'm sure you can work out what I did:

SolarFlare's version, maybe the original too, breaks Add-On loading for me and several others (See last page).

It didn't even work for me when I made it force-write the 'Companion Cube' heart decal I have to the file to make it download to people... I hoped that since the auto-downloading of textures doesn't download that file, yours might make it work.
I'm sure you can work out what I did:
Does this one work without restarting?

No, impossible as far as my knowledge goes. If you really REALLY want some one to see your face decal tell them to restart Blockland and rejoin. Takes what 30-60 seconds.

I know you can force Blockland (TGE) to recognize new files by running setModPaths(getModPaths()); in the console, but I'm not sure what the function is to repopulate the decal list.

I know you can force Blockland (TGE) to recognize new files by running setModPaths(getModPaths()); in the console, but I'm not sure what the function is to repopulate the decal list.
Monty said it = very bad idea.

setModPaths(getModPaths()); isn't a bad idea.  Space Guy might know the method for repopulating the decal list.