pattrstorage issue : json file ?
I have a strange issue here. In a project, I use pattrstorage to save datas from sliders, toggles,.. in a patch. It works perfectly fine on my laptop but on another computer (64 bits), Max/MSP keeps saving the file in .json format while I’m using xml.
Here is the kind of patch I’m using
----------begin_max5_patcher---------- 777.3ocyWt0aaCBEG+YWo9c.wdMKEvfsy1KaeKlTUUEIlkxjCNxlzltp8ceb w104RasSctToTDGv1+O+NvgCub8UAvo4qEkPv2.2BBBdwXIvYyZIn1P.bAe8 rLdoahPk3o7o+ANpZLsXs1YOUjwetwb9JclPqedov+1gS4p4Pvc0i+6bkVwW 3FE9yBIOq4QkoNilOxWIv1yuT9W27wjwnZ6pUKjJyWxoMRs0kb8rGjp42WHl o8BfvPlmBDhbMXeCw7+W0j4c4ks6kgcV+20WYaMMiNTB8HunwS0hR8tniuRm ajrt.rw36vP3nV+5KKw8ik32gkT5DK8hwcDkzZyEF2KuPTAuZ5E.Kyjohhp. UTyqodfaw24GCinf67iUEXFh.TSbXYgToAtHArmvMd3nKgQs.khY1lH7GQWz AygEhxR9bwtfvHFdVF.+NKE68xuivdYhGTtEi3jiwV42jPt0wCJfBQCGfXQj 1.J9L.nBAOEL9Fm3Dk2rzr027wtwlfa75EYCI3BGNv42yUwMRH8L.tmJjZwI hbzgibgnn1niQNdn6cNecEBEiL+gw6I6tMutceqA6feLuPHRedX2AyFvCAR7 o3hcTkXA4GTtRs4R9iBRkK7keYKUvVdQ8Iui70f3WHAfeukSZevz6MNhQD2a Ykb5Jsu5vMNrdVlTnzszZxH.yp0HhIhGmz93aOsauLIhYRHQGARvQ1YSNlmm OKKuT3J7bXKKcR+hynONSMIxEmiXmrpRafTVNO8HvnAsfHTaFcDqbupNz8kY 40JQ6RBiVf30brc1gCQg9Jqo9qr36DeV7395tg82cIzjOm65mGLSp14xrtOm cfsfPY9phY0dR0UMAs9foljjREWKyUslDdqY8fLMUn1XO9BY5xby0HpDRU5s 8FZ5r1h6h1tfklsBs9oMBaxXyAEjI9pInMcFDQOoShl1WQyLWHlYW.6tPRHC 6WNuQOhuwTmIqp2IziPGnGQRbaPa2aPT81H9MjM6rrxFStfE21gxKKwEdIKN VmRzG+oEm0fo4+PI22qA -----------end_max5_patcher-----------
Anybody face that before ?
Yeah, I had this issue awhile back. The default now is a json file. You can use the writexml command to force pattrstorage to write an xml file, or just change the file on your computer to a json file and be done with it.
The only thing that annoy me is that writexml opens a windows where you have to specify the name of the xml file. It seems like it doesn’t understand the path in the argument like "write" did.
I’ll have a look on how to do this with json files.
Thanks for your time
Also, is there a way to update Max/MSP for me to have json by default on both of my computer ? I can’t find this option :)
I’m not sure it is an "option" but just the way it is with the newer editions of Max. I think if a patcher was already using an XML it will continue to do so, but new ones will use json. As for the writexml command, you can specify the file and path name in the message and it won’t open the window. I do it all the time for preset files.