Page 2 of 3

Re: Naval energy unit

Posted: Fri Jan 28, 2011 8:33 pm
by Eric Walch
Griff wrote:
Eric Walch wrote:
I have once written a missile AI that remembers the position were the target cloaked and than flew to that position to explode. It can kill a target that didn't move after cloaking, but as soon as the target had moved a bit, the distance to the explosion is already to large to do real damage.
Eric, is this available anywhere to download?
I have it active fore some months now on my system. I'll put it for download on my box account for some weeks. I put the AI files in an oxp for the easy of the users. It just overwrites the internal AI files (if no other oxp does the same it should work)

Re: Naval energy unit

Posted: Fri Jan 28, 2011 8:46 pm
by Cody
So if I was engaging an npc ship that had a cloak (say from Personalities oxp), would this work for my own missiles, Eric?

Re: Naval energy unit

Posted: Fri Jan 28, 2011 8:55 pm
by Eric Walch
El Viejo wrote:
So if I was engaging an npc ship that had a cloak (say from Personalities oxp), would this work for my own missiles, Eric?
Yes it would. But don't think it makes a missile more dangerous. Pure AI can't detect death on collision, meaning that on some occasions the missile smashes just into the cloaked ship doing no harm, and on other occasions the blast is already to far away. And once you know these missiles, you just make sure you move a bit while activating the cloak. The only thing the cloak knows is the last known location. With JS it would probably be possible to reset a target when the target de-cloaks as long the missile has fuel left. :lol:

For the personalities: just try and let us know. :mrgreen:

Re: Naval energy unit

Posted: Fri Jan 28, 2011 9:01 pm
by Cody
Eric Walch wrote:
For the personalities: just try and let us know.
Will do... when the new version appears.

Re: Naval energy unit

Posted: Sat Jan 29, 2011 3:36 pm
by TGHC
Thanks Gimi and Commander Maclane I managed to get it repaired at a higher tech level, can't remember which one now but I'm back on track.

In the process of this I've now noticed that my save files seem odd, looking in the Oolite\Oolite.app\oolite-saves folder, when I rename them they don't appear when Oolite is running, and if I go to Load new commander one of the saves is shown three times with the same spelling?

Re: Naval energy unit

Posted: Sat Jan 29, 2011 3:46 pm
by Kaks
The commander's name shown in-game is taken from inside the file.

The file name is there only for the convenience of humans: to see the different spelling you need to change the inside of the files too!

Re: Naval energy unit

Posted: Sat Jan 29, 2011 3:53 pm
by TGHC
OK so how do I fix it?

Re: Naval energy unit

Posted: Sat Jan 29, 2011 3:58 pm
by Svengali
Change

Code: Select all

<key>player_name</key>
<string>myOwnName</string>

Re: Naval energy unit

Posted: Sat Jan 29, 2011 4:13 pm
by TGHC
But not with notepad, right?

Re: Naval energy unit

Posted: Sat Jan 29, 2011 4:21 pm
by DaddyHoggy
TGHC wrote:
But not with notepad, right?
By Jove, I think he's got it! :wink:

Re: Naval energy unit

Posted: Sat Jan 29, 2011 4:49 pm
by TGHC
OK so I've installed Notepad++, opened my latest Oolite save file and it's certainly easier to read than Mshite Notepad, but can't find

Code: Select all

<key>player_name</key>
I've even used their search thingy and that can't find it either? What am I doing wrong?

I think I'll try and programme the VCR instead!!!!!

Re: Naval energy unit

Posted: Sat Jan 29, 2011 4:52 pm
by Smivs
TGHC wrote:
OK so I've installed Notepad++, opened my latest Oolite save file and it's certainly easier to read than Mshite Notepad, but can't find

Code: Select all

<key>player_name</key>
I've even used their search thingy and that can't find it either? What am I doing wrong?
It's after all the 'mission' stuff, nearly half way down.
TGHC wrote:
I think I'll try and programme the VCR instead!!!!!
It's not that bad :D

Re: Naval energy unit

Posted: Sat Jan 29, 2011 5:41 pm
by Commander McLane
TGHC wrote:
OK so I've installed Notepad++, opened my latest Oolite save file and it's certainly easier to read than Mshite Notepad, but can't find

Code: Select all

<key>player_name</key>
I've even used their search thingy and that can't find it either? What am I doing wrong?
It may help you to know that the <key>s are sorted alphabetically, starting with <key>aft_weapon</key> and ending with <key>written_by_version</key>. Therefore <key>player_name</key> will be a fair way down. :wink:

Re: Naval energy unit

Posted: Mon Feb 07, 2011 12:09 am
by TGHC
I managed to do it :D
Watch out lads I'll be writing OXP's and moving on to isomorphic translation of mnemonic statements next!

Re: Naval energy unit

Posted: Mon Feb 07, 2011 10:22 am
by Commander McLane
TGHC wrote:
I managed to do it :D
Watch out lads I'll be writing OXP's and moving on to isomorphic translation of mnemonic statements next!
I'm looking forward to the latter one! :D