Ive been trying to make an autopilot where i can enter coordinates and have my ship face its heading lift off and fly toward the destination. Problem is cc:vs never picks up my ship as a peripheral so i cant get the ship API to work to get pos or rot. anyone else have this problem? Is there any fix for it?
what can i use to access that then? everything ive tried or researched said its a peripheral and i just type peripherals get (“shipname”) and it pops up but it dont…
print(ship.getSlug())
Literally a fully working snippet right there, no setup besides the computer being on a VS2 Ship
interesting lemme try this. this will allow me to do what exactly? Just so i dont mess something up
It’ll print the slug of the Ship
But the ship global always exists when a computer is on a Ship regardless
ok that actually gave me feedback. I’ve been struggling with this for the last week before I realized there was support…
Btw, if you need to work with rotations, i highly suggest using the built-in quaternion API
Its not on the Wiki (iirc) but it has a help page ingame
i needed this i felt like i was going insane and i could NOT find the documentation on cc:vs or anything on the ship API other than what google and chat gpt has told me
🥲
in my experience its not great at understanding how to use a specific library, since it can’t really “read” the documentation most of the time
it gave me a few working scripts but all filled with bugs and errors. i had the alignment part working ish but it would align then start shaking back and fourth also it would align with the nearest axis of the ship so if the target coordinate was at the side of the ship it would align with the side and start dancing back and forth. driving me up a wall in the process
for ref im using the bricks building modpack with an added cc:vs installed specifically for the ship i was working on. unfortunately i destroyed half the ship with disassembling it and re assembling it with different physics shtuff
This conversation is on Discord · Reply there
:clueless: