Oolite Mac OS X – Trunk nightly builds
Moderators: winston, another_commander
- Cmd. Cheyd
- ---- E L I T E ----
- Posts: 934
- Joined: Tue Dec 16, 2008 2:52 pm
- Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...
I don't believe this one has been resolved yet, but could be in trunk...
In an OXP, using a timer to call a function that in turn required an argument caused a CTD for me. Example:
I realize that syntax is not proper, but I can't remember exactly how it is supposed to go. And the above is roughly what I was trying when I caused a CTD.
Anyways, hope that is some help.
In an OXP, using a timer to call a function that in turn required an argument caused a CTD for me. Example:
Code: Select all
Foo = new Timer (this, this.function(arg1), 0, 5);
Anyways, hope that is some help.
Find my OXP's at:
Deep Horizon Industries - Your Planet Our Design
Deep Horizon Industries - Your Planet Our Design
Hello Cheyd!
We might have to split this one onto the bugs forum, anyway, will look into it this evening.
I noticed there's a major misunderstanding behind the way you called the new Tmer() constructor: the second parameter expects a function object which in practice means its name.
The way you called it, javascript will run the function this.function() with argument arg1, expecting a function object in return, one representing the function to be called periodically.
The most likely cause of your problem is that this.function(arg1) doesn't return anything, so you're effectively saying
Foo = new Timer(this, null, 0, 5);
Any crash in that call just means that Oolite didn't check all the parameters for consistency with what it expects. Of course, the idea is that Oolite does check those parameters for consistency...
If - for whatever reason - you want a timer function to work on a variable, you can use a variable internal to the function, use a mission variable (extremely useful, in case you save a game while the timer is still ticking away) or you can 'anchor' the variable value somewhere else that's reachable from both inside and outside the timer function. There are a few objects that can be hijacked for the purpose: Player for example (Player.myspecialVariable = 2), or maybe this.ship...
We might have to split this one onto the bugs forum, anyway, will look into it this evening.
I noticed there's a major misunderstanding behind the way you called the new Tmer() constructor: the second parameter expects a function object which in practice means its name.
The way you called it, javascript will run the function this.function() with argument arg1, expecting a function object in return, one representing the function to be called periodically.
The most likely cause of your problem is that this.function(arg1) doesn't return anything, so you're effectively saying
Foo = new Timer(this, null, 0, 5);
Any crash in that call just means that Oolite didn't check all the parameters for consistency with what it expects. Of course, the idea is that Oolite does check those parameters for consistency...
If - for whatever reason - you want a timer function to work on a variable, you can use a variable internal to the function, use a mission variable (extremely useful, in case you save a game while the timer is still ticking away) or you can 'anchor' the variable value somewhere else that's reachable from both inside and outside the timer function. There are a few objects that can be hijacked for the purpose: Player for example (Player.myspecialVariable = 2), or maybe this.ship...
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
This particular problem was fixed in r3325 (bug #17149).Kaks wrote:I noticed there's a major misunderstanding behind the way you called the new Tmer() constructor: the second parameter expects a function object which in practice means its name.
The way you called it, javascript will run the function this.function() with argument arg1, expecting a function object in return, one representing the function to be called periodically.
The most likely cause of your problem is that this.function(arg1) doesn't return anything, so you're effectively saying
Foo = new Timer(this, null, 0, 5);
Any crash in that call just means that Oolite didn't check all the parameters for consistency with what it expects. Of course, the idea is that Oolite does check those parameters for consistency...
The bug response also demonstrates the correct way to pass a parameter to a timer callback. Use the closures, Luke!
E-mail: [email protected]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Oolite Mac OS X – Trunk nightly builds
Following to a corrected glitch
the nightly has been updated to r3597.
the nightly has been updated to r3597.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
I've noticed that mac nightly is not updated.
I have managed to put my hands on a Mac and manually produced a mac nightly for revision 4595.
The "changes since last revision" is not correct yet.
It's my first attempt and I will try to fix these glitches and automate the process, soon.
This service will be provided by http://terrastorage.ath.cx/oolite/status_mac_alt.htmltemporarily,
until Ahruman fixes his nightly (let the man take a vacation leave! ).
Cheers.
I have managed to put my hands on a Mac and manually produced a mac nightly for revision 4595.
The "changes since last revision" is not correct yet.
It's my first attempt and I will try to fix these glitches and automate the process, soon.
This service will be provided by http://terrastorage.ath.cx/oolite/status_mac_alt.html
until Ahruman fixes his nightly (let the man take a vacation leave! )
Cheers.
Last edited by Getafix on Thu Aug 18, 2011 5:16 am, edited 1 time in total.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
http://terrastorage.ath.cx/oolite/status_mac_alt.html
to be used as secondary option, in case the primary build has hick-up.
Note (28/May/2012):
The alternative site for Oolite Mac nightly has kicked the bucket.
I will restore the strike-through message as soon as I have another alternative built from scratch.
Last edited by Getafix on Mon May 28, 2012 11:01 am, edited 1 time in total.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
Due to terrastorage server maintenance,
the nightly server will be down for a couple of hours.
EDIT: Done.
the nightly server will be down for a couple of hours.
EDIT: Done.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
Re: Oolite Mac OS X – Trunk nightly builds
Hi guys. Having seen a reference to nightlies in a recent thread, along with the comment that folk were welcome to test the long-range chart fix (distance & time not being reported, i.e.) I thought I would have a look-see, being keen to learn everything I can about this great game. So I've just enjoyed a few flights using Development version 1.77-4894, on my MacBook Pro 13 running Snow Leopard.
I'd like to contribute if I can -- if a newbie with zero knowledge of programming can be of any use, that is. If I would just be getting under people's feet, I'm happy to be asked to stick to hauling gold and platinum across galaxy 1.
As an example of the sort of contribution I'm likely to be able to make, the chart is now working fine for me. I did notice that when sun-skimming, however, there was no tone to tell me refuelling had commenced, and the 'slurping' sound as fuel is piped to the fuel tank was also absent. (The silence was a little unnerving, to be honest). As you can see, at present I have no idea who to report to, how to do it, or if I should even be doing it.
I'd like to contribute if I can -- if a newbie with zero knowledge of programming can be of any use, that is. If I would just be getting under people's feet, I'm happy to be asked to stick to hauling gold and platinum across galaxy 1.
As an example of the sort of contribution I'm likely to be able to make, the chart is now working fine for me. I did notice that when sun-skimming, however, there was no tone to tell me refuelling had commenced, and the 'slurping' sound as fuel is piped to the fuel tank was also absent. (The silence was a little unnerving, to be honest). As you can see, at present I have no idea who to report to, how to do it, or if I should even be doing it.
- Capt. Murphy
- Commodore
- Posts: 1127
- Joined: Fri Feb 25, 2011 8:46 am
- Location: UK South Coast.
Re: Oolite Mac OS X – Trunk nightly builds
Testing and Bug Reports is normally a good place to post reports of non OXP related odd behaviour/problems whether it be the current stable release or a nightly build - https://bb.oolite.space/viewforum.php?f=3.Albee wrote:
As an example of the sort of contribution I'm likely to be able to make, the chart is now working fine for me. I did notice that when sun-skimming, however, there was no tone to tell me refuelling had commenced, and the 'slurping' sound as fuel is piped to the fuel tank was also absent. (The silence was a little unnerving, to be honest). As you can see, at present I have no idea who to report to, how to do it, or if I should even be doing it.
If an OXP doesn't work properly with a nightly build it's probably best to post in the OXPs thread.
In either case make it clear you are using a nightly build and report the revision number (you may as-well post the log, someone will probably ask for it anyway). Your reports will be appreciated, particularly if you can clearly explain how to reproduce the problem. The more testers there are of trunk, the quicker any bugs in new features will be ironed out.
Capt. Murphy's OXPs
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
External JavaScript resources - W3Schools & Mozilla Developer Network
Win 7 64bit, Intel Core i5 with HD3000 (driver rev. 8.15.10.2696 - March 2012), Oolite 1.76.1
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
The alternative site for Oolite Mac nightly has kicked the bucket.
I'll post a note as soon as I have another alternative built from scratch;
I wouldn't hold my breath while waiting though!
I'll post a note as soon as I have another alternative built from scratch;
I wouldn't hold my breath while waiting though!
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- Getafix
- Quite Grand Sub-Admiral
- Posts: 979
- Joined: Tue Apr 01, 2008 12:55 pm
- Location: A small ice asteroid, orbiting Oresrati in Galaxy 8 (a.k.a. northwest Armorica).
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
New URL for nightly
http://terrastorage.dyndns.info/oolite/status_mac.html
First post needs to be updated. The nicer nightly page will not arrive soon.
EDIT 2014/05/01: http://terrastorage.no-ip.info/oolite/status_mac.html
First post needs to be updated. The nicer nightly page will not arrive soon.
EDIT 2014/05/01: http://terrastorage.no-ip.info/oolite/status_mac.html
Last edited by Getafix on Thu May 01, 2014 1:41 pm, edited 1 time in total.
"Any sufficiently advanced information is indistinguishable from noise." [Newman, Lachmann, Moore]
- JazHaz
- ---- E L I T E ----
- Posts: 2991
- Joined: Tue Sep 22, 2009 11:07 am
- Location: Enfield, Middlesex
- Contact:
Re: Oolite Mac OS X – Trunk nightly builds
I noticed that the mac page doesn't have the same trunk version (5689) as the windows and linux variants?
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Oolite Mac OS X – Trunk nightly builds
The Mac version is built from the 1.77-maintenance branch on github. The Windows and Linux versions are still looking at SVN (haven't been able to set them up yet), which is why the build numbers differ.