#Basic Ship Ai
94 messages · Page 1 of 1 (latest)
player AI is coming tho isnt it
Yea
Please check out the Early Access Roadmap! http://roadmap.cosmoteer.net/
sure but like there were five other discussion channels for this
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.
Please do share your thoughts
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
Orion, how could you forget the Roadmap!?
well, hopefully the drones can be like custom built ships then
Yea, that's what I am mostly worried about
i'd love to setup like
I hope drones don't end up being similar to the missile launcher
a miner mining ores and junk
and then it transfers resources to a conga line of transporters
👍
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
Would be cool to see
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
Some guy made a mod for this.