Large

EU2 Beyond (eu2b)

By Pimp Trizkit Last update Jan 11, 2011 — Installed 9,153 times.

Issues

in
Subscribe to Issues 34 posts, 8 voices



Pimp Trizkit Script's Author
FirefoxWindows

Post your issues here please.

Pimp Trizkit

 
ufol User
FirefoxWindows

Hi. I have tried to install your script on english version of the game - everything works fine. However, the problem's appeared when I installed the script on polish version. I can see all icons, chat, main, roids... an active planet is marked with * and I can also see the name of the planet that is active. However, when I click chat options all the buttons disappear. When I click on something else e.g. main then all chat is white and all icons disappear. Do you have any idea what might be the reason of this error and how to fix it? thanks in advance

 
Pimp Trizkit Script's Author
FirefoxWindows

Well, the script was made on the English version. So, im not sure what language problems there could be between the different languages. Try reading your Error Console (CTRL-SHIFT-J) and see if any errors are being reported. Please tell me here. If you truly want to help me fix this for the polish version I will be needing some collaboration.

Pimp Trizkit

 
ufol User
FirefoxWindows

In error console I have this:
Warning: Unknown property '-moz-opacity'. Declaration dropped.Source File: http://static.empireuniverse2.de/eu2_de.css Line: 141

Warning: Unknown property '-moz-opacity'. Declaration dropped.Source File: http://static.empireuniverse2.de/eu2_de.css Line: 31

Warning: Error in parsing value for 'top'. Declaration dropped.Source File: http://eu2.looki.pl/index.php Line: 0

Warning: Error in parsing value for 'display'. Declaration dropped.Source File: http://eu2.looki.pl/index.php Line: 0

 
Pimp Trizkit Script's Author
FirefoxWindows

Those are all warnings. You will need to look for the Errors, there is a button at the top to filter the view for only Errors.

Make sure you have the script running, open EU2, login to chat, click star system, then click main, then click chat... (is this the point it messes up?, then look for errors now)

Also, if you open the script up. You can change the LOGON value to 1 This will make it display messages in the Error Console about what its doing. Could be useful. (make sure you save the script and reload EU2 to test again)

Do you have skype or google talk (gmail)?

Pimp Trizkitr

 
ufol User
FirefoxWindows

errors 0

I think that script works in the background
It simply doesn't display itself (it looks like it is under the whole cover of graphics etc.)

p.s. I sent you PM with my @ (gmail)

 
jmlf User
FirefoxWindows

Hi.

I'd like to know if possible how to clean all dbase and start again.

ty in advance

JMLF

 
Pimp Trizkit Script's Author
FirefoxWindows

Yes.

0)Close EU2.

1)Open FF. in the address bar type in -> about:config (as if it were a website)

2)Scroll down the list of variables look for the ones below, right click them and hit reset.

greasemonkey.scriptvals.PimpNation/EU2 Beyond.Asteroids
greasemonkey.scriptvals.PimpNation/EU2 Beyond.Fleets
greasemonkey.scriptvals.PimpNation/EU2 Beyond.Planets
greasemonkey.scriptvals.PimpNation/EU2 Beyond.Wormholes
greasemonkey.scriptvals.PimpNation/EU2 Beyond.Wreckages

3)Re-open EU2.

Hope this helps!

Pimp Trizkit

 
Eel User
FirefoxWindows

Reading the source code of the script to troubleshoot some problem parsing Wormholes on the french version of eu2, i came to wonder if the current version was supposed to parse as the objet name the destination coordinates of the wormhole ?

 
Pimp Trizkit Script's Author
FirefoxWindows

I have no clue what you are asking...lol

Wormholes, asteroids, wreckages, fleets and planets all parse the same.

For fleets, planets, and wormholes there is a name field. For wormholes that name field is a number that represents the Star System that the other end of the wormhole goes to.

In the wormhole list it should look something like this:
5131:33:13:34 to 9220
6361:49:62:13 to 4481
6182:29:49:65 to 791
3497:95:83:8 to 6125

Does this help? Im not sure what you are asking. Whats the problem?

Pimp Trizkit

 
Eel User
FirefoxWindows

Well the problem was that Wormholes weren't parsed correctly on French servers : but with your help I found how to have it working as espected (on French servers) :


// } else if ( dBase == Wormholes ) dBase[SS][XX][YY][ZZ].name = ripName(tOrbArray[6]).split(" ")[1];
} else if ( dBase == Wormholes ) dBase[SS][XX][YY][ZZ].name = ripName(tOrbArray[6]).split(" ")[2]

 
Pimp Trizkit Script's Author
FirefoxWindows

What was it displaying as? I would like to fix it so that it will work across all servers.

It would be good to know what EU2 displays as the wormhole name on your server.

on the .COM server, EU2 displays something like:

destination: 8979 (Star system ID)

as the name of the wormhole when you look at it in the star system screen... what does it display to you?

Pimp Trizkit

 
Eel User
FirefoxWindows

Well, it was displaying the string ":" as the name of every wormhole.

This is because on French servers, wormholes are displayed in the stellar system screen as "Cible : 1234 (ID système stellaire)"

(btw, localized French servers are "http://australis.eu2.looki.fr/*" & "http://borealis.eu2.looki.fr/*" )

 
Pimp Trizkit Script's Author
FirefoxWindows

Good to know. I will fix the script. I will have it do a split(":"), then trim off the leading space. Hopefully that will work better for other servers.

Pimp Trizkit

 
Eel User
FirefoxWindows

Since, I'm quite a newbie with Greasemonkey & JS stuff, maybe I should also mention that I yet wonder what are the (double-byte ?) characters you use to delimitate fields & records ont the objects "databases" (through GM_(set|get)* funcs). What are they and how are they encoded in the source code ?

 
Pimp Trizkit Script's Author
FirefoxWindows

Well, its not a GM or JS thing. Its true with all computer stuff. They are characters that are in the extended ASCII character set. These characters are not on the keyboard and have to be entered in "manually". They are not double-byte, as there are no double-byte characters in programing.

I use two of them. I use "¬" and "ì". To type these characters you hold down the ALT key while typing a number on the keypad. "¬" is ALT-170 and "ì" is ALT-141.

the ASCII character set is just a mapping of numbers. There are 256 numbers in one byte, thus all characters can be manually entered by holding down ALT and typing its ASCII code. Here is a chart of all the ASCII codes, when entering in manually you use the DEC column. However, in programing you can enter it in using escape code which accepts the HEX as well. Ever wonder where those %20 in your URL come from? Its the ASCII escape code for a space (in HEX).

http://www.yampe.com/linux/fedora/ascii_code.html

I chose these cause its more unlikely that someone will use these characters in their name and thus corrupting the database. However, if you should find that someone is using these characters, I can change them.

Pimp Trizkit

 
Eel User
FirefoxWindows

Just a word to mention that the unpatched v1.08 seems to be working of localized French servers, now displaying wormholes as "8232:69:80:1 to 5794 ()".

If you wish to allow it to work out of the box on those servers, maybe you should allow the script to run on "

 
Pimp Trizkit Script's Author
FirefoxMacintosh

Im confused at what you are saying.

In the 1.08 version the wormholes are supposed to look like you said , "8232:69:80:1 to 5794 ()". Please read the Version notes for 1.08 (on the About screen tab above) to read the version changes.

Your message seemed to have been cut off. You said, "If you wish to allow it to work out of the box on those servers, maybe you should allow the script to run on "" .... run on what?

Pimp Trizkit

 
Pimp Trizkit Script's Author
FirefoxWindows

Sorry, there is a new start procedure now. They changed the login, please read the About screen.

Pimp Trizkit

 
Eel User
FirefoxWindows

Hmmm : yep : something got wrong with my previous msg : I meant that if you wish to allow your script to run about of the box on localized French servers (locally known as "Australis" & "Borealis"), you should allow the script to run on : http(colon)(slash)(slash)(star)(dot)looki(dot)(star)(slash)(star)

 
Pimp Trizkit Script's Author
FirefoxWindows

Good idea. I will make that change. Tho, it would be nice to see a list of excludes for an include of such magnitude.

Pimp Trizkit

 
matmat07 User
FirefoxWindows

I don't know if it's the same in english, but in the french game there's a button over Roids which makes it unusable. I tried to take it out with noScript, but I just can't click on that area even if I see it.

 
Pimp Trizkit Script's Author
FirefoxWindows

To get the new chat server working with the script you will need to delete line 851, and reload EU2. This line looks like :

	tDiv.setAttribute("style", "border: 0px dashed gold; margin: 0px auto; padding: 10px; overflow: hidden; font-family: Verdana; font-size: 10px; color: white; background:black; position: absolute; top: 0px; left: 0px; width: 252px; height: 530px; text-align: left; z-index: 11;");

It was some style changes I made to get the chat working right with the script, somehow these style changes with the new changes to the chat, didnt work well together. However, it appears we do not need this line anymore for full functionality.

Pimp Trizkit

 
King Solomon User
FirefoxWindows

New issue, perhaps. I have 1.18 installed. I have turned OFF / unchecked, under Options, "keep saved" for Planets and Fleets.

However, both data seem to be saved anyway. I scanned through the script and, while not an expert in GM, did not identify where the "keep saved" values are used to decide if the data should be saved. Nonetheless, it was saving when save was off.

I need to do this because after many systems viewed, too many planets were filling up my memory, and crashing firefox. (I found a temp fix).

 
Pimp Trizkit Script's Author
FirefoxWindows

As mentioned on the About page, under the version history for version 1.17, I mention what you are experiencing. I guess I never had to worry about people trying to scan the whole galaxy, and filling up FireFox's memory. "Keep Saved" is only referring to actually saving the data. Like if you close EU2 and reopen, the data gets loaded from its save. Not the working copy of the data in the parent, which always collects info (which could be confused with saving).

Pimp Trizkit

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