[AL Plugin] Pirate Base Lasertower Defense Booster v1.01 01-08-07

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

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

Post Reply

What is your opinion of this Plugin?

MA! He's trying to KILL me again!
8
33%
Towers, we don't need no steenking Towers!
0
No votes
Let those Silly Pirates have more LT's AAARRRGG!
16
67%
 
Total votes: 24

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

[AL Plugin] Pirate Base Lasertower Defense Booster v1.01 01-08-07

Post by Jakesnake5 » Mon, 8. Jan 07, 02: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.
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.©

User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Post by Klyith » Mon, 8. Jan 07, 03:06

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

Code: Select all

021    $interval=1800
022    al engine: set plugin $plugin.ID timer interval to $desc s
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.

User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 » Mon, 8. Jan 07, 03:55

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:

Code: Select all

038 @  =[THIS] -> call script 'al.j5.pltd.events' :  plugin ID=$plugin.Vars
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.

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Mon, 8. Jan 07, 04:01

Great idea. :)

Can you adapt that for the player ? To be run from stations or complexes ? Be nice if it also did the 125mj upgrade as well automatically.

User avatar
Klyith
Posts: 594
Joined: Fri, 6. Jan 06, 01:38
x3

Post by Klyith » Mon, 8. Jan 07, 05:31

apricotslice wrote:Can you adapt that for the player ? To be run from stations or complexes ? Be nice if it also did the 125mj upgrade as well automatically.
2.0 lasertowers get 125mj when deployed.

User avatar
apricotslice
Posts: 14129
Joined: Sun, 16. May 04, 13:01
x4

Post by apricotslice » Mon, 8. Jan 07, 05:36

Really ? I must have missed that in the documentation.

About time too ! :)

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 » Mon, 8. Jan 07, 13:11

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.
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.©

LuckyKnight
Posts: 173
Joined: Mon, 13. Nov 06, 17:41
x3

Post by LuckyKnight » Mon, 8. Jan 07, 21:17

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 :)
proud to be ***modified*** ;)

thebattler35
Posts: 12
Joined: Tue, 10. Jul 07, 10:54

Post by thebattler35 » Fri, 18. Jan 08, 22:16

Download link seems to be broken, rather than downloading it takes me to a page of code.

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 » Sat, 19. Jan 08, 04:18

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.
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.©

User avatar
MBD
Posts: 837
Joined: Mon, 27. Mar 06, 17:03
x3tc

Post by MBD » Sat, 19. Jan 08, 20:24

The "IE Tab" is a Firefox Add-on:

https://addons.mozilla.org/en-US/firefox/addon/1419

Later, MBD
Last edited by MBD on Sun, 6. Apr 08, 07:11, edited 1 time in total.

tantanoid
Posts: 13
Joined: Thu, 18. Oct 07, 20:50

Post by tantanoid » Tue, 25. Mar 08, 03:33

Found a bug: after disabling your script via the Plugin Manager the AL option is still present. :roll:

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 » Tue, 25. Mar 08, 14:12

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.©

tantanoid
Posts: 13
Joined: Thu, 18. Oct 07, 20:50

Post by tantanoid » Thu, 27. Mar 08, 18:22

I turned it off before disabling. It says off now. Not sure if the script will work if I turn it on. I tried rebuilding the script cache and waiting some time, the option is still there.

Jakesnake5
Posts: 2880
Joined: Fri, 17. Feb 06, 04:55
x4

Post by Jakesnake5 » Fri, 28. Mar 08, 00:19

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. :D
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.©

tantanoid
Posts: 13
Joined: Thu, 18. Oct 07, 20:50

Post by tantanoid » Fri, 28. Mar 08, 03:14

I tried just disabling it and then removing the script files.
It's not really a problem for me, since I have your script running now. I was only uninstalling it to try the Pirate Guild (added too much lag as for my taste so I removed it).

Post Reply

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