Author Topic: Addon Port Problem  (Read 800 times)

I know, there's hundreds of these topics, but I can't seem to find what I need in any of them...

I'm working on porting two add-ons (Kaje's Candle light and particle) independently for my server, but it seems like no matter what I do, I can't get the add-ons to appear in the checklist, or in game.

-I've added the 'server.cs' file to both of the zips and put exec("./Particle_Candle.cs"); and exec("./Light_Candle.cs"); to their appropriate files
-I added a description file to both of them, listing the title, creator, and additional information
-I transfered the main .cs files containing all of the information on both of the add-ons

I feel like I've done everything I need to do, yet only the Light_Candle appears in the add-on checklist, and isn't in the light drop-down in the wrench GUI (in game).

Can someone please tell me what I might be doing?

Not every thing is simple port work, some stuff is incompatible.

 Here, let me try to figure this out, and I will send you the code. Give me a bit.

 EDIT: Done, try this as your Server.cs. Remember to edit it. If it doesn't work, tell me.

Code: [Select]
//we need the Basic Particle add-on for this, so force it to load
%error = ForceRequiredAddOn("Particle_Basic");

if(%error == $Error::AddOn_Disabled)
{
   //A bit of a hack:
   //  we just forced the particle to load, but the user had it disabled
   //  so lets make it so they can't select it
   (Namehere).uiName = "";
}

if(%error == $Error::AddOn_NotFound)
{
   //we don't have the jeep, so we're screwed
   error("ERROR: Particle_(namehere) - required add-on Particle_Basic not found");
}
else
{
exec("./Particle_(Namehere).cs");
« Last Edit: August 25, 2008, 03:27:56 PM by imthehunter »