Saturday, April 25, 2009

Seriously WTF!!!!!

So the parser was breaking when i saw other players which was funny as it showed a problem with the parser for everything i need to offset the token iterator by +1 so as to land on the right part of the array :(

Wednesday, April 22, 2009

Very Impressed with Rem and Agent Factory

So first off big thanks to my Supervior Dr Rem Collier he was superb today at getting me sorted with agent factory. We now have 22 agents on the pitch in agent factory shame they don;t really have a brain :P Anyways bed is calling much to be done tomorrow think i'll help my agent know where exactly they are.

Monday, April 20, 2009

Location System Update

Have all the see objects stored in the format i want just playing around with priority queues at the minute and as soon as they are fixed the location system should be up and running.

Sunday, April 12, 2009

Mutli Threaded success

Woot Woot success I have my threaded client done I can now decode and send commands at the same time.

Networking solved

So I was trying to get my player to send commands to the server other than the init ones when I stumbled across an issue I had not yet encountered. A brief search of the news file and it turns out soccer server uses a dedicated socket for each client. A simple packet.getPort() command on the first packet I receive from the server after I initialise the client resolved the issue so my client is now on the pitch. I need to make the multi threaded client so as I can move around a bit. In good news the clients parser is working great. Need to get the location nailed down now and it will be a good day.

Tuesday, April 7, 2009

Think i have cracked my location system

So after many pieces of paper I have the outline for my location system. I need to keep track of my head and body angle and then using these angles I can then calculate mine and an object I see location via triangulation. Again several conditionals will be needed to drive this system. Eg is the reference point on a sideline or an endline. is it too the left of centre or right of center etc. Gonna draw them up now and then write the sudo code and then implement the code. Wish me luck. Just need to decide whether its easier to locate the seen object using me as the refernece essentially the 0,0 then translating the vlaues into world co-ordinates or if I should just try get world co-ords from the object striaght away. Suppose a little more maths is called for :(