Quantcast
Channel: The Battle for Wesnoth Forums
Viewing all articles
Browse latest Browse all 1990

Lua Labs • Macro/file is missing

$
0
0
The following is code I copypasted from the wiki.

for i,loc in ipairs(wesnoth.map.find{terrain = "Gg"}) do
wesnoth.current.map[loc] = "Rr"
end


The error: Macro/file 'terrain' is missing

Tracestack:

[multiplayer]->[event](preload)->[lua]

I suspect that scenario and/or preload has something to do with this, because similiar code works fine in other addons.

Statistics: Posted by B099 — Yesterday, 9:46 pm



Viewing all articles
Browse latest Browse all 1990

Trending Articles