[MOD 0.14] AAI Programmable Vehicles
-
- Burner Inserter
- Posts: 10
- Joined: Fri Feb 23, 2018 6:56 am
- Contact:
Re: [MOD 0.14] AAI Programmable Vehicles
And one more thing. Of course, I could have invented something myself, but sometimes it happens that tanks that patrol zones are recived damage, consuming all ammunition and fuel. It would be great to have a ready solution, but I probably ask too much.
Re: [MOD 0.14] AAI Programmable Vehicles
But with turret crawl I have 4 laser turrets and they distract the aliens.jinsediaoying wrote:Robots getting shoot down is not a thing that need avoid. It also happens when you do the laser tower crawl
On the other hand there are 200 alien artefacts to collect so all bots will be flying around collecting them. And nothing to distract the aliens that are in range of the robots but out of range of the chain gunners.
Re: [MOD 0.14] AAI Programmable Vehicles
I somewhat fixed my problem. The vehicles' AI doesn't seem to kick in when the vehicle is placed. But after telling the vehicle to move with the controller, all of the AI kicks in and they start attacking aliens that get near them.Asonael wrote:I seem to be having a problem. Chaingunners do not automatically attack biters, nor do biters seem to attack them. I've tried all 3 AI modes (Off, Auto and On) and they still refuse to auto-attack biters.
Mods include:
Everything AAI
Alien Biomes
Auto-fill (which neither fills chaingunner with coal or bullets)
Beautiful Bridge Railway
Bullet Trails
Enhanced Map Colors
Long Reach
Minimap Autohide
RSO
Text Plates
-
- Burner Inserter
- Posts: 10
- Joined: Fri Feb 23, 2018 6:56 am
- Contact:
Re: [MOD 0.14] AAI Programmable Vehicles
If the laser tank is equipped with piercing projectiles and it shoots at the enemy, if there is an allied vehicles or building between the enemy and the laser tank, then it takes damage, which levels the use of these shells and makes their use meaningless.
Re: [MOD 0.14] AAI Programmable Vehicles
Not sure where else to post this so I will put it here.
I have created a blueprint for a controller structure to send a miner to an ore patch, a hauler to the miner until a specified amount of resource is in the hauler, returning it to a depot and sending back out to the miner.
CC at the bottom outputs the desired miner id and zone type. From this zone type, a position is pulled and used to send the miner. From this miner id, its position is pulled and 5 added to both X and Y so the hauler does not ram the miner. The CC's at the top output the hauler id from one and the X/Y location of the depot with a generic red signal valued at 1. This signal is used to decide if the hauler has the required quantity of ore. On the right side, a zone scanner looks at the tile the miner is on and if there is no ore, sends the coordinates to the zone controller to de-zone that tile.
Only 5 things need to be changed for each placement, the two vehicle CC's (with zone type), the depot location CC, and the two ore testing combinators.
Blueprint string: https://pastebin.com/48C6zqNy
EDIT: Updated blueprint string to remove extra green wires that accidentally set the zone instead of removing it and connect the miner's location to the zone scanner instead of the hauler. Image shows the old version because I do not feel like taking a new screenshot.
I have created a blueprint for a controller structure to send a miner to an ore patch, a hauler to the miner until a specified amount of resource is in the hauler, returning it to a depot and sending back out to the miner.
CC at the bottom outputs the desired miner id and zone type. From this zone type, a position is pulled and used to send the miner. From this miner id, its position is pulled and 5 added to both X and Y so the hauler does not ram the miner. The CC's at the top output the hauler id from one and the X/Y location of the depot with a generic red signal valued at 1. This signal is used to decide if the hauler has the required quantity of ore. On the right side, a zone scanner looks at the tile the miner is on and if there is no ore, sends the coordinates to the zone controller to de-zone that tile.
Only 5 things need to be changed for each placement, the two vehicle CC's (with zone type), the depot location CC, and the two ore testing combinators.
Blueprint string: https://pastebin.com/48C6zqNy
EDIT: Updated blueprint string to remove extra green wires that accidentally set the zone instead of removing it and connect the miner's location to the zone scanner instead of the hauler. Image shows the old version because I do not feel like taking a new screenshot.
-
- Manual Inserter
- Posts: 2
- Joined: Fri Mar 16, 2018 1:09 pm
- Contact:
Re: [MOD 0.14] AAI Programmable Vehicles
Earendel wrote:Someone else reported that problem on but then said it was a mod compatibility issue and that it was fixed after an update, I don't know what mod it was though. Can you try with only AAI and it's dependencies installed?jmickle_ wrote:I just recently picked up AAI Programmable Vehicles again, and I'm now getting huge FPS drops when placing any vehicles from the mod. Even when holding just one automatic miner in the hand, on a compeletely new save, my FPS drops to around 15~20, and my UPS is down to 60. As soon as it's back in my inventory everything returns to normal.
I have the same issue, your mod is the only one installed, just the moment I place any vehicle, fps drops a lot, making the game unplayable.
Re: [MOD 0.14] AAI Programmable Vehicles
Is it the same problem where the slowdown happens without placing the vehicle and it is still your hand, or is it only when you place it?arismetica wrote:Earendel wrote:Someone else reported that problem on but then said it was a mod compatibility issue and that it was fixed after an update, I don't know what mod it was though. Can you try with only AAI and it's dependencies installed?jmickle_ wrote:I just recently picked up AAI Programmable Vehicles again, and I'm now getting huge FPS drops when placing any vehicles from the mod. Even when holding just one automatic miner in the hand, on a compeletely new save, my FPS drops to around 15~20, and my UPS is down to 60. As soon as it's back in my inventory everything returns to normal.
I have the same issue, your mod is the only one installed, just the moment I place any vehicle, fps drops a lot, making the game unplayable.
Also what vehicle are you placing, and if it is a miner is there a difference between the miner on resources and off resources?
-
- Manual Inserter
- Posts: 2
- Joined: Fri Mar 16, 2018 1:09 pm
- Contact:
Re: [MOD 0.14] AAI Programmable Vehicles
It doesn't happen when holding in my hand, only once it's placed, and only if I can see the vehicle, I mean, if I walk away and the vehicle dissappear from the screen, fps goes back to 60.Earendel wrote:Is it the same problem where the slowdown happens without placing the vehicle and it is still your hand, or is it only when you place it?arismetica wrote:Earendel wrote:Someone else reported that problem on but then said it was a mod compatibility issue and that it was fixed after an update, I don't know what mod it was though. Can you try with only AAI and it's dependencies installed?jmickle_ wrote:I just recently picked up AAI Programmable Vehicles again, and I'm now getting huge FPS drops when placing any vehicles from the mod. Even when holding just one automatic miner in the hand, on a compeletely new save, my FPS drops to around 15~20, and my UPS is down to 60. As soon as it's back in my inventory everything returns to normal.
I have the same issue, your mod is the only one installed, just the moment I place any vehicle, fps drops a lot, making the game unplayable.
Also what vehicle are you placing, and if it is a miner is there a difference between the miner on resources and off resources?
It happens with all the mod's vehicles, and no difference if the vehicle is moving or standing still, or mining, if I can see it, fps goes to 10.
Edit: I made some testing, and solved the problem, it was the warden, if I uninstall that vehicle, everything runs fine, but if the warden is installed, the problem persist, even without use it in-game, just wanted to share so you can see what could be the problem.
Re: [MOD 0.14] AAI Programmable Vehicles
That helps, thanks.arismetica wrote:It doesn't happen when holding in my hand, only once it's placed, and only if I can see the vehicle, I mean, if I walk away and the vehicle dissappear from the screen, fps goes back to 60.Earendel wrote:Is it the same problem where the slowdown happens without placing the vehicle and it is still your hand, or is it only when you place it?arismetica wrote:Earendel wrote:Someone else reported that problem on but then said it was a mod compatibility issue and that it was fixed after an update, I don't know what mod it was though. Can you try with only AAI and it's dependencies installed?jmickle_ wrote:I just recently picked up AAI Programmable Vehicles again, and I'm now getting huge FPS drops when placing any vehicles from the mod. Even when holding just one automatic miner in the hand, on a compeletely new save, my FPS drops to around 15~20, and my UPS is down to 60. As soon as it's back in my inventory everything returns to normal.
I have the same issue, your mod is the only one installed, just the moment I place any vehicle, fps drops a lot, making the game unplayable.
Also what vehicle are you placing, and if it is a miner is there a difference between the miner on resources and off resources?
It happens with all the mod's vehicles, and no difference if the vehicle is moving or standing still, or mining, if I can see it, fps goes to 10.
Edit: I made some testing, and solved the problem, it was the warden, if I uninstall that vehicle, everything runs fine, but if the warden is installed, the problem persist, even without use it in-game, just wanted to share so you can see what could be the problem.
-
- Filter Inserter
- Posts: 521
- Joined: Mon Feb 05, 2018 10:01 am
- Contact:
Re: [MOD 0.14] AAI Programmable Vehicles
Found a crash:
Changing the powered state of a vehicle (on/off/auto) while you are in it crashes the game.
Changing the powered state of a vehicle (on/off/auto) while you are in it crashes the game.
Re: [MOD 0.14] AAI Programmable Vehicles
I've been seeing a few more oddities:
When a player character is in a flying vehicle with AI switched on and following a move order, the character is sometimes ejected over water. A character stranded on water cannot enter a vehicle at all. The only way to recover from being stranded like this is to place landfill under the character's feet, at which point the vehicle can be entered. The character is also ejected when switching vehicle control mode over water. Do you by chance occasionally force the character out of the vehicle and back in (or into a replaced/rebuilt vehicle entity)? If so, I suspect the "back in" part simply fails, in the same manner as in this case.
A miner following a move order often discards its move order when entering or leaving a resource patch.
And a feature request: some way to control transfer of energy from grid batteries to the vehicle energy buffer. My current thought on the subject is to use percent battery charge in the unit data as the minimum percentage of battery charge to leave behind when pulling energy from batteries. Pulling motive power from batteries is also disabled while a player is driving, which is a change from 0.15 behaviour.
I also got a report from a user of xcompat_bobvehicleequipment that miners are so aggressive about pulling energy from batteries they'll disregard the contents of fuel slots entirely.
When a player character is in a flying vehicle with AI switched on and following a move order, the character is sometimes ejected over water. A character stranded on water cannot enter a vehicle at all. The only way to recover from being stranded like this is to place landfill under the character's feet, at which point the vehicle can be entered. The character is also ejected when switching vehicle control mode over water. Do you by chance occasionally force the character out of the vehicle and back in (or into a replaced/rebuilt vehicle entity)? If so, I suspect the "back in" part simply fails, in the same manner as in this case.
A miner following a move order often discards its move order when entering or leaving a resource patch.
And a feature request: some way to control transfer of energy from grid batteries to the vehicle energy buffer. My current thought on the subject is to use percent battery charge in the unit data as the minimum percentage of battery charge to leave behind when pulling energy from batteries. Pulling motive power from batteries is also disabled while a player is driving, which is a change from 0.15 behaviour.
I also got a report from a user of xcompat_bobvehicleequipment that miners are so aggressive about pulling energy from batteries they'll disregard the contents of fuel slots entirely.
Re: [MOD 0.14] AAI Programmable Vehicles
Wait, you can charge the vehicles with electricity?Derringer wrote:I've been seeing a few more oddities:
When a player character is in a flying vehicle with AI switched on and following a move order, the character is sometimes ejected over water. A character stranded on water cannot enter a vehicle at all. The only way to recover from being stranded like this is to place landfill under the character's feet, at which point the vehicle can be entered. The character is also ejected when switching vehicle control mode over water. Do you by chance occasionally force the character out of the vehicle and back in (or into a replaced/rebuilt vehicle entity)? If so, I suspect the "back in" part simply fails, in the same manner as in this case.
A miner following a move order often discards its move order when entering or leaving a resource patch.
And a feature request: some way to control transfer of energy from grid batteries to the vehicle energy buffer. My current thought on the subject is to use percent battery charge in the unit data as the minimum percentage of battery charge to leave behind when pulling energy from batteries. Pulling motive power from batteries is also disabled while a player is driving, which is a change from 0.15 behaviour.
I also got a report from a user of xcompat_bobvehicleequipment that miners are so aggressive about pulling energy from batteries they'll disregard the contents of fuel slots entirely.
Pony/Furfag avatar? Opinion discarded.
Re: [MOD 0.14] AAI Programmable Vehicles
Yup. If a vehicle runs out of fuel and has charged batteries in its equipment grid, the AI will transfer up to 225 MJ of grid battery energy to the vehicle's energy bar. In 0.15 this function was always active, in 0.16 it's active only when the AI (not a player) is driving. This gets awkward when combined with the problems with flying/floating vehicles...aka13 wrote:Wait, you can charge the vehicles with electricity?
I actually had a game state corruption save-failure crash recently that may be related as well. The autosave fired during a move order to approximately the given coordinates.
Code: Select all
Error Entity.cpp:200: Saving entity "indicator-beam-yellow" on chunk {-1, 0} at position {320.0312500000, 244.6093750000} [00014008, 0000f49c]. The game state is probably corrupted.
Re: [MOD 0.14] AAI Programmable Vehicles
This is strange. My miners do not have equipment grids. Am I missing something?Derringer wrote:Yup. If a vehicle runs out of fuel and has charged batteries in its equipment grid, the AI will transfer up to 225 MJ of grid battery energy to the vehicle's energy bar. In 0.15 this function was always active, in 0.16 it's active only when the AI (not a player) is driving. This gets awkward when combined with the problems with flying/floating vehicles...aka13 wrote:Wait, you can charge the vehicles with electricity?
I actually had a game state corruption save-failure crash recently that may be related as well. The autosave fired during a move order to approximately the given coordinates.
Code: Select all
Error Entity.cpp:200: Saving entity "indicator-beam-yellow" on chunk {-1, 0} at position {320.0312500000, 244.6093750000} [00014008, 0000f49c]. The game state is probably corrupted.
Pony/Furfag avatar? Opinion discarded.
Re: [MOD 0.14] AAI Programmable Vehicles
If you can reproduce it using earlier autosave it would be really good to report it on bug reports forum. It might be pretty dangerous if mod can cause this in repeatable way.Derringer wrote:Yup. If a vehicle runs out of fuel and has charged batteries in its equipment grid, the AI will transfer up to 225 MJ of grid battery energy to the vehicle's energy bar. In 0.15 this function was always active, in 0.16 it's active only when the AI (not a player) is driving. This gets awkward when combined with the problems with flying/floating vehicles...aka13 wrote:Wait, you can charge the vehicles with electricity?
I actually had a game state corruption save-failure crash recently that may be related as well. The autosave fired during a move order to approximately the given coordinates.
Code: Select all
Error Entity.cpp:200: Saving entity "indicator-beam-yellow" on chunk {-1, 0} at position {320.0312500000, 244.6093750000} [00014008, 0000f49c]. The game state is probably corrupted.
Re: [MOD 0.14] AAI Programmable Vehicles
Bob's Vehicle Equipment and my cross-compatibility patch, providing grid equipment and adding grids to AAI vehicles respectively. The patch has no runtime code and only fixes up prototypes during the data stage; the electric-hybrid code is part of AAI Programmable Vehicles and additionally in the Miner itself though unreachable without something like my patch. The patch is also aware of Aircraft and fixes up their grid definitions.aka13 wrote:This is strange. My miners do not have equipment grids. Am I missing something?
The combination makes for some interesting possibilities. Shields on chaingunners make them noticeably less fragile, although the shield equipment costs more than the chaingunner itself. A distant miner can run entirely on solar panels and batteries, without requiring fuel delivery. A hauler with roboports may be better at routine maintenance than a warden. Boost motors or even aircraft afterburners on a Flame Tumbler to put more vroom in your vroom, though you may rival trains as a hazard to other players if you do
Re: [MOD 0.14] AAI Programmable Vehicles
Is it possible to restrict ships only consider water when path-finding? currently they works fine on the sea but cannot routing against land that blocks the way
Re: [MOD 0.14] AAI Programmable Vehicles
Got a problem when turning ship's AI on while I'm on board:
Ships come from this mod: https://mods.factorio.com/mod/ships_extended
AI works fine when I'm not on it. Seems to be a conflict with Pavement Driving Assist. Turn off PDA then things goes fine.
Edit: got another minor bug on this ship mod. Ship cannon slot will disappear with AAIPV installed--without any notice of warning.
Ships come from this mod: https://mods.factorio.com/mod/ships_extended
AI works fine when I'm not on it. Seems to be a conflict with Pavement Driving Assist. Turn off PDA then things goes fine.
Edit: got another minor bug on this ship mod. Ship cannon slot will disappear with AAIPV installed--without any notice of warning.
Re: [MOD 0.14] AAI Programmable Vehicles
I made an automated zone scanner.
Constant combinator with the zone to be scanned=1 -> zone scanner set to tile output -> tile scanner set to resources and entities output -> decider if iron ore > 0, output zone of your choice=1, repeat for each resource -> zone controller plus the tile position from the zone scanner.
Box something in and it'll auto-assign a zone to it based on its contents.
Seems a bit more resource friendly than nonstop scanning and you can use 1 context sensitive zone to order attacks or send out miners depending on what you select rather than memorizing each zone and manually selecting it or letting jesus grab the wheel with an automated range-based scan.
Constant combinator with the zone to be scanned=1 -> zone scanner set to tile output -> tile scanner set to resources and entities output -> decider if iron ore > 0, output zone of your choice=1, repeat for each resource -> zone controller plus the tile position from the zone scanner.
Box something in and it'll auto-assign a zone to it based on its contents.
Seems a bit more resource friendly than nonstop scanning and you can use 1 context sensitive zone to order attacks or send out miners depending on what you select rather than memorizing each zone and manually selecting it or letting jesus grab the wheel with an automated range-based scan.
Re: [MOD 0.14] AAI Programmable Vehicles
I got this error, when trying to use this mod with Raven. Both works just fine alone, but looks like they don't like each other .
Gonna post in Ravens to to see if you guys can make both happy again
Gonna post in Ravens to to see if you guys can make both happy again
Code: Select all
__aai-programable-vehicles__data-updates.lua:2...grammable-vehicles__/prototypes/entity/entity-update.lua:90: attempt to index a field 'colision_box' (a nil value)