python help!

For code related discussions and questions
Post Reply
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

python help!

Post 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.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: python help!

Post 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.
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: python help!

Post 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.
http://addons.wz2100.net/ developer
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

Re: python help!

Post 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
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: python help!

Post 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?
http://addons.wz2100.net/ developer
Originway
Trained
Trained
Posts: 412
Joined: 08 Aug 2012, 06:22

Re: python help!

Post 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
User avatar
Duha
Trained
Trained
Posts: 287
Joined: 25 Mar 2012, 20:05
Location: SPb, Russia

Re: python help!

Post 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.
http://addons.wz2100.net/ developer
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: python help!

Post 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.
raycast
Trained
Trained
Posts: 131
Joined: 12 Sep 2012, 19:16

Re: python help!

Post 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)
User avatar
vexed
Inactive
Inactive
Posts: 2538
Joined: 27 Jul 2010, 02:07

Re: python help!

Post 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:
/facepalm ...Grinch stole Warzone🙈🙉🙊 contra principia negantem non est disputandum
Super busy, don't expect a timely reply back.
Post Reply