Ikariam Research Times

By HomerOfXi Last update Sep 16, 2009 — Installed 43,274 times.

Tips to debug

in
Subscribe to Tips to debug 4 posts, 2 voices



oliezekat Scriptwright
FirefoxWindows

Hi,

Still not work for me :o(

Could you add some GM_log() where it could fail, please.

 
HomerOfXi Script's Author
FirefoxWindows

Hi oliezekat. Could you let me know what is occuring? Does the text "Not enough research points." Still appear? Does anything show in the error console? Thanks for the feedback!

Also, I will look into using the GM_log() function. This is my first script so please be patient with me. :)

P.S. I bow down to your Ikariam v3 Empire Board script. I have used it for a long time and absolutely could not live without it!!

 
HomerOfXi Script's Author
FirefoxWindows

Okay...I think I may have solved another issue regarding points over 1,000. I mistakenly thought the javascript function String.replace() would replace all occurrences of the target value. It seems to only replace the first. Unfortunatley, I only have a small city on the test server so I couldnt test very many cases.

Give it a try now though and let me know if it works.

Also I added lots of debug messages as you suggested so that it will provide more feedback for me if it still isnt operating properly.

Thanks!

 
oliezekat Scriptwright
FirefoxWindows

It's fine now ! :o)

You could remove GM_log() or set option (into source-code) to disable them ;o)

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