[MOD] AutoLooter (ver0.6 March 14 2015)

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

[MOD] AutoLooter (ver0.6 March 14 2015)

Post by euclid » Sat, 27. Dec 14, 15:27

Dowload


AutoLooter v0.6 March 14 2015


What and How
Select Long range scan mode to trigger the autolooter option (custom menu) to beam all crates (inventory items and ammunition only within a certain range) aboard the Skunk. Ammunition (missiles) will be added only if the Skunk has free storage capacity. Onscreen messages provide detailed information.

Installation
As usual extract the folder AutoLooter to your extensions folder.

Cheers Euclid

Changelog
v0.2: Sorry, one old file in the zip. Please download again.
v0.3: inserted a condition to ensure all drops are of inventory type,i.e. can be collected by the Skunk.
v0.4 added info on drops to player logbook 'tips'
v0.5 changed find_object_component to find_object
v0.6 changed object to space, thx YorrickVander for spotting this
Last edited by euclid on Sat, 14. Mar 15, 17:52, edited 5 times in total.
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

milytar
Posts: 345
Joined: Wed, 25. Feb 09, 19:44
x4

Post by milytar » Sat, 27. Dec 14, 15:33

thanx euclid you are the man,but remember to rest cos now is "holiday season"!
And one day ... one day i will be there ...
And if not... then i will be here ...

Me

User avatar
YorrickVander
Posts: 2689
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Sat, 27. Dec 14, 15:50

Nice :D
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

Makimera
Posts: 28
Joined: Fri, 1. Jun 12, 19:34

Post by Makimera » Sat, 27. Dec 14, 15:52

awsome, gona try it now :D

Makimera
Posts: 28
Joined: Fri, 1. Jun 12, 19:34

Post by Makimera » Sat, 27. Dec 14, 16:22

hmm, i activate long range scanner but nothing happends.

DorianEU
Posts: 148
Joined: Fri, 28. Mar 14, 17:20

Post by DorianEU » Sat, 27. Dec 14, 16:25

Tractor beam! YES!

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Sat, 27. Dec 14, 17:03

Sorry :cry:

Accidentially copied old file to zip. Please download again.


Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

w.evans
Posts: 2963
Joined: Tue, 18. Nov 14, 16:23
x4

Post by w.evans » Sat, 27. Dec 14, 19:32

@milytar This is euclid resting!

Thanks, euclid! Downloading now. Oh man, hope my build doesn't blow up.

milytar
Posts: 345
Joined: Wed, 25. Feb 09, 19:44
x4

Post by milytar » Sun, 28. Dec 14, 11:14

I see mr. w.evans

One little thing,not big probleem,easy to avoid it...

when you open LRS and keep it too long(i am in same zone) then its not recognize them.
Workaround:Just close after every collection scanner and open it again if you see another loot
And one day ... one day i will be there ...
And if not... then i will be here ...

Me

User avatar
NZ-Wanderer
Posts: 1623
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer » Sun, 28. Dec 14, 21:19

Ooo just what I need :)

With one of my Arawn's killing everything in sight in Maelstrom it will make my collecting task a lot easier.. - Thank you...

PS: Added autolooter to my mod list...
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.

User avatar
YorrickVander
Posts: 2689
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Mon, 29. Dec 14, 16:17

I see a lot of errors sometimes indicating crates can't be collected - I assume these are capital ship containers being caught in the function. Is it possible to filter these out?

Code: Select all

[=ERROR=] Error in MD cue md.EuclidsAutoLooterStart.EuclidALEnd<inst:1aeae>: collect_drop: Evaluated object 'Albion Skunk' can not collect drop 'Ware Container'
* Expression: player.primaryship
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

LUBEggA
Posts: 54
Joined: Sun, 1. Jan 06, 12:17

Post by LUBEggA » Mon, 29. Dec 14, 17:16

Nice mod, very handy, thanks a loot euclid !
Could you perhaps also add a hotkey ?

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Mon, 29. Dec 14, 17:50

YorrickVander wrote:I see a lot of errors sometimes indicating crates can't be collected - I assume these are capital ship containers being caught in the function. Is it possible to filter these out?

Code: Select all

[=ERROR=] Error in MD cue md.EuclidsAutoLooterStart.EuclidALEnd<inst:1aeae>: collect_drop: Evaluated object 'Albion Skunk' can not collect drop 'Ware Container'
* Expression: player.primaryship
Thanks Yorrick :-) ... almost beat you to it :p :

New version uploaded (see OP for details)


@LUBEggA: Unfortunately handling keys (things like assign_key or event_key_pressed) is one of the two most useful features that are not yet implemented and hence not yet available for scripting. :-(


Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
NZ-Wanderer
Posts: 1623
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer » Mon, 29. Dec 14, 20:10

Results using "old" version

Works great, I have my Arawn patrolling one of Maelstroms zones, every now and then I take Skunk over to check up on her, activate your mod and get lots and lots of goodies..
Sure makes easy work instead of having to spend heaps of time trying to locate every single crate..

Just one thought, I notice it doesn't pick up missiles if you already full, any chance they could be automatically destroyed instead of leaving them cluttering up the x universe?

Heads over to download new version.. - Thank you Euclid...
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Mon, 29. Dec 14, 23:16

NZ-Wanderer wrote: .....
Just one thought, I notice it doesn't pick up missiles if you already full, any chance they could be automatically destroyed instead of leaving them cluttering up the x universe?
....
Na, even worse with the latest version, ware containers with non-inventory items are left in space.

Maybe get a freighter every now and then to collect the remaining goodies? Uhh, and go sell your overload of missiles so the AutoLooter can fill you up with new shiny ones :D

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
Informer
Posts: 283
Joined: Wed, 3. Jul 13, 23:10
x4

Post by Informer » Tue, 30. Dec 14, 04:06

Nice work, thanks m8. :D
Information is power. But like all power, there are those who want to keep it for themselves (Aaron Swartz you will live forever)

User avatar
NZ-Wanderer
Posts: 1623
Joined: Thu, 5. Aug 04, 01:57
x4

Post by NZ-Wanderer » Tue, 30. Dec 14, 04:19

euclid wrote:Na, even worse with the latest version, ware containers with non-inventory items are left in space.
Maybe get a freighter every now and then to collect the remaining goodies? Uhh, and go sell your overload of missiles so the AutoLooter can fill you up with new shiny ones :D
Cheers Euclid
Yea, might have to do that, gee I got 3 shipyards, I guess I can browse through them and find a nice fast freighter to build for that job :D
Hmm, it's a pity I cannot sell my missiles to my own shipyards...
Link to the list of Mods working in X4-Foundations and also Link to the list of Mods working in X-Rebirth

NOTE: I play with a modded game, so any reports I make outlining suggestions/problems/bugs/annoyances, are made with mods installed and running.

manpapper
Posts: 61
Joined: Thu, 29. May 14, 11:51
x4

Post by manpapper » Fri, 2. Jan 15, 18:49

is this on steam workshop?

GT500
Posts: 2
Joined: Tue, 6. Jan 15, 06:33

Post by GT500 » Tue, 6. Jan 15, 06:38

euclid,

Great mod, one small request.

Can you have the menu to collect items re-trigger when you do a new scan and not just when you first go into Long Range Scan mode.


When doing active scanning, it would be nice if the mod rechecks for nearby loot every time a new scan is completed. This way one can stay in Long range scan mode and not have to keep exiting and re entering Long Range Scan mode just to trigger the Menu to collect loot.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Tue, 6. Jan 15, 14:50

Hi manpapper & GT500 :-)

@ manpapper: All my mod are on Nexus but you will find mods of my mods on other sites like the Steam Worskshop.

@ GT500: That was the original idea but unfortunately firing the LRS is not covered by any event and hence I cannot use it as a trigger.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X Rebirth - Scripts and Modding”