🔥 Lifetime deal! Get Control Surface Studio for Just £67 👉 Click Here To Get It
Time left... mailtimers.com
⚠️ Lifetime licenses are ending soon, get yours before they're gone ⚠️
Your shopping cart is empty.

Controller disappeared. Json file not accepted

Submitted by jawalker213 on Wed, 02/20/2019 - 22:39
jawalker213
Free User

Hello! Today, I was working on mapping a Reaction to a Button and experienced weird behavior.. I'd change the Button to Note 8 Channel 1. Then Mapped it to a Reaction (Listener: Button 6, Conditions: Blank, Reactions: Midi Record Quantization, = No Quantization). When I went back to check the Button, I noticed it said CC 2 Channel 2. I changed it back to Note, and it stuck, but when I switched pages and went back to it, it said CC 2 Channel 2. I tried making a new button and doing the same thing.. however, I got the same behavior only this time, the Button name didn't update from Button 7 to Button 6 (which is what I changed it to).

Then, my Controller is completely gone. However, my mapping is still available.. just that now I have to create like 40 knobs and buttons to make it work again.. I closed out of Control Surface Studio and reopened it. Nothing changed.

I found the 1_script.json inside the Midi Remote Scripts css folder, however, it says not controller file. Could anyone help? Thanks!

upload files: 
Topic Category: 

21 Responses

Comments

JohnC
Forum Admin
#1

Hi,

Get your Controller .json file from here:
In Explorer (windows) or Finder (Mac), open your home folder and go to:
Control Surface Studio / Controller
Each file contained in here is a Controller in your Controller Manager.

The order of the files in the Controller folder is usually the same as in Controller Manager.
To make sure you have the right Controller file, open it in a text editor and search for “name” to find the name of the Controller.

Upload the file file here and I will take a look.

jawalker213
Free User
#2

Thank you for your help! Here are the two files.. I could import the 1_controller and 2_controller which were the two default ones.. I couldn't get the other two to import with no error message. Thanks!

danicroitor
Pro User
#3

The same thing happened to my but I am unable to import it

upload files: 
JohnC
Forum Admin
#4

Hey guys,

I ran all 3 of your Controllers through a very helpful JSON Linter https://jsonformatter.curiousconcept.com/
The issues are all very similar and once I fixed them, I could import all 3 Controllers into my App.

Jay:
For '5_controller.json' there is an extra square bracket at the end, this just needs deleting then save the file.
For '6_controller.json' this has 'eft"}]' at the end which just needs deleting.

dan:
'3_controller.json' has an extra square bracket at the end which just needs removing.
I've attached fixed versions of all 3 Controllers.

The JSON Linter I linked above immediately told me where the issue is so it's worth running your json through there if your Controller disappears. See the attached screenshot.

Obviously this isn't THE fix, we will of course find the reason for this happening and fix it properly in the App but just in the short term thought I would tell you how you can get your Controllers back.

jawalker213
Free User
#5

Hey John,
Thanks for looking into it. I opened the files you sent and saw that you fixed the errors you mentioned. However, I can't open the files.. this time I get the Not a script file error.. maybe there's something else going on? Thanks!
Jay

JohnC
Forum Admin
#6

Hi Jay,

Sounds like you're trying to Import the Controller files into the Script Manager.
Make sure you are in the 'Controller Manager', then click the Import button to display the 'Import Controller' Section.
See attached.

upload files: 
jawalker213
Free User
#7

gotcha thanks you did fix them and they work now!

jawalker213
Free User
#8

I just not getting the css to show up in Ableton despite a folder in Midi Remote Scripts? So strange! I restarted Ableton.. no difference. Am I doing something wrong? Thank you John!

JohnC
Forum Admin
#9

Do you see any errors in your Error Log?
Tutorial on debugging script issues: https://remotify.io/product/control-surface-studio/documentation/step-by...

jawalker213
Free User
#10

thanks, this is what I found:

2019-02-27T16:26:41.498862: info: RemoteScriptError: Traceback (most recent call last):

2019-02-27T16:26:41.499008: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/MxDCore.py", line 1267, in install_observer_listener

2019-02-27T16:26:41.500540: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/MxDCore.py", line 1301, in _observer_install_listener

2019-02-27T16:26:41.500906: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/MxDCore.py", line 1432, in _observer_id_callback

2019-02-27T16:26:41.501148: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/MxDCore.py", line 246, in _get_object_path

2019-02-27T16:26:41.501479: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/LomUtils.py", line 245, in __init__

2019-02-27T16:26:41.501992: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/LomUtils.py", line 315, in _calculate_path

2019-02-27T16:26:41.502179: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/LomUtils.py", line 254, in _find_root_object_path

2019-02-27T16:26:41.502291: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/LomTypes.py", line 919, in get_root_prop

2019-02-27T16:26:41.502532: info: RemoteScriptError: File "/Users/versonator/Jenkins/live/output/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_MxDCore/LomTypes.py", line 911, in

2019-02-27T16:26:41.502633: info: RemoteScriptError: RuntimeError
2019-02-27T16:26:41.502687: info: RemoteScriptError: :
2019-02-27T16:26:41.502754: info: RemoteScriptError: Can't obtain live set at this time
2019-02-27T16:26:41.502852: info: RemoteScriptError:

JohnC
Forum Admin
#11

"Remote Scripts/_MxDCore/LomTypes.py", line 911, in"
This makes me think you have a Reaction that is breaking the script.
Try removing your Reactions and install it.

jawalker213
Free User
#12

Thanks that worked and it now shows up in Ableton!

Lextasy
Control Surface Studio User
#13

Hello so I installed CS yesterday and started setting up my first controller. I got to just about the end of adding all of the physical controls and to where i was going to start editing an actual script however my screen suddenly turned white and I couldn't proceed. I restarted the program to find I can no longer see my device I was working on and am hopeful something can be done with my json file as well. I am a bit afraid to just try and start over it seems CSS is very buggy still at this point and would be very discouraged to start over if its going to keep happening. Thank you for your time.

upload files: 
JohnC
Forum Admin
#14

Hi,

The file you have attached is a Script file and not a Controller file, is this correct?
I was able to import it into my App without issue.

Follow these steps on how to get your Controller back if it has disappeared:
https://remotify.io/community/question/controller-disappeared-heres-how-...

We have been working on fixes for issues around Controllers disappearing which will be in the next release, available very soon.

Lextasy
Control Surface Studio User
#15

I thought it was a controller file? This was my first attempt at setting something up so far. I spent a solid 3+ hours laying it out due to ui difficulties then it suddenly disappeared. I tried running this through the linter but nothing was flagged I'm really lost lol.

Lextasy
Control Surface Studio User
#16

Okay so i realized i uploaded a script and i went back and found the controller file and ran that through the linter and still no go. No flagged issues but no controller showing up in Control Surface. Here is the correct file :)

upload files: 
JohnC
Forum Admin
#17

I just downloaded your attached Controller.json file and it's the 'MIDI Fighter Twister' Controller which comes pre-installed (and it shows up without any issue).

There should be some more controller.json files in that directory. Yours will most likely be the one with the highest number i.e. 3_controller.json

JohnC
Forum Admin
#18

Upload it here again and I will check it for you :)

Lextasy
Control Surface Studio User
#19

Thank you i actually just came to realize that when looking further through tutorials questioning if i missed something. I found your suggestion on opening up the files in a text editor or atom to match up the names to see I sent you the twister. I found the correct json file from my controller and it seems my white screen bug in which I ended the task on Control surface caused the file to become completely blank inside. I will start over and regularly backup lol. I'll upload the file as well to the forum once complete to help any DDJ users who want to customize scripts :)

Lextasy
Control Surface Studio User
#20

OO PS I have some ideas as far as helping the UI a bit. I'd imagine everyone would be pumped if you made a sub forum for feedback on it. I promise to drop lots of examples made via photoshop haha

JohnC
Forum Admin
#21

:) did you get your Controller to display?

When creating a Topic, you can tag it as a category such as 'CSS Feature Requests'.
and you can filter the Forum by Categories.