Find All Crates And Abandoned Ships (Manually Run: Vanilla Friendly Possible, V1.1)

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

User avatar
EmperorJon
Posts: 9378
Joined: Mon, 29. Dec 08, 20:58
x3tc

Post by EmperorJon »

It may be to do with an update, I'll have a look.
______
I'm Jon. I'm mostly not around any more. If you want to talk, please message me! It's cool.
______
User avatar
ubuntufreakdragon
Posts: 5218
Joined: Thu, 23. Jun 11, 14:57
x4

Post by ubuntufreakdragon »

It seem like the is a mistake in line 45, the script is searcing for all ships with race unknown, but it should be neutral.
My X3 Mods

XRebirth, things left to patch:
In General; On Firing NPC's; In De Vries; Out Of Zone; And the Antiwishlist
Indifference
Posts: 4
Joined: Wed, 25. Jul 12, 15:28
x3ap

Post by Indifference »

have you had any luck with editing it?
cheers
Luewen82
Posts: 7
Joined: Sat, 4. Aug 12, 16:45

Post by Luewen82 »

So, does it work on AP 2.5 patch?
User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 »

It *should* (I haven't tested it). As a rule scripts are not broken by patches.
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Indifference
Posts: 4
Joined: Wed, 25. Jul 12, 15:28
x3ap

Post by Indifference »

as ubuntufreakdragon pointed out it now returns the result 'unknown'
User avatar
Toastysoul
Posts: 81
Joined: Fri, 3. Feb 06, 05:00
x4

Post by Toastysoul »

Had the same issue of the script finding crates and not ships.

My script work is very rusty, but 30 seconds in the editor provided a fix:


Open ej.findwares.xml in notepad

Find the following line:

$shipar = get ship array: of race Unknown Race class/type=null

Change it to:

$shipar = get ship array: of race Neutral Race class/type=null

Save, then rerun the script. Have fun!
User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 »

You didn't open that in notepad, it would of been full xml.

Some better instructions:
Open the game.
Change your name to "Thereshallbewings" (no quotes).
Go to your ships command console.
Select the Script Editor option.
Select the first option.
Find ej.findwares.
Do Toastysoul's changes.
Close the editor (When it asks you to save changes click yes :))
Reload the last save so you are no longer modified. (Unless you were already ;))
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
Indifference
Posts: 4
Joined: Wed, 25. Jul 12, 15:28
x3ap

Post by Indifference »

Not sure if that is the solution, my ej.findwares file already has Neutral instead of unknown, the error is since the 2.5 patch
The message i'm getting is 'no arguments'
Sovereign01
Posts: 2133
Joined: Wed, 25. May 05, 14:38
x4

Post by Sovereign01 »

I'm getting the same, it finds crates only- I tested by loading some starts and running the script right away, and the same thing happens- crates only. I didn't get great crates though :(

EDIT- made the changes and it found a dozen ships :D
User avatar
surferx
Posts: 1250
Joined: Wed, 6. Nov 02, 20:31
x4

Post by surferx »

I didn't have to change anything. Mine read "neutral" also and worked as advertised. Found ships, crates, tunings....
If you want to go fast, go alone.
If you want to go far, go together.

Operating System:
Windows 11 Pro 64-bit CPU: 13th Gen Intel Core i9-13900KF RAM: 32606 MBytes MBO: Gigabyte Z790 UD AC (U3E1) GPU: ZOTAC GEFORCE RTX 4080 Trinity OC NVIDIA 16 GB GDDR6 SSD: AJP600M2TB 1907 GB
stoggy
Posts: 45
Joined: Thu, 7. Jan 10, 01:59

Post by stoggy »

worked great thanks
Indifference
Posts: 4
Joined: Wed, 25. Jul 12, 15:28
x3ap

Post by Indifference »

Those that are claiming it's still working, are you on 2.5.1?

Feel stupid that it's not working for me, yet it was before.
User avatar
EmperorJon
Posts: 9378
Joined: Mon, 29. Dec 08, 20:58
x3tc

Post by EmperorJon »

There's no error with it, I've checked it, it works fine.

Hit r to run the script, select null, then on the screen which says "No Arguments" hit enter, DO NOT HIT THE X. There are no input arguments for the script as it gathers all the data itself.
______
I'm Jon. I'm mostly not around any more. If you want to talk, please message me! It's cool.
______
Tw122le
Posts: 1211
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by Tw122le »

Works ok on 2.5.1, well after I actually followed the instructions anyway :oops: Managed to get it in wrong script directory ( forgot about addon) and didn't read the open script editor to get the alphabetical list. All my own fault yours works fine :D
X3 GOTY, X2 v1.4 + 1.03.03. X-BTF & X-Tension 2.1a.
X2 Guides courtesy of Nilof:Click Here
I only play the games, not make the rules.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

how hard would it be to make this also find the jump beacons?
not the ones in ships but those already floating in space
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
EmperorJon
Posts: 9378
Joined: Mon, 29. Dec 08, 20:58
x3tc

Post by EmperorJon »

It would take mere instants. :)
______
I'm Jon. I'm mostly not around any more. If you want to talk, please message me! It's cool.
______
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

ok as its that easy had another look at the script and came to

Code: Select all

  $shipar =  get ship array: of race Neutral Race class/type=null
and changed it to

Code: Select all

  $shipar =  get ship array: of race terran class/type=jump beacon
and that worked for the terran beacons
but is there a way of making it show all races jump beacons with out copy/pasting 20 odd lines for each race
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings
User avatar
jack775544
Posts: 1277
Joined: Tue, 13. Dec 11, 08:27
x4

Post by jack775544 »

Just a guess, try setting race to either TRUE or null.
One of those should work.
1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate.
User avatar
cattafett
Posts: 884
Joined: Thu, 30. Aug 07, 00:40
x3tc

Post by cattafett »

jack775544 wrote:Just a guess, try setting race to either TRUE or null.
One of those should work.
no joy neither shows any JBs
those UFOs you hear about are just what you tried to explaine to me going over my head
Advanced Complex-Hub you know you need it Catta Fett's D.O.G.S Vanilla safe mod collectionyou don't need them but you want them
Friendship is like peeing on yourself: everyone can see it, but only you get the warm feeling that it brings

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”