Add on in map editor

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
arcangelcaos
Posts: 6
Joined: May 14th, 2015, 9:21 am

Add on in map editor

Post by arcangelcaos »

Hello, I downloaded an add on to land and other things, but do not come out the map editor. As I can make them look ???
User avatar
Jarom
Posts: 110
Joined: January 4th, 2015, 8:23 pm
Location: Green Isle, Irdya or Poland, Earth - I'm not quite sure

Re: Add on in map editor

Post by Jarom »

in it's _main.cfg place
#ifdef EDITOR
paths to things to load
#endif
And... it will be easier to help you if you send what add-on it's exactly - this will make me or somebody else able to give you answer more fitting to problem.
User avatar
Pentarctagon
Project Manager
Posts: 5565
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Add on in map editor

Post by Pentarctagon »

Moved to the Users' Forum.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
arcangelcaos
Posts: 6
Joined: May 14th, 2015, 9:21 am

Re: Add on in map editor

Post by arcangelcaos »

Thank you. UMC is the Terrain Pack.

This copied to the D: \ UMC_Terrain_Pack

Code: Select all

I get this error
Custom Error loading game configuration files. The game will try loading without add-ons.
Details: Macro / file 'D: / UMC_Terrain_Pack / utils / Archaic_Resources' is missing at _main.cfg: 147
Found that the directory exists.

And this is what I put in the _main.cfg

Code: Select all

#textdomain wesnoth-UMC_Terrain_Pack
[Textdomain] name = "wesnoth-UMC_Terrain_Pack" path = "D: / UMC_Terrain_Pack / translations"
[/ Textdomain]
#ifdef EDITOR
[Binary_path] path = D: / UMC_Terrain_Pack /
[/ Binary_path]
[Editor_group] id = UMC_Terrain_Pack_AR name = _ "Archaic UTP Resources" icon = "group_custom_04"
[/ Editor_group]
[Editor_group] id = UMC_Terrain_Pack_IftU name = _ "UTP IFTU" icon = "group_custom_04"
[/ Editor_group]
[Editor_group] id = UMC_Terrain_Pack_Strat name = _ "UTP Strategy Map" icon = group_custom2
[/ Editor_group]
{D: / UMC_Terrain_Pack / utils / Archaic_Resources}
{~ / UMC_Terrain_Pack / utils / IFTU}
{~ / UMC_Terrain_Pack / utils / Strat}
#endif
# Ifdef MULTIPLAYER
# {~ / UMC_Terrain_Pack / load_UTP.cfg}
# Endif
User avatar
Jarom
Posts: 110
Joined: January 4th, 2015, 8:23 pm
Location: Green Isle, Irdya or Poland, Earth - I'm not quite sure

Re: Add on in map editor

Post by Jarom »

First - I don't know if that spaces can make problems.
Next - It's possible to place folder with terrain to add-ons folder again, isn't it? That will be easier.
Last - I found that this add-on installed automatically with something else. It's visible in editor, needs only something to be loaded in multiplayer. What version of BfW you have?
User avatar
Ravana
Forum Moderator
Posts: 3009
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Add on in map editor

Post by Ravana »

Addons are not allowed to read files from just any random location, it needs to be in data or userdata.

(and yes, fix spaces too, and wesnoth is case-sensitive too)
User avatar
Elvish_Hunter
Posts: 1576
Joined: September 4th, 2009, 2:39 pm
Location: Lintanir Forest...

Re: Add on in map editor

Post by Elvish_Hunter »

Also, you should put either one opening tag, or one closing tag, or one key=value pair per line. WML isn't HTML, and a code structure like this:

Code: Select all

[Editor_group] id = UMC_Terrain_Pack_Strat name = _ "UTP Strategy Map" icon = group_custom2
[/ Editor_group]
is almost guaranteed to not work. I'm saying almost, because to be honest I never seen an add-on structured like that. :shock: By the way, tag names are case-sensitive too.
Current maintainer of these add-ons, all on 1.16:
The Sojournings of Grog, Children of Dragons, A Rough Life, Wesnoth Lua Pack, The White Troll (co-author)
arcangelcaos
Posts: 6
Joined: May 14th, 2015, 9:21 am

Re: Add on in map editor

Post by arcangelcaos »

reinstall everything and now works fine, not be that could have happened

Thank

1.13.2a version
Post Reply