BabyFaces Guild Contracting Software .... Major Update

The place to discuss scripting and game modifications for X²: The Threat.

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

BabyFace
Posts: 140
Joined: Sat, 24. Jan 04, 23:06
x2

BabyFaces Guild Contracting Software .... Major Update

Post by BabyFace »

with the addition of Guild Contracting Software MK3 we have removed a few files from MK1 and corrected a few errors in MK2.

MK1 now offers ships modeled after the ones available in the shipyards so you can no longer turn around and sell them for a profit

(case in point the Boron Dolphin now costs you a total or 1.3 million credits to completly upgrade and its resale value at that level is only 1.2 million Credits). so no more easy cash for ship traders :)

MK2 has had a few minor text issues resolved.

MK3 now Adds 5 Custom Menu Commands (1 for each upgrade [MaxCargo, MaxEngine, Max Rudder, Max Shields, Max Weapons] and of course all is compeditivly priced.

Just a note with MK3 and the weapon upgrade option, i have been unable to resolve a double message (you will see what i mean) if anyone has any sugestions as how to remove it please let me know as it is bothersome.

Not mush else so Enjoy



MK3 also adds a General menu Option so you can uninstall MK3
Check Regularly for new Script/Mods
http://www3.telus.net/public/starnet/default.htm

At the top of each page is a "Back To Main Page" Link

BabyFace
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

I don't get a double message, then again I'm in a Discoverer with 99999999 credits in a custom map and um remote installed mk3 software, so maybe it's not a controled environment.

AH - I see the problem, but I see others as well, give me a few to work things out. When I'm done would you rather me post the errors so others can see and learn or PM you so others won't see and laff?
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

worked 2+ hours on this :)
Since no reply I'm gonna post here :)

The reason why it was sending 2 plus messages was because your send msg command was INSIDE the while loop. So the first thing I did was move it out.
Then I noticed that if I did the script twice I would get double the weapons. Why? Because you used get true volume in cargo bay. That means it did not count the ones installed. It would never go over double the weapons because it would start to install negative amounts of weapons. Or maybe just zero amount, I forget.
Second thing I did was changed it to "get amount in cargo bay". You will need to change that on shields too. It is found in trade commands / for ship and stations.
Here is the weapon script so far at that point. It has taken maybe 10-15 minutes.

However, this compounded the problem on bigger craft like the titan. Assuming the titan had 3 gammas installed, it would never install any more! Here's how I fixed that, it took the rest of the 2+ hours.

It's ugly, with a lot of loops, but at least I did comment it. Usually I make 200 line scripts with no spaces or comments :) You still need to change your text to reflect the new strings I put in.
I have only tested this on a colossus. If I broke it for titans or mantas or whatever just go back to the copy in the first link. I *hope* that this will install the best weapon into a said turret, but it's late and I can barely think. In fact I thot of a way I might have made it 10 times easier but maybe that's just because I'm tired. So nite
Last edited by AalaarDB on Sun, 21. Mar 04, 22:36, edited 1 time in total.
BabyFace
Posts: 140
Joined: Sat, 24. Jan 04, 23:06
x2

Post by BabyFace »

thanks alot Aalaardb, i will look at these when i have a clear head (mid way thru a cold), and thanks again fro taking the time.

BabyFace
Check Regularly for new Script/Mods
http://www3.telus.net/public/starnet/default.htm

At the top of each page is a "Back To Main Page" Link

BabyFace
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

NP, it's a good script. Could I use it in a mod pack I'm working on?
BabyFace
Posts: 140
Joined: Sat, 24. Jan 04, 23:06
x2

Post by BabyFace »

by all means its not mine its a "consolidated" effort :)
Check Regularly for new Script/Mods
http://www3.telus.net/public/starnet/default.htm

At the top of each page is a "Back To Main Page" Link

BabyFace
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

OK, this zip file contains the 2 version mentioned before, the halfway done version and the commented version.
http://strike9.com/comments.aspx?fileid ... script.zip

But then something happened, and although the script was in my script folder it wouldn't show up in game. So I decided to rewrite it. In the process of rewriting I fixed 1 or 2 bugs. But this version is not commented.
http://strike9.com/comments.aspx?fileid ... aalaar.zip
You still need to edit your text file to update my new strings

Return to “X²: The Threat - Scripts and Modding”