[SCRIPT] Ship Claim System MK1 - v1.02 2007-02-21

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

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

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Fri, 16. Feb 07, 19:05

Version 1.01 is officially tested and released. See the original post for the download link. The jumping problem seems to be resolved.

Simply install the 1.01 SPK whether or not you had 1.00 installed. There is no need to uninstall 1.00.

User avatar
defiant1
Posts: 1141
Joined: Sun, 7. May 06, 03:53
x4

Post by defiant1 » Fri, 16. Feb 07, 23:04

YEAAA...once i get off of work ill try to go clame some other ships that i find...hehe
Teladi Next Minute Shipping®

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sat, 17. Feb 07, 04:04

Just got a chance to test out the script and it works great! Congratulations! :) Everything works now (at least the ones I tried). I had my carrier collect ships and then jump to shipyards and drop them off.

It was a little bit off of the distance from which I usually manually drop my ships off though, but I was always really close to the shipyard before I drop the ships. What I did was I dock my carrier to the shipyard (guess you can't do that with M2 or M1s), tell it to idle(cause undock) and then tell it to standby; after that I tell the salvaged ships inside the carrier (which is now standing by) to dock the shipyard, and they're docked within a second or two. Of course, it would not be this fast IS.

I didn't really care for the carrier going back to the sector after all the ships have been salvaged though, since I usually have to carry those ships off to somewhere else to either upgrade them/equip them or etc. A nice addition to the message that tells me the Ship Salvage Software MK1 is finished (displaying ships stat and all) would be to ask if I want the carrier to remain where it is (where it drops the ships). However, I imagine this would get rather annoying if it has to be repeated over and over for someone who does this a lot =/

I don't mean to complain or anything. Just want to give you some feedback so you can do with it what you will ;)

User avatar
defiant1
Posts: 1141
Joined: Sun, 7. May 06, 03:53
x4

Post by defiant1 » Sat, 17. Feb 07, 04:46

will it let my ship (the one im in) also scan for salvageable ships? or does it only use the sats?

also do i need script manager/editor thing running?
Teladi Next Minute Shipping®

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sat, 17. Feb 07, 06:03

reinhart: I'll give all that some thought. Thanks for the input. I'm glad it's working. One note, I intentionally included a 30 second delay after it sends the incoming message report but before it returns to the start position for you to have a chance to idle it or give it another order. If you like, you can adjust that time value up as much as you like. That value is set at the very top of the plugin.scs.main script. Move down/right till the value is red, hit enter, scroll down to <number>, hit enter, type in a new number in milliseconds, hit enter, hit escape, 'yes', enter and voila. :D

defiant1: yes, it will use the scanners onboard the ship as well (or any other ships of yours in the sector) in addition to satellites. So be sure to use a triplex scanner. Nevertheless, that'll never be nearly as effective as a network of satellites. Not sure what you mean with your second question though. It's an unsigned script so the script editor has to be unlocked. Everything that needs to be done is listed in the installation instructions.

User avatar
defiant1
Posts: 1141
Joined: Sun, 7. May 06, 03:53
x4

Post by defiant1 » Sat, 17. Feb 07, 06:16

ok i thought so...hehe...now to go pwn...errr...own some new ships...
Teladi Next Minute Shipping®

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sat, 17. Feb 07, 08:24

Okay, really weird, don't know what happened here. Like I said, at first it worked okay. Just now I had 5 ships that I needed to claim, so I got my carrier into the sector and was ready to give the command, but it was gone. It's just not there; my carrier doesn't even have the piracy menu. Then, when I moved the Ship Claim System to another ship, the Cargo Cloaking Device MK1 option shows up instead. I moved the system to another ship, the Cloaking Device command disappears =/

All I did was add a couple scripts, namely Hotkey Radiation Blast, Homebase removal, and NOS. No conflict even showed up in the Script Manager =/

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sat, 17. Feb 07, 08:38

Hmmm... perhaps something is going screwy with the Custom Wares as the CCD uses them as well. There's a lot of Cycrow's magic in the Custom Wares so I just trust it to work and never looked into the code. It's possible I've misused it somehow, but I followed his custom wares documentation to the letter.

I'm too tired right now to ask you any intelligent questions to diagnose this, so I'll do so tomorrow. You could try using the script manager to uninstall, and then reinstall before you load your game (else you'll lose your SCS MK1 ware) and see if that helps. Do you have the CCD installed in X3, btw?

Off the top of my head I haven't the faintest idea how that could even happen.

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sat, 17. Feb 07, 23:52

It was late when I posted the question too. That was the last thing I did before I turn in. Anyways, I do have CCD installed in my game, but I haven't gotten one yet =/

I seem to remember having the option to cloak cargos as well (in the commands), when I first installed that script, but did not have the ware. I let it go without much further thought because I thought maybe it's meant to be in the commands menu at all times :shrug:

Just tried something right now. With the ship claiming software my fighter ships will have the cargo cloaking device command, but of course the command won't work. When I have only the actual cargo cloaking device, there isn't even the command to cloak cargos :shrug:

Oh btw, I don't think constant re-init-ing script would have any effect would it?

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sun, 18. Feb 07, 00:12

Wow, I'm really stymied on this one. Assuming there's no conflict with another script you are using in either t file number, page ID number or command slot, my best guess is something is going wrong with either the custom wares system or my use of it.

I'll send Cycrow a PM later to see if I'm doing something wrong in my use of custom wares. So far my installation isn't exhibiting your problem, so I'm still not entirely sure that it's not a conflict on your setup, somehow.

In my experience, reiniting can cause some weird things to happen with commands. Some commands tend to disappear when you use reinit script cache until you load a save game. Have you been doing that a lot?

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sun, 18. Feb 07, 00:22

I've been doing that a couple times, since I am using the Remove PSG script, which the author stated that the script works on load or reinit, and I am taking Mercenary skirmish missions which spawns enemies with PSG. That script seemed to work (remove existing PSG's) when I reinit it, so I just did it whenever I see a PSG go off :P I just thought since he said it works when reinit then it's prolly save to reinit. I had been rather unwilling to use that function before that. :shrug:

It does seem though that right now "my game" thinks that the SCS is CCD and CCD is SCS, because I just tried removing CCD to see what happens, and then SCS "turned into" CCD. The reason I knew it "turned" because SCS then took 10 cargo space and the price went up to millions, which was what CCD used to be before I removed it. If it is problem with reinit then it seems that there is another weird behavior this feature could cause. Now if only someone knows how to fix problem brought on by reinit :P

Edit: well, just going to uninstall both of them, load the game, save it, and then reinstall it again. I don't really care about losing the SCS, because I can just buy another one easily :P Or "cheat" one back in since I deserve one :P Will let you know how it goes.

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sun, 18. Feb 07, 01:08

Reinhart, thanks so much for all the great testing. I'm looking forward to your report. I really want to get this resolved properly.

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sun, 18. Feb 07, 02:00

Step 1
Okay...erm...even weirder, but it's "half" solved. I first uninstalled both CCD and SCS with Script Installer, loaded the game, checked the pirate base (result below), and then saved it. However, the wares weren't removed from all the ships and stations and instead appeared as ReadText; I was under the impression that they would be removed? I tried manually activating the uninstall scripts by going into SE, select the setup.plugin.xxx.uninstall, r, Enter, Enter; still there. There were two instances of ReadText, each for CCD and SCS, with corresponding cargo space.

Step 2
Next, I reinstalled first only the SCS. I checked the nearest pirate base, the ReadText that was for CCD (cargo space 10) was now named Ship Claiming Software, the ReadText for the old SCS was below it (2 cargo space), and then a new and "real" SCS was on the bottom (same 2 cargo space). I cheated my carrier the real SCS and indeed there was the command for the SCS. Note that CCD was not installed, but somehow the ReadText for CCD was changed to the name of SCS anyways.

Next I installed the CCD and things got worse. Let's see, the fake SCS with 10 cargo space that should be CCD is still named SCS. The ReadText for the old SCS disappeared, but the "real" SCS that was there in Step 2 became a fake Majaglit*, note the star sign (or whatever it is). It seems that the SCS was turned into one of those cloaked illegal goods =/ So I cheated myself (my ship is a fighter) both "goods", and I still got the CCD command in my command slot, but no SCS command. I moved the two goods to my carrier, and it didn't even have any command (since being a carrier, a CCD wouldn't work either).

So...that's basically the result. I'm still wondering whether or not the uninstall scripts should have removed the wares.

For now, being - not - a smuggler, I can live with uninstalling CCD, just install SCS, a ReadText and a fake SCS. Btw I thought that SCS turned into Majaglit was rather funny :P It seems that the custom wares were screwed up though?

And no problem for the testing, after all it's for my own benefit as well (to use this great script) :)

Edit: Lastly, I don't know if I should delete the shared files though. Last time I uninstalled a script and allowed the script manager to delete the shared files every goods and wares sold in the stations in the game became blank and I had to reinstall the game, so I said screw that, shared files stay.

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sun, 18. Feb 07, 02:48

Yeah it's definately looking like it's custom wares related. And I've checked and can't find anything wrong with my tiny snippets of code related to custom wares, although if that snippet were wrong it could account for the items not being uninstalled. It obtains the ware object from one of Cycrow's scripts and then uses that ware object for all operations, including removing from stations and ships.

I've tried all these things myself without problems, of course, else I'd have this solved by now I can't work on it this evening, but I'll think on it and see if I can come up with a reason for this. If not, I'll contact Cycrow.

My biggest concern is the ware not removing from the bases issue, as that's just ugly. If it weren't for that, I'd suggest uninstalling and disabling custom wares entirely, exiting the script installer, loading a game, save it, reinstall just the SCS and reenable custom wares, and load that save.

On the good side, I'm fairly sure this has nothing to do with the main script functionality, but either my setup script or Cycrow's custom wares. I'd lean towards the former since I'm far less experienced than Cycrow when it comes to X scripting, but there's so little to go wrong in the setup script!

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sun, 18. Feb 07, 03:21

Oh well =/ It's alright, do what you have to do ;) I have no doubt that there's nothing wrong with your main function script, and I am using it right now :) I had the same though as you; I have only the SCS installed and not the CCD. I used to always jump out of the sector when I was detected anyways :lol:

Police go, "Please cooperate and drop your cargo!"
"Buh-eye"

neumanf15
Posts: 259
Joined: Mon, 26. Dec 05, 19:55
x3

Post by neumanf15 » Sun, 18. Feb 07, 04:38

Absolutely refuses to work right for me. Every time I install it, This is what I get added to my pirate base:
[ external image ]

That corresponds to SS_WARE_SW_CUSTOM1_2 in TWareT.

Script installer works well for everything else and I have custom wares setup right for my mod (DDRS).

I think the custom wares thing is borked. This is the first script I've seen use it. Any thought to using one of the numerous EMP wares instead?

Greg_G
Posts: 110
Joined: Tue, 26. Apr 05, 19:15
xr

Post by Greg_G » Sun, 18. Feb 07, 04:55

Well I see two possibilities, either I'm using the custom wares improperly (which should mean an easy fix...once I can figure out what's wrong), or there's a bug in custom wares. If the latter, I'm sure Cycrow would want to fix it so any testing we can do helps. So yes I can switch to the EMP, but if we can get custom wares working it's a better option. If I dont get this resolved within the next three days or so I'll switch to the EMP.

But now that two people are having trouble with the custom wares in my script, I know it's not isolated, so that's a good thing.

I promise to work hard on this tomorrow (busy tonight). I'll spend a while trying to figure it out myself, and if I have no luck, I'll contact Cycrow. I just want to leave that as a last resort as I know he's very busy.

Thanks for letting me know neumanf15, I'm sure reinhart is relieved as well to know he's not the only one with an issue!

User avatar
defiant1
Posts: 1141
Joined: Sun, 7. May 06, 03:53
x4

Post by defiant1 » Sun, 18. Feb 07, 05:11

nono...im useing the EMP also...i also seem to have some issues with it...i slected a pirate ship and wanted to clame it (pilot wouldnt bail so i wanted to take the ship by extream force) and i couldnt find any option to claim or at least try to claim...and i know i got it all installed properly as with the extra wares thing its enabled too...
Teladi Next Minute Shipping®

neumanf15
Posts: 259
Joined: Mon, 26. Dec 05, 19:55
x3

Post by neumanf15 » Sun, 18. Feb 07, 05:14

Some info that might help... I can find the SCS in LV's add wares... In fact, there are now 16 of them... and it seems to be growing. Last I checked, there were only about 7.
[ external image ]

I've done a couple un/reinstalls of the script since then, but I've also gone back to a backup of my scripts directory from before I installed this, then reinstalled, so who knows what it's doing.

If I add any of those wares above, I get no new commands (I didn't try ALL 16...)

If I add the ware readtext...10253 (the one the pirate station sells), I get the piracy command you described. So, somehow your commands have migrated to the ware I mentioned before (I believe it's an EMP ware).

Hope that helps. I'm a GUI modder & beta tester, not a scripter, so you've reached/exceeded the limits of the help I can give you. i.e., I could be wrong about the ware stuff.

reinhart_menken
Posts: 229
Joined: Sat, 27. Jan 07, 05:23

Post by reinhart_menken » Sun, 18. Feb 07, 05:43

Well, I am indeed relieved and somewhat "glad" to hear that I am not the only...um...case. I am sorry that it means you have more work to do though =/

Thanks for all the efforts you put in anyways :)

Post Reply

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