Search found 17 matches

by Th3xpl0iT
Sat May 22, 2010 8:14 pm
Forum: Think Tank
Topic: Ground Warfare?
Replies: 9
Views: 7146

I would want Vikings.
by Th3xpl0iT
Sat May 22, 2010 7:42 pm
Forum: Think Tank
Topic: Ground Warfare?
Replies: 9
Views: 7146

Which is why I said:

I'm not sure if anyone has recommended this yet


No need to be a hard-ass. Besides, if I'm clearly not the first to say this, why hasn't anyone tried it yet?
by Th3xpl0iT
Sat May 22, 2010 7:30 pm
Forum: Think Tank
Topic: Ground Warfare?
Replies: 9
Views: 7146

Ground Warfare?

If you got water units, like fleets, what about ground units, like tanks, infantry, artillery, etc? Carriers can also carry tanks and infantry to move them into enemy territory! It would really help out those who like re-enacting scenarios like WWII and things of that nature. I'm not sure if anyone ...
by Th3xpl0iT
Sat May 22, 2010 7:17 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Thank you very much, you don't know how much of a help you're being. My bot can improve a little better if I can figure out how to: ⋅  Tell my Silos to attack the enemy ⋅  Tell my Airbases to send Fighters/Bombers to specific coordinates ⋅  Tell my Fleets specifically w...
by Th3xpl0iT
Fri May 21, 2010 11:59 pm
Forum: AI Bots
Topic: Lol, no C++.
Replies: 3
Views: 5220

Thanks for the great answers, that answers my question. This can be locked now.
by Th3xpl0iT
Fri May 21, 2010 11:19 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

string r1 = "No I'm not that new to C++"; string r2 = "just working with a Defcon Bot API lol"; If that were the case you wouldn't need to ask how to concatenate a string and float. ;) The biggest problem I have (I got my bot to place a radar down, so I just gotta get the rest o...
by Th3xpl0iT
Fri May 21, 2010 12:14 am
Forum: AI Bots
Topic: Lol, no C++.
Replies: 3
Views: 5220

Lol, no C++.

I noticed there aren't a lot of bots written in C++. Why is that?
by Th3xpl0iT
Thu May 20, 2010 11:03 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

The biggest problem I have (I got my bot to place a radar down, so I just gotta get the rest of the x,y's to place stuff in) is to have a single instance of an action. I tried: int i = 0; if (i==0) { m_game->PlaceStructure(3, -72, 40.75); i++; } But it keeps doing the same ...
by Th3xpl0iT
Thu May 20, 2010 10:42 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Code: Select all

#include <string>
#include <iostream>
using namespace std;

int main(void) {
string r1 = "No I'm not that new to C++";
string r2 = "just working with a Defcon Bot API lol";

cout << r1 << " " << r2 << endl;

}

by Th3xpl0iT
Wed May 19, 2010 10:35 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

SendChatMessage is being a burden to use when dealing with int's, float's, etc. What's the AND type of thing I should use when including a number with a string? Example:

Code: Select all

m_game->SendChatMessage("Longitude: " & longitude, CHATCHANNEL_PUBLIC);
by Th3xpl0iT
Wed May 19, 2010 10:28 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Okay so at the beginning of bool Bot::Update()

Code: Select all

     float longitude = m_game->GetLongitude(1);
     float latitude = m_game->GetLatitude(1);



Something like that?

EDIT: I am, but it's a little confusing..
by Th3xpl0iT
Wed May 19, 2010 10:15 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

So how do I find out the x,y of a city? This bot will be a South American bot.
by Th3xpl0iT
Wed May 19, 2010 9:58 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Well I'm brand new to this API, so I don't expect you to write it for me - But it would be nice for you to write it WITH me. :)

First I want the bot to identify itself, what continent it is so it can place it's fleets in certain places. What function can I do to do that?
by Th3xpl0iT
Wed May 19, 2010 9:40 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Okay, I'll start working on that, thank you very much.

Now how about something simple but effective.

An enemy fires upon one of my units. I calculate the shot's origin and I fire back. Can you help me write the C++ code?
by Th3xpl0iT
Wed May 19, 2010 7:05 pm
Forum: AI Bots
Topic: Where to Start?
Replies: 23
Views: 13097

Maybe I should give an example..

I guess I can piece it together but I want to see what you guys say first. I want my bot to launch a nuke at New York when Defcon 1 hits. What would that look like? Two variables and an if/then statement?

Go to advanced search