View previous topic :: View next topic |
Author |
Message |
Paul-Jan Site Admin
![](http://www.delgine.com/images/pjAvatar.gif)
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Wed Feb 03, 2010 1:34 pm Post subject: Breaking support for old style tags/properties |
|
|
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 |
|
![](templates/Delgine/images/spacer.gif) |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Wed Feb 03, 2010 6:55 pm Post subject: |
|
|
We could delay this patch for a month or so, to let every plugin developer update their programs.
It's Chronozphere with a Z. *no worries* ![Wink](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
paul_nicholls DeleD PRO user
![](http://fpc4gp2x.eonclash.com/downloads/avatar_small.png)
Joined: 05 Dec 2007 Posts: 356 Location: Hobart, Tasmania, Australia
|
Posted: Wed Feb 03, 2010 10:01 pm Post subject: Re: Breaking support for old style tags/properties |
|
|
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 |
|
![](templates/Delgine/images/spacer.gif) |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Wed Feb 03, 2010 10:08 pm Post subject: |
|
|
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](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
paul_nicholls DeleD PRO user
![](http://fpc4gp2x.eonclash.com/downloads/avatar_small.png)
Joined: 05 Dec 2007 Posts: 356 Location: Hobart, Tasmania, Australia
|
Posted: Wed Feb 03, 2010 10:27 pm Post subject: |
|
|
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](images/smiles/icon_smile.gif) |
ok, thanks...that is clear enough
cheers,
Paul _________________ Long live DeleD!
Hi ho...hi ho...it's off 3d modeling I go... |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
trucker2000 DeleD PRO user
![](http://www.trucker2000.net/Avatar/stamplogo64.jpg)
Joined: 11 May 2005 Posts: 1839 Location: Sacramento, California
|
Posted: Wed Feb 03, 2010 11:01 pm Post subject: |
|
|
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 |
|
![](templates/Delgine/images/spacer.gif) |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Thu Feb 04, 2010 8:18 am Post subject: |
|
|
NashaUV does not rely on tags.
However, the plugins for my Tuberunner game do. But I can easily update these. ![Smile](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
Paul-Jan Site Admin
![](http://www.delgine.com/images/pjAvatar.gif)
Joined: 08 Aug 2004 Posts: 3066 Location: Lage Zwaluwe
|
Posted: Thu Feb 04, 2010 9:53 am Post subject: |
|
|
[quote]It's Chronozphere with a Z[/quoe]
Ah yeah I blame my left hand .
I like your suggestion of delaying it for a month. We'll announce it at some proper place. |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
Grandmaster B DeleD PRO user
![](http://odagames.de/odiava.png)
Joined: 03 Jul 2007 Posts: 218
|
Posted: Wed Feb 17, 2010 11:45 pm Post subject: |
|
|
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 |
|
![](templates/Delgine/images/spacer.gif) |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Thu Feb 18, 2010 9:47 am Post subject: |
|
|
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](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
Grandmaster B DeleD PRO user
![](http://odagames.de/odiava.png)
Joined: 03 Jul 2007 Posts: 218
|
Posted: Thu Feb 18, 2010 6:11 pm Post subject: |
|
|
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](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
chronozphere DeleD PRO user
Joined: 20 Jun 2006 Posts: 1010 Location: Netherlands
|
Posted: Thu Feb 18, 2010 6:27 pm Post subject: |
|
|
Quote: |
it must be a scene property then
|
Good point! If it's ever made customizable, it must be a scene property.
We could also fit the tags in an XML name-value kind of structure, but that'd become very bloated. ![Confused](images/smiles/icon_confused.gif) |
|
Back to top |
|
![](templates/Delgine/images/spacer.gif) |
|