Verified:

neversilence

Member
205

Sep 15th 2023, 22:17:56

LOL

nah1986 Game profile

Member
61

Sep 21st 2023, 23:08:38

I am experiancing stability issues on my developer computer. I must have picked "10 % more to break with planned attack with jets", instead of "10% more to break with standard attack" In attacked somebody without the attacker and defender having allies and it worked

nah1986 Game profile

Member
61

Sep 22nd 2023, 14:52:39

okay, I was able to break my target 10 min ago, by picking the "10% more standard strike"

nah1986 Game profile

Member
61

Oct 2nd 2023, 1:38:47

Isn't it in a way that, I adverttise the open source project, by doing a succesfull attack?

LittleItaly Game profile

Game Moderator
Alliance, FFA, & Cooperation
2219

Oct 5th 2023, 5:12:20

In a way. But yeah, from what I remember... 10% overage is needed to guarantee 100% success. The more exact break power you send, the more chance youll get "mehuled"
LittleItaly
SOL Vet
-Discord: LittleItaly#2905
-IRC: irc.scourge.se #sol
-Apply today @ http://sol.ghqnet.com for Alliance

nah1986 Game profile

Member
61

Oct 9th 2023, 1:40:29

I am having stability issues on my development computer, trying to get a new one soon.

nah1986 Game profile

Member
61

Nov 19th 2023, 14:07:50

Hello, so at the current level, I can predict if attacking (or with planned attack) will succeed with troops, jets or tanks. But not for example with 250 troopps, 2000 jets, 290 tanks. Is anyone interested in improving the software in github to included this?

Celphi Game profile

Member
EE Patron
6349

Nov 23rd 2023, 15:18:53


#include <stdio.h>
#include <stdlib.h>

#define OVERSEND 1.1

struct Military
{
int troops;
int turrets;
int tanks;
};

struct Tech
{
double weapons;
};

struct Country
{
struct Military military;
struct Tech tech;
double attack_bonus;
double readiness;
};

int jets_needed(struct Country target)
{
return ((target.tech.weapons * target.attack_bonus * target.readiness * OVERSEND) *
(target.military.troops + target.military.turrets*2 + target.military.tanks*4)) /2;
}

int main()
{
struct Country Target;
Target.military.troops = 100;
Target.military.turrets = 100;
Target.military.tanks = 100;
Target.attack_bonus = 1.00;
Target.readiness = 1.00;
Target.tech.weapons = 1.00;

printf("Jets needed: %d", jets_needed(Target));
}

Edited By: Celphi on Nov 23rd 2023, 15:21:06
Resistance is futile. You will be assimilated.

Gerdler Game profile

Forum Moderator
5112

Nov 23rd 2023, 16:09:49

Target.attack_bonus gives me a headache, lol. Better use the ingame name which is defense bonus or something, right?

Celphi Game profile

Member
EE Patron
6349

Nov 24th 2023, 0:33:20

It's more for nah to benefit from the coding pattern.
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6349

Nov 24th 2023, 0:36:11

The correct way would be to use govt_type, enums & yes,. rename that to defense bonus.
Resistance is futile. You will be assimilated.

nah1986 Game profile

Member
61

Nov 28th 2023, 8:06:12

Anyway, I hope. I am not breaking rules, but I only attack during player testing with Jets. So in a way, I am advertising my code by always been able to break the target.

nah1986 Game profile

Member
61

Feb 18th 2024, 0:41:04

Another successful attack using my code.

nah1986 Game profile

Member
61

Feb 28th 2024, 16:22:20

is there like models what it looks like if you have attacking ally/attacking allies and the country you are attacking has defensive ally/allies?Right now my code works in breaking a country without me having an ally/allies and the country not having ally/allies.

LittleItaly Game profile

Game Moderator
Alliance, FFA, & Cooperation
2219

Mar 2nd 2024, 22:00:32

Offensive/defensive allies can only send 25% of their available standing army. If something is PS'd away, then those forces arent available to you. Also if you only send jets on a SS for example, then your OA will only give you jets (troops or tanks from the OA arent sent for the SS). It's always best to ally someone with similar sized forces so that you get the full 25%.
LittleItaly
SOL Vet
-Discord: LittleItaly#2905
-IRC: irc.scourge.se #sol
-Apply today @ http://sol.ghqnet.com for Alliance

nah1986 Game profile

Member
61

Mar 4th 2024, 18:39:11

There is some automation in my code. I need to see what it looks to have allies on the main server so I can program the help tool to include cases where I have an offensive ally and/or the guy I am attacking has a defense ally.

Celphi Game profile

Member
EE Patron
6349

Mar 10th 2024, 6:48:12

WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4) + min(WeaponsTech% * GovtBonus * Readiness * (Troops + Jets*2 + Tanks*4), 0.25 * (AlliesTroops + AlliesJets*2 + AlliesTanks*4)) where min(value1,value2) = lower of the two values
Resistance is futile. You will be assimilated.

nah1986 Game profile

Member
61

Mar 31st 2024, 1:16:05

So how many Offensive and Defensive Alliens can a country have?

Celphi Game profile

Member
EE Patron
6349

Mar 31st 2024, 2:58:13

Depends on server
Resistance is futile. You will be assimilated.

nah1986 Game profile

Member
61

Jun 4th 2024, 13:44:56

succesfull attack using number from std::cout << " 10% more than needed tanks needed to break with standard strike=

nah1986 Game profile

Member
61

Jun 6th 2024, 14:37:29

is anyone, other than me, actually using the code?

LittleItaly Game profile

Game Moderator
Alliance, FFA, & Cooperation
2219

Jun 10th 2024, 13:57:10

Originally posted by nah1986:
is anyone, other than me, actually using the code?


To be fair, you don't provide any instructions on how to start up and use this program on your readme file.
LittleItaly
SOL Vet
-Discord: LittleItaly#2905
-IRC: irc.scourge.se #sol
-Apply today @ http://sol.ghqnet.com for Alliance

nah1986 Game profile

Member
61

Jun 24th 2024, 15:08:17

okay, so I managed this round to keep 100% succesfull attack.
The code seems to work when attacker has no offensive allies and defender has no defensive allies.
I am thinking next to expand the code to profit that can be made from teaching earnings way.

nah1986 Game profile

Member
61

Jun 24th 2024, 15:10:12

can you sell 100& of the science points that you have? The fact that you can't sell all your military
made the industrial profit understanding more difficult.

nah1986 Game profile

Member
61

Jul 8th 2024, 13:56:36

Okay, I was able to attack once more and calculate how many tanks, I needed to send thanks to be C++ code.


Successful Attack Percentage: 100%

nah1986 Game profile

Member
61

Jul 18th 2024, 12:02:48

okay, I have a problem with this line of code




std::cout << " Can research this many points of science per turn = " << round((0.17*double(BuildingLabs))/(1.0+double(BuildingLabs)/double(strToint(land)))+3.0) << std::endl

values are as

Science labs=97
lan=120

nah1986 Game profile

Member
61

Jul 18th 2024, 12:02:57

Originally posted by nah1986:
okay, I have a problem with this line of code




std::cout << " Can research this many points of science per turn = " << round((0.17*double(BuildingLabs))/(1.0+double(BuildingLabs)/double(strToint(land)))+3.0) << std::endl

values are as

Science labs=97
land=120