EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCRIPT] Target Nearest Unclaimed Ship v1.2
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
mailleweaver





Joined: 04 Nov 2009
Posts: 68 on topic
Location: Arkansas, USA
Thank you for registering your game
modified
PostPosted: Mon, 15. Feb 10, 00:01    Post subject: [SCRIPT] Target Nearest Unclaimed Ship v1.2 Reply with quote Print

My first script. Hope someone finds it useful.

Description:

    Allows you to set a hotkey to target the nearest unclaimed ship that is within scanner range of player owned ships. It will ignore ships that are currently out of scanner range of player owned ships, and it will also ignore astronauts.

    Exclamation Requires:

Installation:

    <---download

    Click the SPK link above to download the file.
    Open Plugin Manager, click on "install package," browse to the file you just downloaded, click "ok," and click "install."

    Upgrade: Open Plugin Manager, select "Target Nearest Unclaimed Ship," click uninstall, then follow the above instructions for installation of the new file.


Permissions/Thanks:

Changelog::

    1.0 - First Release.
    1.1 - Fixed some erratic selection behavior.
    1.2 - Fixed a bug where astronauts could be targeted if their pilot name was not set. Also got rid of the zip files because Plugin Manager is required for the Hotkey Manager anyway.




Last edited by mailleweaver on Tue, 7. Dec 10, 03:11; edited 6 times in total
Back to top
View user's profile Send private message
ITFUncleDave



MEDALMEDALMEDAL

Joined: 27 Jun 2008
Posts: 152 on topic
Location: UK
Thank you for registering your game
PostPosted: Mon, 15. Feb 10, 00:24    Post subject: Reply with quote Print

Very interesting, i'm glad someone with more skill was able to fix that astronaut bug, I wish i had had the time and patience to do it myself, but regardless, Good job! Thumb up

Back to top
View user's profile Send private message
mailleweaver





Joined: 04 Nov 2009
Posts: 68 on topic
Location: Arkansas, USA
Thank you for registering your game
PostPosted: Mon, 15. Feb 10, 00:42    Post subject: Reply with quote Print

I've always been a DIY kind of guy, so decided to fix it myself. Little did I know how involved it would really be. If you look at the code, you'll see that it doesn't resemble yours at all anymore; I ended up having to rewrite the whole thing from scratch. It seems like such a complicated way to do a simple thing, but I couldn't find any other way. Oh well -- whatever works. Thanks again for the original; I never would have attempted this without it.

Back to top
View user's profile Send private message
mark_a_condren





Joined: 03 Aug 2005
Posts: 1385 on topic
Location: Newcastle - Australia
Thank you for registering your game
PostPosted: Mon, 15. Feb 10, 15:56    Post subject: Reply with quote Print

mailleweaver

Hello fellow scripter, Congrats on your first script. Wink

Will it be the first of many or have you had enough?
Sometimes it takes a while for the hair to grow back after you pull it all out. Very Happy

Have DL'ed it and will take it for a spin as soon as i get a chance to play rather than script.

MarCon


_________________
MarCon Ind - S.O.C.S.I : | Game Start Sector Reveal : | Asteroid Fusion : | TC Stock Exchange | MarCon Utilities / Demos | Universal Banking | Ingame DevChat GUI
Back to top
View user's profile Send private message Send e-mail
mailleweaver





Joined: 04 Nov 2009
Posts: 68 on topic
Location: Arkansas, USA
Thank you for registering your game
PostPosted: Tue, 16. Feb 10, 01:53    Post subject: Reply with quote Print

I'll make more if the opportunity arises, but I probably won't go looking for stuff to script. This one was just to fix a must-have script that was a good idea but underdeveloped enough to be a real annoyance. (I guess kind of like many of the vanilla features that people have created so many scripts to fix.)

Back to top
View user's profile Send private message
Toastysoul





Joined: 03 Feb 2006
Posts: 63 on topic
Location: Maryland, USA
Thank you for registering your game
PostPosted: Tue, 9. Mar 10, 06:19    Post subject: Reply with quote Print

Take a look here: http://forum.egosoft.com/viewtopic.php?t=251694

I don't know if they fixed in X3TC the problem that was causing the find ships command to also find astronauts, but I had to take a different approach when I wrote my script last year. Too bad you hadn't seen it, it could have saved you some time as you'd only need to correct a small flaw in the setup script (no hot key check! Embarassed) and make any necessary changes between X3R & X3TC.

Anyway, congrats your first scripting venture was successful!

Back to top
View user's profile Send private message
corbinbird





Joined: 02 May 2006
Posts: 48 on topic
Location: Granbury, TX
Thank you for registering your game
PostPosted: Sat, 13. Mar 10, 20:47    Post subject: Astronaut bug - not really Reply with quote Print

The astronaut bug seems to have been created by Voxol's BailSignalExtension 2.1 . All the spawned Astronauts are auto set to [Neutral Race]. It is getting a sort set up for "No Pilot' and no Astronauts that is the problem.

Cheers.

Back to top
View user's profile Send private message Send e-mail
SimonSmee





Joined: 03 Nov 2009
Posts: 3 on topic

Thank you for registering your game
PostPosted: Mon, 20. Sep 10, 19:38    Post subject: Links not letting me DL files Reply with quote Print

I go to website click on DL file and get this error:

Can't select categories or not type in links.php

I am missing something?

Back to top
View user's profile Send private message
mailleweaver





Joined: 04 Nov 2009
Posts: 68 on topic
Location: Arkansas, USA
Thank you for registering your game
PostPosted: Fri, 8. Oct 10, 06:31    Post subject: Reply with quote Print

Sorry, I've been away for quite a while and have been keeping a new version away with me. The original script had some problems. A few weeks ago I asked the moderator for the FileFront X3TC site to get it removed and upload my new one. Unfortunately, the entire FileFront network was having some work done and he couldn't do it right then. I only just remembered to check up on it again. I guess he removed the files, but left the pages there. I've uploaded a new version into the generic FileFront site (where I can upload and delete files without having to involve a moderator) and updated the links in the opening post.

Edit: An even newer version up now (1.2). I thought of a way to finally fully fix the astronaut bug (for sure this time). Funny thing is, after reviewing the help I got from EmperorJon and mark_a_condren (link to the topic is in the OP), they told me how to do it way back then. If only I'd had enough experience to see it. Thanks, guys, for being patient enough to help a new scripter even though it meant you were trying to bring light to the blind.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Mon, 11. Dec 17, 20:56

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2017
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.11135 seconds, sql queries = 23