[SCRIPT] BOF - Ship Clamper

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

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

B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi Krim,

I don't issue any voice messages, just a normal text message.

It sounds like you have a conflict of scripts, and the only one I knew of that could conflict was BenCo's Garbage Recycler. Just checked, and Shovinus uses the same slot for his Dock Upgrade Manager - do you have either of these scripts installed?

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
User avatar
Krim
Posts: 80
Joined: Tue, 6. Apr 04, 00:10
x4

Post by Krim »

BenCo's Garbage Recycler is now being dump in an airlock

LETS POLUTE THE UNIVERSE :twisted:
User avatar
defiant1
Posts: 1141
Joined: Sun, 7. May 06, 03:53
x4

Post by defiant1 »

uhhhhhhhh...goood luck finding a place to dump the garbage....I suggest useing Kha'ak and xenon sectors to dump the garbage in since all boron sectors are well...I leveled them and turned them into giant parking lots...
Teladi Next Minute Shipping®
C.G. Crastinus
Posts: 51
Joined: Wed, 1. Sep 04, 18:56
x2

Post by C.G. Crastinus »

Im having some trouble installing this script. When i use the script installer and select the script package to install i get a little flicker as if the script were moved into the installer list but i dont see it, and i cant access it in the station commands.. I do have some unknown command that sends me a messege about a readme from this scripts rar file though..

If anyone is recognizing something i did wrong id appreciate a little guidance, thanks.
On the Plains of Pharsalus, June 29th, 48 B.C.
Caesar
"What hopes for victory, Gaius Crastinus? What grounds for encouragement?"

Centurion Crastinus
"Victory will be yours, Caesar. You will conquer gloriously today."
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi Krim,

You don't have to dump BenCo's Garbage Recycler - I could guide you through changing the command slot used for the Ship Clamper, then you could still use both scripts. If you decide to do so, let me know.
For your crime in polluting the universe, you have to use some of my other scripts to help tidy it all up again - see my sig for a full list.

Hi C.G. Crastinus,

From your PM, you now have this working - sorry for the delay, but we are in different time zones.

To all, please enjoy - and help swell the 'Make the Ol Fh'art Even Richer' fund,

Boron - ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

Found an interesting side effect of this script...I have only one station right now in my current game. Nividium Warehouse (Xenon Shipyard)...Noticed that "damaged ships" that seem to be looking for repairs drop in now and then...When they stay to long and become my property, I noticed that the "pilots name" stays with the ship...This may be a side-effect of another script I am running (maybe safesuit not sure), but I like this anyway...Always liked having different pilots in my ships even if they serve no real purpose...Cheers
X3..The most fun a man can have...With his clothes on.
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi pogi,

This is purely down to the Clamper, not any interaction with other scripts.

Yes, you get ownership of the ship (try saying that quickly) and the pilot.. the clamper doesn't attempt to change the pilot name (because I didn't think of it), so you get some new pilots for your fleet - just think of it as a bonus, rather than as an error on the script writer's part... please, it will make me happier.

May the clamper provide much profitss.....

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
rubberman
Posts: 120
Joined: Wed, 6. Nov 02, 20:31
x4

Post by rubberman »

I always thought this was intensional, just the application of common sense by B-O'F.
I mean how many Julians are there in the X3 universe and how come they all work for me!.
Maybe I have a cloning facliity out there some where turning out Julian pilots by the dozen that I am not aware of.
Does that mean that i'm just another clone with delusions of grandure or the real thing.

My Brain hurts - must fetch beer!
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi rubberman - or is that Julian? or is it a clone?

If by common sense you mean that I did not even think of changing the pilot's name, then yes, it was common sense..

I must agree, having all the pilots with the player name is rather strange. Either there are a lot of clones around just waiting for a ship (horrible thought - a universe full of me's) or the autopilot has taken the player's name - but not the skills...

With this (un)intentional oversight, you can now have a lot of pilots with different names, and you do not have to go to all the trouble of hiring them.. best of all, is that they also supply you with ships.. and working equipment... and, sometimes, rather nice cargo - especially the weapon dealers..

Perhaps I will update the write-up, and pretend that this was an intended feature .... but maybe not, as these posts are visible and would show it was not true.. would anyone accept "beneficial side effect" to re-phrase pogi's post ?

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
rubberman
Posts: 120
Joined: Wed, 6. Nov 02, 20:31
x4

Post by rubberman »

Whenever I code stuff with "beneficial side effects" I just let users believe what they want.

Who am I to tell them that I am not as smart as they think I am, as I get older I need all the help I can get!
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi rubberman,

So that is the secret to 'growing older and wiser' - you don't admit to errors and you don't state too clearly what a script will do.. then all the (what used to be called errors) become 'beneficial side effects'.... At last, at 60+ I have become wiser.. just like that..... magic.. the 'growing wiser' is catching up with the 'growing older'.. I gave up on the 'growing up' stage - far too boring... 64 going on 6 is much more fun.

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
lordsoulstrike
Posts: 65
Joined: Sun, 6. Jun 04, 23:34
x2

Post by lordsoulstrike »

I would love to use the spk but it will not install and its been too long to know what files go where.

Thanks
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

I must agree, having all the pilots with the player name is rather strange.
@BOF..Then why don't you make a little script we all can use to change the names of the pilots in our owned ships?..I would love to push a button and have a whole fleet of different named pilots...I bet you could even come up with a way that the player could edit the file/randomizer and fill in their own names to use for their pilots..What do you think? :D
X3..The most fun a man can have...With his clothes on.
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi lordsoulstrike,

Sorry for the delay in replying, but RL got in the way.

To install this script without using the .spk version:-
copy '448897.xml' to your reunion folder 'tfiles'
copy 'setup.bof.ship.clamper.xml', 'bof.ship.clamper.xml' and 'buy.bof.shipclamper.callback.xml' to your reunion folder 'scripts'.

All the files are in the .zip file, that is all that is needed.

Hi Pogi,
I don't know if there would be a great demand for such a script (apart from your request), but it is something that could be looked at - so I will look at what needs to be done.. one possible problem (challenge) is buying new ships... coud be interesting..

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
lordsoulstrike
Posts: 65
Joined: Sun, 6. Jun 04, 23:34
x2

Post by lordsoulstrike »

I finally got this working. I have so far claimed 20+ ships (mostly from my booze and weed complex). I guess the express ships were too busy drinking and smoking to notice they were going to be captured.
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi lordsoulstrike,

Glad to hear that you have it working and are enlarging your fleet and your staff.... Booze and weed is a good distraction, and the extra time it takes the pilots to remember where they parked, certainly helps...

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

Um...BOF, I think I found a bug and it cost me 500k...I started new game with only bonus packs and Ship Clamper (good alternative to bail sig ext.) as "enemy of state"...Worked my way up in Teladi territory until I had about 2 million...Bought Mosquito Missle factory and placed in Greater Profit...*Put 500k in the factory as start money, still had 1.2 million in my personal account*...Opted for license and it took the 1 million from my account but, also sucked up the 500k from the factory as well :( ...My new vulture for mining had to wait...Could you check this out please..Thanks
X3..The most fun a man can have...With his clothes on.
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi pogi,

I will look at that - but I have to go out today, sorry for the delay.

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
B-O'F
Posts: 724
Joined: Sat, 21. Feb 04, 02:15
x3tc

Post by B-O'F »

Hi Pogi,

I know that this was tested earlier, but I cannot fire up my game machine to re-test for a few days, as I have family staying for a few days.

I have looked at the script 'bof.buy.shipclamper.callback', and there is no way I can see that the money could be taken from two places - the station account and the player account.

The relevant code is:-

Code: Select all


030   else if $answer == 'buy'
031   * Player wants to buy a site licence.
032    $cost = $million
033    $neg.cost = 0 - $cost
034    $bought = null
035    
036   * Buy from station funds, or player account
037   * Check station funds
038    $funds = $station -> get money
039    if $funds > $cost
040   * Station can afford it
041     $station -> add money: $neg.cost
042     $bought = 's'
043    else
044   * Not enough money at station, check player's account
045     $funds = get player money
046     if $funds > $cost
047   * Player can afford it
048      add money to player: $neg.cost
049      $bought = 'p'
050     end
051    end
As you can see, the money can only be taken from one account.

What message did you see?

Did the factory buy some wares with the 500k credits at the same time as you bought the licence?

Do you have a saved game to try to re-create the problem?

Do you have any more information that may help pin down any possible problem?

Sorry about all the questions, and no real answers yet...

Boron - Ol Fh'art
Public Service announcement

Growing old is not a disease - it is a delayed symptom of birth trauma.
Pogi
Posts: 522
Joined: Thu, 13. Apr 06, 12:35
x2

Post by Pogi »

What message did you see?
Standard success message
Did the factory buy some wares with the 500k credits at the same time as you bought the licence?
Just dropped it and didn't even have a freighter assigned to home yet..Ore, N-Oil and E-Cells are the resourses for Mosquito Missle Factory Teladi..Can't spend 500k in one shot.
Do you have a saved game to try to re-create the problem?
No sorry I don't..Saved over it already...Now, I make sure I don't have any money in the factories before I select the Clamper, so I have not had this problem again, nor have I tested for it...but, I do remember that if you have the full 1 million in a factory it never gave me a problem..This time it was only 500k..I assumed it would just take from my account the full amount or even split the differance.
Do you have any more information that may help pin down any possible problem?
No..I remember specifically that I had around 1.7 million..I placed 500K in the factory..Selected the Clamper option and it sucked 1 million from my personal account and then I checked the factory and the 500k was gone too..I was left with about 200k..I remember this because I was planning to buy a vulture to get going with the factory (money was tight so I was careful to watch the budget)....I don't know what happened, but I know I was very confused and still am..lol...Still using it and loving it, just changed the way I deposit the funds from now on before I start the Clamper...Cheers
X3..The most fun a man can have...With his clothes on.

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