best way to update maps on different versions on BfW
Moderator: Forum Moderators
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.
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
best way to update maps on different versions on BfW
Hi,
I don't know if this is on topic or off topic.
if it isn't, I , really sorry
So, is there a way to update maps (and scenarios if ever possible) between different releases of wesnoth?
I mean instead of redesigning them hex by hex and line by line
I don't know if this is on topic or off topic.
if it isn't, I , really sorry
So, is there a way to update maps (and scenarios if ever possible) between different releases of wesnoth?
I mean instead of redesigning them hex by hex and line by line
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- 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: best way to update maps on different versions on BfW
...
Most maps from 1.12 still work on 1.17 so I dont really see your point here.
Also, if you can run wmllint, you can avoid some removed terrain type errors or most other errors. Most other errors can be wrapped up with a code text editor such as Atom/SublimeText3/VSCode/Notepad++.
Most maps from 1.12 still work on 1.17 so I dont really see your point here.
Also, if you can run wmllint, you can avoid some removed terrain type errors or most other errors. Most other errors can be wrapped up with a code text editor such as Atom/SublimeText3/VSCode/Notepad++.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
I am speaking about BfW 1.2 and 1.8 for example.
I manged to upload RotL from 1.2 to the server of 1.16 but I had to redesign maps
I manged to upload RotL from 1.2 to the server of 1.16 but I had to redesign maps
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- 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: best way to update maps on different versions on BfW
https://wiki.wesnoth.org/TerrainCodesWML
The first line here
The first line here
Thus, I think wmllint might be able to do the trick.Note: the old (1.2) terrain system is no longer documented here. If you have 1.2 maps you will need to convert them using wmllint.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
Thank you very much. I didn't found this wikipage before.Lord-Knightmare wrote: ↑April 30th, 2022, 6:46 am https://wiki.wesnoth.org/TerrainCodesWML
The first line hereThus, I think wmllint might be able to do the trick.Note: the old (1.2) terrain system is no longer documented here. If you have 1.2 maps you will need to convert them using wmllint.
Now, can you go step by step with me (if it is possible) ? I am almost a novice with coding,
I install Python then what exactly?
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- 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: best way to update maps on different versions on BfW
after installing python, I guess you have to open a cmd prompt/terminal/git bash and then navigate to the wesnoth directory (application)
after that
and
which will open the GUI of the tools wmllint, wmlindent, wmlscope and wmlxgettext
after that
cd data/tools/
and
python GUI.pyw
which will open the GUI of the tools wmllint, wmlindent, wmlscope and wmlxgettext
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
Thank youLord-Knightmare wrote: ↑April 30th, 2022, 8:16 am after installing python, I guess you have to open a cmd prompt/terminal/git bash and then navigate to the wesnoth directory (application)
after thatcd data/tools/
andpython GUI.pyw
which will open the GUI of the tools wmllint, wmlindent, wmlscope and wmlxgettext
So, I installed Python (v 2.7.7), then I opened it and taped the adress of directory
Code: Select all
C:\Program Files (x86)\Battle for Wesnoth 1.16.2\data
Code: Select all
error syntax
I returned to my desktop and opened a windows terminal aka cmd.exe and did the same and I get no valid cmd
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
I get the directory instruction from [wiki] https://wiki.wesnoth.org/Editingwesnoth#Windows [/wiki] and [wiki] https://wiki.wesnoth.org/Maintenance_tools#wmllint [/wiki] but it is kinda complicated both
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
I m stupid I get it
oh no, no stupid. I learn by mistakes.
now I get it
I enter to my directory and then to the data then tools then Gui/pyw then I run it
not via cmd.exe
hhhhhh
thank for teaching me that
oh no, no stupid. I learn by mistakes.
now I get it
I enter to my directory and then to the data then tools then Gui/pyw then I run it
not via cmd.exe
hhhhhh
thank for teaching me that
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
It works. thank you.
but which option do I need for checking about maps ? wmllint, scope or indent? or other?
but which option do I need for checking about maps ? wmllint, scope or indent? or other?
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- 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: best way to update maps on different versions on BfW
just wmllint for that...do normal and then a clean run for it.but which option do I need for checking about maps ? wmllint, scope or indent? or other?
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- hermestrismi
- Posts: 626
- Joined: February 6th, 2016, 11:28 pm
- Location: Tunisia
- Contact:
Re: best way to update maps on different versions on BfW
wmllint didn't work for the maps even after installing python-enchant (which kept give me the error code at the output
This is the beginning of the report etc,
where Nouveau dossier (2)\the_tribe is the directory I want to transform
then, the check begun successfully (which mean tht all files were corrected) except for maps.
I dont know if it s related to my PC (windows 7 and Trisquel as OS) (since the python ench. didnt work and produce the error msg) or smthg else.
Anyway, I dont want to waste your time more than that so if y didn't encontre the same problem before, don't bother yrself
Code: Select all
WindowsError: [Error 193]
This is the beginning of the report
Code: Select all
[C:\Python27\pythonw.exe "C:\Program Files (x86)\Battle for Wesnoth 1.12.5\data\tools\wmllint" --clean "C:\Program Files (x86)\Battle for Wesnoth 1.12.5\data\core"
C:\Python27\pythonw.exe "C:\Program Files (x86)\Battle for Wesnoth 1.12.5\data\tools\wmllint" --dryrun "C:\Program Files (x86)\Battle for Wesnoth 1.12.5\data\core" "C:\Users\aa\Desktop\Nouveau dossier (2)\the_tribe"
C:\Users\aa\Desktop\Nouveau dossier (2)\the_tribe\scenarios\Belmont.cfg, line 45: description=Welt -> id=Welt/
where Nouveau dossier (2)\the_tribe is the directory I want to transform
then, the check begun successfully (which mean tht all files were corrected) except for maps.
I dont know if it s related to my PC (windows 7 and Trisquel as OS) (since the python ench. didnt work and produce the error msg) or smthg else.
Anyway, I dont want to waste your time more than that so if y didn't encontre the same problem before, don't bother yrself
The Dark Master, The Dark Hordes (Unofficial version), Return of the Legion , Eternal Kingdom, An Elvish Scout,Unrest in Elfland , Hidden War ...
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
The Dark Master Project, Arabic tra. maintainer
"But he loves you" G. Carlin
- Lord-Knightmare
- Discord Moderator
- Posts: 2364
- 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: best way to update maps on different versions on BfW
hmm...this is the note on Error 193
Also, `python-enchant` has nothing to do with this. It's a library for "checking the spellings" of words.
viewtopic.php?p=670297#p670297
which is related to updating maps from 1.2 campaigns/scenarios.
I think Windows 7 is very outdated at this point (since I see windows subtlety hinting me to update to Windows 11) so that might be a reason.If you have received this warning on your PC, it means that there was a malfunction in your system operation. Error code "error 193" is one of the issues that users may get as a result of incorrect or failed installation or uninstallation of software that may have left invalid entries in system elements.
Also, `python-enchant` has nothing to do with this. It's a library for "checking the spellings" of words.
Actually, I think I found a helpful post for you:then, the check begun successfully (which mean tht all files were corrected) except for maps.
viewtopic.php?p=670297#p670297
which is related to updating maps from 1.2 campaigns/scenarios.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
- Celtic_Minstrel
- Developer
- Posts: 2222
- Joined: August 3rd, 2012, 11:26 pm
- Location: Canada
- Contact:
Re: best way to update maps on different versions on BfW
I don't think wmllint can convert old maps, or at least, not through GUI.pyw. If you can figure out how to use the command line, I believe there's a special version of wmllint that does convert old maps (wmllint-1.4), but it's not available through the GUI since this is an uncommon use-case.
- Atreides
- Posts: 1075
- Joined: March 30th, 2019, 10:38 pm
- Location: On the 2nd story of the centre village of Merwuerdigliebe turning the lights on and off
Re: best way to update maps on different versions on BfW
DOS has something called a PATH. All it means is that you can run a program that is "in the path" from anywhere else. Otherwise you have to be in the exact directory where the program is to run it.hermestrismi wrote: ↑April 30th, 2022, 9:06 am I m stupid :) I get it
oh no, no stupid. I learn by mistakes.
now I get it
I enter to my directory and then to the data then tools then Gui/pyw then I run it
not via cmd.exe
hhhhhh
thank for teaching me that
Without the path I'd have to
D:\GAMES\HARPOON> c:\dos\attrib -a instead of attrib -a