iOS version and lua functions
Moderator: Forum Moderators
iOS version and lua functions
I looked for, and did not find a list of differences between the desktop and the iOS version.
For my campaign (named Bloodlust) I have defined an additional menu item (hotkey being shift-i) which uses some lua code defined in a "lua.lua" file.
This "lua.lua" file is loaded by "_main.cfg" by
The additional menu item is defined in an other file, loaded lated in "_main.cfg" by
This works for the desktop versions, but for the iOS version I have an error message, which says that some lua function (which is defined in "lua.lua") "must be assigned before being used".
I don't know how to solve this issue.
For my campaign (named Bloodlust) I have defined an additional menu item (hotkey being shift-i) which uses some lua code defined in a "lua.lua" file.
This "lua.lua" file is loaded by "_main.cfg" by
Code: Select all
[lua]
code = << wesnoth.dofile("~add-ons/Bloodlust/lua.lua") >>
[/lua]
Code: Select all
{~add-ons/BloodLust/weapons}
I don't know how to solve this issue.
My campaign, Bloodlust, is is need of feedback!
- Pentarctagon
- Project Manager
- Posts: 5586
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: iOS version and lua functions
Currently the most recent desktop version is 1.16 while on iOS it's 1.14.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: iOS version and lua functions
My campaign is working on desktop versions 1.12, 1.14, 1.15 and 1.16.
I think that the problem is a difference between iOS and desktop, rather than caused by the version of Wesnoth.
I think that the problem is a difference between iOS and desktop, rather than caused by the version of Wesnoth.
My campaign, Bloodlust, is is need of feedback!
Re: iOS version and lua functions
I have found a workaround.
Instead of having the lua functions as described above in a lua.lua file loaded by a [lua] tag in the _main.cfg, I have them in a [lua] tag in a utils/lua.cfg file
Instead of having the lua functions as described above in a lua.lua file loaded by a [lua] tag in the _main.cfg, I have them in a [lua] tag in a utils/lua.cfg file
My campaign, Bloodlust, is is need of feedback!