#Basic Ship Ai

94 messages · Page 1 of 1 (latest)

steep ridge
#

So, What if there were blocks that could be put on ships that had some form of AI? Like, a block for mining, a block for navigation, etc. This could be useful for automatic money collection with more fleets, and could add more life to the game with adding miners for stations.

#

Ideas for blocks:

quiet sphinx
#

player AI is coming tho isnt it

warm aspen
#

Yea

steep ridge
#

wait

#

is it?

warm aspen
#

@grave hound

#

?roadmap

grave houndBOT
steep ridge
#

can i

#

add my own interpretation still?

quiet sphinx
#

sure but like there were five other discussion channels for this

steep ridge
#

just cause I actually wanna explore this idea lol

#

So some ideas I thought of for blocks could be

#

Ai controller:
2x2 block that is required for all other ai blocks to function, and performs all the tasks.

warm aspen
#

Please do share your thoughts

steep ridge
#

Ai miner: detects all asteroids with resources in the radar range and notes them down with a certain variable

#

Ai combat:
Detects all enemies within the ship radar range and fires at them

#

ai Detector:
Detects all ships within the radar range and outputs them as a variable. the ship detection type can be changed (enemy/neutral/friendly)

#

Ai salvage:
Detects all junk ships and outputs them as a variable

#

Ai navigation:
2x2, used in conjunction with the ai controller to setup ai pathing and other navigation.

#

all other ai blocks would be 1x1

#

and I was thinking the ai could be a bit like mindustry coding

#

but obviously much more simple

#

So for example

#

A mining ship would be setup with an ai controller, an ai navigator and an ai miner.

#

and the coding would be as follows:

#

Ai navigator: Navigate to: (POINT OF INTEREST so presumably an asteroid field)

#

Ai Miner: Detect nearest (ore(s)) Asteroid, variable (any changeable variable)

#

Ai navigator: Navigate to: (said changeable variable)

#

Ai miner: Mine all (ore(s)) radius (interchangeable radius)

#

this would automatically use any mining equipment on the ship to mine the asteroid

#

now hopefully we will be getting a miniature tractor beam that can collect resources for us, so:

#

ai Mining: Collect all (ore(s)) in (radius)

#

Ai controller: Wait until (set variable, most likely (no ores detected)) and output (variable)

#

Ai controller: upon (variable) perform: If (inventory capacity (exceeds (percentage))) then emit (variable 2, for example) else emit (variable 3)

#

ao

#

*so

#

ai navigation: check for (variable 2) if (true), navigate to (station (name, probably a dropdown of all stations in the sector)) else (emit(variable3))

#

in the same loop from the if else from the ai controller,

#

Ai mining: Check for (variable 3) if (true) detect asteroid (ore(s)) and emit as (variable) else goto (ai controller that checked for ores)

#

and finally

#

ai navigation: upon (variable 3) navigate to (asteroid variable)

#

and an end block

#

dumbed down just in case:

#

mining ship goes to the asteroid field of choice, scans for asteroids of a certain ore(s), goes to the asteroid, mines it, scoops the poop, checks to see if there's any poop left. if there is poop, keeps scooping. if there isnt, checks the poop in its inventory. if it goes over your selected total poop percentage, go to the station. if it doesn't, scan for more poop asteroid and repeat the navigation process.

#

and maybe there could be another ai specifically for trading

#

that sells specific items in the inventory

#

ai trading

#

that's kinda how id like the ai to be

#

because it's extremely customizable

#

and it gives another use for the gps system

#

and it's not too complex

#

with a pretty quick tutorial system

#

like Tutorials/advanced/ai/

#

and then

#

mining ai
fighter ai
defence ai
trading ai
salvaging ai

#

and it basically explains how to setup a very basic system

#

and then noobs can get the most out of it

#

and the more in depth players can experiment to find more things to do with it

#

maybe even a new way to make snakes that doesn't require ball joints

#

like a conga line of ships all pressed together

#

of course it's gonna be pretty useless in multiplayer

#

although automatic railfans sound cool

#

or bringing swarms back

#

ok it's pretty useful on both sides

#

but yeah

#

id like simple ai that's easy to use

#

but

#

you can do a lot with it

#

thx for coming to my TED talk

formal wadi
#

Orion, how could you forget the Roadmap!?

quick pike
#

Tbh

#

I think this is what the drones could be @steep ridge

steep ridge
#

well, hopefully the drones can be like custom built ships then

quick pike
#

Yea, that's what I am mostly worried about

steep ridge
#

i'd love to setup like

quick pike
#

I hope drones don't end up being similar to the missile launcher

steep ridge
#

a miner mining ores and junk

#

and then it transfers resources to a conga line of transporters

quick pike
#

👍

steep ridge
#

lol imagine

#

like 20 smth ships all in a line

#

transfering resources to and from a station

#

it'd also give use for having more than 2 ships in career

quick pike
#

Would be cool to see

steep ridge
#

cause rn all we rlly need is a mobile factory and a combat ship

#

and then of course #1034978956920754216 can tie into this

#

because people then need to build stations

#

for more moolah

#

and then with stations comes a hoard of bees drones to collect honey ores

quick pike
#

!!!

#

Exactly

naive finch
#

Some guy made a mod for this.