Robot Rocket

mariohobbs

Modder
TEAM HAWK
Moon Maker
Swingin' on a Star
Atlas
Under Pressure
Registered
#1
Alrighty, hello folks of the forums; After making an abysmal custom parts mods i am fueled by the spirit of hubris and I want to make something neat, If you've ever used an old computer programming guide then you'll likely know about a program called robot. Robot was a simple program, you'd write commands for it then it'd execute those commands. Very simple. And i figure i want to do something like that for SFS, like here's an example of something i want to be able to do with it: (mind you the forum doesn't support tabbing for some reason so i'll use "-" for whitespace.)

#Execute a simple turn
turn(15)
print("Turn successfully executed")
#Land a rocket
def land(height,velocity,retrograde):
-while not height = 0 and not velocity > -5:
–-if not velocity > 0:
––-thrust = 100
–-else:
––thrust = 0


mind you i would be alright if it didn't use python syntax, I just use python a lot, the snakes writhe around my brain and seek the holy grail.

And if it is possible to do this, How could i balance it to not be cheat-y.

-Thanks, In advance, mariohobbs.

P.S. If this is impossible i'll be fine, I just figure "Probably easier to do software ingame than it is to do hardware ingame (see my failed experiments with SFS computing)"
 

mariohobbs

Modder
TEAM HAWK
Moon Maker
Swingin' on a Star
Atlas
Under Pressure
Registered
#3
Well the mod smart SAS can turn a rocket, so it must be possible to make a mod that can control thrust as well
 

Lemniscate Biscuit

ㅤㅤHelp DeskㅤㅤRL10 Expert
Modder
Team Judge
TEAM HAWK
Moon Maker
Atlas
Under Pressure
Registered
MOTY 2023
#5
Alrighty, hello folks of the forums; After making an abysmal custom parts mods i am fueled by the spirit of hubris and I want to make something neat, If you've ever used an old computer programming guide then you'll likely know about a program called robot. Robot was a simple program, you'd write commands for it then it'd execute those commands. Very simple. And i figure i want to do something like that for SFS, like here's an example of something i want to be able to do with it: (mind you the forum doesn't support tabbing for some reason so i'll use "-" for whitespace.)

#Execute a simple turn
turn(15)
print("Turn successfully executed")
#Land a rocket
def land(height,velocity,retrograde):
-while not height = 0 and not velocity > -5:
–-if not velocity > 0:
––-thrust = 100
–-else:
––thrust = 0


mind you i would be alright if it didn't use python syntax, I just use python a lot, the snakes writhe around my brain and seek the holy grail.

And if it is possible to do this, How could i balance it to not be cheat-y.

-Thanks, In advance, mariohobbs.

P.S. If this is impossible i'll be fine, I just figure "Probably easier to do software ingame than it is to do hardware ingame (see my failed experiments with SFS computing)"
Autopilot mod soon?