Author Topic: 8 by 8 sprite image from url  (Read 20818 times)

0 Members and 1 Guest are viewing this topic.

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #15 on: September 30, 2013, 03:27:22 pm »
I will not blacklist certain codes. That will just put more load on the server when every time an image gets requested it needs to compare it to a database table. My site cannot get blocked since these images are not stored. They are generated every time someone loads it in a page.

Just made an 7+1*8 font. Don't rely on the current host yet though. As I stated earlier: it will probably be moved from this host to my own server pretty soon.




[7CC6C6C6FEC6C6C6] A
[FCC6C6C4FEC6C6FC] B
[7CE6C2C0C0C2E67C] C
[FCC6C6C6C6C6C6FC] D
[FCC0C0C0F8C0C0FC] E
[FCC0C0C0F8C0C0C0] F
[7CC6C6C0DEC6C67C] G
[C6C6C6FEFEC6C6C6] H
[7830303030303078] I
[7C18181818D8D870] J
[C6CCD8F0F8DCCEC6] K
[C0C0C0C0C0C0C0FC] L
[C6EED6D6C6C6C6C6] M
[C6E6E6D6D6CECEC6] N
[7CC6C6C6C6C6C67C] O
[FCC6C6C6FCC0C0C0] P
[78CCCCC4C8CEC678] Q
[FCC6C6C6FCD8C6C6] R
[7CC6C0FC3E06C67C] S
[FC30303030303030] T
[C6C6C6C6C6C6FE7E] U
[C6C6C6C6C6EE7C38] V
[C6C6C6D6D6EEEEC6] W
[C6C66C38386CC6C6] X
[C6C6C67E1C3870E0] Y
[FEFE061C70C0FEFE] Z

Spoiler For Spoiler:
Sure, you can use it with AXE programs!
Code: [Select]
[7CC6C6C6FEC6C6C6]
[FCC6C6C4FEC6C6FC]
[7CE6C2C0C0C2E67C]
[FCC6C6C6C6C6C6FC]
[FCC0C0C0F8C0C0FC]
[FCC0C0C0F8C0C0C0]
[7CC6C6C0DEC6C67C]
[C6C6C6FEFEC6C6C6]
[7830303030303078]
[7C18181818D8D870]
[C6CCD8F0F8DCCEC6]
[C0C0C0C0C0C0C0FC]
[C6EED6D6C6C6C6C6]
[C6E6E6D6D6CECEC6]
[7CC6C6C6C6C6C67C]
[FCC6C6C6FCC0C0C0]
[78CCCCC4C8CEC678]
[FCC6C6C6FCD8C6C6]
[7CC6C0FC3E06C67C]
[FC30303030303030]
[C6C6C6C6C6C6FE7E]
[C6C6C6C6C6EE7C38]
[C6C6C6D6D6EEEEC6]
[C6C66C38386CC6C6]
[C6C6C67E1C3870E0]
[FEFE061C70C0FEFE]
« Last Edit: November 05, 2013, 09:47:42 am by Keoni29 »
If you like my work: why not give me an internet?








Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: 8 by 8 sprite image from url
« Reply #16 on: September 30, 2013, 05:12:22 pm »
Yay a font :3

Will you make numbers too?

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: 8 by 8 sprite image from url
« Reply #17 on: September 30, 2013, 05:14:23 pm »
*and lowercase letters? :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #18 on: September 30, 2013, 06:24:36 pm »
Noticed some characters do not display correctly. There might be something wrong with the hex conversion. It's maybe because it overflows.
« Last Edit: September 30, 2013, 06:26:29 pm by Keoni29 »
If you like my work: why not give me an internet?








Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: 8 by 8 sprite image from url
« Reply #19 on: October 01, 2013, 08:43:24 am »
Yeah, I noticed the issue, too. I made it so that my characters were 7x7 to avoid the issue, but what is your code for converting the hex? If data is the 64-bit data and a holds the value of the current character:

(in Python code)
Code: [Select]
if a>64:
    a=a-7
data=(data<<4)-48+a
Just iterate that through each hex digit and overflow shouldn't be a problem. (this also requires that data be a 64-bit unsigned int).

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #20 on: October 01, 2013, 03:17:23 pm »
Maybe php uses signed 64 bit signed values and that is the issue. I might have to split the hex string up and go from there.
If you like my work: why not give me an internet?








Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #21 on: November 02, 2013, 02:36:42 pm »
I just fixed it by cutting the hex string down into 2 digit chunks. It should display every sprite properly now! I will add 16*16 and grayscale too when I find the time.
If you like my work: why not give me an internet?








Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: 8 by 8 sprite image from url
« Reply #22 on: November 05, 2013, 12:11:57 am »
What about xLIBC palette when tr1p1ea implements individual sprites? (see http://dcs.cemetech.net/index.php/DCSE:BasicLibs:DrawShape#Color_Values for it)
« Last Edit: November 05, 2013, 12:12:32 am by DJ Omnimaga »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #23 on: November 05, 2013, 03:13:07 am »
DJ, will those sprites be 8 bit per pixel or rather 3 or 4 bit with palettes?
« Last Edit: November 05, 2013, 03:13:23 am by Keoni29 »
If you like my work: why not give me an internet?








Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: 8 by 8 sprite image from url
« Reply #24 on: November 05, 2013, 10:27:10 am »
Xlib sprites for the color model are 8x8 sprites that are 256 colors, using a custom palette linked above, so 8 bits per pixel.

I think that there's also a Celtic lib included that supports 16x16 sprites that are 4 bit per pixels and use the TI-OS palette.

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: 8 by 8 sprite image from url
« Reply #25 on: November 27, 2013, 05:01:35 am »
I'm developping a bot, EiyoBot these times.
When you can see it, you can use the @sprite [hex][hex]... to get the links to the image version of your sprites. and yup, it messes withv runerbot, but atm it's total WIP.
« Last Edit: November 27, 2013, 05:01:49 am by Eiyeron »

Offline Keoni29

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2466
  • Rating: +291/-16
    • View Profile
    • My electronics projects at 8times8
Re: 8 by 8 sprite image from url
« Reply #26 on: November 27, 2013, 05:14:58 am »
Cool! Good luck with your project. I will add features to the sprite generator when I have some more spare time on my hands.
If you like my work: why not give me an internet?








Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: 8 by 8 sprite image from url
« Reply #27 on: November 27, 2013, 05:15:38 am »
Be sure to send them to me to see if they are useful!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: 8 by 8 sprite image from url
« Reply #28 on: November 27, 2013, 08:22:17 am »
You could have the trigger char be soemthing else, to have it be like
!sprite

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Eiyeron

  • Urist McEiyolobster
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1430
  • Rating: +130/-10
  • (-_(//));
    • View Profile
    • Rétro-Actif : Rétro/Prog/Blog
Re: 8 by 8 sprite image from url
« Reply #29 on: November 27, 2013, 11:35:22 am »
The problem is having the same command doing two different thing... @sprArr? Sprite Array?