Ship.shipDisplayName
Moderators: winston, another_commander, Getafix
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
Ship.shipDisplayName
I am having regular crashes to desktop when launching from a station, usually the main station.
And the Log always tells me that javascript-wise "Ship.shipDisplayName" is deprecated. Two or ten times after each other.
I know that this command is not used by any of the .js scripts in OSE, has anyone an idea which oxp this might be from, or is it even from an oxp? And how could it be related to the desktop crash on main station launch trouble?
I would really care for more info, thanks in advance
L
And the Log always tells me that javascript-wise "Ship.shipDisplayName" is deprecated. Two or ten times after each other.
I know that this command is not used by any of the .js scripts in OSE, has anyone an idea which oxp this might be from, or is it even from an oxp? And how could it be related to the desktop crash on main station launch trouble?
I would really care for more info, thanks in advance
L
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Totally unrelated to the crash to desktop, as already discussed countless times till now. If you look closely at the message, it is a warning, not an error and Oolite is just letting you know before it goes ahead and uses the equivalent non-deprecated method, which in this case would be Ship.displayName.
It's just a warning, it shouldn't do anything for crashes. Currently the game will automatically do the substitution to the correct command, although this will change in 1.73 when the command is no longer recognised (hence the warnings all through 1.72.x's life).
As to which are using it, depends what you've got installed (a huge list iirc) but also if your versions are up to date (most OXP writers will update their scripts for such depreciations).
Simplest way is probably to use a decent search tool to look for that string within the files in your add-on folder (you can limit the search to *.js files). Then all you need to do is modify those files and change shipDisplayName to displayName if I remember correctly.
As to which are using it, depends what you've got installed (a huge list iirc) but also if your versions are up to date (most OXP writers will update their scripts for such depreciations).
Simplest way is probably to use a decent search tool to look for that string within the files in your add-on folder (you can limit the search to *.js files). Then all you need to do is modify those files and change shipDisplayName to displayName if I remember correctly.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
...
Hm, I didn't provide important information: Those crashes only happen with my trunk 1.73 build from yesterday, not with my used-for-gaming 1.72.2!Thargoid wrote:Currently the game will automatically do the substitution to the correct command, although this will change in 1.73 when the command is no longer recognised (hence the warnings all through 1.72.x's life).
So if that command is no longer recognised, still no chance of it producing a crash to desktop somehow?
Huh, don't stone me as yet, A_C *ducks trumble barrage*another_commander wrote:as already discussed countless times till now
Didn't mention I was talking about the 1.73 trunk, my bad ...
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Confused (easy I know).
If the warnings in 1.72.2 about Ship.shipDisplayName being deprecated are because they will no longer be supported in 1.73 onwards and Lestradae is testing with the 1.73 trunk, then either they haven't been deprecated/removed in 1.73 or I'm missing something...
If the warnings in 1.72.2 about Ship.shipDisplayName being deprecated are because they will no longer be supported in 1.73 onwards and Lestradae is testing with the 1.73 trunk, then either they haven't been deprecated/removed in 1.73 or I'm missing something...
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
Ditto, hence my original comments above.
I too thought that things that were depreciated in 1.72.x would be removed in 1.73.x? Or am I missing probably the same point as DH?
Although such an error I agree will at worse just stop that particular script, and not cause a desktop crash.
I too thought that things that were depreciated in 1.72.x would be removed in 1.73.x? Or am I missing probably the same point as DH?
Although such an error I agree will at worse just stop that particular script, and not cause a desktop crash.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
Ah OK, that's rather clearer.
They possibly (or probably) won't be in the 1.73 official final test release, but they are currently in the WIP build-it-yourself release that we're colloquially calling 1.73 at the moment.
They possibly (or probably) won't be in the 1.73 official final test release, but they are currently in the WIP build-it-yourself release that we're colloquially calling 1.73 at the moment.
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
- Cmdr James
- Commodore
- Posts: 1357
- Joined: Tue Jun 05, 2007 10:43 pm
- Location: Berlin
Deprecated methods should not be used, and whilst it should be assumed that they will be removed, it is not safe to depend on them no longer existing.
It is quite likely that some of the deprecated methods will be removed quickly, as few people use them, and others may live longer due to a larger number of legacy OXP dependencies.
Overall the message is not to use anything deprecated in new work, and for legacy OXPs remove references as soon as practicable.
It is quite likely that some of the deprecated methods will be removed quickly, as few people use them, and others may live longer due to a larger number of legacy OXP dependencies.
Overall the message is not to use anything deprecated in new work, and for legacy OXPs remove references as soon as practicable.
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
.
Cmdr James wrote:Overall the message is not to use anything deprecated in new work, and for legacy OXPs remove references as soon as practicable.
I know that nothing deprecated is in 1.72.2 OSE V0.4 atm, but there sure is in oxps I'm using.Thargoid wrote:Simplest way is probably to use a decent search tool to look for that string within the files in your add-on folder (you can limit the search to *.js files).
Can anyone recommend me a good and cheap/gratis search tool for this?
Try starting with the one built into Vista?
The one in XP has enough brainpower to find phrases within files, so I guess unless they've been up to their usual lobotomising form the one in Vista should do likewise?
The one in XP has enough brainpower to find phrases within files, so I guess unless they've been up to their usual lobotomising form the one in Vista should do likewise?
My OXPs via Boxspace or from my Wiki pages .
Thargoid TV
Dropbox Referral Link
Thargoid TV
Dropbox Referral Link
Re: .
http://notepad-plus.sourceforge.net/uk/site.htmLestradae wrote:Can anyone recommend me a good and cheap/gratis search tool for this?
Screet