wesnoth-1.16-tools question

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
kurt751
Posts: 286
Joined: June 4th, 2016, 11:17 pm

wesnoth-1.16-tools question

Post by kurt751 »

(Don't know if this is the right place to ask this, feel free to move)

I'm trying to convert my old scenarios and campaigns from 1.12 to 1.16 using wmllint. (Wesnoth 1.16 on Ubuntu.)

Is it normal wmllint tries to edit files in my core game installation (files like "/usr/share/games/wesnoth/1.16/data/core/terrain.cfg")? :shock:

Obviously it doesn't succeed (permission denied), but I assume something is not going according to plan here: The description says "a utility for sanity-checking WML syntax and porting your old WML to the current version of WML.", so what is it doing trying to edit core files?
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2539
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: wesnoth-1.16-tools question

Post by Lord-Knightmare »

I believe there is setting that auto checks "check core files". You have to disable that setting while running it for your add-on.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Soliton
Site Administrator
Posts: 1765
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Re: wesnoth-1.16-tools question

Post by Soliton »

wmllint runs on whatever files you tell it to. If you don't specify any path it will work on the current directory.
"If gameplay requires it, they can be made to live on Venus." -- scott
kurt751
Posts: 286
Joined: June 4th, 2016, 11:17 pm

Re: wesnoth-1.16-tools question

Post by kurt751 »

Soliton wrote: July 3rd, 2026, 12:10 pm wmllint runs on whatever files you tell it to.
:shock: I simply copied the suggested command line without checking, and for some strange reason it does indeed include the core files... :doh:
Oh well, that explains it. Thanks!

Note that wmllint does miss a lot of things (well, I have to admit some things are not strictly speaking WML). I think I'll have a busy weekend to fix my 6 scenarios and 3 campaigns... :lol:
Post Reply