someAddon.lua is not allowed for upload

Posts from previous Beta sessions

someAddon.lua is not allowed for upload

Postby Xaarn » Thu Apr 10, 2008 4:41 am

I am trying my hand at creating my own addon for Roster 2.0 and have hit a snag that I'm sure is something simple. I think I have followed the directions in the Wiki but seem to be missing something. I set the file name for an additional lua file in the constructor for my addon. When I try to upload the file however, it gives me "someAddon.lua is not allowed for upload". Is there some other place I have to grant upload privs for that file? I have set Other LUA Data Level to Officer in the Update Access block on the Roster config and am logged in as Admin.
Last edited by Xaarn on Thu Apr 10, 2008 4:49 am, edited 2 times in total.
User avatar
Xaarn
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Fri Sep 22, 2006 9:17 pm

someAddon.lua is not allowed for upload

Postby zanix » Thu Apr 10, 2008 5:32 am

Can you post the constructor code for your addon from update_hook.php
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

someAddon.lua is not allowed for upload

Postby Ulminia » Thu Apr 10, 2008 7:18 am

i beleave your update hock class has to be the same as the lua files name i think followed by Update

ex
Code: Select all
class GroupCalendarUpdate
{


try that
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

Re: someAddon.lua is not allowed for upload

Postby Xaarn » Thu Apr 10, 2008 8:23 am

Here is the first part of the update class showing the class name and the constructor. I thought the update class needed to be named addonnameUpdate.

Code: Select all
class raidtrackerUpdate
{
   // Update messages
   var $messages = '';

   // Addon data object, recieved in constructor
   var $data;

   // LUA upload files accepted. We don't use any.
   var $files = array();

   // Character data cache
   var $chars = array();

    /**
    * Constructor
    *
    * @param array $data
    *    Addon data object
    */
   function raidtrackerUpdate($data)
   {
      $this->data = $data;
      $this->files[] = 'CT_RaidTracker';
   }
User avatar
Xaarn
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Fri Sep 22, 2006 9:17 pm

Re: someAddon.lua is not allowed for upload

Postby Xaarn » Thu Apr 10, 2008 8:29 am

Ulminia wrote:i beleave your update hock class has to be the same as the lua files name i think followed by Update

ex
Code: Select all
class GroupCalendarUpdate
{


try that


I tried changing the class name to the name of the input file and it doesn't even show up on the list of files when you go to the Update Profile screen so I don't think that's it.
User avatar
Xaarn
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Fri Sep 22, 2006 9:17 pm

someAddon.lua is not allowed for upload

Postby Ulminia » Thu Apr 10, 2008 10:44 am

try using 'CT_RaidTracker'
Ulminia of Zangarmarsh
Zonous of Zangarmarsh
Author of Roster Gallery
WoWRoster-Profiler Redesigner
User avatar
Ulminia
WoWRoster.net Dev Team
WoWRoster.net Dev Team
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 1223
Joined: Tue Jul 04, 2006 4:41 pm
Location: New Brunswick, Canada
Realm: Zangarmarsh (PvE) - US
gmail/gtalk: ulminia@gmail.com

someAddon.lua is not allowed for upload

Postby zanix » Thu Apr 10, 2008 11:19 am

The name of the class and the name of the constructor must be the name of the folder the addon is installed to plus 'Update'

Make sure the addon is enabled in the addon manager and that the name is spelled the same as the actual file
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5546
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

someAddon.lua is not allowed for upload

Postby PleegWat » Thu Apr 10, 2008 1:29 pm

You need to specify the filename all lowercase
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

Re: someAddon.lua is not allowed for upload

Postby Xaarn » Thu Apr 10, 2008 8:48 pm

PleegWat wrote:You need to specify the filename all lowercase


Thanks, that was it.
User avatar
Xaarn
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Fri Sep 22, 2006 9:17 pm


Return to Archived

Who is online

Users browsing this forum: No registered users and 1 guest

cron