Search

Search found 9 matches

by Fengshui
06 Apr 2008, 20:27
Forum: Engine
Topic: Drawing a Threat map
Replies: 4
Views: 619

Re: Drawing a Threat map

Yeah that seems to be the problem, I was confused because I was feeding it numbers like say 100 then 100.5 so it seemed to work but then when it hit 101 it restarted the scale. Keeping the values between 0 and one fixed the weirdness. thanks!
by Fengshui
06 Apr 2008, 09:09
Forum: Engine
Topic: Drawing a Threat map
Replies: 4
Views: 619

Re: Drawing a Threat map

Thanks for the adivce, I have a nice little threat map now. The one problem I am having is I don't understand how the setFigureColor() parameters work, they are RGBA and I assume they are from 0-255 but when I try to set them to values in this range they behave strangely (darker when I would expect ...
by Fengshui
02 Apr 2008, 07:46
Forum: Engine
Topic: Drawing a Threat map
Replies: 4
Views: 619

Drawing a Threat map

Hi I was wondering what the best (simplest) way would be to draw the threat map my AI is using onto the actual game map. I noticed in the aiCallback there are some draw line etc. funtions should I use these to draw my threat map? I was thinking of either drawing the threat grid and having it be diff...
by Fengshui
28 Mar 2008, 05:36
Forum: Engine
Topic: Strange Compilation Problem
Replies: 1
Views: 443

Re: Strange Compilation Problem

Not that I know what the deal is with this but I thought I should post that I solved the problem by just removing CrashHandler.cpp and then I could compile fine.
by Fengshui
21 Mar 2008, 19:38
Forum: Engine
Topic: Strange Compilation Problem
Replies: 1
Views: 443

Strange Compilation Problem

Hi, I started having a weird problem last night and being fairly new to c++ I cannot figured it out. I have been compiling the 76b1 source code just fine for the past couple weeks and have written my own global ai's all worked fine until last night. I tried to add two files to the 'RTS' project and ...
by Fengshui
15 Mar 2008, 21:21
Forum: AI
Topic: AI vs AI testing
Replies: 4
Views: 1240

Re: AI vs AI testing

Yeah max speed alone doesnt do anything but neither does setting minspeed=5; for example in the script.txt, because the game still starts with speed 1 and aparently the game doesnt like this. The problem is I dont know of any .setspeed type command that works in the script.txt
by Fengshui
15 Mar 2008, 07:26
Forum: AI
Topic: AI vs AI testing
Replies: 4
Views: 1240

Re: AI vs AI testing

Well, I can answer most of my questions now, though my solutions are very ugly. 1. Running faster on startup: to acomplish this I hacked the speedFactor variable in GlobalStuff.cpp, of course this only works with my build of spring then. I still dont know why setting minspeed in the script.txt made ...
by Fengshui
14 Mar 2008, 06:51
Forum: AI
Topic: AI vs AI testing
Replies: 4
Views: 1240

Re: AI vs AI testing

A little update on running the game faster. Now when I up the speed manually in game it runs great and super fast. The problem occurs when I try to start the game at a faster speed. I put minspeed=5; for example in my script.txt but the game does not really start faster and it runs all jumpy and wei...
by Fengshui
14 Mar 2008, 02:59
Forum: AI
Topic: AI vs AI testing
Replies: 4
Views: 1240

AI vs AI testing

Hi everyone, I just started developing some simple skirmish ai's for a project of mine and I want to be able to run them repeatedly against one another (as part of their training). So where I am at right now is I have a shortcut that starts the game passing it script.txt so that everything starts au...

Go to advanced search