Lasertower Disaster
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Lasertower Disaster
I found a really good way to take care of the kha'ak.
Just script in some lasertowers and deploy a few thousand of them in each of the kha'ak systems.
Works Great!... Except... Now My computer runs at a few frames a minute because it has to keep track of them all...
Looks like I need to find a way to get rid of a few thousand lasertowers.
Obviously I do not want to spend the next 5 weeks destroying them one by one. I can destroy a few hundred at one time with torpedoes if there close enough together to all be in the blast range.
Is there anyway I could reprogram a torpedo to have a larger blast radius. Or maybe wipe them out using script?
Any suggestions?
Just script in some lasertowers and deploy a few thousand of them in each of the kha'ak systems.
Works Great!... Except... Now My computer runs at a few frames a minute because it has to keep track of them all...
Looks like I need to find a way to get rid of a few thousand lasertowers.
Obviously I do not want to spend the next 5 weeks destroying them one by one. I can destroy a few hundred at one time with torpedoes if there close enough together to all be in the blast range.
Is there anyway I could reprogram a torpedo to have a larger blast radius. Or maybe wipe them out using script?
Any suggestions?
- Deadbeat_Spinn
- Posts: 6483
- Joined: Wed, 19. Nov 08, 20:47
-
- Posts: 1468
- Joined: Wed, 3. Aug 05, 05:05
trekkie33
Or, you could script in 10,000 fighter drones and send them in to destroy the LT's. I can just imagine what that would do to your FPS.
Or use Cycrows cheat script to destroy all in sector.
MarCon
Did you write the script that deployed them? If so, It should then be possable for you to write another script that destroys them.Just script in some lasertowers and deploy a few thousand of them in each of the kha'ak systems.
Or, you could script in 10,000 fighter drones and send them in to destroy the LT's. I can just imagine what that would do to your FPS.
Or use Cycrows cheat script to destroy all in sector.
MarCon
- Lord Dakier
- Posts: 3243
- Joined: Fri, 8. Dec 06, 13:45
-
- Posts: 1468
- Joined: Wed, 3. Aug 05, 05:05
Ok, fair enough, keeps it versatile.
So you have some scripting experience then. My suggestion would be, creat a script that gets the objects from a sector filtered by type. there is a couple of ways you can do that. Then cycle these, the LT's, through a loop with the destroy command. You can either specify the sector in the script or get user input so you can pick the sector when you run the script.
It will give you some more scripting practice if nothing else. I found the best way to learn is pick something you want to do and keep fiddling until it does it.
MarCon
So you have some scripting experience then. My suggestion would be, creat a script that gets the objects from a sector filtered by type. there is a couple of ways you can do that. Then cycle these, the LT's, through a loop with the destroy command. You can either specify the sector in the script or get user input so you can pick the sector when you run the script.
It will give you some more scripting practice if nothing else. I found the best way to learn is pick something you want to do and keep fiddling until it does it.
MarCon
-
- Posts: 1225
- Joined: Mon, 12. Dec 05, 07:41
Code: Select all
001 $ships = get ship array: of race $race class/type=$object.class
002 if $ships
003 |$Size = size of array $ships
004 |while $Size
005 ||dec $Size =
006 ||$ship = $ships[$Size]
007 ||$ship -> destruct: show no explosion=[TRUE]
008 |end
009 end
010 return null
It's a script I occasionally use to clean out the universe of things...
[ external image ]
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
Copying Scripts
In another thread, someone provided me a script they had created.
Is there any way for me to copy it into the script editor without having to look up all of the command lines in the script editor.
{Better asked in the original thread, I think; merged - Carlo}
Is there any way for me to copy it into the script editor without having to look up all of the command lines in the script editor.
{Better asked in the original thread, I think; merged - Carlo}
-
- Posts: 1468
- Joined: Wed, 3. Aug 05, 05:05
You could ask them if they are willing to post or PM you a DL link to the script. If they are willing to post it on a file share site.
I don't know if its possable to just copy paste it into an external editor.
It's not possable to do this with the in game editor.
You could have asked this in the other thread possably.
MarCon
I don't know if its possable to just copy paste it into an external editor.
It's not possable to do this with the in game editor.
You could have asked this in the other thread possably.
MarCon
-
- Posts: 1468
- Joined: Wed, 3. Aug 05, 05:05
-
- Posts: 1225
- Joined: Mon, 12. Dec 05, 07:41
Oh yeah, the vertical bars next to some of those lines aren't actually part of the script, they merely indicate the statement blocks' start and end points.
[ external image ]
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
It usually works if you copy the text into notepad and then save it so it has .xml at the end of it's name.
Then put that in the scripts folder.
if you save it so it has a name for example like "setup.trekkie33.xml" it will run automatically when the game loads, without having to open the script editor. (But only if your're already playing a modded game)
I think the command line your're looking for is in the "General" section
Then put that in the scripts folder.
if you save it so it has a name for example like "setup.trekkie33.xml" it will run automatically when the game loads, without having to open the script editor. (But only if your're already playing a modded game)
I think the command line your're looking for is in the "General" section
Corsair 400c // Intel i7 8700k // H100i v2 // ASUS Maximus X Code // ASUS 1080ti Strix OC // 2x8GB Corsair Vengeance 3200MHz // Samsung 960 Evo 250GB // 960GB SanDisk Ultra II // Corsair RM850i
-
- Posts: 795
- Joined: Fri, 4. Sep 09, 02:35
Just dropping massive amounts of LT's in the sectors will give bad FPS.
more organized way of using them is Gazz's Ring of Fire.
You will lose a few to the Khaak but I placed a ring at the bottom of the Military base in the Khaak sector (pointed from my ship and not the base, in the Y axis)during the OFF. A couple of missions, I didn't even have time to jump to the sector to defend the station. (mission completed)The Ring did all the work and I got credit for it.
Hint for the FF escort missons:
Use the Super Tractor beam and pull the gates close(like next to each other)
Use 2 Rings of 130 towers and aline them on your ship in the X axis at a spacing of 3000. (2.5 - 3K away from the gates)
Then place two rings in the Y, out and centered between the two gates. One at 3000 meters and one at 4K. You would be suprise how the 4 rings protect the convoys. It eats the khaak Corvettes. 520 stealth lasertowers work real nice when you have overlapping fields of fire.
So many evil pirates have been zapped and no access to my hub since all gates have the RoF around them.
A must for any modded game.
more organized way of using them is Gazz's Ring of Fire.
You will lose a few to the Khaak but I placed a ring at the bottom of the Military base in the Khaak sector (pointed from my ship and not the base, in the Y axis)during the OFF. A couple of missions, I didn't even have time to jump to the sector to defend the station. (mission completed)The Ring did all the work and I got credit for it.
Hint for the FF escort missons:
Use the Super Tractor beam and pull the gates close(like next to each other)
Use 2 Rings of 130 towers and aline them on your ship in the X axis at a spacing of 3000. (2.5 - 3K away from the gates)
Then place two rings in the Y, out and centered between the two gates. One at 3000 meters and one at 4K. You would be suprise how the 4 rings protect the convoys. It eats the khaak Corvettes. 520 stealth lasertowers work real nice when you have overlapping fields of fire.
So many evil pirates have been zapped and no access to my hub since all gates have the RoF around them.
A must for any modded game.
- Carlo the Curious
- Posts: 16999
- Joined: Mon, 5. Mar 07, 22:03
I remember doing it somehow at some point, but it was over a year since i've been scripting for this game so i'm after forgettingCarlo the Curious wrote:Does 'usually' mean you have actually done that with an X3 script? I'd be very surprised if it worked, given all the extra XML info in a normal script file.amurph0 wrote:It usually works if you copy the text into notepad and then save it so it has .xml at the end of it's name.
Corsair 400c // Intel i7 8700k // H100i v2 // ASUS Maximus X Code // ASUS 1080ti Strix OC // 2x8GB Corsair Vengeance 3200MHz // Samsung 960 Evo 250GB // 960GB SanDisk Ultra II // Corsair RM850i
Reply2
I created the code in the script editor but it isnot working as pland. The only result I can get is to blow up the ship that I am currently in by setting object.class to ship. When I set object.class to lasertower nothing happens. Is it how I am running the script?
Here is my exact script:
Here is my exact script:
Code: Select all
001 $ships = get ship array: of race Player class/type=Lasertower
002 if $ships
003 |$size = size of array $ships
004 |while $size
005 ||dec $size =
006 ||$ships = $ships[$size]
007 ||$ships -> destruct: show no explosion=[TRUE]
008 |end
009 end
010 return null
-
- Posts: 1468
- Joined: Wed, 3. Aug 05, 05:05
trekkie33
Lines 6 and 7, change $ships to $ship
Change to
You are referencing the array, not and index from it.
EDIT: Don't forget, this will destroy ALL your Lasertowers, no matter where they are. So if you have any that are protecting anything, they will be gone and need replacing using this method.
MarCon
Lines 6 and 7, change $ships to $ship
Code: Select all
006 ||$ships = $ships[$size]
007 ||$ships -> destruct: show no explosion=[TRUE]
Code: Select all
006 ||$ship = $ships[$size]
007 ||$ship -> destruct: show no explosion=[TRUE]
EDIT: Don't forget, this will destroy ALL your Lasertowers, no matter where they are. So if you have any that are protecting anything, they will be gone and need replacing using this method.
MarCon