[AL Plugin] Fix Flying Wares v1.02 7-Nov-07

The place to discuss scripting and game modifications for X³: Reunion.

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

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

[AL Plugin] Fix Flying Wares v1.02 7-Nov-07

Post by eladan » Thu, 1. Nov 07, 05:28

Fix Flying Wares


Version 1.02 - Download here - Xai Corp, thanks moggy

Another response to a request - this time from here to make crates stick around longer. From the readme:
readme wrote:Fix Flying Wares v1.02 by eladan
--------------------------------

This is an AL plugin to scan for flying wares (crates dropped by destroyed ships primarily) and change them so that they don't self destruct after a certain period of time. This will make them behave like e.g. the hidden crates or pandora tunings, which are permanent until picked up.

I've limited it to only work in the sector that the playership is currently in. The reason for this is to limit the amount of processing required, and also the fact that crates are only dropped when the player is in the sector. I've also limited it to only run on crates you know about. The reason for that is to ensure you don't have a glut of crates lying around that you're unaware of, potentially causing unexplained slowdowns.

The plugin runs every sixty seconds, so as long as you know of crates for at least this long before leaving a sector, you should be able to rely on them being there when you get back.

The plugin is shown in the Options->Gameplay->Artificial Life Settings menu as 'Fix Flying Wares'. Turning it off will return to default behaviour on any *future* drops - any crates already processed will stay that way.

There are no commands or text associated with this plugin.

Changelog
---------

v1.02 - Restricted wares that plugin will work with, to avoid problems with plot objects being replaced and no longer recognised.

v1.01 - Fixed minor issue with any crates outside scanner range reverting to unknown. :/
- Increased range for detection of crates for those really big sectors...

V1.00 - Initial release.
Last edited by eladan on Wed, 7. Nov 07, 05:14, edited 2 times in total.

johntarmac
Posts: 384
Joined: Fri, 5. Mar 04, 20:47
x3tc

Post by johntarmac » Thu, 1. Nov 07, 05:56

nice :)

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Thu, 1. Nov 07, 07:09

Thanks John - enjoy! :)

You might want to re-download. A couple of minor fixes/tweaks
.

Reaxe
Posts: 25
Joined: Tue, 30. Oct 07, 01:48

Post by Reaxe » Thu, 1. Nov 07, 09:16

eladan - this is exactly the kind of thing I was after - thank you :)

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Thu, 1. Nov 07, 09:45

Reaxe wrote:eladan - this is exactly the kind of thing I was after - thank you :)
Just following directions. :wink:

Reaxe
Posts: 25
Joined: Tue, 30. Oct 07, 01:48

Post by Reaxe » Fri, 2. Nov 07, 10:41

I *may* have found a possible issue/bug - not too sure though.

I just finished cleaning out X594, looking to score some big lwet with my new script a-running, and lo and behold, out of the 10+ Xenon cap ships I showed to the door, I got no cap ship goodies. No GPPC's, BPPC's, APPC's, flaks or smaller guns - though a few small guns did drop from the fighters in-sector. The only other stuff left floating around was missiles.

Now, this may just be my luck, and the RNG is nopt liking me too much right now, but I figured I'd post it just in case.

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Fri, 2. Nov 07, 11:06

Hi Reaxe, while admittedly I didn;t test this with PPCs, I think it's far more likely you just got an unlucky streak. :( Did you see any drop at all? If they did drop, and then disappeared, then that would clearly indicate a problem.

I'll get in and take a look, to test with PPC drops, but it'll have to be in a bit - currently my gaming rig is tied up doing something else.

Reaxe
Posts: 25
Joined: Tue, 30. Oct 07, 01:48

Post by Reaxe » Fri, 2. Nov 07, 11:20

No - I didn't see any drop. I'm about to head into the next one up from 594 and have a crack at those bad boys - see what I can come up with. If I get through two entire Xenon sectors without a single PPC or flak drop... something has got to be putting a kink in my Mojo.

*Checks under desk for evil spirits*

EDIT - It worked in 101 - seems I just had bad luck... 10 times in a row... :P

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Fri, 2. Nov 07, 13:31

Reaxe wrote:It worked in 101 - seems I just had bad luck... 10 times in a row... :P
Yep, just checked, and PPCs work fine. Must be a run of bad luck. You didn't have a black cat walk in front of you while you ran under a ladder smashing a mirror on the way over halloween, did you? :D

Saint-Ashley
Posts: 1260
Joined: Sat, 3. Dec 05, 04:40
x4

Post by Saint-Ashley » Fri, 2. Nov 07, 15:36

It could have also been possible that the crates got destroied conventionally (or naught had dropped at all). As they are naught indestrictible. A stray PPC fire shot or a fighter crashing into them and poof.

Keep in mind the X3's Autopilot and we all know how possible it is! :lol:

Reaxe
Posts: 25
Joined: Tue, 30. Oct 07, 01:48

Post by Reaxe » Fri, 2. Nov 07, 23:01

Heh - you're not kidding! I just finished watching my TL try to plough through a factory on it's way to dock in PTNI. Amazing :P

Saint-Ashley
Posts: 1260
Joined: Sat, 3. Dec 05, 04:40
x4

Post by Saint-Ashley » Wed, 7. Nov 07, 02:48

Was just going through the plot missions, and of course someone has to find a bug. ;)

When haveing to collect the black crystal from Xenon Sector 101 the script identifies it and replaces it. Causeing the plot to cease.

If your entering the sector to collect the Black Crystal for the plot you should (for now) turn off the 'Fix Flying Wares' until eladan gets a chance to fix this if he decides its even worth it. At least we know what *can* happen.

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Wed, 7. Nov 07, 03:37

Saint-Ashley wrote:When haveing to collect the black crystal from Xenon Sector 101 the script identifies it and replaces it. Causeing the plot to cease.
Thanks SA - didn't even consider the plot... :roll:

I'll fix this asap.

eladan
Posts: 5321
Joined: Sat, 7. Jan 06, 17:01
x4

Post by eladan » Wed, 7. Nov 07, 05:21

New Version - 1.02 to fix the problem if plot objects are replaced. I've restricted the wares that the plugin will work on to only be those that commonly drop.

For those who want the info, this means that I am only replacing wares with a maintype of 8-11, 13-15 (any subtype,) or maintype 16 with subtype<11.

There are some wares in maintype 12 which some people do occasionally see dropped, but as these are supposed to be plot or mission related wares, there shouldn't be any real interest in having this work on them.

Dracken
Posts: 62
Joined: Mon, 19. Nov 07, 04:06
x3

Post by Dracken » Wed, 16. Jul 08, 00:53

sorry im abit slow in the head tonight, 1 question and im sure gonna sound dumb


"I've limited it to only work in the sector that the playership is currently in"

dose that mean that when i kill and loot drops in the sector it will stay there for all time, or will it go back to normal once i leave the sector

(in my head im sure it means that only items that drop WHILE im in the sector will stay there even after i leave the sector - however been wrong before ^_^)

sorry again for the silly question, just need to know before get it.

Post Reply

Return to “X³: Reunion - Scripts and Modding”