Page 1 of 1

python help!

Posted: 23 Mar 2013, 17:14
by Originway
does anyone know python to fix diorama from here? http://warzone2100.org.uk/
the current version doesn't work with 3.1
The WMT currently consist out of the following:

mapwrite.py - A library for reading and writing warzone 2.2 maps.
diorama.py - A random map generator for warzone 2.2 with a GUI.
makemap.py - A non-interactive random map generator for warzone 2.2.

The WMT have been written for Warzone 2.2, but trunk should also work. Currently trunk can't render roads very well at all, so you will get much better results when using Diorama with the 2.2 branch of Warzone.

Re: python help!

Posted: 23 Mar 2013, 18:15
by stiv
The first step to fixing it is knowing what is wrong. Details?

Only played with diorama a little bit, but it generated some very nice maps.

Re: python help!

Posted: 23 Mar 2013, 19:55
by Duha
Originway wrote:does anyone know python to fix diorama from here? http://warzone2100.org.uk/
the current version doesn't work with 3.1
The WMT currently consist out of the following:

mapwrite.py - A library for reading and writing warzone 2.2 maps.
diorama.py - A random map generator for warzone 2.2 with a GUI.
makemap.py - A non-interactive random map generator for warzone 2.2.

The WMT have been written for Warzone 2.2, but trunk should also work. Currently trunk can't render roads very well at all, so you will get much better results when using Diorama with the 2.2 branch of Warzone.
I am very humble and good in Python. :)

Does not work does not describe problem.

Re: python help!

Posted: 23 Mar 2013, 22:49
by Originway
you can't make anything but 2 or 4 or 8 player maps so 3,5,6,7,9,10 players are missing
it also is using the old data instead of the new ini stuff
and it errors out
Traceback (most recent call last):
File "diorama.py", line 589, in save_map
File "mapwrite.pyc", line 598, in install_map
File "zipfile.pyc", line 1007, in write
WindowsError: [Error 3] The system cannot find the path specified: 'tilesets/ari
zona.ttp'
no matter what tileset you pick it has same errors

Re: python help!

Posted: 23 Mar 2013, 23:14
by Duha
Originway wrote:you can't make anything but 2 or 4 or 8 player maps so 3,5,6,7,9,10 players are missing
it also is using the old data instead of the new ini stuff
and it errors out
Traceback (most recent call last):
File "diorama.py", line 589, in save_map
File "mapwrite.pyc", line 598, in install_map
File "zipfile.pyc", line 1007, in write
WindowsError: [Error 3] The system cannot find the path specified: 'tilesets/ari
zona.ttp'
no matter what tileset you pick it has same errors
It takes me some time to launch it on windows.
wmt-1.1.1.tar.bz2 ??? (looks like you trace is from other version. And you have other version of python when my. )

Do you have jabber skype IRC?

Re: python help!

Posted: 23 Mar 2013, 23:19
by Originway
viewtopic.php?f=6&t=5757&p=70930
https://freddie.witherden.org/drop/diorama.exe is windows version
I can not use the other one since I do not know how to install that one but the windows version author said it is same as latest one

Re: python help!

Posted: 24 Mar 2013, 00:36
by Duha
Originway wrote:viewtopic.php?f=6&t=5757&p=70930
https://freddie.witherden.org/drop/diorama.exe is windows version
I can not use the other one since I do not know how to install that one but the windows version author said it is same as latest one
Copy tilesets folder form linux version to diarama.exe folder.

UPD.
Looks like
https://freddie.witherden.org/drop/diorama.exe
and file mentioned in thread is different versions. I check for thread version.

Re: python help!

Posted: 24 Mar 2013, 02:28
by stiv
you can't make anything but 2 or 4 or 8 player maps so 3,5,6,7,9,10 players are missing
I don't think it does 11, 12 or 13 player maps either. Frankly, it amazes me what people can find to bitch about.

Having used diorama to generate some 2-player for skirmish, I have to say I was quite impressed. The maps were tactically interesting and seemed well balanced. It is a compute-intensive piece of software, but does what it advertised.

Re: python help!

Posted: 24 Mar 2013, 13:52
by raycast
Duha wrote: WindowsError: [Error 3] The system cannot find the path specified: 'tilesets/ari
zona.ttp'
no matter what tileset you pick it has same errors
Have you checked in which folder the tilesets live?
I.e. does the file exist? If it doesn't exist, diorama certainly won't find it.

I considered to have a look at it, but it seemed as if it was meant for Warzone 2.x, using the old map format.
So I never tried it. I always hoped that someone would come up with an easy to use API for reading and writing to the new map format. (But in the end, there are also reasons such as the off-by-one thing, to actually move on to an even newer map format, IMHO)

Re: python help!

Posted: 26 Mar 2013, 04:59
by vexed
The map format itself has not changed, you can still use 1.X+ maps with these builds.

As for the other stuff, tl;dr :stressed: