URGENT HELP NEEDED! Stadalone search paths
Nov 08 2022 | 12:20 pm
I am trying to write a standalone app called Nudger for somebody in a different country whose setup I have no details for and who does not have Max or enough tech knowledge to play with it. It's a very simple tool that converts control message coming from one port into note messages sent to another port and all unmodified message to a third port that can then be used in Cubase to control various jog wheel functions from an X-Touch controller. All that works fine.
In order to ensure that the MIDI configuration matches his system, I have provided picker lists to ensure that the MIDI messages are being read from and then sent to the correct ports. Again, all that works fine.
However, in order to save him having to re-enter the configuration every time he uses the app, I am trying to store the three port configurations using a coll with a read process to load the coll data when the app starts and to write the coll everytime the port selctions are changed. Again, that works in the patcher but not in the standalone!
I have three problems:
1) I assumed that the executable (the Nudger.exe file) would operate entirely on its own but I am now concluding that I need to include the collective (the Nudger.mxf) and its resource folder when I send it to him. Is that correct or not?
2) No matter what I try, the executable is reading the configuration file (Ports.txt) into the coll from the resource/support folder but when I write the data back, it always goes to another copy of the Ports.txt folder in the same directory as the executable. How can I resolve this such that the executable uses the same file for both reading and writing?
3) Is it not possible to embed the coll and its data in the patch so that it doesn't need to be read from a file at all? Again, this works in the patcher but not in the standalone.
In the attached patch, I have put a red box to indicate the bit of code that has the problem.
Urgent assistance with this would be greatly appreciated!