Home › Forums › Programming › Saving and Sharing Configurations
- This topic has 6 replies, 2 voices, and was last updated 6 years, 8 months ago by
Luke224.
-
AuthorPosts
-
2019-03-13 at 4:45 pm #12676
Luke224
ParticipantHi, i have the save state puzzle working. What i would like to be able to do is allow someone to share that saved state with someone say on Facebook look at my build etc. Also as an added bonus be able to see your saved builds in my account page on WordPress or something along those lines. Does anyone know if its possible and if so some general guidance on how to do it would be great. Thanks A lot
2019-03-14 at 3:50 pm #12770
Alexander KovelenovStaffHi!
You need to encode your state in the dictionary manually, send this dictionary to the server with the “send data” puzzle and encode the URL/ID of this state in the application URL.It may sound a bit complicated, that’s why please check out the Custom Image demo in the recent Verge3D builds and use it as an example.
2019-03-15 at 10:30 am #12813Luke224
ParticipantHi Alexander, Thanks for the reply. That makes sense. Cant find the example you are referring too?
2019-03-15 at 1:28 pm #12816
Alexander KovelenovStaff2019-03-16 at 10:06 am #12833Luke224
ParticipantAh yes, i sort of understand the process of this puzzle. Struggling to find a way to assign it to my puzzle though. Is there a simple way of me being able to encode the url based on the saved state of the objects. I have around 50 Objects.
Example when clicked “save” save state of variables then encode url variable which when shared will load the state of the objects
2019-03-17 at 9:37 am #12855
Alexander KovelenovStaffWith 50 objects URL encoding won’t be a perfect way to store data due to size limitations imposed by the web browsers. So you might want to store your data on the server and encode ID/URL to that data instead. I believe using dictionary puzzles is the perfect way to encode your data.
For example, you can store per-object data in the dictionaries and then push them to the array. Then this array can be uploaded to the server for persistent storage and retrieved by ID/URL.2019-03-17 at 1:27 pm #12858Luke224
ParticipantHi alexander, thanks for the continued support. Im not too sure how i would do that with puzzles could you possibly show an example of this
-
AuthorPosts
- You must be logged in to reply to this topic.
