Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.
More details in this thread.
Search found 545 matches
Re: Maps
The websites I would miss the most daily if they disappeared are Wikipedia (instant basic knowledge) and Google maps. I use Maps from twice each day to twenty times. To see where is somewhere and deduce things from the geography. To prepare travels, and the time they need. To note interesting places...
- Fri Jun 23, 2017 9:45 am
- Forum: Expansion Pack
- Topic: (Release) Station Dock Control OXP
- Replies: 219
- Views: 177330
Re: (Release) Station Dock Control OXP
Sorry :| 11:41:16.424 [script.javaScript.timeLimit]: ***** ERROR: Script "StationDockControl" ran for 5.54578 seconds and has been terminated. 11:41:16.425 [script.javaScript.stackTrace]: 0 (stationdockcontrol.js:4999) <anonymous function> 11:41:16.425 [script.javaScript.stackTrace]: this:...
- Fri Jun 23, 2017 9:30 am
- Forum: Expansion Pack
- Topic: [WIP] Diplomancy OXP
- Replies: 109
- Views: 130060
Re: [WIP] Diplomacy OXP
The 0.10 version is in the manager. New "System history" F4 interface, showing the F7-selected system events history, currently including alliances and alliance breaks. ============================== The next version might provide: WARS!!! ============================== Systems treasury! W...
- Fri Jun 23, 2017 8:39 am
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
- Thu Jun 22, 2017 9:16 am
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
the following is faster than indexOf when dealing with arrays: this._index_in_list = function( item, list ) { // for arrays only var k = list.length; while( k-- ) { if( list[ k ] === item ) return k; } return -1; } so, if( targets.indexOf( ship ) ... becomes if( ws._index_in_list( ship, targets ) ....
- Wed Jun 21, 2017 4:04 pm
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
phkb, Day Thank you for your explanations. About the 'undefined' error: I had been under the impression that if i <= 0, any text within while ( i-- ) { } would not run at all. Well, 0 is considered false, and other numbers, including negative ones, are true. So for i = 0, the code within won't run ...
- Wed Jun 21, 2017 8:35 am
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
- Wed Jun 21, 2017 8:31 am
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
Day, this is throwing me: var z = myArray.length; while (z--) { var myElement = myArray[z]; // my code } What exactly does that do? Suppose that the length of myArray is 3, i.e. myArray has three members, the indices of which are: myArray[0] myArray[1] MyArray[2] Does your loop proceed backwards th...
- Tue Jun 20, 2017 2:33 pm
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
Finally, we're going to have to deal with the orphaned oxp's, whose authors are no longer around. Compile a list, recruit people to re-code, proof and test. See what you started! Hmm, there should be no orphaned oxp in the manager, am I right? So... As a lazy dev (the best kind, imo), I'll only akn...
- Tue Jun 20, 2017 2:24 pm
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
Slowly inserting all the propositions into the first post...
We need an example oxp which is at the same time simple, easy to understand for beginners, and small.
Some idea? Some volunteer?
We need an example oxp which is at the same time simple, easy to understand for beginners, and small.
Some idea? Some volunteer?
- Sat Jun 17, 2017 10:20 pm
- Forum: Suggestion Box
- Topic: Thought experiment: no currency
- Replies: 33
- Views: 37472
Re: Thought experiment: no currency
It looks like we could have an OXP that offers an API for this OXPs to register "debts" on one hand, and provide characters that offer contracts, missions, etc. on the other hand. Proposal: an OXP that offers an API for this OXPs to register "debts" on one hand, and provide char...
- Fri Jun 16, 2017 9:37 am
- Forum: Suggestion Box
- Topic: Thought experiment: no currency
- Replies: 33
- Views: 37472
Re: Thought experiment: no currency
It immediately made me think about the old topic of interactions with NPCs. The straightforward approach is to convert those debts into the "reputation" currency but I've already mentioned that. Exactly. Only it could be interesting to have a reputation balance per NPC :p Another approach...
- Fri Jun 16, 2017 5:43 am
- Forum: Suggestion Box
- Topic: Thought experiment: no currency
- Replies: 33
- Views: 37472
Re: Thought experiment: no currency
Agreed. Yet, psychologically, the mindsets are very different. Some in our society pretend that they're disconnected from others (rich from poor peoples, to take a blatantly exaggerated example). And some pretend they can do it solo: eg the american myth of the self-made-man. This could be interesti...
- Thu Jun 15, 2017 8:42 pm
- Forum: Suggestion Box
- Topic: Thought experiment: no currency
- Replies: 33
- Views: 37472
Re: Thought experiment: no currency
Money / credits is debt, as explicitly stated on some bank notes. When you give someone money you pass on a bank/state/goverment's debt to you so that it becomes a debt to them. So on that (admittedly, enormously simplistic) basis, currency is simply debt, to be used as you describe, but for larger...
- Thu Jun 15, 2017 4:08 pm
- Forum: Expansion Pack
- Topic: OXP Performance tips
- Replies: 89
- Views: 210078
Re: OXP Performance tips
Thank you cag, this is quite an interesting post! Good idea for a topic Thank you :mrgreen: but it will need to a) be made sticky Done. Thank you another_commander :wink: and b) moderated (ie. edit/modify/delete posts). This has been tried before but after a few pages of off topic discussion, I usua...