Feature #710

screenshot viewer

Added by Ammler about 10 years ago. Updated almost 10 years ago.

Status:NewStart date:2010-01-11
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

SpComp made a nice python app to view openttd giant screens:

Example: http://projects.qmsk.net/pngtile/screenshots/20091218/1987-giant.png#7581:5799:-1

Source: http://hg.qmsk.net/pngtile/summary

[18:11] <SpComb> http://pastebin.com/m480a4d55 <-- better
[18:11] <SpComb> Ammler: well, yes, there's a C .so, and a .pyx, you need to compile both
[18:11] <SpComb> the build stuff isn't very pretty
[18:13] <SpComb> `make` should do the libpngtile.so, and then `setup.py build_ext -i` will give you a pypngtile.so
[18:13] <SpComb> then some environment var trickery and it should work

Maybe, this is something for us?

History

#1 Updated by Ammler almost 10 years ago

some notes:
needs: python-memcached, python-devel
http://qmsk.net/~terom/stuff/pypngtile.c in ./python

building:
make dirs
make

python setup.py build_ext -i (disable cython stuff and replace .pyx with .c)

Using
to generate the cache file, use "--background 0xD7"

running test server:
LD_LIBRARY_PATH="lib" PYTHONPATH="lib:." ./bin/dev-server

Script to make screenshot directly:
http://qmsk.net/~terom/openttd/scripts/make-giant-screenshot

#2 Updated by Ammler almost 10 years ago

  • Project changed from Area51 to DevZone Help Center

Also available in: Atom PDF