How to create a file-clone "addBox.lua" for ViDiBa?
Posted: 25.08.2016, 20:22
For a collection of asteroids 3100, I created a virtual discrete base (ViDiBa), which is controlled by 26 addons, placed in a folder adds.
One addon enables / disables the 200 asteroids.
Here are kind of the first 200 Main Belt asteroids:
I created a file-clone "addsBox.lua" for addons ViDiVa.
Name clone "ViDiBaBox.lua". The cloned file replaced all references, for example:
Original "addsBox.lua":
File-clone "ViDiBaBox.lua":
Added 25.08.2016, 06:56:
Separately works correctly the original file "addsBox.lua" and file clone "ViDiVaBox.lua".
Together working the original file is only "addsBox.lua".
The conflict over the "adds" folder. If you create a "ViDiBa" folder, then ViDiVaBoks.lua it does not see.
Experts Lua language, help to understand the problem.
One addon enables / disables the 200 asteroids.
Here are kind of the first 200 Main Belt asteroids:
I created a file-clone "addsBox.lua" for addons ViDiVa.
Name clone "ViDiBaBox.lua". The cloned file replaced all references, for example:
Original "addsBox.lua":
Code: Select all
-- Set the height of the Adds window.
local nadds = table.getn(adds);
nAddsLinesMax = math.max(4, math.min(addon_list_nlines, nadds));
addsFrameWidth, addsFrameHeight = 250, 110 + (20 * nAddsLinesMax);
addsScrollbarFrameW, addsScrollbarFrameH = 9, addsFrameHeight - 110 - 20;
File-clone "ViDiBaBox.lua":
Code: Select all
-- Set the height of the ViDiBa window.
local nViDiBa = table.getn(ViDiBa);
nViDiBaLinesMax = math.max(4, math.min(addon_list_nlines, nViDiBa));
ViDiBaFrameWidth, ViDiBaFrameHeigh = 250, 110 + (20 * nViDiBaLinesMax);
ViDiBaScrollbarFrameW, ViDiBaScrollbarFrameH = 9, ViDiBaFrameHeight - 110 - 20;
Added 25.08.2016, 06:56:
Separately works correctly the original file "addsBox.lua" and file clone "ViDiVaBox.lua".
Together working the original file is only "addsBox.lua".
The conflict over the "adds" folder. If you create a "ViDiBa" folder, then ViDiVaBoks.lua it does not see.
Experts Lua language, help to understand the problem.