[AL Plugin] Pirate Base Lasertower Defense Booster v1.01 01-08-07
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 2880
- Joined: Fri, 17. Feb 06, 04:55
[AL Plugin] Pirate Base Lasertower Defense Booster v1.01 01-08-07
They were mad. In fact, this was an understatement: They were LIVID!
If one thing could be said for them, it was this: Thie Pirate Station owners had had enough!
Between Xenon, Kha'ak, Bounty Hunters and the random Military Patrols, repair costs to the stations, if they survived the attack, was becoming excessive.
Use of Lasertowers had, up until now, been limited, and, as they noted, of little success. And nobody, until now, ever bought replacements for those that were destroyed. Now, they would up the ante.
The cost would be high, but since each station could control up to 10 Lasertowers, the owners would buy them. It might take awhile to reach full compliment, but they'd do it!
This AL (Artificial Life) Plugin helps Pirate Bases replace, and upgrade, the number of Lasertowers protecting them. 1 LT per hour will be 'bought' and deployed.
The Plugin can be turned on/off in the AL menu. Default state is On.
NOTICE! - New LT's will not start appearing till 1 game hour after install/activation of the plugin. It will also take up to 30 min for the state change messages (Activated/Deactivated) to appear in the log file.
Provided in Cycrow Script Manager format (.spk)
Pirate Base LaserTower Defense Booster
1.01 - Fixed pre-release code that snuck into the files.
If one thing could be said for them, it was this: Thie Pirate Station owners had had enough!
Between Xenon, Kha'ak, Bounty Hunters and the random Military Patrols, repair costs to the stations, if they survived the attack, was becoming excessive.
Use of Lasertowers had, up until now, been limited, and, as they noted, of little success. And nobody, until now, ever bought replacements for those that were destroyed. Now, they would up the ante.
The cost would be high, but since each station could control up to 10 Lasertowers, the owners would buy them. It might take awhile to reach full compliment, but they'd do it!
This AL (Artificial Life) Plugin helps Pirate Bases replace, and upgrade, the number of Lasertowers protecting them. 1 LT per hour will be 'bought' and deployed.
The Plugin can be turned on/off in the AL menu. Default state is On.
NOTICE! - New LT's will not start appearing till 1 game hour after install/activation of the plugin. It will also take up to 30 min for the state change messages (Activated/Deactivated) to appear in the log file.
Provided in Cycrow Script Manager format (.spk)
Pirate Base LaserTower Defense Booster
1.01 - Fixed pre-release code that snuck into the files.
Last edited by Jakesnake5 on Mon, 16. Jun 14, 06:21, edited 5 times in total.
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
OK, combination of pck compressed scripts and all but main having the source text removed is annoying and not good for reliability.
al.j5.pltd.main
I have no idea what happens if you put a string into the interval timer, but it should be $interval there.
As for the other scripts, I can't see them. Don't get me wrong I'm not trying to be too critical... I grabbed the script because it sounded like a good idea (pirates need a bit more beef, though 1 per hour may be a little fast). But if I can't look at the code before I run it, I get much less enthusiastic.
al.j5.pltd.main
Code: Select all
021 $interval=1800
022 al engine: set plugin $plugin.ID timer interval to $desc s
As for the other scripts, I can't see them. Don't get me wrong I'm not trying to be too critical... I grabbed the script because it sounded like a good idea (pirates need a bit more beef, though 1 per hour may be a little fast). But if I can't look at the code before I run it, I get much less enthusiastic.
sounds like a good idea. Not being able to check the scripts first is anoying, having X3 already loaded in the background was usesfull for once.
al.j5.pltd.events has 2 arguments: 1: plugin.ID , Var/String , 'plugin ID' ;2: plugin.Event , Var/String , 'plugin event' however, when called from al.j5.pltd.main it's called with just one argument:
I'm not certain an array will even pass through a string argument, but it's certainly not going to endup in the right variable.
al.j5.pltd.events has 2 arguments: 1: plugin.ID , Var/String , 'plugin ID' ;2: plugin.Event , Var/String , 'plugin event' however, when called from al.j5.pltd.main it's called with just one argument:
Code: Select all
038 @ =[THIS] -> call script 'al.j5.pltd.events' : plugin ID=$plugin.Vars
- apricotslice
- Posts: 14129
- Joined: Sun, 16. May 04, 13:01
- apricotslice
- Posts: 14129
- Joined: Sun, 16. May 04, 13:01
-
- Posts: 2880
- Joined: Fri, 17. Feb 06, 04:55
Sorry about that, some how the bugged version got loose instead of the release version. 1.01 fixes that
And the missing text was because I used Cool_Snipers External Script Editor to create the plugin. It doesn't save externally readable text, just the codearray. Fixed that too.
And I release scripts in .pck format because they are smaller, take less time to download, but are just as functional.
@apricot
2.0.02 hardcoded LT's to have 125mj shields, and increased their turning rate, so they track fighters better.
And the base script, plugin.pirate.lt.defend, can be adapted, but it currently doesn't do commands atm.
And the missing text was because I used Cool_Snipers External Script Editor to create the plugin. It doesn't save externally readable text, just the codearray. Fixed that too.
And I release scripts in .pck format because they are smaller, take less time to download, but are just as functional.
@apricot
2.0.02 hardcoded LT's to have 125mj shields, and increased their turning rate, so they track fighters better.
And the base script, plugin.pirate.lt.defend, can be adapted, but it currently doesn't do commands atm.
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
-
- Posts: 173
- Joined: Mon, 13. Nov 06, 17:41
this one sounds cool.
I always thought it's funny that stations haven't defend weapons. At least they should have some external lasertowers or weapon platforms.
What about lasertowers for other types of stations?
Maybe it could depend on the rates of selling its products.
like a checker/timer: Every time a station has sold its products 5x of total cargo space, generate a lasertower
or even better: Generate a Merchant BUYING a lasertower from a nearby station and deliver it!
Or for the pirate stations / trade stations: Count credits they earn by selling wares. If incoming cash is 5-10x price of a laser tower, buy one.
At least the real buy of a lasertower should be fine.
Lasertowers have no sinkholes like weapons or shields, which you can sell to eq-docks which don't sell them by their own. lasertowers are only sold to trading stations and stay there for some time (if you don't buy them for your own purposes, it will take a lot of time, till they vanish)
This will have a nice sideffect on production output of lasertower fabs
Just some crazy ideas of mine
I always thought it's funny that stations haven't defend weapons. At least they should have some external lasertowers or weapon platforms.
What about lasertowers for other types of stations?
Maybe it could depend on the rates of selling its products.
like a checker/timer: Every time a station has sold its products 5x of total cargo space, generate a lasertower
or even better: Generate a Merchant BUYING a lasertower from a nearby station and deliver it!
Or for the pirate stations / trade stations: Count credits they earn by selling wares. If incoming cash is 5-10x price of a laser tower, buy one.
At least the real buy of a lasertower should be fine.
Lasertowers have no sinkholes like weapons or shields, which you can sell to eq-docks which don't sell them by their own. lasertowers are only sold to trading stations and stay there for some time (if you don't buy them for your own purposes, it will take a lot of time, till they vanish)
This will have a nice sideffect on production output of lasertower fabs
Just some crazy ideas of mine
proud to be ***modified***
-
- Posts: 12
- Joined: Tue, 10. Jul 07, 10:54
-
- Posts: 2880
- Joined: Fri, 17. Feb 06, 04:55
If you're using FireFox, switch to IE Tab (in FireFox) and try again, or right click and 'save as'.
FireFox isn't too bright, and thinks .spk's are web pages.
FireFox isn't too bright, and thinks .spk's are web pages.
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
Last edited by MBD on Sun, 6. Apr 08, 07:11, edited 1 time in total.
-
- Posts: 2880
- Joined: Fri, 17. Feb 06, 04:55
Does the AL say if it's on or off?
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
-
- Posts: 2880
- Joined: Fri, 17. Feb 06, 04:55
By disabling, do you mean 'removed the scripts'?
It's possible that because the AL was 'registered' in your game, you'll need an 'un-register' script to remove the AL option. I've never really done that before, but I'm sure I can figure it out.
The option still in the AL list as being 'off' means it won't run, normally. I don't think trying to turn it 'on' will work if the scripts it's based on are missing.
However, I COULD be wrong about that.
It's possible that because the AL was 'registered' in your game, you'll need an 'un-register' script to remove the AL option. I've never really done that before, but I'm sure I can figure it out.
The option still in the AL list as being 'off' means it won't run, normally. I don't think trying to turn it 'on' will work if the scripts it's based on are missing.
However, I COULD be wrong about that.
Perfection is in the hands of God, we bags of dirt can only do the best we can©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©
[ external image ]
Modders are a source of ideas to help the Game Makers improve what they have made. Cherrish them, for they are the fruit of thy labors.©