Verified:

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

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 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

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

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 6th 2024, 14:37:29

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

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

Mar 31st 2024, 1:16:05

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

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.

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.

nah1986 Game profile

Member
61

Feb 18th 2024, 0:41:04

Another successful attack using my code.

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

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?

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

Oct 2nd 2023, 1:38:47

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

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

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 14th 2023, 18:35:48

So, I used my software to attack a theocracy and fasicim. The defemces held, its possible I copy-pasted something wrong. Is anyone interested in trying to find a bug?

nah1986 Game profile

Member
61

Sep 12th 2023, 13:25:00

I got it to work.

nah1986 Game profile

Member
61

Sep 6th 2023, 10:41:35

Okay, now I can reliably predict if a standard strike or planned strike will be success. I can also predict cash incomes for democratic casher. I hope to release the software soon

nah1986 Game profile

Member
61

Sep 1st 2023, 14:50:50

I use Ubuntu Desktop

nah1986 Game profile

Member
61

Aug 22nd 2023, 14:50:08

Okay, I got $89926.8 dollars as my tax income when cashing, but ingame. I got $89,943 . Maybe the accuracy of this is enough? Do you guys think, I should include estimate how much food the population eats? as that is dependent on population. In reality the only function of the population is to contribute as tax payers. Maybe, I should make a number about how much tax revenue a single person brings to the country and compere that to how much it cost to feed that single person.

nah1986 Game profile

Member
61

Aug 14th 2023, 11:31:30

Hi, so what defensive strength formula? Also, is there like a page in alliance that shows how strong your allies are?

nah1986 Game profile

Member
61

Aug 10th 2023, 10:35:03

so the guy who have military alliances do you see somewhere streght of your ally's military?

nah1986 Game profile

Member
61

Jul 18th 2023, 11:57:49

okay, I may have gotten that to work.
Can somebody find the rounding error that explains why I get
with 346 industrial complexes, 103.0% industrial tech. There is a mistake by one unit when I produce 100% turrets. The numbers are "895" and "894"

nah1986 Game profile

Member
61

Jul 5th 2023, 0:47:49

So as commie industrialist and democratic/republican casher you would to know the cheapest price of food.

nah1986 Game profile

Member
61

Jul 4th 2023, 7:43:42

Hello
Is the best tax rate usually 26,27,28,29,30,31,32,33,34,35,36,37,38,39 or 40 ? How do you decide on your tax rate?

nah1986 Game profile

Member
61

Jun 20th 2023, 11:42:03

Okay, so I am having trouble at this moment with
https://github.com/.../blob/main/goverments.cpp

lines 92 to 111


//std::cout << "military tech " << (1.0+(1.50*GvtTech-1.00)*GvtTech*(exp(2.71828)-1.0*points/(780+5.75*land)) << std::endl;
//puts("TODO");
return 1.0;

this just returns 1.0, can somebody program this for me?

nah1986 Game profile

Member
61

May 16th 2023, 21:02:11

Okay, so. At the moment, I have gotten close result calculating max population and max PCI with 40% tax rate.

for PCI, I get 30.8466
but in the game, in reality it is 31.49

Code can be read at

https://github.com/...omputer/blob/main/pci.cpp
Do, I need to break the calculations into 6 lines, like it is above?


22.5
* (1 - this.tax_rate)
* (1 + ((this.networth/this.land)/18000))
* (1 + (2 * (this.ent/this.land)))
* this.bus_tech
* this.gvt_pci_bonus

nah1986 Game profile

Member
61

May 15th 2023, 12:37:08

Okay, so I updated the open source project at Github, right now if you first type '1' and paste standard advisor report.
and then type '500' , it will give you report about how many people will settle on your land. I think this number is somewhat. It seems to be off by 2. So likely a rounding error. Anybody interested in trying to find the bug in the source code?

nah1986 Game profile

Member
61

May 15th 2023, 6:57:02

Okay, so the tax rate is between 1 - 70 %.
I could program to show that with lower tax rate there would be more people, but there would not be much profit, since the tax you get from people is so little.

nah1986 Game profile

Member
61

May 8th 2023, 17:10:21

Okay, so

//std::cout << "military tech " << (1.0+(1.50*GvtTech-1.00)*GvtTech*(exp(2.71828)-1.0*points/(780+5.75*land)) << std::endl;
Where
(1.0+(1.50*GvtTech-1.00)*GvtTech*(exp(2.71828)-1.0*points/(780+5.75*land))

is the value military technology double. (meaning like 1.31 or 1.21, but minimum 1.0)

nah1986 Game profile

Member
61

May 8th 2023, 12:38:49

So in my Gitlab-project, I can't understand what "EXP" means, when I try to understand how advanged enemy's weapons are
in the formula
Tech% = BaseTech%+(MaxTech%-BaseTech%)*GvtTech*(1-EXP(-GvtEff*TechPts/(C1+C2*Land)))
found on page. https://wiki.earthempires.com/...x.php/Technology_Formulas

I have written on gitlab in file "goverments.cpp", in fuction GovermentWeaponsTech
(1.0+(1.50*GvtTech-1.00)GvtTech*(1-) TODO

How do I fix this formula?

nah1986 Game profile

Member
61

May 6th 2023, 16:54:58

or enemy Readliness

nah1986 Game profile

Member
61

May 6th 2023, 16:53:37

Hi, I just added minimum jets to break opponent with standard strike/ standard strike+10%/planned strike/ planned strike+10%. At this moment it does not take into account enemy technology

nah1986 Game profile

Member
61

May 1st 2023, 22:32:02

Hi, I have software that you can use to help you with that.
https://github.com/...arth-Empire-SuperComputer
You need to just compile the code on your own.

nah1986 Game profile

Member
61

Apr 29th 2023, 17:49:24

So, I have software that calculates how much money you make per turn from troops/jets/turrets/tanks.

nah1986 Game profile

Member
61

Apr 28th 2023, 9:07:02

Hi, my software helps you play as a famer.

nah1986 Game profile

Member
61

Apr 26th 2023, 7:10:00

I was doing a C++ course and play Earth Empires. That is the original reason of the language choice

nah1986 Game profile

Member
61

Apr 24th 2023, 10:41:29

Hello, is there any feature that people would like me to code to improve the software?

nah1986 Game profile

Member
61

Apr 19th 2023, 15:27:03

I updated the code so it shows spy strength

https://github.com/...arth-Empire-SuperComputer

nah1986 Game profile

Member
61

Apr 17th 2023, 13:05:47

OK
I don't actually calculate unused land as producing food, since I though that unused land is only temporal.
FarmProduction = agrciculturaTech*5.3*Farmint*GovermentFarming(govermentString); 615 main.cpp

nah1986 Game profile

Member
61

Apr 11th 2023, 13:43:45

This game is little bit like chess. There was 50 dollar chess games in the 90s, it is no longer top selling game, but it refuses to die.

nah1986 Game profile

Member
61

Apr 11th 2023, 11:35:38

So anybody using this software? What features would you like me to implement. Right now the software can predict profit for communist industrialist, democratic casher.

nah1986 Game profile

Member
61

Mar 31st 2023, 7:12:09

Celphi what SDK is used with coding this game? I have just programmed with Gedit on Ubuntu.

nah1986 Game profile

Member
61

Mar 12th 2023, 21:06:17

So, has anyone actually used my software? I have worked 2 h as a master's of engineering reviewing finished software. (This is not a joke). It was always a team project to build something in programming class that was more than command line based.

nah1986 Game profile

Member
61

Mar 7th 2023, 15:39:00

https://github.com/...r/blob/main/makeMoney.cpp
Can somebody tell me why this line 15 is not opening google.com on my Ubuntu? Do, I need to run it on sudo?

nah1986 Game profile

Member
61

Mar 7th 2023, 15:10:32

Celphi
I know. Not having classes in my code would not be considered a good thing in C++ class.
I have been just putting something together for 9 years. "Just something to help you play the game"

nah1986 Game profile

Member
61

Mar 1st 2023, 14:49:56

So, I am now trying to make the code work as a communist indie. What is the industrial cost per: Troop, Jet, Turret, Tank and Spy?. Also is industrial production (industrial zones)*(communist bonus)*industrial tech or (industrial zone)*(communist bonues + industrial tech)?

nah1986 Game profile

Member
61

Feb 26th 2023, 10:29:08

So what are your twitter names? I hope Earth Empire Supercomputer becomes a standard tool for all Earth Empire players.