Defcon Bots!

The forum with all your Introversion News!
User avatar
Spacemonkey
level4
level4
Posts: 609
Joined: Thu Oct 05, 2006 1:31 am
Location: Auckland, New Zealand

Postby Spacemonkey » Mon Dec 15, 2008 12:05 am

The simple bot, I followed the directions that came with the Quickstart guide to set up a project.

But i haven't done much c++ before, so it could just be a simple problem, i'll get in contact with Robin.
User avatar
Spacemonkey
level4
level4
Posts: 609
Joined: Thu Oct 05, 2006 1:31 am
Location: Auckland, New Zealand

Postby Spacemonkey » Mon Dec 15, 2008 12:24 am

Would we be able to have a forum for this, where we discuss creating out world destroying bots.
User avatar
Spacemonkey
level4
level4
Posts: 609
Joined: Thu Oct 05, 2006 1:31 am
Location: Auckland, New Zealand

Postby Spacemonkey » Mon Dec 15, 2008 12:38 am

RabidZombie wrote:
Spacemonkey wrote:Has anyong managed to be able to compile the code yet?

I haven't done much in C++ yet, I get errors like;

Error 3 error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRT.lib mybot


I expect that getting in contact with Robin directly may be the best solution. Which code is this? Is this the Introversion bot or the simple bot?


I got that error when I tried creating a new project following the instructions in the documentation.

If i simply open the project file included in the simplebot directory, it works.


Time to start making my AI. My plan it to make it constantly hurl abuse at the player through chat until they rage quit, Muhahaha.
User avatar
KingAl
level5
level5
Posts: 4138
Joined: Sun Sep 10, 2006 7:42 am

Postby KingAl » Mon Dec 15, 2008 12:49 am

The issue is that your project settings are wrong. You've started a Win32 project, but the code doesn't follow the requirements of a Win32 project i.e. a WinMain() function in place of a main() one. If you set it as a Console application, it should be fine.
Gentlemen, you can't fight in here: this is the War Room!
Ultimate Uplink Guide
Latest Patch
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Postby martin » Mon Dec 15, 2008 5:55 pm

I had no problem compiling at all. I assume you're using visual studio express/professional?
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

Return to “Introversion News”

Who is online

Users browsing this forum: No registered users and 19 guests