[MOD 0.18] Orbital Ion Cannon 1.8.2
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Hmm, not sure what the problem could be, then. Perhaps try changing the scanning range in the config.lua file?
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Why not make auto targeters also target nests in the always visible areas?
My Mods: mods.factorio.com
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Performance reasons; the original incarnation of auto-targeters did this, but caused lag when many of them were built.Optera wrote:Why not make auto targeters also target nests in the always visible areas?
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Does find_entities_filtered scale so bad when given a bigger area?Supercheese wrote:Performance reasons; the original incarnation of auto-targeters did this, but caused lag when many of them were built.Optera wrote:Why not make auto targeters also target nests in the always visible areas?
PS: I think I read it's finding all entities and filters the results, so performance wise using one find_entities with your own filter for spawner and worms might be faster.
My Mods: mods.factorio.com
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
But it could be more performance friendly in this way:Supercheese wrote:Performance reasons; the original incarnation of auto-targeters did this, but caused lag when many of them were built.Optera wrote:Why not make auto targeters also target nests in the always visible areas?
1. You place autotargeters around your base.
2. The mod sums up the area of the autotargeters range.
3. The mod starts to scan this area all in one, but multiplies the scan speed by the number of autotargeters.
It's on 10, i think it's needed to be enough. In my older maps (with older game and mod version) it worked properly.Supercheese wrote:Hmm, not sure what the problem could be, then. Perhaps try changing the scanning range in the config.lua file?
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
In this link you can find my config.lua and the zip file, you can try how it's working or you. I changed some settings before in the config file, but i don't think any of the changes causes the bug.
https://1drv.ms/f/s!ArvLKxtjzZnrld4snlnB_84PCZh7Ig
https://1drv.ms/f/s!ArvLKxtjzZnrld4snlnB_84PCZh7Ig
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Summing up all chunks uncovered by auto targeters does not guarantee a rectangle, which is required for find_entities or find_entities_filtered.MPeti1 wrote:But it could be more performance friendly in this way:Supercheese wrote:Performance reasons; the original incarnation of auto-targeters did this, but caused lag when many of them were built.Optera wrote:Why not make auto targeters also target nests in the always visible areas?
1. You place autotargeters around your base.
2. The mod sums up the area of the autotargeters range.
3. The mod starts to scan this area all in one, but multiplies the scan speed by the number of autotargeters.
You could store all chunks visible from auto targeters in a metatable with the last scanned tick and have only those evaluated at on_sector_scan_complete where game.tick - last scanned tick > scan time in ticks.
My Mods: mods.factorio.com
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
A reminder that I gladly welcome pull requests, should anyone feel they want to have a crack at any improvements. ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
I can't find how to mnufacture targeting device. Should I open some tech?
Or maybe it is in conflict with BOB mods pack?
Or maybe it is in conflict with BOB mods pack?
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
You should first launch an ion cannon into orbit.Chemistal wrote:I can't find how to mnufacture targeting device. Should I open some tech?
Or maybe it is in conflict with BOB mods pack?
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Hello supercheese,
i am not shure whats wrong. We launched a rocket with canon, it was firing manually without problems, then we built auto targeting stations and it was working well. Suddenly now the counter stopped for any reason.
![Image](https://forums.factorio.com/images/ext/34c42212707b2c73c4b7e748afa26fe2.jpg)
we are using the lates version of factorio.
Any suggestions ?
Kind regards
[edit] for any reason the counter started again
[/edit]
i am not shure whats wrong. We launched a rocket with canon, it was firing manually without problems, then we built auto targeting stations and it was working well. Suddenly now the counter stopped for any reason.
![Image](https://forums.factorio.com/images/ext/34c42212707b2c73c4b7e748afa26fe2.jpg)
we are using the lates version of factorio.
Any suggestions ?
Kind regards
[edit] for any reason the counter started again
![Smile :-)](./images/smilies/icon_e_smile.gif)
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
There is a bug where after you close Factorio, the next time you start it up the cooldown for all Ion Cannons in orbit stop counting down. They start again the next time you launch an Ion Cannon into space. This may just be because I don't have the newest version of the mod.
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Sounds like it.Incoming wrote:There is a bug where after you close Factorio, the next time you start it up the cooldown for all Ion Cannons in orbit stop counting down. They start again the next time you launch an Ion Cannon into space. This may just be because I don't have the newest version of the mod.
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Could you add a max number of shots for each cannon? That we can then configure in the options.
- Betep3akata
- Inserter
- Posts: 40
- Joined: Fri Sep 30, 2016 10:31 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Hi, Supercheese,
Thanks for the C&C style late-game and swarms of the EMP aliens!
Could you please check the when_ion_cannon_fired event?
I tried to use it in the scorchedEarth mod through the remote interface and faced a number of problems:
1. The event fires not on the ion beam blast but on putting target;
2. The event.position is likely shifted upwards;
3. Could you please also add the ionCannonRadius into the event?
Thanks,
Alex
Thanks for the C&C style late-game and swarms of the EMP aliens!
Could you please check the when_ion_cannon_fired event?
I tried to use it in the scorchedEarth mod through the remote interface and faced a number of problems:
1. The event fires not on the ion beam blast but on putting target;
2. The event.position is likely shifted upwards;
3. Could you please also add the ionCannonRadius into the event?
Thanks,
Alex
My mods: Scorched Earth, Will-o-the-wisps
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.5
Sounds good, I'll make those changes as soon as I can.Betep3akata wrote:Hi, Supercheese,
Thanks for the C&C style late-game and swarms of the EMP aliens!
Could you please check the when_ion_cannon_fired event?
I tried to use it in the scorchedEarth mod through the remote interface and faced a number of problems:
1. The event fires not on the ion beam blast but on putting target;
2. The event.position is likely shifted upwards;
3. Could you please also add the ionCannonRadius into the event?
Thanks,
Alex
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.6
Updated to version 1.4.6 to address the issues above and a couple more.
Tired of "Ion Cannon Ready" spam? This update will greatly reduce it thanks to a new config option!
Config.lua is getting a bit long in the tooth -- can't wait for 0.15 and its new mod settings interface to clean things up!
Tired of "Ion Cannon Ready" spam? This update will greatly reduce it thanks to a new config option!
Config.lua is getting a bit long in the tooth -- can't wait for 0.15 and its new mod settings interface to clean things up!
- Betep3akata
- Inserter
- Posts: 40
- Joined: Fri Sep 30, 2016 10:31 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.6
Hi, Supercheese,
Thanks for update!
I have some questions about the following changes:
1. Could the target be canceled eventually?
2. Most likely I cannot take into account the heat up time if it will be changed in the config.
Are there some technical restrictions to implement the on_ion_cannon_fired event?
Thanks,
Alex
Thanks for update!
I have some questions about the following changes:
I am concerned about two things about the current on_ion_cannon_targeted event:Renamed custom "on_ion_cannon_fired" event to "on_ion_cannon_targeted", to better reflect that it fires on target designation rather than actual blast impact.
1. Could the target be canceled eventually?
2. Most likely I cannot take into account the heat up time if it will be changed in the config.
Are there some technical restrictions to implement the on_ion_cannon_fired event?
Thanks,
Alex
My mods: Scorched Earth, Will-o-the-wisps
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.6
There is currently no way to cancel a target site once designated.Betep3akata wrote:Hi, Supercheese,
Thanks for update!
I have some questions about the following changes:I am concerned about two things about the current on_ion_cannon_targeted event:Renamed custom "on_ion_cannon_fired" event to "on_ion_cannon_targeted", to better reflect that it fires on target designation rather than actual blast impact.
1. Could the target be canceled eventually?
2. Most likely I cannot take into account the heat up time if it will be changed in the config.
Are there some technical restrictions to implement the on_ion_cannon_fired event?
Thanks,
Alex
The issue with determining exactly when the ion cannon actually fires stems from the fact that I just spawn a target entity and a projectile, and then Factorio itself takes care of accelerating the (invisible) projectile towards the target until impact. It is possible to monitor on_entity_died to determine when the target entity is destroyed, but then the issue arises when you rapidly designate two target sites in close proximity to each other -- the first ion cannon blast will destroy both target entities, leading to a false reading of on_entity_died.
- Betep3akata
- Inserter
- Posts: 40
- Joined: Fri Sep 30, 2016 10:31 am
- Contact:
Re: [MOD 0.14] Orbital Ion Cannon 1.4.6
Ok, thanks for the answer. Now I understand.
1. It seems that the event.position.y is still shifted up.
2. Could you please add the HeatupTime into the event too? (I'm going to add each onTarget event into a queue and execute it on HeatupTime expiration in onTick.)
Thanks,
Alex
P.S.: current scorch mark design:
![Image](https://forums.factorio.com/images/ext/d1299d3605ffba4fb0c68b9a49ce04e9.png)
1. It seems that the event.position.y is still shifted up.
2. Could you please add the HeatupTime into the event too? (I'm going to add each onTarget event into a queue and execute it on HeatupTime expiration in onTick.)
Thanks,
Alex
P.S.: current scorch mark design:
![Image](https://forums.factorio.com/images/ext/d1299d3605ffba4fb0c68b9a49ce04e9.png)
My mods: Scorched Earth, Will-o-the-wisps
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.
//My nickname is some kind of transliteration from Cyrillic to Latin. Betep3akata stands for WindOfSunset.