EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[SCR][X3:TC/AP][v0.2][19/04/13] Improved Collect Wares
Post new topic Reply to topic Goto page 1, 2  Next
View previous topic :: View next topic
Author Message
Binesi





Joined: 15 Mar 2010
Posts: 43 on topic

Thank you for registering your game
modified
PostPosted: Sat, 13. Apr 13, 20:41    Post subject: [SCR][X3:TC/AP][v0.2][19/04/13] Improved Collect Wares Reply with quote Print

Notice: Versions prior to 0.2 must be upgraded.

I'm playing X3 TC now after shelving it for a few years to mature. However I'm getting stuck into fixing things again so maybe I still won't "complete" it. Anyway, this time I will contribute back to the community some of the fixes I make. Here is something I whipped up on a Sunday evening. It should work the same in TC or AP:

Improved Collect Wares (replaces but does not overwrite default collect wares command - so Steam shouldn't erase it):

Improvements:

* Fixes(avoids) the teleporting turret bug affecting SMART and MARS users when running the default "Collect Wares" or any other scripts that use the built in command to collect a ware. Technically it will still happen, but at a short enough range that it is almost like normal behavior. If Egosoft fixes the bug, it will work perfectly.
* Fixes the spin of shame bug which makes "Collect Wares" useless for fast and/or low maneuverability ships. I have not tested this on every ship in every mod so if you still find one that doesn't work right just install a transporter device. Fixing it any further would add too much complication for my purposes.
* Automatically uses the transporter device (with proper effects) if installed for long range collection. No it doesn't require energy or other such nonsense as the transporter doesn't require it for any other function. With a good ship and a transporter device it is typically much faster, more lore friendly and less troublesome than using MARS goblins or similar scripts.
* Will not pick up goods which are illegal in the current sector. These need to be picked up individually if you want them. This makes the command much safer to use.
* Will not collect rudder or engine tunings if found. It could be sad to waste your rare pandora tunings on a collector TS.
* Does not cheat! It will only collect crates which the ship's sensors can see. However it will update that list even as it is collecting. It will not stop until everything legal it sees is collected or it runs out of cargo space (it will pick up everything it possibly can). Also the command will only run on the ships for which the command would normally run on.
* Automatically returns to the ship's homebase when done collecting. If no homebase is set, the collecting ship will dock at the nearest safe station and wait. It will use a jumpdrive if configured using the ship's default jump settings. If the player is driving the ship, the ship will simply stop and notify.
* Will notify player when its done collecting by using the "Cargo Bay Closed" (in whatever language you are running) audio clip.
* Language neutral. Should work the same on any language version of X3 TC or AP.
* Works fine with XRM and XTC and probably most other mods.

Thanks to Lucike, TECSG, Huefte, and Xai Corp who's code I scanned over to learn how to write a script like this... but then I did it my own way. I just can't imagine why no one has bothered to write this before. It was so easy to fix up.

Well, anyway that's it - use it or don't. Like it or forget it. I made it to save me trouble and if it's useful to you, then I'm happy to have improved your game. I will follow this thread for a little bit to see if there are any bugs I want to fix or simple features to add (it should remain simple and universal). After that, just feel free to hack the code to your liking if it doesn't suit you or something breaks in the future. No permissions or credit required.


*FIXED 19 Feb 2014* Edit: removed not working download link due to virus alert. X2-Illuminatus

Alternative link from xdownloads:


TO INSTALL: Just unzip archive into your X3 folder. Scripts for TC and AP will both be installed. The plugin manager is fine too.
TO UPGRADE: Overwrite the old files with the new ones.
TO UNINSTALL: Delete the same files that are in the zip archive. Nothing more to it. It shouldn't harm your save game.

If anyone wants to rehost this somewhere else, please feel free to do so. The download link I provided will eventually expire. To contact me if I am no longer using this forum, just use my name@name domain.

    Changelog
    0.1 Initial Release
    0.1b Small change so that Betty only speaks if the player is in the collecting ship. Accidently left that on for testing. She will still announce "cargo bay closed" whether you are in the ship or not as I find that helpful to know when collection is finished.
    0.2 Reduced Betty verbosity for 4x faster transporter collection. Fixed bug with transporter and empty wares. More closely matched collection range with visible crates range.


Edit: Added alternative xdownloads download link. X2-Illuminatus



Last edited by Binesi on Wed, 19. Feb 14, 15:51; edited 9 times in total
Back to top
View user's profile Send private message
joelR





Joined: 09 Jul 2007
Posts: 1975 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Sat, 13. Apr 13, 21:23    Post subject: Reply with quote Print

Great job. Thanks.

As much as I love the cargo collection function of goblins, Ive always preferred the slower method of using TS to collect wares.

Now I wont have to leave a sector so my salvager wont get stuck in that ridiculous spinning around the crate.


_________________
XRM AP Map
XRM Statistics
Back to top
View user's profile Send private message
Binesi





Joined: 15 Mar 2010
Posts: 43 on topic

Thank you for registering your game
PostPosted: Sat, 13. Apr 13, 22:57    Post subject: Reply with quote Print

Goblins are very handy but it breaks my immersion to have them mimicking Overlord in space. Cute as that is for the first hour or so...

Anyway, I didn't see much point to using them when as long as you have MARS or SMART turret commands active you can collect a whole zone of space in a few seconds because of the bug with "move to ware object" returning FLRET_FIREFREE before it is anywhere near the object it is collecting while a turret script is active.

Now you can just send out a collector from your carrier or station and it will do it's job quickly and redock back home, wherever that is.

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





Joined: 09 Jul 2007
Posts: 1975 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Fri, 19. Apr 13, 04:40    Post subject: Reply with quote Print

This isnt working for some reason. I just tested it and can confirm that the ship is collecting the ware but it doesnt show up in the cargohold. It just disappears.

EDIT: Apparently I was using the 0.1 version. Looks like you fixed it in 2. Sadly the link is down. Did you pull it or is that temporary?


_________________
XRM AP Map
XRM Statistics
Back to top
View user's profile Send private message
Ocede





Joined: 23 Sep 2011



PostPosted: Fri, 19. Apr 13, 17:03    Post subject: Reply with quote Print

Try HERE. The link was missing a colon

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





Joined: 09 Jul 2007
Posts: 1975 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Fri, 19. Apr 13, 18:25    Post subject: Reply with quote Print

Thanks.


_________________
XRM AP Map
XRM Statistics
Back to top
View user's profile Send private message
Makita





Joined: 14 Jan 2006
Posts: 123 on topic
Location: Canada
Thank you for registering your game
PostPosted: Fri, 19. Apr 13, 19:36    Post subject: Reply with quote Print

Thanks Ocede, do we know if its compatible with XRM?. Thank you in advance.

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





Joined: 09 Jul 2007
Posts: 1975 on topic
Location: Seattle
Thank you for registering your game
PostPosted: Fri, 19. Apr 13, 20:33    Post subject: Reply with quote Print

Makita wrote:
Thanks Ocede, do we know if its compatible with XRM?. Thank you in advance.


It is. Scripts generally dont have compatibility issues. Mods do though.


_________________
XRM AP Map
XRM Statistics
Back to top
View user's profile Send private message
Makita





Joined: 14 Jan 2006
Posts: 123 on topic
Location: Canada
Thank you for registering your game
PostPosted: Fri, 19. Apr 13, 22:25    Post subject: Reply with quote Print

joelR wrote:
Makita wrote:
Thanks Ocede, do we know if its compatible with XRM?. Thank you in advance.


It is. Scripts generally dont have compatibility issues. Mods do though.



Thank you, guess if i would of read the description properly i could of avoided this minor embarrassment Embarassed

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





Joined: 05 May 2010
Posts: 244 on topic
Location: Russia, Tyumen
Thank you for registering your game
PostPosted: Wed, 7. Aug 13, 11:10    Post subject: Reply with quote Print

As I understand, ship won't collect flying wares seen by your adv. satellite or another ship if flying ware spawned IS out of collector's field view ?


_________________
Pure X HUD v6 (13.08.2013)
NO MORE ENGINE CARROTS! - Immersive Engine Effects for XRM (19.08.2013)
Back to top
View user's profile Send private message
basicz



MEDALMEDALMEDAL

Joined: 27 Dec 2011
Posts: 23 on topic

Thank you for registering your game
PostPosted: Thu, 8. Aug 13, 01:38    Post subject: Reply with quote Print

thanks.
but unfortunately the link is broken..

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





Joined: 03 Aug 2007
Posts: 327 on topic

Thank you for registering your game
PostPosted: Fri, 16. Aug 13, 12:21    Post subject: Reply with quote Print

Try this:
http://www.speedyshare.com/GGBsH/ImprovedCollectWares0.2.zip
The double "http:" in his link does not work.

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





Joined: 15 Mar 2010
Posts: 43 on topic

Thank you for registering your game
PostPosted: Wed, 19. Feb 14, 15:58    Post subject: Reply with quote Print

Just stopping back on the board after giving Rebirth a go and will put that aside for a few years to let it get fixed. Trying XTC 2.2 now and the script is working fine so far. I will post updates if any bugs are found.

Sorry for the longstanding typo in the download link. Fixed.

As for Familiar's question - the collecting ship will collect anything the player's combined assets can see in the sector.

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





Joined: 26 Aug 2010
Posts: 239 on topic
Location: The Netherlands
Thank you for registering your game
PostPosted: Wed, 19. Feb 14, 17:29    Post subject: Reply with quote Print

Thanx for this, was getting bored by SMART allways teleporting all stuff, and now it's even safe to collect dropped stuff, even when illegal goods are dropped between those hard to come by missiles.


_________________
Awareness in life is rewarded by many
Back to top
View user's profile Send private message
ASSTEROIDS





Joined: 10 May 2016



PostPosted: Mon, 16. May 16, 05:07    Post subject: Reply with quote Print

There ia a folder "addon" and a folder "script" in the .zip, they both contain the same files, does it mean I must install in both the game folder as well as in addon?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2  Next
 
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, 23. Oct 17, 07:58

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.49723 seconds, sql queries = 29