Thursday, February 23, 2006



nicer... less painterly.
A few people and myself felt that there needed to be obvious computer involvement, the other piccy looked way too human-made.

Wednesday, February 22, 2006



got a "show" coming up and wanted to create a new look... something more painterly... less computery.

I reckon this is about as far away from Unreal as you can get (not that i hate unreal or anything, i love it!)

this is pretty much just the same old code, with some 3D'y drawing stuff... simple (a little too simple), but effective none the less!

Friday, February 17, 2006

Wargames (The legend that is)

............................

LOGON: Help Games

'GAMES' REFERS TO MODELS, SIMULATIONS AND GAMES
WHICH HAVE TACTICAL AND STRATEGIC APPLICATIONS.


List Games

FALKEN'S MAZE
BLACK JACK
GIN RUMMY
HEARTS
BRIDGE
CHECKERS
CHESS
POKER
FIGHTER COMBAT
GUERRILLA ENGAGEMENT
DESERT WARFARE
AIR-TO-GROUND ACTIONS
THEATREWIDE TACTICAL WARFARE
THEATREWIDE BIOTOXIC AND CHEMICAL WARFARE

GLOBAL THERMONUCLEAR WAR

Sunday, February 05, 2006

In a sick sick way I love fixing little code problems...
today for example I needed to search through a text file and find this line...

"Log: Browse: DM-jake2?BonusVehicles=false?Game=XGame.xDeathMatch?
Mutator=XGame.MutQuadJump,UnrealGame.MutBerserk,Watcher.Watcher?
bAutoNumBots=False?NumBots=15?SpectatorOnly=1?Name=Player?Class=Engine.Pawn?
Character=Jakob?team=255"

this line changes after every match of UT but the beginning part (and the basic structure) of the line always remains the same

"Log: Browse: DM-" (always starts like this)

So heres the problem... youve got lots of other array elements some of which also start
"Log: Browse:"

I want to find this particular line, and get only one piece of information out of it, the number of bots playing, in this case
"NumBots=15"

how to do it...
well, I dont know the proper way, but this is how I did it :)

for(int i=0; i < file.length; i++){ //i cant include the "is less than" symbol *fixed now*

String temp = file[i]; //copys this particular line of the text file into a temporary string
int templength = temp.length(); //finds out the length of this string (because if its under 13 we will have problems later as I attempt to access the 13th char)

if (templength>13){
char temp1 = file[i].charAt(0); // L (Log:)
char temp2 = file[i].charAt(5); // B (Browse:)
char temp3 = file[i].charAt(13); // D (DM-) //have we got letters in the right place?

if ((temp1 == 'L') && (temp2 == 'B') && (temp3 == 'D')){ //do these letters match, is this our line?
String cutline[] = split(file[i], '?'); //cut the line into seperate array elements using the ?'s as cut markers
println (cutline[5]); //using this method numbots is always element 5
}
}
}


p.s. Ive just made the number of bots a usable number. It may seem simple but it took me a while to see the simplness...
String justbotnumber[]= split(cutline[5], '='); //split string into 2 at the equals
int botnumber = int(justbotnumber[1]); //int that string!
println(botnumber);

saveStrings ("E:/games/UT 2004/System/UT2004.log", file);

now I know the above line of code dosnt work in processing... but I so far havent found anything that lets me save a text file anywhere but the sketch folder.

Im trying to set up my code so that I can keep clearing a text file that loads from here :-

file = loadStrings ("E:/games/UT2004/System/UT2004.log");

and this file has to be in this folder as UT2004 is generating it constantly!

dag nab it.

////////////////////////////////////////////
update...

I have found a simple way around said problem, but have been told that what Ive discoverd is a bit of a security issue and so I wont say how I fixed it...

just know I did ;)
and it was pants... just a simple logic problem