Bug

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
UK_Eliter
---- E L I T E ----
---- E L I T E ----
Posts: 1248
Joined: Sat Sep 12, 2009 11:58 pm
Location: Essex (mainly industrial and occasionally anarchic)

Bug

Post by UK_Eliter »

There appears to be a bug in the wonderful Galactic Navy OXP (version 5.2.2). The code (line 195 in galnavymain.js)
Gal Navy: transferring you to galaxy " + galaxyNumber + "'s Naval jurisdiction.")
produces the wrong galaxy number. I think that we need:
galaxyNumber-1
Also, it might be good to have a better indication that the message only appears when one has enlisted. How about something like: To Galactic Navy Recruit: Transferring you to [. .]

I can make these changes myself; but I thought others might like to know about them.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

More likely you need galaxyNumber + 1.

The internal JS reference for galaxyNumber (and tech level of systems and a number of other things) start at 0 not 1.
Post Reply