Page 1 of 1
Uploading Addon Issues
Posted: Sun Oct 30, 2016 6:15 pm
by VirtualTim
So I've created a new addon, and I can load it from the addons menu, and it appears to work fine.
However when I create a new game in developer mode with the addon enabled, I don't see anything under the "Register New Addon" menu. It appears under "Generate addons MD5" though.
Any ideas what could be going on?
Anyway, the whole reason I'm trying to upload it is because the MD5 check stops me playing online. Is there any way to disable that too?
Edit: I attached the file. Just remove the ".txt" from the end of it.
Re: Uploading Addon Issues
Posted: Mon Oct 31, 2016 6:52 pm
by Crim, The Red Thunder
Most likely there's an error with the authorname or some required field in the base init.lua
Post the contents of that file please?
Re: Uploading Addon Issues
Posted: Mon Oct 31, 2016 10:53 pm
by VirtualTim
Cheers for the reply Crim, here's my init.lua
Code: Select all
-- ToME - Tales of Maj'Eyal:
-- Copyright (C) 2009-2016 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
-- 0.0.1 Initial Release
--[[
Changes:
Reduce stealth cooldown 10 -> 5, changed max power 64 -> 150
Traps now last 10x as long (8 -> 80)
Traps have their cooldowns halved
Husks can be created from unique creatures (the description already makes this seem possible)
Husks don't unlearn bone shield
Aura Mastery max size +5 -> +7
Aura Mastery min decay rate 3% -> 1%
--]]
long_name = "Better Mages and Rogues"
short_name = "ClassBuffs"
for_module = "tome"
version = {1,4,9}
addon_version = {0, 0, 1}
weight = 500
author = { 'VirtualTim' }
homepage = "http://tome.te4.org/"
description = [[Minor buffs to some classes.]]
tags = {'stealth', 'rogue', 'necromancer'}
hooks = false
overload = false
superload = true
data = false
Re: Uploading Addon Issues
Posted: Tue Nov 01, 2016 12:06 am
by HousePet
Author field looks different to mine: author = { "HousePet", "" }
Re: Uploading Addon Issues
Posted: Tue Nov 01, 2016 12:39 am
by Zizzo
HousePet wrote:Author field looks different to mine: author = { "HousePet", "" }
[sound F/X: source diving] Judging from the official addons, that second field is apparently intended for an e-mail address. At least, that's what I've put in all of mine. If you don't want to include an e-mail address, apparently you can also do it the way HousePet is doing it.

Re: Uploading Addon Issues
Posted: Wed Nov 02, 2016 6:53 am
by VirtualTim
HousePet wrote:Author field looks different to mine: author = { "HousePet", "" }
I gave that a shot, changing the line to
, but that didn't change anything.
Re: Uploading Addon Issues
Posted: Wed Nov 02, 2016 8:40 am
by HousePet
Okay next:
Is the folder name "tome-ClassBuffs" ?
Could be a caps issue.
Re: Uploading Addon Issues
Posted: Thu Nov 03, 2016 5:50 am
by VirtualTim
I edit the original post of include the actual addon.
I think this like should work:
http://forums.te4.org/download/file.php?id=3120
The file is called "tome-ClassBuffs-.teaa". It's got an extra dash on the end, but that's how other addons seem to do it.
Re: Uploading Addon Issues
Posted: Thu Nov 03, 2016 8:31 am
by HousePet
Are you packing the addon yourself?
You need to leave it as a folder and the game will pack and label it.
Re: Uploading Addon Issues
Posted: Thu Nov 03, 2016 11:40 am
by VirtualTim
I was. I unzipped it and put it in the folder addons/tome-ClassBuffs, it looks like everything works!
It's a little counter-intuitive that it can load compressed addons, but they have to be uncompressed to upload, but I'm glad it's working now.
Thanks for the help.