Jump to content




The HLTI Format (Haddock's Lua Table Image Format)

media

  • You cannot reply to this topic
5 replies to this topic

#1 HaddockDev

  • Members
  • 61 posts
  • LocationSomewhere, deep down under a rainbow.

Posted 23 October 2016 - 08:49 PM

Well, my internet went out so I don't have a full post, but I will be updating it.

Meet HLTI.

HLTI is a format that I've been working on for a bit, and it is 100% a good idea! (not)
Remember the title? Remember how it mentioned Lua tables? Remember how it mentioned image format?
Yeah, do the math. What comes out? One giant file full of Lua tables.

This is currently VERY SLOW, and VERY UNOPTIMIZED! If your converting a image from paint to HLTI,
  • It takes a minute to convert from paint in an emulator :(
  • It makes a 80 kilobyte file if you don't specify the width and height when your converting from paint (even more when your running it on a monitor, as without width and height it uses the screen width and height) And when I say big, I mean big.
  • It has to do everything, ONE BY ONE! Every pixel in paint is 6 lines in a Lua table. Brackets and all (4 lines without counting brackets) So that means it just crawls through the conversion process. A lua table contains the X, Y, the Type (only color at the moment), and the Color which is under BackgroundColor.
tl;dr nothing to jump up and down in excitement about
Screenies

How do I get this? Via pastebin, of course!
HLTIView (view images) pastebin get gyGhgsxM hltiview
HLTIPaint (convert paint to HLTI) pastebin get kDe9nFRf hltipaint

How do I incorporate this into my program(s)?
There is currently no API. I am working on one at the moment to make your lives easier. Technically there is one (look at the programs i've provided) but you need to get this working yourself.

But whenever I do release this, please just give credit and I won't complain.

Edited by Haddock, 23 October 2016 - 09:14 PM.


#2 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 23 October 2016 - 08:53 PM

So this basically is like the normal paint format, but a lot bigger and slower? I get that it might've been a nice learning experience but are there any advantages over using the standard, or another image format?

#3 HaddockDev

  • Members
  • 61 posts
  • LocationSomewhere, deep down under a rainbow.

Posted 23 October 2016 - 09:01 PM

View PostH4X0RZ, on 23 October 2016 - 08:53 PM, said:

So this basically is like the normal paint format, but a lot bigger and slower? I get that it might've been a nice learning experience but are there any advantages over using the standard, or another image format?
Well, not really. You do have flexibility (lets say, I add text for example) but a huge disadvantage is that if somebody makes another variant of this, viewers cannot use the new variant because they have a viewer that doesn't support it. It was mainly just a lil "make me better at lua" project more than anything.

Lets say user Bob creates a variant of this that allows use of Lua scripts.
Bob posts his image, saying its a game, providing proof and all that jazz.
People download the image, view it with a non supported viewer, and well they go back to the thread to complain.
Bob then says you need a custom viewer.
People download the viewer, and they get to play their game.

Edited by Haddock, 23 October 2016 - 09:06 PM.


#4 CrazedProgrammer

  • Members
  • 495 posts
  • LocationWageningen, The Netherlands

Posted 23 October 2016 - 11:39 PM

Great satire.

#5 Lupus590

  • Members
  • 2,028 posts
  • LocationUK

Posted 24 October 2016 - 07:28 AM

View PostHaddock, on 23 October 2016 - 09:01 PM, said:

Lets say user Bob creates a variant of this that allows use of Lua scripts.
Bob posts his image, saying its a game, providing proof and all that jazz.
People download the image, view it with a non supported viewer, and well they go back to the thread to complain.
Bob then says you need a custom viewer.
People download the viewer, and they get to play their game.

Bob should have written on his thread that everyone would need the special viewer on his thread before people complained. Perhaps Bob should have read my tutorial on writing a good post for your program? [/shameless_plug]

#6 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 24 October 2016 - 12:37 PM

This format seems a lot like the format I use for PAIN, but not as optimized. And the PAIN format is already not very optimized.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users