In response to discussion here and here I have a proposition to make. .
This oxp tracks the deaths of all stationary stations. Meaning stations that have max speed of 0. Roles, systemIds and deathtimes are noted. Then other oxps can ask for permission for spawning with a command
RebuildTime parameter is optional and defaults to 30 days and can't be over that. The function then returns true or false depending if there has been a death of a station of that particular type and if rebuildTime has not been reached. Multiple stations with the same role are handled with a simple stack. So spawning for example three stations with the same role and two have been marked for destruction, only the third one get's the permission.
Feel free to comment.
Last edited by spara on Wed Jan 29, 2014 4:31 pm, edited 6 times in total.
I suggest that it should be possible to get a time back instead of a boolean. This way, an enterprising OXPer could add models of a station in various stages of reconstruction. (Destroying a partially-rebuild station should count as destroying the fully-built version for time tracking purposes.)
I suggest that it should be possible to get a time back instead of a boolean. This way, an enterprising OXPer could add models of a station in various stages of reconstruction. (Destroying a partially-rebuild station should count as destroying the fully-built version for time tracking purposes.)
This is a very cool idea. I think the only thing needed is a function to return the death time (or times in case of multiple stations with the same role) of the original station. Various stages of building could be spawned with different roles and without asking for permission. Their deaths would be noted, but would not affect anything. I'll patch something up later.
In fact, I dabbled a little in Wings with that idea in mind. It's not so easy to envision a construction that could be every station there is... Until now I just have a untextured skeleton for the central core of a station as it could look totally different than the finished product...
And then it would have to look nice enough to at least look like there could be one of Griff's stations in construction...
Exactly! You can totally see what it looks like if it's finished, so it's not quite as easy if you want the same model work for all stations I was even thinking about the space equivalent of hoarding...
Oh, and thanks, now I'm hearing that catchy tune again... "bam bam bam baadadam baadadam"
I suggest that it should be possible to get a time back instead of a boolean. This way, an enterprising OXPer could add models of a station in various stages of reconstruction. (Destroying a partially-rebuild station should count as destroying the fully-built version for time tracking purposes.)
This is a very cool idea. I think the only thing needed is a function to return the death time (or times in case of multiple stations with the same role) of the original station. Various stages of building could be spawned with different roles and without asking for permission. Their deaths would be noted, but would not affect anything. I'll patch something up later.
Various stages of building could be spawned with different roles and without asking for permission. Their deaths would be noted, but would not affect anything. I'll patch something up later.
But then if you destroy the Bleath Spar at 50 % construction, go away and come back, it will once again be at 50 %. It should have to start over.
Various stages of building could be spawned with different roles and without asking for permission. Their deaths would be noted, but would not affect anything. I'll patch something up later.
But then if you destroy the Bleath Spar at 50 % construction, go away and come back, it will once again be at 50 %. It should have to start over.
Ah, quite right. Got to think this feat over again.
Version 0.1.1 is up. Fixed a couple of bugs (thanks Svengali) and added some commentary to the code.
Have to ponder the construct idea a bit more. It needs some sort of oxp to station_validator mechanism for an oxp to notify that it built the thing despite the permit. Maybe something like worldScripts.station_validator.$removeDeath("your_station_role") would do? Have to think it thoroughly. But not tonight .
After pondering a bit, i got an idea . What if, the rebuilding of a destroyed station would be done somewhere else and when it's finished, it would be transported through a massive gate. And here's the catch. The rebuilding process seen by the player would actually be the construction of the gate. And when rebuild time has been reached, the gate would be switched to the station. The gate itself could be something like intersecting rings a'la Sothis Station's buoy that would be constructed ring at a time.
The gate could be a part of this oxp and oxps that ask for permit would pass the coordinates they would like the station to spawn to this oxp so that the ring construct could be spawned to the right place. Those rings could be class_rock and they could be indestructible to avoid problems. No need to reset rebuild timer .
Those rings would be like "under construction, come back later."
How does that sound and is someone interested in modelling such a thing? It would require something like three massive rings that could be put one inside another. All rings would be different entities that would rotate nicely inside another.
Another option would be to use a shader for it (the original model can be used, just switch the shader).
A example can be found in Vector.oxp. Just use -> worldScripts.vector_news.sceneA();
And - as always with tests - don't save the game...
After pondering a bit, i got an idea . What if, the rebuilding of a destroyed station would be done somewhere else and when it's finished, it would be transported through a massive gate.
...
How does that sound...?
Very interesting idea, but seems to me rather beyond the present technological capabilities of GalCop. If they could use gates to move such massive objects, the use of large gates to move bulk commodities about the Ooniverse would probably be common practice. It would be much cheaper (in terms of ships and lives) than shunting everything around in cargo-transport ships.
It seems more likely to me at least that such massive objects as space stations would be built in-situ, as is done both on and above Earth currently.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
Another option would be to use a shader for it (the original model can be used, just switch the shader).
A example can be found in Vector.oxp. Just use -> worldScripts.vector_news.sceneA();
And - as always with tests - don't save the game...
A funny thought: The station Would be wrapped in yellow a tape saying "Under Construction" in black.
Diziet Sma wrote:
Very interesting idea, but seems to me rather beyond the present technological capabilities of GalCop.
Yes, the handwavium is always the hardest part.
Better keep this simple I suppose, if it's ever going to go anywhere.
Have to ponder the construct idea a bit more. It needs some sort of oxp to station_validator mechanism for an oxp to notify that it built the thing despite the permit.
Well, in the case of partial construction, it only built something - not the original station.
Rather than having the results stack depend on how many times the function was called, why not instead return an array of destruction times, and let the station OXP determine how to handle them? That should make things simpler for you since you don't have to anticipate all the ways the API might be used in advance.
For multiple stations of the same role, it gets harder: perhaps rather than returning a time, return an object (e.g.):