Author Topic: How to make the add on to require any face or decal?  (Read 780 times)

There is a cs file, his name is "server", and like
Code: [Select]
%errorA = ForceRequiredAddOn("Face_IPO");
%errorA = ForceRequiredAddOn("Decal_Crazyswar");
%errorA = ForceRequiredAddOn("Decal_Hoodie");
//if(%errorA == $Error::AddOn_Disabled)
if(%errorA == $Error::AddOn_NotFound)
   error("ERROR: Gamemode_Zombie - required add-on Gamemode_Zombie not found");
else
How can I do that it will require any face or decal in my marked addons?

You can't require clients to have faces or decals as they're client sided.

ForceRequiredAddOn also only requires the SERVER to be running the inputed add-on. But as faces and decals are client sided, the server can't even do that.

What you're doing above also wouldn't work under any circumstances because you're overwriting the variable.

ForceRequiredAddOn also only requires the SERVER to be running the inputed add-on. But as faces and decals are client sided, the server can't even do that.

What you're doing above also wouldn't work under any circumstances because you're overwriting the variable.
Oh ok, thanx.
Do you have any idea how to do that?
« Last Edit: March 11, 2015, 05:13:20 PM by BlockAlpha »

Oh ok, thanx.
Do you have any idea how to do that?
Do what? I already said that you can't.

Do you remember the Player_beta addon?
Here a link for you, check it.
http://www.mediafire.com/download/k2tk450itw2y00e/Player_Beta.zip
It does somehow require some of the faces in my add-ons. There is a file there which names Thumbs.db.
« Last Edit: March 11, 2015, 05:35:15 PM by BlockAlpha »

Do you remember the Player_beta addon?
Here a link for you, check it.
http://www.mediafire.com/download/k2tk450itw2y00e/Player_Beta.zip
It does somehow require some of the faces in my add-ons. There is a file there which names Thumbs.db.
Thumbs.db is just a leftover file for generated thumbnail images. It has nothing to do with the add-on. I'm not seeing anything in that add-on's code that would make it require a decal or face. Why are you trying to make a server add-on that depends on the server having a certain client add-on?

Thumbs.db is just a leftover file for generated thumbnail images. It has nothing to do with the add-on. I'm not seeing anything in that add-on's code that would make it require a decal or face. Why are you trying to make a server add-on that depends on the server having a certain client add-on?
This:

Not work with any decal except the basic which everyone gets when they download the game. (for example: Decal_Hoodie, Face_Jirue)
Check the player beta AddOn, when you'll play with this player model you will understand what I'm saying..

Not work with any decal except the basic which everyone gets when they download the game. (for example: Decal_Hoodie, Face_Jirue)
Check the player beta AddOn, when you'll play with this player model you will understand what I'm saying..
That beta player doesn't appear do anything special to work with other add-ons, and it definitely doesn't require them. How are you handling decals in your add-on?

That beta player doesn't appear do anything special to work with other add-ons, and it definitely doesn't require them. How are you handling decals in your add-on?
Actually I don't. lol
This is all the problem, I have no idea how this works..
« Last Edit: March 12, 2015, 01:57:50 PM by BlockAlpha »

Actually I don't. lol
This is all the problem, I have no idea how this works..
Okay, what code do you have regarding the appearance of your player type?

I'm pretty sure decals and faces work through the setDecalName and setFaceName methods, which tell everybody the name in question. The client then checks to see if they have that image, and if so, applies it to predefined surfaces on the model. If not, it applies a default decal. Could be wrong about this, though; haven't worked with them much, and the appearance system wasn't really designed with expansion in mind.

Okay, what code do you have regarding the appearance of your player type?

I'm pretty sure decals and faces work through the setDecalName and setFaceName methods, which tell everybody the name in question. The client then checks to see if they have that image, and if so, applies it to predefined surfaces on the model. If not, it applies a default decal. Could be wrong about this, though; haven't worked with them much, and the appearance system wasn't really designed with expansion in mind.
Omg, I'm an idiot. just found out that the ifl files are a list of faces/decals:
Code: [Select]
base/data/shapes/player/faces/smiley.png
Add-Ons/Face_Mythbusters/Jamie.png
Add-Ons/Face_Mythbusters/AdamSavage.png
Add-Ons/Face_Jirue/Orc.png
Add-Ons/Face_Jirue/Male07Smiley.png
Add-Ons/Face_Jirue/KleinerSmiley.png
Add-Ons/Face_Jirue/ChefSmiley.png
Add-Ons/Face_Jirue/BrownSmiley.png
Add-Ons/Face_Default/smileyRedBeard2.png
Add-Ons/Face_Default/smileyRedBeard.png
Add-Ons/Face_Default/smileyPirate3.png
Add-Ons/Face_Default/smileyPirate2.png
Add-Ons/Face_Default/smileyPirate1.png
Add-Ons/Face_Default/smileyOld.png
Add-Ons/Face_Default/smileyFemale1.png
Add-Ons/Face_Default/smileyEvil2.png
Add-Ons/Face_Default/smileyEvil1.png
Add-Ons/Face_Default/smileyCreepy.png
Add-Ons/Face_Default/smileyBlonde.png
Add-Ons/Face_Default/memeYaranika.png
Add-Ons/Face_Default/memePBear.png
Add-Ons/Face_Default/memeHappy.png
Add-Ons/Face_Default/memeGrinMan.png
Add-Ons/Face_Default/memeDesu.png
Add-Ons/Face_Default/memeCats.png
Add-Ons/Face_Default/memeBlockMongler.png
Add-Ons/Face_Default/asciiTerror.png
Code: [Select]
base/data/shapes/player/decals/AAA-None.png
Add-Ons/Decal_WORM/worm_engineer.png
Add-Ons/Decal_WORM/worm-sweater.png
Add-Ons/Decal_Jirue/LinkTunic.png
Add-Ons/Decal_Jirue/Knight.png
Add-Ons/Decal_Jirue/HCZombie.png
Add-Ons/Decal_Jirue/DrKleiner.png
Add-Ons/Decal_Jirue/DKnight.png
Add-Ons/Decal_Jirue/Chef.png
Add-Ons/Decal_Jirue/Archer.png
Add-Ons/Decal_Jirue/Alyx.png
Add-Ons/Decal_Hoodie/Hoodie.png
Add-Ons/Decal_Default/Space-Old.png
Add-Ons/Decal_Default/Space-New.png
Add-Ons/Decal_Default/Space-Nasa.png
Add-Ons/Decal_Default/Mod-Suit.png
Add-Ons/Decal_Default/Mod-Prisoner.png
Add-Ons/Decal_Default/Mod-Police.png
Add-Ons/Decal_Default/Mod-Pilot.png
Add-Ons/Decal_Default/Mod-DareDevil.png
Add-Ons/Decal_Default/Mod-Army.png
Add-Ons/Decal_Default/Meme-Mongler.png
Add-Ons/Decal_Default/Medieval-YARLY.png
Add-Ons/Decal_Default/Medieval-Tunic.png
Add-Ons/Decal_Default/Medieval-Rider.png
Add-Ons/Decal_Default/Medieval-ORLY.png
Add-Ons/Decal_Default/Medieval-Lion.png
Add-Ons/Decal_Default/Medieval-Eagle.png
I'm just wondering if those face.ifl and decal.ifl files could contain any face/decal by a short code..
« Last Edit: March 12, 2015, 03:23:45 PM by BlockAlpha »