Editing userdata

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

Moderator: Forum Moderators

Post Reply
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

Editing userdata

Post by Smok »

I want to delete some attributes from wml tag config object aka vconfig aka userdata aka WML object, but it is protected from editing. I tried to make table copy of it using ipairs(), but this way i only get subtags and i can't get attibutes.
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: Editing userdata

Post by gfgtdf »

you can use the helper.parsed ot helper.literal functions to copy a vconfig intoa regular config lua table.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Smok
Posts: 53
Joined: June 14th, 2016, 11:52 am

Re: Editing userdata

Post by Smok »

Tried this today. Works perfectly, thanks. I'm a big step further in creation of the most complex wml tag ever. ;)
Post Reply