Upgrading scenarios to 1.4

The place to post your WML questions and answers.

Moderators: Forum Moderators, Developers

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
User avatar
Sgt. Groovy
Art Contributor
Posts: 1471
Joined: May 22nd, 2006, 9:15 pm
Location: Helsinki

Upgrading scenarios to 1.4

Post by Sgt. Groovy » March 9th, 2008, 9:30 pm

I just upgraded my Wesnoth installation and obviously I want to get my in-progress campaigns working on the new setup as well. The first complaint I got was to do with the maps, they need a header now and the terrains are encoded in two-character cells.

Is there an easy way to upgrade existing maps into the new format? What else needs to be changed for the upgrade?
Tiedäthän kuinka pelataan.
Tiedäthän, vihtahousua vastaan.
Tiedäthän, solmu kravatin, se kantaa niin synnit
kuin syntien tekijätkin.

AI
Developer
Posts: 2394
Joined: January 31st, 2008, 8:38 pm

Re: Upgrading scenarios to 1.4

Post by AI » March 9th, 2008, 9:46 pm

wmllint will all do it for you.

if you configured with --enable-python-install, they should be in your $PATH, else, look in data/tools

User avatar
Sgt. Groovy
Art Contributor
Posts: 1471
Joined: May 22nd, 2006, 9:15 pm
Location: Helsinki

Re: Upgrading scenarios to 1.4

Post by Sgt. Groovy » March 10th, 2008, 8:38 am

I don't have wmllint, it doesn't seem to ship with the Debian package. Can it be downloaded separately?
Tiedäthän kuinka pelataan.
Tiedäthän, vihtahousua vastaan.
Tiedäthän, solmu kravatin, se kantaa niin synnit
kuin syntien tekijätkin.

User avatar
Mist
Inactive Developer
Posts: 753
Joined: February 15th, 2007, 8:44 am
Location: Milton Keynes, UK

Re: Upgrading scenarios to 1.4

Post by Mist » March 10th, 2008, 8:45 am

It's a python script in data/tools and as such should be present in any package. Anyway
http://svn.gna.org/viewcvs/wesnoth/trun ... 6&view=log
Somewhere, between the sacred silence and sleep.
Disorder.

User avatar
Rhonda
Site Administrator
Posts: 47
Joined: January 26th, 2008, 9:13 pm
Location: Vienna, Austria, Europe, Earth, Milky Way
Contact:

Re: Upgrading scenarios to 1.4

Post by Rhonda » March 10th, 2008, 11:59 am

Sgt. Groovy wrote:I don't have wmllint, it doesn't seem to ship with the Debian package. Can it be downloaded separately?

Code: Select all

:~$ cat /usr/share/doc/wesnoth/TODO.Debian 
create wesnoth-tools package containing:
 -  debian/tmp/usr/share/games/wesnoth/data/tools/
 - chmod +x on the scripts (wmllint, wmlscope, wmlindent, others?)
 - byte-compile .py modules?
I'm sorry for not having done that yet, but it's not forgotten nor lost. Right now I am a bit unsure about how to proceed with it, especially with respect to the lines with questionmarks after it. Where to install the files to (/usr/share/games/wesnoth/data/tools maybe?) and how to make it to follow the python policy which I haven't properly read yet due to not being too much into python yet ...

Any suggestions or hints in that direction would be truly appreciated, especially since it might make sense to rush that a bit because of ubuntu hard freeze.

AI
Developer
Posts: 2394
Joined: January 31st, 2008, 8:38 pm

Re: Upgrading scenarios to 1.4

Post by AI » March 10th, 2008, 7:01 pm

I'd say the package wesnoth-tools would be equivalent to the --enable-python-install option, meaning throwing the three main scripts a+x into the same directory as the other wesnoth binaries (wherever that is).

I'm not sure what you should do with the data/tools stuff, but it stands to reason (again having no idea about debian policy on these things) to just throw it in there with this package.

Post Reply