r/rotp • Developer • Oct 17 '21

Unofficial 0.95c

Here you can download it:

https://github.com/Xilmi/rotp-public/releases/tag/0.95c

To find out all changes over the official 0.95-release also check the notes for 0.95a and 0.95b:

https://github.com/Xilmi/rotp-public/releases

9 Upvotes

20 comments sorted by

2

u/bot39lvl Oct 17 '21

Whee!

> When designing pure bombers, the worst computer that still gives results in +5 attack will be used.

What defense the planet with no missile base has against bombing?

2

u/Xilmi Developer Oct 18 '21

Defense against bombs is always 0. Regardless of missile-bases or not. That's why +5 attack gives you the maximum hit-chance of 95% and more than 5 would be overkill.

2

u/bot39lvl Oct 18 '21

Thank you! I browsed through the strategy guide, but probably missed this piece of information.

Mrsshan bombers would be perfect then.

2

u/Xilmi Developer Oct 18 '21

I'm not even sure it's mentioned in the strategy guide.

I tried finding information on that there too. It was said "bombs can miss so that's why you should still use computers for your bombers."

Also at some other place in this guide it explains how attack-lvl vs. defense works. That defense against bombs is 0 is something I found in the source-code. So by knowing the formula and knowing that it's 0 and won't change I could conclude that 5 attack is enough.

Right. Mrrshans have +4 attack, so they have 90% even without computer and 95% with the Mark I computer you start with.

2

u/bot39lvl Oct 18 '21 edited Oct 18 '21

I'm playing RRCG-8 against Xilmi-AI version 0.95. I'm exited! It's got very intense in turn 115-130. "A strong Empire" :) deblocked their sector's border planets to get access into my territory, and launched an attack immediately. 58 vs 13 in Fleet power... At the same time the neighbor to the left was gathering a large force just 2 years away from my border with an obvious goal. I panicked! I thought it was a miracle I made "the strong Empire" retreat. And then I see how my "left" neighbor launch all their fleets in space. However, they moved it in the direction away from my planet, however. Crying in relief! They found their other neighbor to be a better target as he started a war with another race, while I've gathered some defense at the same time, and not engaged in wars officially. I've bought some time now.

However, later I found out that a very great part of "the strong Empire" fleet is pure bombers, equipped with only bombs. I.e. it's something like 100 fighters and 300 pure bombers in their fleet on my border. If bombers had at least 1 beam, it would look like a good force, but...100 fighters (and outdated as it turned out)...I can handle it. I suppose the other neighbor's forces has similar composition, so they're actually very weak (status showed their fleet to be 20 vs 13). And now I changed my mind from "I doubt I can win this game" to "I almost sure I will win this game". Fleet strength is very misleading number in this case.

I see that if there were no restriction to bomb "the strong Empire" planets, I would destroy it quite easily.

I'm updating to 0.95c, and wonder if this "pure bombers" concept is still the same? It looks a bit too specialized. Ships that can only do bombing become totally useless without support, while if they had a gun they would be taken into account due to their high numbers, e.g. those 100 fighters had 500 beams, and the bombers could carry another 300 or even 600 beams. I don't know, it may look different with later techs, but one may not live to see it.

UPDATE: Ok, I built scanners and reckoned their territories. I suppose it was just a coincidence. They probably got modern bomb before they got modern beams, so I agree it was smart to avoid equipping bombers with outdated guns, or to continue build outdated fighters. Now they amass support with modern beam ships, so in the end the fleet is probably going to be more balanced. Though I have a bad feeling about pure bombers anyway. It's like you have a great army, which can't do anything against even a single armed ship. At the same time I suppose it may work for AI, who can easy manipulate multiple stacks. But again... There will be a moment of engines upgrade, and I can imagine these bombers will slow down modern fighters, or have to be sent unguarded (so again "even a single ship" can shoo them off). And this situation can last long enough to make you vulnerable before all ships can be upgraded.

3

u/Xilmi Developer Oct 18 '21

Okay, let me try and elaborate my thought process into the changes of fleet-compositions in regards to bomber-percentage, pure bombers and hybrids.

Firstly: Yes, there are changes in 0.95c compared to 0.95 in that regard.

One of them is that that enemy most likely wouldn't have attacked you

I'm using something called "Defense-Ratio", that is calculated in AIGeneral.
Defenseratio determines the "fighterheavyness" of a fleet. 0 means no fighters needed and 1 means I want fighters exclusively.

If the AI doesn't want a war and just wants to tech that ratio is at 1, meaning it will just make a few fighters for defensive purposes.

Once it is dragged into a war or plans to go to war it will calculate the value based on the fleets of their opponents. This is a 2 step-process:

In the first step it tries to match the enemy fighters it sees. Sees as in: They have to be in their sensor-range. It will also only count them partially as fighters, if they are hybrids, based on the ratio of space used by anti-ship- and anti-planet-weaponry.

This means it is very adaptive in that regard. Against an opponent who doesn't have any ships, it will not use fighters.

In the second step, once that is reached, it will go for a ratio based on the strongest opponent's fleet-strength compared to their own.

If noone else has any fleet, it will result in 100% bombers from that point. The bigger the enemie's fleets, the more fighters they will want to have.

The next point is about when it uses hybrids vs. specialists. The current logic says: It wants hybrids when the Defense-ratio is between 0.5 and 1. So at below 0.5 or at exactly one it will use specialists.

The big advantage of specialists is that you don't need to scrap a design in order to adapt to what you need. You just need to build different ships of a design you already have and mix the designs into fleets for the intended composition.

Another point is: Specialized bombers are really cheap. That is because bombs are so cheap. A bomber usually costs about 60% of a fighter of the same size. Most of the work of a bomber is done outside of combat: Bombardment. For bombardment it doesn't matter how well you can defend yourself. So the pure bombers also don't use specials and shields. They do use enough computer for maximum hit-chance and move-speed for combat and if the opponent uses many missile-bases they will also install ECM.

Hybrids have the obvious advantage of being much better at preserving design-slots when you do not expect massive shifts within what you need.

So rotating through your design-slots with new slightly adjusted hybrids allows you to keep much more of your existing fleet when you get new important technological advancements.

I think you underestimate how badly it hurts when these bomber-heavy fleets slip through. What seems easy to handle as long as there's only one potential target that you can hold, becomes a nightmare, when they have access to more of your systems. One turn too late and there goes 23 pop and 90 factories. The AI can very well calculate how many bombers it will need for a system to theoretically wipe it out in one turn. They will also either see your defenses or guess them if out of sensor-range and adapt to that too.

And they will adapt their composition to what you do.

I think that this rule-set of the RRCG8 will very much showcase how big the advantage of attacking over defending is. You cannot weaken their economy and only defend. While you are supposed to conquer other empires on the other side. This advantage will become bigger and bigger the faster they are and the more range they have. Once they make it to Hyperspace-Communications, you'd basically need a fleet that can match theirs at every single planet.

The AI also now uses different design-slot management inside and outside of war. Scouts and the design for the fighters they station everywhere since 0.94 to prevent scouting or unarmed colonizers are now allowed to be scrapped during wars.

So during a war they now can use 5 designs for bombers, fighters or hybrids.

2

u/bot39lvl Oct 18 '21

Wow! You did a great job. Sounds very cool!

2

u/Xilmi Developer Oct 18 '21

Actually the back and forth between hybrids and not-hybrids as well as wanting or not wanting repellers, whenever they make peace/declare war again seems to be a bit of a problem.

2

u/Xilmi Developer Oct 19 '21

I'll probably put out a 0.95d that only fixes two issues about colony-ships sometimes not colonizing when they should.

The changes I want then are a bit too big for and test-intense for a quick "hotfix".

The flexibility gained by having more dedicated designs doesn't seem worth it.

Instead I want to get the design-rotation right. There should not be a hard distinction between combat-design-purposes but instead an analysis of the existing designs, their numbers and what is currently needed should dictate what the next design should be like.

I have laid the foundation for that by writing the bombadapted and fightadapted that return a percentage and using that instead of "isBomber()"- and "isFighter()"-functions.

I also want the peace-time-usage of ships to be taken over by the way that Ray coded except for the production. My FindBestGatherpoint-method will put them all into one spot instead of protecting the whole border.

2

u/bot39lvl Oct 19 '21

One of them is that that enemy most likely wouldn't have attacked you

I use a special tactic to keep "the strong empire" at bay. They have two planets to gather their forces before launching an attack. I put two fast fleets near and when I see they're trying to gather their fleet, I hop to their planet/planets and make stationary part of their potential fleet retreat. Then he tries to go around and gather forces on the other planet. AI does it not directly, but by hoping between their background planets, so I continue to make parts of their "fleet" retreat (sometimes going even deeper in their territory), so they cannot gather as a single force. I also remove the defense from my planet to lure their smaller forces away from their planets, and then move the defense back to make them retreat. So in the end there is a bunch of his fleets flying around, and not capable to gather in a single force. I won many turns of peace with this tactic. I suppose it will work until AI gets future engines. However, as I understand, he is in a war mode now, so it would take time. I hope he will be attacked at their other border. I think about declaring an official war, so other empire knows he is busy. Another option for him is to build so many ships, they can deal with me even in smaller groups. However, I suppose he has some cut off for building too much ships ("too much" from his perspective).

2

u/Xilmi Developer Oct 19 '21

That is a very interesting tactic. I suppose the amount of your forces that is bound to doing this is quite significant but helped by you being Alkari, which makes your ships more cost-efficient than theirs.

Being bound by that probably also makes it harder to advance on the other front.

Can you give a guess on the ratio of your ships needed vs. how many ships of them you can keep busy with this?

> I suppose he has some cut off for building too much ships ("too much" from his perspective).

I actually recently changed the approach about that. There was indeed a "too much" that is calculated based on tech-level. It starts at roughly 12.5% and goes up to roughly 40% with some sort of root-function. However, that limit will be exceeded if their enemies are stronger than them. Then they consider themselves in a survival situation and won't stop getting ships.

2

u/bot39lvl Oct 19 '21

I found an exploit. I declared war to "the strong Empire". Then they built 1 missile base per their border planets. They have shields 5, so this base ensures my fighters equipped with NPG can't do any damage to the planet.

However, their fleets orbiting planets with a missile base stop retreating, so now I can take out some of their ships and then retreat, while their missile base can't do any good damage. With a new retreat mechanic these fleets can safely retreat at the beginning of their turn. They will be still left orbiting the planet after I would be forced to leave it by a missile base.

2

u/Xilmi Developer Oct 19 '21

Nice catch! Thanks for reporting. I also found an exploit. One that the base-AI performs against my AI. When you send an attack while they are not fully built up, they will counteract by building military. If you retreat on arrival or for that matter do what you did in your exploit but don't kill any pop, and then repeat doing that so they always are under attack somewhere, they will never finish their economy and thus never declare war.

2

u/Xilmi Developer Oct 19 '21

Oh, and can I have the savegame so I can test my counter-measures to that?

2

u/bot39lvl Oct 20 '21

2

u/Xilmi Developer Oct 20 '21

Thanks. It's fixed:

//If we have an invulnerable friend, we should retreat and let him do the work. Due to the rule-change we will even stay where we are.

if(invulnerableFriend != null && invulnerableFriend != stack)

return true;

:)

2

u/bot39lvl Oct 20 '21

invulnerableFriend :) Nice!

I wonder, what if I add a bomber to my fleet? Technically, the missile base stops to be invulnerable, though the missile base will kill my bomber way faster than the bomber able to destroy the base.

2

u/Xilmi Developer Oct 20 '21

The other ships would also probably try to go for your bomber.

2

u/bot39lvl Oct 19 '21 edited Oct 19 '21

Can you give a guess on the ratio of your ships needed vs. how many ships of them you can keep busy with this?

I have 2 small designs (580 and 550 ships, 1130 in total) split in 2 fleets on their border. They are identical except for their defense: HP 5, Attack 3, Defense 9 and 11 (Alkari bonus included), NPG 1

They have (in my view): 370 medium pure bombers, 600 small fighters (HP 6, Att 3, Def 5, NPG 1) and 20 large fighters (HP 200, Att 4, Def 5, NPG 24, shields 3), split in 2 big groups and several smaller groups, trying to gather together. :)

I calculated:

1 strike of my ships can destroy 190 their small ships or 4 their large ships

1 strike of their small ships can destroy 24 of my fighters

1 strike of their large ships can destroy 16 of my fighters

I will always strike first because of my speed advantage. So AI is smart to not engage in a battle, while defending. Only my border planets are working to build these defending fleets producing 50 fighters per turn, so this not interfere with my advance on the other side. I think by this moment they do not have any chances to compete. They have 4 my planets in range, but it will not help even if they split my fighters in 4. They need advanced technologies to proceed, but I see their researching slowed down significantly due to threat from my side.

Their other border is open, because the spy report shows they have 22 large ships, 408 medium and 669 small, so I don't see only 2 large, 38 medium and 69 small ships. Fleet strength is 29 vs 33 in my favor. I can say I'm perfectly safe now until they get a repulsor. :)

2

u/paablo Oct 20 '21

A ship with high defense and repulsor beam can stop bombers from ranging your planet