Author Topic: It's about freakin' time !!!  (Read 87410 times)

0 Members and 1 Guest are viewing this topic.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #45 on: July 18, 2009, 01:48:08 pm »
This has nothing to do with XML.

You'll see. This really is going to be good and useful.

Not just another pipe dream either!

Once again, this represents a real, useful utility for all laserists.

In case you haven't figured it out yet....

If you're not already using LaserBoy for something, you are missing out!

It does things that no other application can do!

James.  :)
« Last Edit: July 18, 2009, 01:56:53 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: It's about freakin' time !!!
« Reply #46 on: July 18, 2009, 04:38:34 pm »
XML is the hip way of representing data in text format these days.  Especially if you want to make it extensible and object oriented.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #47 on: July 18, 2009, 05:08:01 pm »
Just wait till you see it.

Saving data as formatted ASCII text is not exactly a new idea.

There are many examples of file formats that come from the *NIX world that are just that; plain text. As a matter of fact, that is the usual way of doing things.

The idea of obfuscating information in the form of pure binary came out of the "personal computing" community.

XML is text, but it's bloated nonsense for this purpose.

The idea is to make it as easy as possible to either write it by hand or generate it with code.

All we need is the data.

Formatted ASCII data will be the universal translation in-to and out-of ALL KINDS of applications.

You will be able to do things like use text search and replace to change every vertex of one color to another.

The utility of this new format will be limited only by your imagination for its use.

James.  :)

PS. Here's a 3D dodecahedron!

Code: [Select]
# This file was generated by LaserBoy! (LaserBoy 07-18-2009)
# http://akrobiz.com/laserboy
# txt file version : LaserBoy-txt-07-08-2009

frame xyz rgb short
    19103   -26293     6207     -1     -1     -1
    11806   -26293   -16249    255    255    255
   -11806   -26293   -16249    255    255    255
   -19103   -26293     6207     -1     -1     -1
   -30909    -6206    10042    255    255    255
   -30909     6206   -10042    255    255    255
   -19103    -6206   -26292    255    255    255
   -11806   -26293   -16249    255    255    255
   -19103   -26293     6207    255    255    255
        0   -26293    20086    255    255    255
    19103   -26293     6207    255    255    255
    30909    -6206    10042    255    255    255
    19103     6206    26292    255    255    255
        0    -6293    32499    255    255    255
        0   -26293    20086     -1     -1     -1
        0    -6293    32499    255    255    255
   -19103     6206    26292    255    255    255
   -30909    -6206    10042    255    255    255
   -30909     6206   -10042     -1     -1     -1
   -19103    26293    -6207    255    255    255
   -11806    26293    16249    255    255    255
   -19103     6206    26292    255    255    255
   -11806    26293    16249     -1     -1     -1
    11806    26293    16249    255    255    255
    19103    26293    -6207    255    255    255
    30909     6206   -10042    255    255    255
    19103    -6206   -26292    255    255    255
        0     6206   -32499    255    255    255
        0    26293   -20086    255    255    255
   -19103    26293    -6207    255    255    255
        0    26293   -20086     -1     -1     -1
    19103    26293    -6207    255    255    255
    11806    26293    16249     -1     -1     -1
    19103     6206    26292    255    255    255
    30909    -6206    10042     -1     -1     -1
    30909     6206   -10042    255    255    255
    19103    -6206   -26292     -1     -1     -1
    11806   -26293   -16249    255    255    255
   -19103    -6206   -26292     -1     -1     -1
        0     6206   -32499    255    255    255

« Last Edit: July 18, 2009, 05:12:40 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: It's about freakin' time !!!
« Reply #48 on: July 18, 2009, 05:21:27 pm »
If the idea is to make it as easy as possible to generate then XML is a better answer.  With a schema I can run a tool that will generate the code I need to put the file into object form.  Then with a couple lines of code I can read and write the data to the file.  No custom parsing required whatsoever.  Not only that but I can add my own data to your file without making the file unreadable by other peoples parsers.  You can't do that with just a CSV file.  Why invent a new file format?

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #49 on: July 18, 2009, 05:36:36 pm »
Take a look at the LaserBoy code.

You will see that I do not rely on much of anything but generic C++.

Yes, I use libSDL to get a pointer to an area of the display screen and to get the Unicode from the key that was just hit, but that's it!

EVERYTHING else is done in the code that you can read with your own eyes.

Quote
With a schema I can run a tool that will generate the code...

I don't have that stuff. I don't want that stuff. I'm not going to write any of that stuff myself. It has its place. But not here.

How hard is it to write an application that creates a set of vertex values in order and writes them out, one per line of text?

Quote
Why invent a new file format?

It's not really a new format. It is based heavily on the ILDA format, except it is in plain text and doesn't suffer from a legacy of being poorly designed and implemented.

Plus, I came up with it, so that makes it totally cool!  ;D

James.  :)
« Last Edit: July 18, 2009, 05:42:10 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: It's about freakin' time !!!
« Reply #50 on: July 18, 2009, 06:01:19 pm »
Well, I guess that is a jump from the early 1980s to the late 1980s at least. 

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #51 on: July 18, 2009, 06:03:06 pm »
Silly me! I keep using old-fashioned numbers and math.  %)

When will I ever learn?  ;D

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: It's about freakin' time !!!
« Reply #52 on: July 18, 2009, 06:41:54 pm »
Well, as long as it does what your "users" want you are golden.

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #53 on: July 18, 2009, 08:20:02 pm »
LaserBoy is good-for-nothing!

It even says so!  ;D

Code: [Select]
// LaserBoy is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: It's about freakin' time !!!
« Reply #54 on: July 19, 2009, 01:21:51 pm »
Woooooooo Hooooooooooo

I can now properly read palettes and tables and associate them with the correct frame data!

I'm almost done!

UPDATE:

I think I got it!  ;D

Must test!  %) ;)


James.  :)
« Last Edit: July 19, 2009, 02:38:22 pm by James »
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: It's about freakin' time !!!
« Reply #55 on: July 20, 2009, 02:34:06 pm »
well its plain text, it compresses nicely and opens up some doors in the expression evaluation arena as well...

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal