Home › Forums › Bug Reports and Feature Requests › Feature Request: “Unused Variables” or “All Variables” (even unused)
- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Ivan Lyubovnikov.
-
AuthorPosts
-
2020-06-13 at 2:17 am #28799GLiFTeKCustomer
Hi,
I remember earlier versions of Verge would open the puzzles editor WITHOUT the the variables that hadn’t been used in puzzles from a previous save.Ie: you revise your puzzles with improvements for better efficiency,tree-shake,de-lint etc..
Most likely many uneeded variables deleted from your puzzles setup, but all those old variables are still in your left menu to select from.This is good at first in case you need to made an error and need to retrieve them.
In the earlier version, when you next reopened that puzzles file, the unused ones would be gone…good riddance.But now they stay in the menu, and can seriously crowd it up, making it difficult to navigate and find things.
The “All Variable Names” can provide a list of all variables USED in puzzles… But what about one that provides a list of variables that are NOT used? Or one that lists all variables, regardless of whether they’re used, then compare that to a list from “all variable names” then get a list of unused ones as a result. …
Then you could go and delete them all.
OR…orrr… You could have a section at the bottom of the variables menu with only “Unused” Variables, and There could be just a button there that says purge unused variables. Problem solved.
It did it before. Shouldn’t be tray difficult right?
Also..question… When the puzzles editor saves out to your visual_logic.js file, are those unused variables carried along?
Visit the GLIFTEK Verge3D Plugins Store!
GLIFTEK.com for Plugin Documentation & LIVE DEMOS!
LIKE The GLIFTEK Facebook Page for updates!
Join the Verge 3D Discord Server!
plz share Discord link & on your signature!2020-06-15 at 7:56 am #28843Ivan LyubovnikovStaffHi,
But now they stay in the menu, and can seriously crowd it up, making it difficult to navigate and find things.
Unused variables should be gone after reloading the editor. This looks like a bug. Can you provide an example? visual_logic.xml file should be enough to see if something’s wrong with the variables.
Also..question… When the puzzles editor saves out to your visual_logic.js file, are those unused variables carried along?
No, if they are unused they shouldn’t be in visual_logic.js.
Co-founder and lead developer at Soft8Soft.
-
AuthorPosts
- You must be logged in to reply to this topic.