Jan 15 2012

This is an update of the progress in my game PT 2

Category: AI Competition,My stuffadmin @ 9:32 am

First the most important, I finally came up with  a name for my game and is going to be Mech Tactics. Since last time a lot of progress have been done and now I finally feel that this game has a complete body.

Map Generator: 100%

Finished already, nothing to work on.

Server: 95%

I improved the server speed by saving the information of the objects that changed rather than a snapshot of the current state. I also did some modifications to how data was send to/from the clients, and now the messages are send and read byte by byte, this fixes the problem of reading xml from the tcp buffer. I still need to fix some bugs were the server listener will remain listening even after closing the launcher. Another problem is also xml tags not being closed if the server is stopped in the middle of the simulation.

Simulator: 95%

Everything seems to work fine, but I haven’t tried to simulate units attacking to each others, it should work fine but I will need to test this before I can say I am done with the simulator.

Client: 100%

There is nothing else to do with the client, I have done some changes but this is more for debugging the simulator and the visualizer.

Data-Objects: 100%

Done.

Visualizer: 95%

Right now the visualizer will move and create units. It should also be capable of removing the dead units but this has not being tested yet.

Here is an snapshot of the visualizer, using some really crappy sprites.

 


Dec 16 2011

This is an update of the progress in my game

Category: AI Competitionadmin @ 11:04 pm

Finally done with classes and I have spent a good portion of yesterday and today working on the different parts of the game. The progress so far is like this:

Map Generator: 99%

I worked a little bit more than expected in this map generator, using my own algorithm I finally got  a I fully working map generator. The generator will create maps based on a maximum height and a size. The resulting maps are homogeneous, meaning that the map will have hills and valleys that are equally dispersed from each other this for not giving any advantage to any player but still force them to find the best path between two points.

Server: 85%

Using the server code from torchedterra I am just adding some modifications to separate the launcher logic from the server logic. I will also be changing some communication logic between the client and the server.

Simulator: 50%

The biggest changes are in the simulator. The simulator receives the list of commands from the server and analyzes them, this counts as a turn and the results are send as a list with the changed elements. All the preexisting logic of the simulator was discarded as torchedtorre gameplay has no similarity with this turn-based strategy styled game.

Client: 95%

Based on the client for torchedterra, this client is not really that different. The only difference is that rather than send one command, I will be sending a list of commands and some connection client-server has had some minor changes.

Data-Objects: 80%

The data objects are the representation of all the elements of the that live between client and server, such as the connection, the commands, results, and in-game objects. A big change has being done on this ares, mainly regarding high lever changes to fit the logic of the game.

Visualizer: 0%

Eventually I need to make the visualizer for this game. The plans are to make a visualizer that can show the saved games and also should be capable of showing the game running in real time.  I will probably some code I have from my mapgenerator test. I am not planning in making anything too fancy and probably I will stick to using the canvas.

 

So that is my update, I will keep working on this during this break.


Nov 27 2011

Starting with Android Development in Linux – Getting what you need

Category: Android,Android App DevCesar @ 6:16 am

Developing in Linux is something a little bit more obscure than working on Windows or Mac. Usually things on Windows or Mac are really straight forward, just download some kind of GUI and then press Next until you get the Finish button. In Linux you will have to deal with the terminal and editing files, which may seem hard or confusing at first but you will notice that it also gives you access to a lot more customization options. I will assume you already know how to move in the terminal or in the Desktop Environment, compress/uncompress, copy, move and delete files and you already have a JDK  compatible with the specifications here: http://developer.android.com/sdk/requirements.html.

All the information here is the combination of the official Android documentation and my own personal experience.

http://developer.android.com/sdk/installing.html

The SDK

The main element to start with Android Development is to get the SDK, which can be found at:

http://developer.android.com/sdk/index.html

Here you will download android-sdk_rXX-linux.tgz, where XX represents the revision number.

 

The IDE

The IDE of choice for Android Development is Eclipse. The most recent version of Eclipse as of this post is Eclipse Indigo, which I have some troubles getting it to work with the Android SDK, so my recommendation is to stick with Eclipse Helios SR2, anyways its not like a lot have changed between versions. Eclipse Helios SR2  can be found here:

http://www.eclipse.org/downloads/packages/release/helios/sr2

If you want to test the newest edition of Eclipse it can be found here:

http://www.eclipse.org/downloads/

Remember to get the classic, java or javaee version of Eclipse.

Setting the Environment

This is based on my personal experience should work exactly the same in any other system.

Now go to the terminal and lets go the the location where the files where downloaded.

Now uncompress the files with the `tar -xf` command. Example:

tar -xf  eclipse-java-indigo-SR1-linux-gtk-x86_64.tar.gz

tar -xf  android-sdk_r15-linux.tgz

Is also really handy to add the location of you sdk to your path, this can be done this way:

Edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ and platform-tools/ directories to it. If you don’t see a line setting the path, you can add one:

  • export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools

Now lets move the folders to a location we can access them easily. We are going to make eclipse executable and then move eclipse/ to /usr/local/lib/ and create a link to the binary file in /usr/loca/bin/, for this we are going to do:

chmod +x ./eclipse/eclipse

sudo mv ./eclipse /usr/loca/lib

sudo ln /usr/local/lib/eclipse/eclipse /usr/local/bin/eclipse

Now lets move the folder android-sdk to the home directory and make it not visible:

mv ./android-sdk ~/.android-sdk

Note:

If you are developing on a 64-bit machiine you may need some 32bit libs so you can execute this files. Assuming you are in ubuntu, just run this command:

sudo apt-get install ia32-libs

In more recent versions of Ubuntu this libs are already included.

The Plugin

This part is really straight forward and is also cross-plataform so you can follow the instructions in here http://developer.android.com/sdk/eclipse-adt.html.

Now you will be able to access the Android SDK from Eclipse, the next step is going to be to download the components of the SDK, this part will take a long time. This is also straight forward and cross-plataform, instuctions here: http://developer.android.com/sdk/adding-components.html.

 

Up to this point you should have the Eclipse set-up, the SDK with the different components you want and an Emulator. Soon I will post some examples for people to start with ther first apps, until then you can start reading here: http://developer.android.com/resources/browser.html?tag=tutorial.


Nov 26 2011

Flood Monitor App

Category: Android App DevCesar @ 5:43 am

Last week I started working on an Android app that interact with http://flood.cs.ndsu.nodak.edu/index.php.  So far I got the main functionality working, upload comments and pictures and a map for viewing the markers posted. I am still waiting for a server-side php application to be ready so I can read the database and project markers on the map, but that I a simple job to do.  Here is an example of what is done so far.

Tags: , , ,


Aug 03 2011

Android Wars Update

Category: Android,AndroidWars,My stuffCesar @ 7:57 pm

So I last week I meet the people from the CustomWars forums, mainly  JakeSamiRulz who helped me a lot by providing me with guidelines and his experience for doing a AW style of game.  Now I have joined their team and even though we are not working in the same game, our projects share a lot of similarities and we will work together to bring our own projects to finish. I also decided to open source my code, in an attempt to get one of my goal which was to bring this game to as many people as possible and if possible even get other people involved. I will post more info and some links in the near future once all the merge is done.


Jun 04 2011

Acer Aspire One 532h Linux guide

Category: My stuffCesar @ 11:22 pm

This little machine is a good and sturdy friend. Despite that, I have being having some problems with some part of the hardware. The main problems for me is the lack of multitouch in some cases(depending on the OS and kernel), the mic that is terribly faulty and the lack of support for the sd car reader.

 

Multitouch: The trackpad wont show multitouch support for some linux versions depending on the distro or kernel. Most commonly I had this problem in ubuntu 10.04 and 10.10. For fixing this, download this package:

https://launchpadlibrarian.net/60964128/synaptics-dkms_1.1.1_all.deb

Install and enable multitouch in the mouse settings.

 

SD Card reader: The sd card reader uses weird proprietary drivers and was not really intended to use in linux.  Me and other usesr were figthing for a while to get this working. Finally a patch was submitted and I made a script(which I lost and now I founf it fryliyng throught the internet) both can be found in here:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/530277

 

Finally, for the mic,  think the mic is just really bad and it doesnt even work properly on Windows. To get sound from the mic follow the steps in this forum:

http://ubuntuforums.org/showthread.php?t=1379587

 

If the fact that the F2 key doenst work properly you can try this:

http://forum.eeeuser.com/viewtopic.php?id=8636

I haven’t tried it as I really don’t care about not being able to turnoff the wifi. But you can give it a try, it most probably work.

 

Have fun :)


Jun 02 2011

Update

Category: Android,AndroidWarsCesar @ 1:57 am

I have being really busy this last days, I had to move to a new place and on top of that I got sick, so really coding was not a priority :( . Now I feel better and in college we had a guy from EA that came to talk about social gaming and the evolution of this new trend. I was not expecting anything special but I have to  admit the talk was really cool and gave me a good overview of how the big companies are dealing with this new form of entertainment. Lets see if I manage to add some social feature to AW :)


Apr 20 2011

Android-Wars Project

Category: Android,AndroidWarsCesar @ 6:17 pm

The project have been going slowly but never stopped. I have started  a new Design Document for the project which is in the repo. I have also fixed some issues and keep working on the classes for the main game activity. More updates coming soon.


Mar 20 2011

AndroidWars

Category: Android,Android App Dev,AndroidWarsCesar @ 8:35 pm

Development keeps going, looks slow but I am working in some classes that manage logic and object interactions so right now most of my work is unnoticeable. Once I finish with the logic for the turns and object interactions I will resume my work with the unit classes and I will create some menus.


Mar 18 2011

DroidDraw :)

Category: AndroidCesar @ 8:10 am

Yesterday I came across a simple way of creating GUIs in Android. I know creating a gui is not such a big deal and I am not planning in using the native android gui soon but is a good tool to have that can help in accelerating developing and making debugging easy.

http://www.droiddraw.org/