Jump to content


Photo

AUTO_RELOAD_DEBUG issues and Duplex


  • Please log in to reply
7 replies to this topic

#1 boonier

boonier

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 166 posts

Posted 28 November 2018 - 13:06

It's it correct that only saving main.lua triggers a reload of the Duplex tool, or should an edit in one of the controller map xml files be able to trigger the same reload event?



#2 boonier

boonier

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 166 posts

Posted 29 November 2018 - 01:51

I’m editing in an external editor just to be clear.

#3 Raul (ulneiz)

Raul (ulneiz)

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1599 posts
  • Gender:Male
  • Location:Spain

Posted 29 November 2018 - 12:47

It's it correct that only saving main.lua triggers a reload of the Duplex tool, or should an edit in one of the controller map xml files be able to trigger the same reload event?

 

If auto_reload_debug is configured to invoke the tool, yes.
That is, if you modify any linked LUA or XML file, when you save that file, auto_reload_debug will be invoked.
As well, auto_reload_debug can be in any linked lua file.

:excl: Development of my tools: Piano Roll EditorKangarooX120SamRenderPhraseTouch

 

:excl: My API wishlist R3.1 (updated 24 July 2017):

Spoiler

 

:excl: My Renoise 3.1 wishlist (updated 26 September 2017):

Spoiler

#4 boonier

boonier

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 166 posts

Posted 29 November 2018 - 13:12

Thanks Raul

 

That as you specify, doesn't work for me. Could it be because the required files are linked at runtime in a loop in Duplex.lua, therefore it can't respond to changes as it is not referenced properly? Doesn't make sense given that the all the files are loaded.

 

 

 

As well, auto_reload_debug can be in any linked lua file.

 

assume that putting it in an xml mapping file WON'T work here? ;)

 

Do you get the same behaviour as I describe?



#5 danoise

danoise

    Probably More God or Borg Than Human Member

  • Renoise Team
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 7008 posts
  • Gender:Male
  • Location:Berlin
  • Interests:wildlife + urban trekking

Posted 29 November 2018 - 13:23

I guess you have scripting dev/terminal enabled? Then you can always reload tools from the Tool menu.

 

And AFAIK auto_reload_debug only tracks changes to main lua. At least, on my win box this is the case. 


Tracking with Stuff. API wishlist | Soundcloud


#6 joule

joule

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1863 posts
  • Gender:Not Telling

Posted 29 November 2018 - 13:35

edit: It seems that with the native scripting editor, any file that is changed within the tools folder structure will trigger the reload function (Windows 10).


Edited by joule, 29 November 2018 - 13:40.


#7 boonier

boonier

    Super Advanced Member

  • Normal Members
  • PipPipPipPip
  • 166 posts

Posted 29 November 2018 - 13:49

edit: It seems that with the native scripting editor, any file that is changed within the tools folder structure will trigger the reload function (Windows 10).

 

Yep I've noticed this too. Ext editor only tracks changes to main.lua



#8 Raul (ulneiz)

Raul (ulneiz)

    Guruh Motha Fakka is Levitating and Knows Everything About Renoise Member

  • Normal Members
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • 1599 posts
  • Gender:Male
  • Location:Spain

Posted 29 November 2018 - 16:40

Gracias raul

 

Que como tú especifiques, no me funciona. ¿Podría ser porque los archivos necesarios están vinculados en tiempo de ejecución en un bucle en Duplex.lua, por lo tanto, no puede responder a los cambios ya que no se hace referencia correctamente? No tiene sentido dado que todos los archivos están cargados.

 

 

asuma que ponerlo en un archivo de mapeo xml NO FUNCIONARÁ aquí? ;)

 

¿Tienes el mismo comportamiento que describo?

 

 

I do not know what happens with Duplex. When I refer to any LUA file and any XML "linked", I mean any linked file within the tool, for example, preferences.xml, inside the tool folder (not a Renoise xml) or any LUA file linked with "require" from any lua file that ends up linked to main.lua. It is possible to make a chain of LUA files using "require" in each of them, and auto_reload_debug would be executed even if it is at the end of the chain. (in the last linked file). All this using the native editor, inside Windows 10.

 

If the tool modifies data from the xml file, the tool must be reloaded to read this data from the xml file. While the tool is running, the xml files are not modified, only when the tool is closed (when you close Renoise). Could this be related?

 

 

edición: parece que con el editor de scripts nativo, cualquier archivo que se modifique dentro de la estructura de carpetas de herramientas activará la función de recarga (Windows 10).

 

True, tested in Windows 10 and native editor


Edited by Raul (ulneiz), 29 November 2018 - 16:48.

:excl: Development of my tools: Piano Roll EditorKangarooX120SamRenderPhraseTouch

 

:excl: My API wishlist R3.1 (updated 24 July 2017):

Spoiler

 

:excl: My Renoise 3.1 wishlist (updated 26 September 2017):

Spoiler