Online addon check failure

Where bugs go to lie down and rest

Moderator: Moderator

Message
Author
aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Online addon check failure

#1 Post by aardvark »

I recently posted a couple of my addons to the te4.org addon page in response to several requests to do so. I'm given to understand that addons can't be used online unless they're so posted. The problem is that even though I've posted them, people still complain that they fail validation. I've triple checked the addons' MD5 hashes against te4_log.txt; they are identical (copied and pasted from there, in fact).

The only thing I can figure is that something is failing on the server. Without access to the server code, I can only guess at the problem.

Everything is right on my end. What gives?

daftigod
Archmage
Posts: 300
Joined: Fri Feb 18, 2011 6:15 am

Re: Online addon check failure

#2 Post by daftigod »

aardvark,

if you have been editing your addon with ToME still open, the new md5 hash is added to the end of the te4.log, without deleting the old md5 hash. Make sure that you are either 1.) using the most recent m5 hash for your addon at the end of te4.log (search for md5 until you get to the last one), or 2.) restart ToME before you pull the m5 hash out of the log file, which guaruntees that the log file will be overwritten with a fresh version.

Hope this helps

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: Online addon check failure

#3 Post by aardvark »

daftigod wrote:if you have been editing your addon with ToME still open, the new md5 hash is added to the end of the te4.log, without deleting the old md5 hash.
That's useful to know, but no. It's from a clean restart of ToME after copying the zipped and renamed addon to the proper directory.

I have the terrible suspicion that the problem is the server side code making unsafe assumptions about module and addon names.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Online addon check failure

#4 Post by darkgod »

Unsafe as in ?
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: Online addon check failure

#5 Post by aardvark »

Assumptions about what characters will be in a module or addon name? In another thread, lukep mentioned that he didn't think addon names could have hyphens. I replied that mine all did and worked fine, but since I'd never tried them online before....

When I checked Module.lua and PlayerProfile.lua, I found it sent the addon name to the server as "[module short_name]-[addon short_name]-x.y.z", where x, y, and z are the version numbers. If the server is splitting the composite addon name on the dashes, mine (tome-lib-fix-1.0.0) would be chopped to bits.

This is purely speculation on my part, but it's my first thought when so many people report problems.

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Online addon check failure

#6 Post by darkgod »

Well, in the case of the library fix addon, your page on te4.org says short_name to be "lib_fix" while the init.lua says it's "lib-fix".
And the page when you edit does say you should only use _
This is indicative actually, anything will work: as long as you use the same short_name everywhere ! :)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

omero
Higher
Posts: 60
Joined: Thu Feb 07, 2013 12:42 pm

Re: Online addon check failure

#7 Post by omero »

After the clarifications in the other thread http://forums.te4.org/viewtopic.php?f=42&t=36491,
I started a new character, but this is what I get on 'stdout':

Code: Select all

[LOG]   #LIGHT_RED#Online profile disabled(switching to offline profile) due to bad game addon version [addon: lib-fix].

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: Online addon check failure

#8 Post by aardvark »

darkgod wrote:Well, in the case of the library fix addon, your page on te4.org says short_name to be "lib_fix" while the init.lua says it's "lib-fix".
And the page when you edit does say you should only use _
This is indicative actually, anything will work: as long as you use the same short_name everywhere ! :)
Well... belgium! You're right and I was wrong. Not sure how I mistyped it and missed the discrepancy on the recheck. I've changed it to "lib-fix" to match the file.

Out of curiosity, if any characters work, why the "only letters and underscores" admonishment?

shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Re: Online addon check failure

#9 Post by shonen »

Does this mean we can re-download the two plugins and they'll work in online mode now? It still shows a 2/9 upload date on the addons page.

BTW, thanks for taking the time to post these, the Lore library issue is a pain.

S

aardvark
Wyrmic
Posts: 200
Joined: Wed Aug 22, 2012 12:16 am

Re: Online addon check failure

#10 Post by aardvark »

shonen wrote:Does this mean we can re-download the two plugins and they'll work in online mode now?
You shouldn't even need to re-download anything. The library fix should work now (if not, I want to know about it) and the unlearning fix should have worked before (having been done correctly the first time, I think).

darkgod
Master of Eyal
Posts: 10751
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: Online addon check failure

#11 Post by darkgod »

aardvark wrote:
darkgod wrote:Well, in the case of the library fix addon, your page on te4.org says short_name to be "lib_fix" while the init.lua says it's "lib-fix".
And the page when you edit does say you should only use _
This is indicative actually, anything will work: as long as you use the same short_name everywhere ! :)
Well... belgium! You're right and I was wrong. Not sure how I mistyped it and missed the discrepancy on the recheck. I've changed it to "lib-fix" to match the file.

Out of curiosity, if any characters work, why the "only letters and underscores" admonishment?
Well the server doesnt care; however the OS might care which characters are allowed in a filename; so better be safe than sorry
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Re: Online addon check failure

#12 Post by shonen »

Still no luck...
lib-fix-error.png
lib-fix-error.png (35.74 KiB) Viewed 2710 times
Could be me, it's 2AM and I'm killing off characters with dumb mistakes, but I can't see what I could do wrong.

S

omero
Higher
Posts: 60
Joined: Thu Feb 07, 2013 12:42 pm

Re: Online addon check failure

#13 Post by omero »

shonen wrote:Still no luck...
Same here and I did remove previous addon version and downloaded it again just to be on the safe side.

Code: Select all

[LOG]   #LIGHT_RED#Online profile disabled(switching to offline profile) due to bad game addon version [addon: lib-fix].

daftigod
Archmage
Posts: 300
Joined: Fri Feb 18, 2011 6:15 am

Re: Online addon check failure

#14 Post by daftigod »

needs to be named tome-*.teaa

or tome-lib-fix.teaa

shonen
Cornac
Posts: 38
Joined: Tue Feb 05, 2013 11:09 pm

Re: Online addon check failure

#15 Post by shonen »

needs to be named tome-*.teaa

or tome-lib-fix.teaa
... that's in init.lua? I just tried that, but it merely caused the entire module not to be recognized. Was hoping that wouldn't be included in the checksum. :(

shonen

Post Reply