Save Format and Version Control

Requests or suggestions for new features
nikolaus
Posts: 18
Joined: 13 Feb 2013, 23:17

Save Format and Version Control

Postby nikolaus » 06 Mar 2013, 19:19

Would it be possible to allow saving in a text-based format that would work better for version control?
Most specifically, it would be really nice to see what's changed in a child script. More generally, it would be cool if the whole scene were represented textually.
Thanks!

ayberkozgur
Posts: 21
Joined: 28 Feb 2013, 15:51

Re: Save Format and Version Control

Postby ayberkozgur » 06 Mar 2013, 21:57

I too need this very much. It is really annoying to enter all model parameters in GUI boxes:D

coppelia
Site Admin
Posts: 6058
Joined: 14 Dec 2012, 00:25

Re: Save Format and Version Control

Postby coppelia » 06 Mar 2013, 22:19

I see the point.

We'll see what we can do in future!

Cheers

nikolaus
Posts: 18
Joined: 13 Feb 2013, 23:17

Re: Save Format and Version Control

Postby nikolaus » 07 Mar 2013, 00:03

Much appreciated! Thanks!

Prometheus87
Posts: 11
Joined: 02 Oct 2013, 15:33

Version Control

Postby Prometheus87 » 29 Oct 2015, 16:45

*push*
Some kind of version management, like svn keyword substituion would help us a lot. Especially into models!
I make various models for my company and partners. Currently, I attach an additional script to the object and write my version number into it. If this could be replaced by an svn substituion keyword, then it would be awesome.

For scenes or complete deliverables, I track the version in the name of scene itself. Not very pretty, however easy to use when talking to customers, partners or colleagues.
For scripts, I write also the version number into a commented line within itself.

And with the whole DNA thing, it gets really messy. It would be nice if there would be a shared, common solution for everything which needs version control.


Best regards
Prometheus

coppelia
Site Admin
Posts: 6058
Joined: 14 Dec 2012, 00:25

Re: Save Format and Version Control

Postby coppelia » 29 Oct 2015, 20:04

Hello,

you have several mechanisms that you can try: if a scene contains several identical instances of a same model, then save the model as a model, and load the various model instances programmatically, in the initialization phase of a non-threaded child script, and position them accordingly.

The other thing is related to scripts: instead of writing your code inside of the scripts, put following inside of all your scripts:

Code: Select all

local f = loadfile('myEmbeddedScriptCode.lua')
return f()


This way you can keep the things that often change (i.e. the code) completely separated from the scene file.
Additionally, the V-REP files are packed binaries, which makes parsing/comparing them difficult. You can disable packing (but they will still be binary) in the system/usrset.txt configuration file.

Cheers

ahundt
Posts: 103
Joined: 29 Jan 2015, 04:21

Re: Save Format and Version Control

Postby ahundt » 05 Dec 2015, 04:10

Related discussion on text based save file format:
viewtopic.php?f=7&t=2319


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 2 guests