Author Topic: Add-on won't appear on the add-on list.  (Read 970 times)

Okay so, I made a add-on but it won't appear on the add-on list. I remembered that I knew how to fix it, but I can't remember how I did it.

By the way, the search button is gay. I hate using it.

Edit: Forgot to include script. I am making a MORPG.

Description.txt

Title: HonorMORPG
Author: Honor
Description: MORPG Midevil-Online-Role-Play-Game.


hrpg_commands.cs

function serverCmddisplayHP(%client)
{
  %client.sendHonorMORPGstatus();
}


hrpg_main.cs
package Honormain_Package
{
    function GameConnection::spawnPlayer(%this)
    {
   parent::spawnPlayer(%this);
    }

    function GameConnection::sendHonorMORPGstatus(%this)
    {
   if(!%this.Gold)
       %this.Gold = 0;

   %msg = "<font:arial bold:14>\c6<color:F0FF00>Gold:"@ %this.Gold @".";

   commandtoClient(%this, 'bottomPrint', %msg, 10);
    }
};
activatePackage(Honormain_Package);


server.cs


//DO NOT EDIT ANY OF THE FILES UNLESS YOU HAVE A BACKUP!

//Main Files.
exec("./hrpg_main.cs");

//Command Files.
exec("./hrpg_commands.cs");
« Last Edit: October 23, 2011, 03:07:32 PM by Honorable »

Do you have description.txt?


What is the syntax error the console says? Oh and does it have a namecheck.txt?

Why have you got gameConnection::spawnPlayer in a package in which it only calls the parent?

Remove that, that's unnecessary.

Also,

%client.sendHonorMORPGstatus();

Should be:

sendHonorMORPGstatus(%client);


What is the syntax error the console says? Oh and does it have a namecheck.txt?

There is no syntax error. Its like it never even existed. It is in my Add-on folder. I rebooted my Blockland Client before testing it.

Why have you got gameConnection::spawnPlayer in a package in which it only calls the parent?

Remove that, that's unnecessary.

Also,

%client.sendHonorMORPGstatus();

Should be:

sendHonorMORPGstatus(%client);



I did that and the results are still the same. Its not in my Add-ons List.

There is no syntax error. Its like it never even existed. It is in my Add-on folder. I rebooted my Blockland Client before testing it.

I did that and the results are still the same. Its not in my Add-ons List.
Copy your files to the new location!

In v20 and up, your Blockland files are now stored in My Documents\Blockland (windows) or /Users/<your username>/Documents/Blockland (macintosh)

The update installer attempts to copy over your old add-ons/screenshots/saves but if you have installed Blockland multiple times, are installing to a different location than before or have move your Blockland folder at any time, it might not work.  You will have to manually copy over your files from your old Blockland folder to the new location in your documents folder. 


Can't find old files?

If you are using Vista or Windows 7 and you previously had Blockland installed to the "Program Files" folder, windows may have moved your Blockland saves and screenshots to the "Virtual Store".  The virtual store can be found at C:\Users\<your username>\AppData\Local\VirtualStore.  Note that "AppData" is a hidden folder, so you will have to show hidden files first. 

If you still can't find them you can always search for *.bls to find all Blockland saves on your computer.  In Vista/Win7, go to "My Computer" and type *.bls into the search field in the upper right.  In Windows XP press ctrl+f to open the search dialog.