Thursday, 10 December 2009

tiles modification, black and white only

back to the micropolis-activity package....

Coming back from the unsuccessful search for the script that cuts down the images to 16x16 pixels and puts them together into tiles.xpm file I decided to replace the tiles.xpm with this:



Now the "GAME OF LIFE" generate unrecognizable patterns

sounds rename, clean pair of sox

back to the micropolis-activity package....

I wanted to change the default sounds but the new sounds wouldn't play when I would simply rename them. After checking the properties of the .wav files in the /res/sounds with

sox -V filename -n


I resampled my cleansox.wav so that it lists:

sox: SoX v14.3.0
sox INFO formats: detected file format type `wav'

Input File : 'cleansox.wav'
Channels : 1
Sample Rate : 22050
Precision : 16-bit
Duration : 00:00:04.77 = 105088 samples ~ 357.442 CDDA sectors
File Size : 210k
Bit Rate : 353k
Sample Encoding: 16-bit Signed Integer PCM
Endian Type : little
Reverse Nibbles: no
Reverse Bits : no


Output File : '' (null)
Channels : 1
Sample Rate : 22050
Precision : 16-bit
Duration : 00:00:04.77 = 105088 samples ~ 357.442 CDDA sectors

sox INFO sox: effects chain: input 22050Hz 1 channels
sox INFO sox: effects chain: output 22050Hz 1 channels


Now the game is only playing this sound file for every action.

how is "tiles.xpm" created?

Looking in the MicropolisCore folder of the sourcecode, the part of the Micropolis release project that is unfinished, trying to find an engine that generates the tiles.xpm image file.
Here is the listing of the content of the MicropolisCore folder

cities/
documentation/
images/
makefile
MicropolisCore
res/
src/


in the src/ there are two executable files to be found, here is a listing of this folder's content:

CellEngine/
cities/
Doxyfile
images/
__init__.py
makefile
MicropolisCore.sln
MicropolisCore-src
MicropolisEngine/
notes/
pyMicropolis/
res/
run-cell*
run-gtkfrontend*
TileEngine/


run-cell is actually a python script, containing the lines

#!/usr/bin/env python
#
from pyMicropolis.gtkFrontend import maincell
maincell.run()



that runs the maincell.run() function using the image file found at
src/images/tilesEngine/tiles.png








This still does not answer the question where the tiles.xpm is created.

Wednesday, 25 November 2009

Micropolis - graphics



All the images pulled in the game engine are actually squares of the file tiles.xpm found in images/ folder. There should be a script somewhere that creates this file out of the images that represent recognizable objects and tiles, found in the same folder.
For now, I have changed the appearance of the industrial and commercial zones, with the intention to use their functions as BIO SHOP and SUPERMARKET respectively.
Here is a screenshot from the Hamburg scenario with apple shops:

Tuesday, 24 November 2009

Micropolis - where is the core

randomly changing the values like
SetFunds(5000);
or
CityTime = 50;
SimSpeed = 100;
or
ScenarioID = 0;
in the file
/src/sim/sim.c
didn't give any results. I still believe that setting
NoDisasters = 0; to 1
disables disasters in the no-scenario city but they are still possible to call from the menu
....

Micropolis - startup screen

Adapting the startup screen, calling up different images and forking between the first two scenarios. File res/micropolis.tcl
Edited the content of the Messages that show up on clicks on different scenarios. It cannot be empty by the way Message variable is defined.
proc Message {id color title msg {props {}}} {
global Messages
set Messages($id) [list $color $title $msg $props]
}
The color probably refers to the title and is not displayed anywhere.
I expected these lines to be responsible for the size of the screen where the message appears
set ScenarioPanelWidth 420
set ScenarioPanelHeight 300
but it didn't change at all after I tried different numbers.

Micropolis - prices tweak; didn't work

EDITED THE PRICES IN THE FILE res/micropolis.tcl

set ToolInfo {
{ {a} {Residential Zone} {$100}}
{ {a} {Commercial Zone} {$300}}
{ {an} {Industrial Zone} {$300}}
{ {a} {Fire Station} {$500}}
{ {a} {Query} {free}}
{ {a} {Police Station} {$500}}
{ {a} {Wire} {$5}}
{ {a} {Bulldozer} {$1}}
{ {a} {Rail} {$20}}
{ {a} {Road} {$10}}
{ {a} {Chalk} {free}}
{ {an} {Eraser} {free}}
{ {a} {Stadium} {$5,000}}
{ {a} {Park} {$20}}
{ {a} {Seaport} {$3,000}}
{ {a} {Coal Power Plant} {$500}}
{ {a} {Nuclear Power Plant} {$2,000}}
{ {an} {Airport} {$10,000}}
{ {a} {Network} {$1,000}}
}

HAD NO EFFECT ON THE GAME - CHANGED THE PRICES AS THEY ARE DISPLAYED IN THE PALLETE DISPLAY, BUT THE COSTS STAYED THE SAME

Thursday, 22 January 2009

MUZEJ 25 NAUKA

Thursday, 15 January 2009

YES TO ALL YOUTUBE






starting ....now!

Friday, 2 January 2009

YES TO ALL NIJMEGEN


graffiti intervention in nijmegen, first thing to do in 2009.