Delgine 3D Tools & Content DeleD Community Edition
Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Breaking support for old style tags/properties

 
Post new topic   Reply to topic    DeleD Community Edition Forum Index -> DeleD Development
View previous topic :: View next topic  
Author Message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Wed Feb 03, 2010 1:34 pm    Post subject: Breaking support for old style tags/properties Reply with quote

Chronoszphere submitted a patch that will introduce an explicit key-value separator in the tags, instead of the "space" we currently use. In other words, it will allow spaces in ke/value pairs.

This is great, but will potentially break:
a) creating properties out of tags in scenes from older DeleD versions in the DeleD interface.
b) exporter plugins doing the same thing.

I know the only plugin affected by (b) is the Torque exporter, but I don't know about (a). Are people using this much in their scenes currently?

The DeleD policy for backwards compatibility is "when it's important, for as long as it's necessary". So gentlemen, your opinions please.
Back to top
View user's profile Send private message Visit poster's website
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Wed Feb 03, 2010 6:55 pm    Post subject: Reply with quote

We could delay this patch for a month or so, to let every plugin developer update their programs. Smile

Quote:

Chronoszphere


It's Chronozphere with a Z. *no worries* Wink
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Wed Feb 03, 2010 10:01 pm    Post subject: Re: Breaking support for old style tags/properties Reply with quote

Paul-Jan wrote:
Chronoszphere submitted a patch that will introduce an explicit key-value separator in the tags, instead of the "space" we currently use. In other words, it will allow spaces in ke/value pairs.

This is great, but will potentially break:
a) creating properties out of tags in scenes from older DeleD versions in the DeleD interface.
b) exporter plugins doing the same thing.

I know the only plugin affected by (b) is the Torque exporter, but I don't know about (a). Are people using this much in their scenes currently?

The DeleD policy for backwards compatibility is "when it's important, for as long as it's necessary". So gentlemen, your opinions please.


Can you give an example of this type of change?

I'm not completely sure what you mean to be honest! LOL

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Wed Feb 03, 2010 10:08 pm    Post subject: Reply with quote

The thing that has changed is that names and values inside a "tags" section are now separated by an "=" and that name-value-pairs are separated by ";". Before this patch, names and values were separated by " " and the pairs were separated by "|".

This has some implications on the plugins as some may rely on tags. After this patch, some of them may not work because they parse the tags using the old separators. Smile
Back to top
View user's profile Send private message
paul_nicholls
DeleD PRO user


Joined: 05 Dec 2007
Posts: 356
Location: Hobart, Tasmania, Australia

PostPosted: Wed Feb 03, 2010 10:27 pm    Post subject: Reply with quote

chronozphere wrote:
The thing that has changed is that names and values inside a "tags" section are now separated by an "=" and that name-value-pairs are separated by ";". Before this patch, names and values were separated by " " and the pairs were separated by "|".

This has some implications on the plugins as some may rely on tags. After this patch, some of them may not work because they parse the tags using the old separators. Smile


ok, thanks...that is clear enough Smile

cheers,
Paul
_________________
Long live DeleD!

Hi ho...hi ho...it's off 3d modeling I go...
Back to top
View user's profile Send private message
trucker2000
DeleD PRO user


Joined: 11 May 2005
Posts: 1839
Location: Sacramento, California

PostPosted: Wed Feb 03, 2010 11:01 pm    Post subject: Reply with quote

I haven't used the tags in the torque exporter in ages. The only thing I remember it was used for were portals. (which can be added inside torque now from within the editor)
_________________
Some day I will grow up and be a real modeler.
"Never give up! Never surrender!!"
Sys specs:
asus
8 gigs ram
Invidia gtx560 video card
Windows 8 (worst op sys Ever)
Back to top
View user's profile Send private message Visit poster's website
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Thu Feb 04, 2010 8:18 am    Post subject: Reply with quote

NashaUV does not rely on tags.

However, the plugins for my Tuberunner game do. But I can easily update these. Smile
Back to top
View user's profile Send private message
Paul-Jan
Site Admin


Joined: 08 Aug 2004
Posts: 3066
Location: Lage Zwaluwe

PostPosted: Thu Feb 04, 2010 9:53 am    Post subject: Reply with quote

[quote]It's Chronozphere with a Z[/quoe]

Ah yeah I blame my left hand Embarassed.

I like your suggestion of delaying it for a month. We'll announce it at some proper place.
Back to top
View user's profile Send private message Visit poster's website
Grandmaster B
DeleD PRO user


Joined: 03 Jul 2007
Posts: 218

PostPosted: Wed Feb 17, 2010 11:45 pm    Post subject: Reply with quote

Its probably better to have a "=" seperating the key and value. But please lets discuss the tag seperating symbol. I find both ";" and "|" not ideal, they both break the possibility to use scripting in tags.

For example this tag:
OnReady=function(in){g_Ready=1;}

Or this:
OnStateClose=function(in){g_State|=CLOSE;}

Maybe a more exotic symbol may fit better. I can only think of "@" for now. Or maybe two symbols like "@@".
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Thu Feb 18, 2010 9:47 am    Post subject: Reply with quote

Well, if you want to include scripting in tags, I suggest you use some kind of character escaping scheme. A scripting language "might" also use @ or @@.

We should discuss this separating character indeed. Maybe make it customizable. Smile
Back to top
View user's profile Send private message
Grandmaster B
DeleD PRO user


Joined: 03 Jul 2007
Posts: 218

PostPosted: Thu Feb 18, 2010 6:11 pm    Post subject: Reply with quote

A scripting language might use any existing character but i know no existing language that use the "@" symbol, thats why i suggested it. It its used by javadoc but that is extremly unlikely to be used in the tags.

Using escape sequences in the value is the thing that should be avoided and it does not work anyway.

A customizable symbol isnt a good style and it must be a scene property then. Using a fixed character sequence for the tag delimiter is the way to go in my opinion. Wink
Back to top
View user's profile Send private message
chronozphere
DeleD PRO user


Joined: 20 Jun 2006
Posts: 1010
Location: Netherlands

PostPosted: Thu Feb 18, 2010 6:27 pm    Post subject: Reply with quote

Quote:

it must be a scene property then


Good point! If it's ever made customizable, it must be a scene property. Smile

We could also fit the tags in an XML name-value kind of structure, but that'd become very bloated. Confused
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DeleD Community Edition Forum Index -> DeleD Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum