That 'nil' bug is 'a bit' more extensive than expected, but I think I got it. Will do some more testing before commit.
Edit: The bugfix seems to work ok, but it needed code changes in quite a few places. Committed to trunk, but use rev.2282 with caution!
Crash on entering system
Moderators: winston, another_commander, Getafix
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Kaks, you are our hero. Your change works perfect. I wanted to know something and added a log line. I just made a mistake of writing this. script instead of this name. This.script was nil.Kaks wrote:That 'nil' bug is 'a bit' more extensive than expected, but I think I got it. Will do some more testing before commit.
Edit: The bugfix seems to work ok, but it needed code changes in quite a few places. Committed to trunk, but use rev.2282 with caution!
Code: Select all
log(this.script, this.ship.owner);
Code: Select all
[script.javaScript.warning.162] OOJavaScriptEngine.m:140: ----- JavaScript warning ("nukeSubmunition" 1.0): reference to undefined property this.script
[script.javaScript.warning.162] OOJavaScriptEngine.m:151: /Users/ericwalch/Library/Application Support/Oolite/AddOns/nukes1.0.oxp/Scripts/harpoonNukeSubMunition.js, line 29.
UPS-Courier & DeepSpacePirates & others at the box and some older versions