Verified:

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 4:07:34

May I recommend these additions to the bots on EXPRESS:

1. Add spies. (At least 15 SPAL)
2. Have them buy food off market to stock.
3. Have them join GDI
4. Once 3 is implemented (have them buy turrets/jets only).
5. Place larger amounts of turns of tech on market. I believe when I read the code it was set to 20. (It should be much higher). (The more turns you spend on placing on market the fewer turns teching).
6. Add a variable in which causes the bots to buy more units in bulks rather than in small quantities.


Anyone else is free to add their opinions. BTW, I posted this in EXPRESS because this server is ran very different than from other servers.
NOTE: I would gladly help type up the code if you took the time to list each function/variable and what they do, there's just too many.
Resistance is futile. You will be assimilated.

h2orich Game profile

Member
2245

Dec 29th 2014, 4:10:34

whats the point of them joining GDI?

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 4:15:17

Originally posted by h2orich:
whats the point of them joining GDI?


So he doesn't have to buy troops to defend against bot killers. Right now the code is written so that they buy troops to protect against GS. And troops eat up food and $$$ per turn. Not to mention when he plans to add the ability to attack back, the bots would have to use more oil.
Resistance is futile. You will be assimilated.

h2orich Game profile

Member
2245

Dec 29th 2014, 4:36:02

lol bot killers? how many bot killers are there? how many bots can you kill in 1 set. I think that's the least concern

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 4:40:12

Then why do you join GDI?
Resistance is futile. You will be assimilated.

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 4:42:06

However you respond- the same thing can happen to the bots. It's simply cheaper to maintain a defense with strictly turrets.
Resistance is futile. You will be assimilated.

h2orich Game profile

Member
2245

Dec 29th 2014, 4:45:42

I dont think the bots care if they get suicided on.
And if the bots are in GDI and they get multi tapped, they wont have the tanks to AB you back.

I think bots should not never be in GDI, this gives them an all round defence and one day when they are able to fight back, people will be afraid to multitap if they have troops and tanks.

By running just pure jets/turrets, people will just farm them.

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 5:02:51

They can respond in the same way players do- sell stock and buy tanks to AB or troops to GS. You don't need tanks and troops immediately on hand to deter farming.

Example:
It's easy to program if player 1 attacks bot x2 then store 360; turn GOVT to tyranny; use spy ops to get player 1 info-> and calculate best way to kill them.
Resistance is futile. You will be assimilated.

bstrong86 Game profile

Member
2482

Dec 29th 2014, 5:10:38

The bots shouldnt just be 'one' way

I think the overall goal is to have them act and play like humans. Some go allbjetters, some go gdi, some play defense with minimal jets to bottom feed. By masking the bots, eventually, they will have an effect that people wont be able to tell the difference...

Butthats just my two cents
The Death Knights

XI

bstrong86 Game profile

Member
2482

Dec 29th 2014, 5:11:43

In code, the bots should have an 'x' amount of options to choose from on how they operate themselves.

Just another thought
The Death Knights

XI

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 5:19:37

I totally agree.
Originally posted by bstrong86:
The bots shouldnt just be 'one' way

I think the overall goal is to have them act and play like humans. Some go allbjetters, some go gdi, some play defense with minimal jets to bottom feed. By masking the bots, eventually, they will have an effect that people wont be able to tell the difference...

Butthats just my two cents


I totally agree.

In php it would be simple like how he has them select which govt.

if(player_attacks_bot_x2){
$rand = rand(0,5);
switch($rand){
case $rand == 1: kill player; break;
case $rand == 2: send message saying "that land is on the house"; break;
case $rand == 3: send nukes; break;
case $rand == 4 : AB his country; break;
case $rand == 5: spy OPS / or retal; break;
}
}
Resistance is futile. You will be assimilated.

yylim80sss Game profile

Member
204

Dec 29th 2014, 6:18:14

Who is this Celphi?

Care to introduce yourself a bit. You seems to know everything about EE and even the game coding.

Sorry I've never seen your name or even playing EE but out of sudden you appear and with more than 700+ posts.

Just trying to know you. ;)

Jayr Game profile

Member
EE Patron
3613

Dec 29th 2014, 6:40:36

Originally posted by yylim80sss:
Who is this Celphi?

Care to introduce yourself a bit. You seems to know everything about EE and even the game coding.

Sorry I've never seen your name or even playing EE but out of sudden you appear and with more than 700+ posts.

Just trying to know you. ;)
+1
wasn't me...

KoHeartsGPA Game profile

Member
EE Patron
30,401

Dec 29th 2014, 8:07:40

Originally posted by yylim80sss:
Who is this Celphi?

Care to introduce yourself a bit. You seems to know everything about EE and even the game coding.

Sorry I've never seen your name or even playing EE but out of sudden you appear and with more than 700+ posts.

Just trying to know you. ;)


He's introduced himself a while ago, I'm surprised you missed it, bud 😜
Mess with me you better kill me, or I'll just take your pride & joy and jack it up
(•_•)

https://youtu.be/...pxFw4?si=mCDXT3t1vmFgn0qn

-=TSO~DKnights~ICD~XI~LaF~SKA=-

S.F. Giants 2010, 2012, 2014 World Series Champions, fluff YEAH!

yylim80sss Game profile

Member
204

Dec 29th 2014, 12:31:42

Oh sorry maybe I just miss it...I seen him posting numerous feedback on the forum. Just wanna get to know him

UpTheIrons Game profile

Member
463

Dec 29th 2014, 13:55:53

I'm a bot killer, better you than me
Bot killer, fluff bot brutality!

Celphi Game profile

Member
EE Patron
6501

Dec 29th 2014, 16:38:05

Originally posted by yylim80sss:
Oh sorry maybe I just miss it...I seen him posting numerous feedback on the forum. Just wanna get to know him


Hey man. I don't mind giving a short bio. I played this game back in 1998 (technically called Earth 2025) for about a 1/2 year. I was horrible at it; but, the game was fun. There were far more players playing it back then too. One day (back this past May/June) I was on google and somehow came across Earth Empires. I assumed it was the same game and gave it shot. I finished horribly. I'm very competitive., as I'm sure some people on the forums have already discovered. I also like to avoid conventional thinking methods.

That is why I began as a dictator farmer. (aka Seven of Nine). I posted lots of assumptions, many which turned out to be way off mark but more importantly I was learning the functionality of the game but primarily by formulas. The veterans here can basically gauge a strategy simply off experience., but I play the game strictly on calculating. The problem with calculating is that there's a seemingly infinite amount of solutions or possibilities. That is why I like the bot project. These bots can calculate much faster than I.

A little background of myself: My mom is a senior programmer in asp.net but as a child I was exposed a lot to programming. I learned BASICA back in the day and it carried over to VB6 (Visual Basic 6) which is a more modern day programming language. I never took up computers as a career because I prefer it as my hobby. One thing about programming is that they almost all function the same way. Only the syntax is different. (In VB6 if you want a variable to have a string you add a $ sign, but in php a dollar sign means something completely different.) <<-- confusing to the non-programmer im sure. The point is that I can learn php rather quickly and that's what this bot language is written in. The biggest problem in reading the code is the number of variables he (QZJUL) has assigned.

Imagine if i had A = Greg, B = Tom, C = Sally, D = Sue, Greg = Sue - Sally, Sally = Tom., then said Sue = A + B / C but only when A is less than B. Confusing right? Yes, with time you can figure it out,. but theres a ton of variables like that in his coding. Fortunately he named most of the variables with good names so it's much easier to follow. But what would you say "bu_tr" means? Or '$c' means when it's used differently within each function. (Sorry if I lost you again).

Anyhow, it's a fun hobby. I'm hoping to help this game, because I do enjoy it as well as the challenge. I'm taking the LSAT in Feb, and that's my main focus with this game as my distraction. I'm hoping to do well on it. Oh- and I'm 34 army veteran, now a reservist, fitness fanatic, eats healthy, trying to learn break dancing too, haha., 2000 ELO chess player, mostly to myself, sympathizer of the underdog and slightly more conservative than liberal.
Resistance is futile. You will be assimilated.

qzjul Game profile

Administrator
Game Development
10,270

Dec 30th 2014, 4:40:02

Originally posted by Celphi:
May I recommend these additions to the bots on EXPRESS:
1. Add spies. (At least 15 SPAL)

Good plan, I was planning to add ~1-2BPT of indies minimum, all set to spies, once i've actually written the manage API

2. Have them buy food off market to stock.

Above $2B right? ;)
3. Have them join GDI

Also the plan, after I build the GDI API -- caveat, i want *SOME* to join GDI, but not all; depending on how they play. I need to use something to figure this stuff out at some point
4. Once 3 is implemented (have them buy turrets/jets only).

Oh? I do want this to work on Alliance/FFA as well
5. Place larger amounts of turns of tech on market. I believe when I read the code it was set to 20. (It should be much higher). (The more turns you spend on placing on market the fewer turns teching).

Hmmm. K.
6. Add a variable in which causes the bots to buy more units in bulks rather than in small quantities.

They try to buy in bulk, but sometimes they miscalculate and go back for more



NOTE: I would gladly help type up the code if you took the time to list each function/variable and what they do, there's just too many.

Yea, I'll start adding comments, ive been... occupied... the last week ;) (new gf!)

Edited By: qzjul on Dec 30th 2014, 4:42:14
See Original Post
Finally did the signature thing.

qzjul Game profile

Administrator
Game Development
10,270

Dec 30th 2014, 4:40:59

Originally posted by bstrong86:
The bots shouldnt just be 'one' way

I think the overall goal is to have them act and play like humans. Some go allbjetters, some go gdi, some play defense with minimal jets to bottom feed. By masking the bots, eventually, they will have an effect that people wont be able to tell the difference...


Bstrong is correct :)
Finally did the signature thing.

qzjul Game profile

Administrator
Game Development
10,270

Dec 30th 2014, 4:43:40

$c is the country object! =D I guess i should point that out in comments lol... but yea, I'll move that direction, slowly
Finally did the signature thing.

Celphi Game profile

Member
EE Patron
6501

Dec 30th 2014, 6:32:35

@qzjul:
Congrats on new gf.

Have the bots buy bushels before 2billion. I would say about every 100 million cash. Right now they are mega targets for bomb banks and landgrabs with insane cash returns.

I'm basically starting from the beginning of your code and trying to work through it piece by piece. Several of the terms are new to me., but I'm getting through it. Some of it makes no sense. For an example:

function rand_name(){


switch(3){ //rand(0,100)%7){
case 0: return guild_name();
case 1: return fantasy_name();
case 2: return wow_name();
case 3: return nickname();
case 4: return vampirename();
case 5: return pirate_name();
case 6: return projectname();
}
}

Basically case 0 1 and 2 will always get skipped. Makes no sense to me to have them if they always get skipped.

Edited By: Celphi on Dec 30th 2014, 6:35:00
See Original Post
Resistance is futile. You will be assimilated.

tellarion Game profile

Member
3906

Dec 30th 2014, 15:14:48

Originally posted by bstrong86:
The bots shouldnt just be 'one' way

I think the overall goal is to have them act and play like humans. Some go allbjetters, some go gdi, some play defense with minimal jets to bottom feed. By masking the bots, eventually, they will have an effect that people wont be able to tell the difference...

Butthats just my two cents


I read that last part as 'butt hats'

KoHeartsGPA Game profile

Member
EE Patron
30,401

Dec 30th 2014, 15:49:21

That's cuz he's a dirty roofer and is the way we interpret his typing errors when he makes them :P
Mess with me you better kill me, or I'll just take your pride & joy and jack it up
(•_•)

https://youtu.be/...pxFw4?si=mCDXT3t1vmFgn0qn

-=TSO~DKnights~ICD~XI~LaF~SKA=-

S.F. Giants 2010, 2012, 2014 World Series Champions, fluff YEAH!

qzjul Game profile

Administrator
Game Development
10,270

Dec 30th 2014, 17:22:27

oh fluff, did i not take out my testing code? lol... good catch Celphi!
Finally did the signature thing.

qzjul Game profile

Administrator
Game Development
10,270

Dec 30th 2014, 17:24:22

Name thing fixed :) this is why my code needs checking from time to time :)
Finally did the signature thing.

Celphi Game profile

Member
EE Patron
6501

Jan 1st 2015, 6:16:12

Found another-

You're missing:

$c = get_advisor();

under function play_farmer_turn(&$c)

otherwise, $c->protection will never = 0.

i placed in there out_data($c->protection) and it never outputs 0.
Resistance is futile. You will be assimilated.

Hammer Game profile

Member
877

Jan 1st 2015, 8:50:17

Celphi, could you drop me a few billion $ while you are at it?

Celphi Game profile

Member
EE Patron
6501

Jan 1st 2015, 9:16:54

haha. just so everyone knows- i don't have coding access to the EXPRESS server. all my coding is done on the AI server.
Resistance is futile. You will be assimilated.

Zorp Game profile

Member
EE Patron
954

Jan 2nd 2015, 20:09:29

Oh damn Celphi, my experience is almost Identical to yours! Both with the game and programming fluff, starting with VB6 etc.

For the first 2-3 months after I came back in December '13, I was tracking down formulas and whipping together my own stuff in php to try and automate some of it for me. Still, I pretty much am opening up dozens of calculator instances a day playing on multiple servers.

Any chance your bot code is open sourced? :D

Home Turf Game profile

Member
798

Jan 2nd 2015, 21:06:02

Oh my god
HT

Celphi Game profile

Member
EE Patron
6501

Jan 3rd 2015, 0:31:11

I don't mind showing you what I have. Are you on IRC? Maybe we can work the code at same time.
Resistance is futile. You will be assimilated.