Forums > MaxMSP

pattrstorage issue : json file ?

July 5, 2011 | 1:53 pm

Hello,
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

– Pasted Max Patch, click to expand. –

Anybody face that before ?
frenchie.


July 5, 2011 | 2:25 pm

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.


July 5, 2011 | 2:31 pm

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


July 5, 2011 | 2:34 pm

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 :)


July 5, 2011 | 3:47 pm

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.


Viewing 5 posts - 1 through 5 (of 5 total)