Increased Weapon Selection 8 replies

Please wait...

Zeus9518

STBC Rocks

50 XP

23rd December 2002

0 Uploads

166 Posts

0 Threads

#1 15 years ago

Does anyone know a way to increase the range of torpedoes on offer for a particular ship? Using the Sovereign as an example, I've tried increasing the number in the line 'Torpedoes.SetNumAmmoTypes(4)', but it causes the game to crash.




Soldier1st

GF makes me horny

50 XP

7th November 2002

0 Uploads

83 Posts

0 Threads

#2 15 years ago

i believe the max is 3 it is to do with the hardpoint




1DeadlySAMURAI

GF is my bext friend *hugs GF*

50 XP

23rd May 2002

0 Uploads

1,630 Posts

0 Threads

#3 15 years ago

To use up to 4 different torpedo types open the QuickBattle.py and search for the string "remove plasmas". At this point all torpedos which are Type No. 3 and Type No. 4 are deleted in QB. Some lines below, there is the line "if (iType >= ...)". Change the number in the brackets to "5" and you will have teh possibility to use up to 4 different torpedo types. I'm not sure but I think with "4" it doesn't work. Save the file and delete the QuickBattle.pyc file. Now run BC and have fun.




Thy King

Ruler of Thy World

50 XP

22nd November 2002

0 Uploads

6 Posts

0 Threads

#4 15 years ago

i also tried that approach.. didn't work for me.. the size of the file changes if you simply open and correct it (and save after). There is also another function under the right mouse button, 'edit'. if you try that one and alter things and then save, the file will keep the same size, and it will most likely work :D

just dont make typing mistakes of course..:D




JoeSoul

I'm too cool to Post

50 XP

23rd January 2003

0 Uploads

12 Posts

0 Threads

#5 15 years ago

I've tried both of these methods and neither one seems to work for me




USSCarter

50 XP

23rd September 2002

0 Uploads

231 Posts

0 Threads

#6 15 years ago

As well as specifying the number of ammo types you must also say what ammo types they are!

Check this code...

Torpedoes.SetMaxTorpedoes(0, 250) Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.Photon01JLH") Torpedoes.SetMaxTorpedoes(1, 120) Torpedoes.SetTorpedoScript(1, "Tactical.Projectiles.QuantumJLH") Torpedoes.SetNumAmmoTypes(2)

For each ammo type you require the following code Torpedoes.SetMaxTorpedoes(1, 120) Torpedoes.SetTorpedoScript(1, "Tactical.Projectiles.QuantumJLH")

The number 1 above would be changed to 2 if you wanted to add anther torpedo type..... And the QuantumJLH would be changed to your new projectile choice like this perhaps.

Torpedoes.SetMaxTorpedoes(0, 250) Torpedoes.SetTorpedoScript(0, "Tactical.Projectiles.Photon01JLH") Torpedoes.SetMaxTorpedoes(1, 120) Torpedoes.SetTorpedoScript(1, "Tactical.Projectiles.QuantumJLH") Torpedoes.SetMaxTorpedoes(2, 20) Torpedoes.SetTorpedoScript(2, "Tactical.Projectiles.PhasedPlasma") Torpedoes.SetNumAmmoTypes(3)

This would give the vessel a third torpedo type, the Phased Plasma Torpedos and it would have 20 of them.....

Yours USSCarter




Zeus9518

STBC Rocks

50 XP

23rd December 2002

0 Uploads

166 Posts

0 Threads

#7 15 years ago

Thanks for the reply, it's greatly appreciated.

Unfortunately, I have tried carrying out the modifications you suggested, but I am still limited to the maximum number of weapons for a ship. If I try to add more than 4 weapon types to the sovereign, for example, the game doesn't crash, but the fifth weapon option is not available. Do you have any ideas how I can get around the problem?




USSCarter

50 XP

23rd September 2002

0 Uploads

231 Posts

0 Threads

#8 15 years ago

Your using the Quick Battle Replacement, i guess.

Look around the forum there are several threads which show you the code it change in the Quick Battle Replacement. that should solve your problem.

Yours USSCarter




USSCarter

50 XP

23rd September 2002

0 Uploads

231 Posts

0 Threads

#9 15 years ago

Right I found the Code to edit in the QuickBattle.py

Go to Quickbattle.py and search "Torpedo" Youll get this:

for iType in range(iNumTypes):

if (iType >= 2):

pTorpSys.RemoveAmmoType (iType);

4. Change the 2 to a 5 (or What ever you want to make that number)

if (iType >= 5):