And if yes, what is supposed to replace it?
The hyperradio.oxp for example suffers from that ...
/report
L
Is "this.stations" deprecated? - SOLVED
Moderators: winston, another_commander, Getafix
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
Is "this.stations" deprecated? - SOLVED
Last edited by Lestradae on Sat Sep 26, 2009 7:37 pm, edited 1 time in total.
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Not deprecated. It never existed.
There is a Station class in JS, but not a Stations class.
Probably some OXP uses stations as a global variable, which would read this.stations inside the OXP?
There is a Station class in JS, but not a Stations class.
Probably some OXP uses stations as a global variable, which would read this.stations inside the OXP?
- Lestradae
- ---- E L I T E ----
- Posts: 3095
- Joined: Tue Apr 17, 2007 10:30 pm
- Location: Vienna, Austria
..
Thanks, guys, aha!
The log I get looks as follows:
L
The log I get looks as follows:
Can't see any problem ingame with the functionality, any ideas what I might be getting wrong/not understand here?[script.javaScript.warning.undefinedProp]: ----- JavaScript warning ("hyperradio" 1.14): reference to undefined property this.stations
L
Re: ..
Yupp, you've simply missed two things.Lestradae wrote:The log I get looks as follows:Can't see any problem ingame with the functionality, any ideas what I might be getting wrong/not understand here?[script.javaScript.warning.undefinedProp]: ----- JavaScript warning ("hyperradio" 1.14): reference to undefined property this.stations
a) hyperradio v1.14 is old and written in v1.72. Latest version is v1.16.
b) Oolite has changed. I'd think that you are using a trunk-version. This part of the script isn't called at all - so the script will fail.