wesnoth update?

General feedback and discussion of the game.

Moderator: Forum Moderators

User avatar
Unnheulu
Posts: 738
Joined: November 25th, 2007, 4:50 pm
Location: Cymru
Contact:

Re: wesnoth update?

Post by Unnheulu »

elvish_sovereign wrote:It's included in the package, namely in the game data: /data/core/tools. Note that it's not an app, but a python script you run on the file. Search for it if you need help, it might be confusing at first.
Read and understand...
User avatar
new2
Posts: 83
Joined: November 4th, 2006, 9:27 pm
Location: Germany

Re: wesnoth update?

Post by new2 »

I don't know anything about python scripts
Ageless!
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: wesnoth update?

Post by monochromatic »

Unnheulu wrote:
elvish_sovereign wrote:It's included in the package, namely in the game data: /data/core/tools. Note that it's not an app, but a python script you run on the file. Search for it if you need help, it might be confusing at first.
Read and understand...
Read this again.
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: wesnoth update?

Post by Gambit »

Oh come on guys. You could at least point him in the right direction. You tell him to search; but not where?

new2: You can search for information using the wiki at
http://wiki.wesnoth.org/
Or on the forums at
http://www.wesnoth.org/forum/search.php

I found these two articles that might be helpful for you.
http://wiki.wesnoth.org/Maintenance_tools#wmllint
http://forums.wesnoth.org/viewtopic.php?f=21&t=30795

Honestly though; if you're an add-on creator, I've found it's easier just to manually update things.
User avatar
new2
Posts: 83
Joined: November 4th, 2006, 9:27 pm
Location: Germany

Re: wesnoth update?

Post by new2 »

and how can I run it on maps? it is no executable file.

I'm no add-on creator but I would like revive nice old add ons. I don't know how to write any add on.
Ageless!
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: wesnoth update?

Post by monochromatic »

Okay. I don't know what OS you are using, but I'll tell you how I do it. I'm on Mac OS 10.6.

Code: Select all

Open Terminal
cd into the directory where the the targeted file is
Then run "python /Applications/Wesnoth.app/Contents/Resources/data/core/tools/wmllint file.cfg"
Done.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: wesnoth update?

Post by Anonymissimus »

new2 wrote:and how can I run it on maps? it is no executable file.

I'm no add-on creator but I would like revive nice old add ons. I don't know how to write any add on.
Reviving add-ons requires you to invest lots of time, without wmllint it's much worse, and to become a half-advanced wml author being able to run wmllint. :P
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
new2
Posts: 83
Joined: November 4th, 2006, 9:27 pm
Location: Germany

Re: wesnoth update?

Post by new2 »

I've installed Python, and now?

wmllint starts like this...

#!/usr/bin/env python
#
# wmllint -- check WML for conformance to the most recent dialect
#
# By Eric S. Raymond April 2007.
#
# All conversion logic for lifting WML and maps from older versions of the
# markup to newer ones should live here. This includes resource path changes
# and renames, also map format conversions.

I have WinXP. The Directory is: C:\Spiele\Battle for Wesnoth 1.8.4\data\tools\wmllint
Ageless!
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: wesnoth update?

Post by Gambit »

Apparently I hit quote instead of edit. Read the post below this.
Last edited by Gambit on August 13th, 2010, 6:13 pm, edited 1 time in total.
User avatar
Gambit
Loose Screw
Posts: 3266
Joined: August 13th, 2008, 3:00 pm
Location: Dynamica
Contact:

Re: wesnoth update?

Post by Gambit »

Gambit wrote:
cd C:\Spiele\Battle for Wesnoth 1.8.4\Data\tools\
python wmllint url-to-cfg-file-to-be-wmllint'ed
^Those go in the command line
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: wesnoth update?

Post by Anonymissimus »

You please read the "A convenient way of running wmllint" section in the wiki that Gambit has linked to, it is intended to solve the questions you have.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
new2
Posts: 83
Joined: November 4th, 2006, 9:27 pm
Location: Germany

Re: wesnoth update?

Post by new2 »

syntax error. Python accepts no command I try.
Ageless!
vcap
Posts: 80
Joined: August 1st, 2010, 3:34 pm

Re: wesnoth update?

Post by vcap »

new2 wrote:syntax error. Python accepts no command I try.
You are more likely to get help with this by copy/pasting the exact commands you tried and the exact output you got.
User avatar
new2
Posts: 83
Joined: November 4th, 2006, 9:27 pm
Location: Germany

Re: wesnoth update?

Post by new2 »

don't works. ctrl+v produces ^V. I made the right command you've written. There stands only >>> and everything I do is wrong. I also can't change any directory.
Ageless!
User avatar
Unnheulu
Posts: 738
Joined: November 25th, 2007, 4:50 pm
Location: Cymru
Contact:

Re: wesnoth update?

Post by Unnheulu »

Try CTRL+Shift+V. That's used instead in the gnome/xfce terminal (CTRL keys are often used by some curses applications, ie nano).
Post Reply