#Coming to you soon : platform to
1 messages ยท Page 1 of 1 (latest)
It's not the goal.
And If you mean like the logistics between platforms and planets, I think it could, and I'll try to do it, but that will be more complex.
The initial goal is to be able to transfer items between platforms by yourself every once in a while.
Once this experiment is done and working as I want, I'll see if I can make a more complex system to REALLY allow inter platform logistics
To me this looks a lot cleaner than the other mod we have for this. ๐
However, IDK how I would implement this with the current scheduling thing. (the main caveat is that I would have to block the platforms, use a signal maybe, or alter their scheduling)
Well it's a more native implementation, using the API endpoints that were recently added
Yeah. I'll be looking forward to this.
The platform really creates pods that really take the stacks from the platform
It also prevents the platform from moving while it is dispatching the pods, right?
If it does, then doing this is the best implementation, as you can just dispatch automatic requests to other platforms and it will just work seamlessly.
Eh if that's fesable yep
Are you pushing me to make a LTN platform system ? ๐
Kinda xD
I also intend to give it some leeway
meaning that platforms could interact with one another as long as they are somewhat close
Being stopped in the same orbit is the most stable method imo.
IF ejecting/receiving the pods stops you in that orbit then that makes it fully seamless.
And completely natural.
The visible planets in space dev wanted to do that as well, but could not. The triggers were not there.
From here you could have a "fake planet" as a place to request from, then when a platform enters into orbit and another one is requesting with that fake planet you dispatch the pods.
nah that wouldn't work
TO be clear : distance between platform is a non issue for the script itself. You can command the pods to go wherever you want.
The only thing I couldn't get so far is the exact relative positions of the platforms, but I haven't searched a lot tho
I could script that but it would be very heavy on the updates.
like calculate where every single space platform is on their paths every tick then compare the distances.
Even if you don't do it each tick, it is still heavy.
Wait.
If you can know how much a platform has progressed
then its really simple
can you ?
it is more feasible to use the "arrival" events for performance.
do you know at least the amount of progress a platform has done towards a destination ?
that's the only information I need
no no no not at all
Depending on the number of platforms you have.
I just want to be able to exchange between platforms on a same "line" if they cross one another or are close to one another
nah the time complexity for my usage would be very low
so : can you know where a platform is between 2 planets ?
Yes.
Alright
how is this information given ? what is it ? % progress ? distance in KM ?
I think progress.
If its % progress, then, extremely simple and not laggy
The possible lag part is that you need to tick it constantly for every moving platform.
I wouldn't allow platforms to send ressources to each other if they are not :
- ON the same road (not necessarly in the same direction)
- Close
That is my fear.
oh no that's nothing
You might be able to use events to check if two platforms are on the same line.
You take every platform traveling between 2 points, and you measure the progress.
You make sure to order the routes in the same direction
Like if a pf does nauvis -> vulcanus and has 20% progress
that's the same of a vulcanus -> nauvis 80% progress
then you just do progress of PF1 - progress of PF2
if the difference is less than a fixed value : they can transfer
you can do this calculation every tick, doesn't matter.
If you want, you can dispatch this check
I don't know if it makes any logical sense to do it like that, as that logic means that you have 2 platforms that are either going to the same direction at different speeds, or one of them is already heading to the other platform.
well.
If you want your items quicker, it makes sense
Say you are leaving Nauvis on a PF, you want your sweet gun that's incoming
I don't think it speeds up anything as you'd need heavy circuit conditions to turn a platform around mid flight.
but yes, now that we talk about it, PF 2 PF while moving would probably be a case nobody uses
Or soo infrequent that it's not worth doing it. :/ It is neat, just probably not something that is worth it.
I just wanted to mod P2P around an orbit because... i wanted to get some guns / structures from certain planets where you need a strong platform without going through the hassle to drop it and send it to the other pf
Even in that case waiting for it to arrive normally is faster.
the platform you deposit into mid flight still needs to turn around.
I see what you want, it is not entirely dumb, I just think that it is more work then its worth. >.<
coding is fun
and LUA is extremely fast
accessing the API is the bottleneck
I see many ways to optimize it and make it simple to code
but indeed, you are right, I believe there is no point to allow in travel P2P
I do think it is funny to see the pod leave mid flight, but there is no real, practical use to it :/
wait
I just thought of a use case
making a space station
if you want to keep a platform between two locations, static
that would effectively allow you to make a space station
anyways, I'm off for today, i'll dig these ideas tomorrow
here is an updated progress :
This one hinges on one thing. Does the requests use a space location, or a signal with a type of space location?
This one fails at one bit. Space platforms slowly drift towards the closest planet on their own if you turn off the thrusters.
This is because during the beta test people got their platforms permanently stuck.
There are probably means to circumvent this.
At least in my opinion if you wanted to get the player to build a space station like that, then you need a space location with something in it that you want to build on top of.
The types we have right now are the science platforms above Nauvis, and mining platforms above surfaces like aquillo.