Home › Forums › General Questions › Moving procedures between tabs
- This topic has 7 replies, 5 voices, and was last updated 4 years, 1 month ago by
Yuri Kovelenov.
-
AuthorPosts
-
2021-09-01 at 2:41 pm #44169
johngrigni
CustomerWhenever I cut the procedure, it erases all of the triggers that call that procedure, so I can’t really move procedures between tabs unless I can go back through and remember all the places I put a trigger. Is there another way to do this?
2021-09-01 at 4:21 pm #44174
xeonCustomerI feel the pain….completely hate how its working right now.
My only work around is to not use CUT
I copy it… it will then create a duplicate…Procedure2….Then I can go back and rename all the locations of the prior Procedure call….but thats horrible too…because you can easily forget one.Xeon
Route 66 Digital
Interactive Solutions - https://www.r66d.com
Tutorials - https://www.xeons3dlab.com2021-09-01 at 5:50 pm #44176
jdhutchinsonCustomerCould you save a procedure to the library?
2021-09-02 at 12:03 am #44190johngrigni
CustomerUnfortunately, the problem is when you paste the new procedure in, it get’s renamed with a number 2 on the end, and it isn’t linked to any of the triggers. It’s a real pain to find them all and retarget them all by hand, which is easier to do when they still exist, as opposed to when they simply disappear.
2021-09-03 at 9:47 pm #44269jem
CustomerI agree with everyone in this thread, but there is another way to do this. You can move the procedure by editing the XML file directly. This can be dangerous because mistakes are easy to make, but if you have a good code editor, like VSCode, and you have a continuous backup strategy in place, it is not too dangerous.
1. Save your puzzles.
2. Edit visual_logic.xml
3. Identify your “to” and “from” tab elements
4. Identify your procedure definition. It will be in a <block> element. The type attribute will be type=”procedures_defnoreturn”. The inner text of the name field element will match your procedure name.
5. Move the whole procedure definition between <tab> elements. If using VSCode, the emmet: balance(outward) command will assist you with the selection.
6. Save the XML file.
7. Reload the puzzle editor.Here is a video of a simple example:
Jeremy Wernick
2021-09-04 at 9:36 am #44272
jdhutchinsonCustomerGreat video Jeremy. You should do more tutorials!
2021-09-04 at 11:24 am #44278johngrigni
CustomerAgreed! Thank you Jeremy! Though I’d like to make this a formal feature request for working with tabs, along with the ability to rename and reorder them.
2021-09-07 at 6:53 am #44357
Yuri KovelenovStaff -
AuthorPosts
- You must be logged in to reply to this topic.
