Archive for the ‘Server’

Collecting logs (Step 1 of 9)

27.12.2007 Alexey Kviring

We just finished log collecting and viewing system. Log analizing problem was very actual, because we have not one server servers — game, resource, generator. During test stage we’ll have to handle clients messages too.

Architecture

Logging server is based on OSGI platform. We recieve logs via RMI using JAAS authorization (we had to write an appender for Log4j). Logs are saved with Hibernate into PostgreSQL database. And we wrote some plug-ins for Eclipse for viewing too. Basic features — log filtering with different criterias and filter save function.

Happy Birthday, Anton! Preved!

There are still 8 steps to testing… :-)

Integration results

14.12.2007 Alexey Kviring

Most of the integration work is done: there are 3D world editors, users run and chat, world is uploading dynamically, and the object actions system is working good.

Further integration will be done when 3D engine 5.0 will be ready to go.

Full-size screenshots:

Integration results Integration results Integration results

3D-console

10.07.2007 Dmitry Amelin

Server coders made it to watch 3d-world.
Avery cam has some params, at right side there is an object tree.

Made with Java using SWT/OpenGL. Console can work “standalone” or connected to a server via RMI.

Просмотр дерева классов Консоль3

PSD-parser

09.07.2007 Alexey Kviring

Photoshop with its PSD files is a standart de-facto. The game wants to read all that additional parameters, like pivot point, slices and so on. We decided to use separate layers to store this info. Then is came to a need of PSD-parser. We did’t found any real quality parsers, so we made it by ourselves in a week.

Here is an example of using this neat thing:

PSDParser parser = new PSDParser(new FileInputStream("image.psd")); 
PSDLayerAndMask layerAndMask = parser.getLayerAndMask();    
 
List layers = layerAndMask.getLayers(); 
List images = layerAndMask.getImageLayers(); 
int i = 0; 
for (PSDLayerStructure layer : layers) { 
    PSDLayerPixelData pixelData = images.get(i); 
    BufferedImage image = pixelData.getImage(); 
    if (image != null) 
	ImageIO.write(image, "png", new File(layer.getName() + ".png")); 
	    i++; 
}

Sourse

Sourse can be downloaded freely under APACHE LICENSE.
Features: all layers export (incl. main), main file info, full slices support.
Use this on your own risc, and we’ll be glad to hear any comments too (bugs, ideas).

psd_parser.7z