Zer0 H0ur How do I cheat? Reputation: 0
Joined: 14 Feb 2017 Posts: 4
|
Posted: Sat Jun 24, 2017 8:50 am Post subject: Renaming Forms |
|
|
Greetings.
I'm working with an existing .ct file which contains a couple of forms. In an effort to learn CE's form designer I have been studying this file as a teaching tool.
The .ct file works as expected; the forms, when called, open properly. I see that they are declared in the XML and have a property Class="TCEForm". Following that is an Ascii85 encoded string.
Using the designer, I have changed the Name property of a form, clicked the Save button on the toolbar in CE, overwriting the source .ct file. I note that the node for the form has indeed been renamed.
I then edited the call to open the form:
form_show(FormName), replacing FormName with the new name.
Running the script results in an exception:
Error
This is not a valid cheat table (Error executing this table's lua script: Undefined lua error)
In addition, the Lua Engine reports:
Error:Invalid class object
I found later that opening a form for edit, making no actual changes, then saving and overwriting the .ct file results in the same error.
Can someone please tell me how to properly rename a form? Thank you.
|
|