Namespace is not working?

Subscribe to Namespace is not working? 5 posts, 4 voices

 
itsjareds Scriptwright

I need to have my users update my script every time I release a new one, so I created an auto-updater. It works fine, but my only problem now is it creates a new userscript when I install the new one.

I think I am using the namespace right, can anyone see what's wrong? This is the metadata for my older and newer version:

Old version:

// ==UserScript==
// @name Spogg Improvement Pack v1.3.0
// @namespace http://itsjareds.scienceontheweb.net/misc/sip/
// @version 1.3.0
// @author KnifeySpooney
// @description Adds features to the online community Spogg.
// @include http://*.spogg.com/*
// ==/UserScript==

New version:

// ==UserScript==
// @name Spogg Improvement Pack v1.3.1
// @namespace http://itsjareds.scienceontheweb.net/misc/sip/
// @version 1.3.1
// @author KnifeySpooney
// @description Adds features to the online community Spogg.
// @include http://*.spogg.com/*
// ==/UserScript==

And yes, both of the files are in http://itsjareds.scienceontheweb.net/misc/sip/ .

 
Joel H Scriptwright

The namespace is for distinguishing scripts from other scripts of the same name. For example, I might use my user page on us.o as a namespace for my scripts, so that my "script name here" script is kept separate from a "script name here" script that you wrote.

The problem you're having can, I think, be solved by changing the name of your script to "Spogg Improvement Pack" without the version number attached; both of the scripts would have the same name. The user would have to determine the version from the version tag, if they should even be interested.

-Joel

 
itsjareds Scriptwright

Thanks -- I remember reading that but I guess I forgot. Too bad the namespace does not work for this reason too.

 
jerone Scriptwright

To be short: @name should be the same for every update. Everything else can be off.

 
w35l3y Scriptwright

@namespace should be the same too