wesnoth.get_viewing_side()

Discussion of Lua and LuaWML support, development, and ideas.

Moderators: Forum Moderators, Developers

Post Reply
enclave
Posts: 885
Joined: December 15th, 2007, 8:52 am

wesnoth.get_viewing_side()

Post by enclave » April 12th, 2018, 6:35 pm

Hi, could anyone enlighten how wesnoth.get_viewing_side() could be used? (wesnoth 1.12)
it always says that im trying to call nil value or something similar.. I tried ipairs, array, and many many more... nothing seem to work, just error all the time. Tiny example of how to extract side from it??
Thanks in advance!

PS. ah well.. i think it only works in 1.13? But wiki doesnt specify that.. could wiki be corrected if so?


enclave
Posts: 885
Joined: December 15th, 2007, 8:52 am

Re: wesnoth.get_viewing_side()

Post by enclave » April 28th, 2018, 8:41 pm

hmm thats interesting...
are they all on 1.14 or some of them work 1.12 too? undocumented ones..

User avatar
Ravana
Moderator
Posts: 1871
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: wesnoth.get_viewing_side()

Post by Ravana » April 28th, 2018, 8:43 pm

As you can see from first link that specific one is present in master 1.14.0 1.13.14 1.13.13 1.13.12 1.13.11 1.13.10 1.13.10-retag 1.13.9 1.13.8 1.13.7 1.13.6 1.13.5 1.13.4 1.13.3 1.13.2 1.13.1.

enclave
Posts: 885
Joined: December 15th, 2007, 8:52 am

Re: wesnoth.get_viewing_side()

Post by enclave » April 29th, 2018, 12:31 pm

Thanks.. i didnt notice them sorry :)

Post Reply