![]() ![]() However, since Lua does not create copies of tables by default, the base game's NDefines contains pointers to the actual elements, which are contained within NDefines_Graphics regardless. ![]() In the base game files, the graphical defines are set to be merged into NDefines in the last line of the base game file. Since 0 is among the earliest characters by ID – placed before letters, other numbers, and underscores – almost any filename can work. ![]() This goes into a separate file set to be evaluated after the base game defines, which is sorted by filenames using the ASCII character IDs. Each of these lines is contained on a separate line and there are no commas separating them, such as the following: Defines, including graphical defines, are merely a Lua-contained array, and it is possible to modify a single member of the array in Lua using, for example, _DATE = "1936.1.2.12". As a consequence of this, there is no need to copy the entire file to edit it. As defines are Lua code rather than a PDXscript-interpreted file, any Lua code can go in there, however modules allowing to go out of this directory are not available. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |