Pages: 1
  Print  
Author Topic: Timeline Reader/Writer, lgmplugin  (Read 4458 times)
Offline (Unknown gender) sorlok_reaves
Posted on: January 23, 2014, 01:50:54 am
Contributor
Joined: Dec 2013
Posts: 260

View Profile
Hello all,

Not sure exactly where this post should go, since the lgmplugin is halfway between Enigma and LGM. Anyway...

This code is commented out in lgmplugin's EFileWriter: (and similar code in Reader)

Code: [Select]
// writers.put(Timeline.class,new TimelineIO());
I figure that I can write a timeline reader/write pretty easily (after all, Timelines parse from GM into LGM properly), but just wanted to check here first to see if there are any "gotchyas" ---any reason those lines were commented out in the first place.

Also, are there any best practices for data formats? E.g., is there already a Timeline file format that I should follow?

Thanks~
Logged
Offline (Male) Goombert
Reply #1 Posted on: January 23, 2014, 01:54:23 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
https://github.com/enigma-dev/lgmplugin/issues/3

I would have done it by now too, but the format for timelines was never agreed upon. Objects are already binary, and I didn't want to write timelines the same way, because I don't even think objects should be. Since EGM is a ZIP compressed format anyway, there is no sense in having objects or timelines compressed in a manner that is hard to easily edit them in a text file editor.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) sorlok_reaves
Reply #2 Posted on: January 23, 2014, 04:31:58 pm
Contributor
Joined: Dec 2013
Posts: 260

View Profile
https://github.com/enigma-dev/lgmplugin/issues/3

I would have done it by now too, but the format for timelines was never agreed upon. Objects are already binary, and I didn't want to write timelines the same way, because I don't even think objects should be. Since EGM is a ZIP compressed format anyway, there is no sense in having objects or timelines compressed in a manner that is hard to easily edit them in a text file editor.

Oh, that kinda sucks. Well, upon further investigation, it seems that Timelines don't actually do anything in the code (action_set_timeline is nowhere to be seen), so perhaps I'll work on that while I wait for a format agreement.
Logged
Offline (Male) Goombert
Reply #3 Posted on: January 23, 2014, 04:35:11 pm

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 2993

View Profile
Yes the issue there is they need a way of being written by the compiler and compiled, the moments I believe have to link with objects like scripts, I don't know much about it, but yes at the current moment we don't support timelines at all. Josh needs to figure all that out, I think it's better to just wait for his new compiler really, timelines aren't a pressing issue really.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Pages: 1
  Print