can't upload script

in Userscripts.org discussion
Subscribe to can't upload script 30 posts, 6 voices



inchy Scriptwright

i can not upload my script..
can you hel me please..

There were problems with the following fields:
Name can't be blank
Src Missing beginning of metadata header: // ==UserScript==

that is the problem

 
JoeSimmons Scriptwright

Please post your metadata.

 
inchy Scriptwright

// ==UserScript==
// @name eRepublik hrvatski prijevod
// @description eRepublik hrvatski prijevod
// @include http://www.erepublik.com/*
// ==/UserScript==

 
JoeSimmons Scriptwright

I think you need a namespace.

// ==UserScript==
// @name eRepublik hrvatski prijevod
// @namespace inchy
// @description eRepublik hrvatski prijevod
// @include http://www.erepublik.com/*
// ==/UserScript==

 
inchy Scriptwright

same again..do not work again..

 
inchy Scriptwright

a have write it in notepad..
shoul I copy it in some other program or ??

 
Marti Scriptwright

@inchy,

Should be more than alright in Notepad... I just copied your original metadata into a user.js file and successfully uploaded it myself with a test script.... not really quite sure what's going on with yours.


Try uploading certain parts of it at a time, with the metadata on the first time... maybe USO is doing some validation elsewhere... dunno for sure.

 
inchy Scriptwright

again the same problem...
i dont konw what to do anymore...

can you give me your emali
i will send you script and you upload it for me ??

 
JoeSimmons Scriptwright

Are you using a textarea upload or file upload? Can you paste the complete source in pastebin and give the link?

 
inchy Scriptwright

file upload because I dont have textarea upload...its not showen to me that option of upload

pastebin???

 
Marti Scriptwright

@inchy,
weird! btw http://pastebin.com/...then copy the url where you pasted it to here.
Might try a different editor... although notepad is about as ascii as it gets.

 
inchy Scriptwright

http://pastebin.com/m11dcd34d

 
Marti Scriptwright

@inchy,

Try indenting your non-meta data comments too... maybe USO is treating top level comments as metadata. I'll try to create a script momentarily with this and see... will need to copy it over to windoze and try there... will take a few moments.

 
inchy Scriptwright

thanks a lot my friend

 
JoeSimmons Scriptwright

There are some characters that uso can't handle. Jesse needs to fix this.

 
Marti Scriptwright

@inchy,

Odd... worked for me without any changes in Windows (XP) Notepad... must be the file itself... try the download link at your pastebin, click it, save it, then try to upload that to USO.


I can't recall if Vista has Save File type options too in Notepad, but if it does I believe it should be UTF-8 or ANSII. XP defaults to ANSII, which is what I uploaded.


Try picking another editor if that fails.

 
JoeSimmons Scriptwright

I tried it (he already sent me it by email) and it didn't work.
Maybe it's your editor inchy. Try writing in Notepad++ or Notepad2 (if you're on windows that is).

 
inchy Scriptwright

i uploaded it finaly..but it doest work..
its sholud translate one page but its not working..

i wil kill my self..i woked on it weeks..

 
Marti Scriptwright

@inchy,

LOL some scripts take time... some of my scripts I test for at least 6 months before even contemplating publishing in a repository.

So what method worked for you?

 
JoeSimmons Scriptwright

You should test it to make sure it works before uploading.

 
inchy Scriptwright

i konw..but the same script works on different language..
i dont understand it

 
Jesse Andrews Admin

email me - anotherjesse@gmail.com your file and I can see what is wrong.

 
JoeSimmons Scriptwright
Jesse Andrews wrote:
email me - anotherjesse@gmail.com your file and I can see what is wrong.
I emailed you about a similar issue.
 
inchy Scriptwright

jesse i emailed you

 
Jesse Andrews Admin

So the issue seems to have to do with trying to oddly encoded files. I've re-introduced the pasting into a text area, which seems to always force UTF-8 (the browser will convert non-UTF8 to the page's content-type of charset=utf-8

Does anyone know if there is a way to force file uploads to be encoded properly as well? It makes sense that the browser wouldn't alter binary formatted files, but if there is a way to say the files are text file and have it encode the upload as UTF-8 on the client side?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel