I have loads of little ideas which could improve Oolite experience.
So why can't I make even a simple OXP which spawns flashers?








Moderators: winston, another_commander
Code: Select all
if this.ship is enemy //IIRC rocks, cargo etc can't be enemy so this solves the problem of excluding them all; also, this ensures that fleeing yellow enemies spawn trails, too
{
//apply spewstrails flag (once per ship)
}
return;
if this.ship has spewstrails flag then
if this.ship is within 10000 of the player //performance reasons
{
ship.spawnOne("enginetrails");
ship.script.enginetrailsposition = ship.position.add(ship.vectorForward.multiply( 100 ));
enginetrail.position = ship.position.add(ship.vectorForward.multiply( 50 ));
enginetrail.orientation = ship.position.rotationTo([0, 0, 1]);
enginetrail.target = ship
//spawn a pair of engine trails (blue flashers) astern every 2 sec; clear up the trails after 30 sec.
}
Code: Select all
"adder" =
{
max_cargo = 20;
};
"adder_player" =
{
max_cargo = 20;
};
"cobramk3" =
{
max_cargo = 55;
};
"cobramk3-player" =
{
max_cargo = 55;
};
Code: Select all
{
[everything you posted above]
}
system.addVisualEffect(...)
lets you add defined effects to the system.The external API of oolite is too weak for serious extensions. You have to implement very low level logic and have to struggle through dozens of events. Another thing is that most of the features are hardcoded, i.e. laser characteristics and etc.Zireael wrote:I've successfully modded two games based on Lua and I'm making my own game in Lua, too.
I have loads of little ideas which could improve Oolite experience.
So why can't I make even a simple OXP which spawns flashers?
I just want it to be known that I fully disagree with the above statement.Mad Hollander wrote:The external API of oolite is too weak for serious extensions. You have to implement very low level logic and have to struggle through dozens of events. Another thing is that most of the features are hardcoded, i.e. laser characteristics and etc.