Author Topic: RLE in Axe  (Read 5041 times)

0 Members and 1 Guest are viewing this topic.

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
RLE in Axe
« on: December 07, 2010, 06:38:35 pm »
Does anyone have, or can anyone help with routines that will compress tilemap data into RLE, and decompress it into regular hex for maps.

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: RLE in Axe
« Reply #1 on: December 07, 2010, 06:39:24 pm »
the routines can be found as links in this thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.
« Last Edit: December 07, 2010, 06:40:03 pm by nemo »


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: RLE in Axe
« Reply #2 on: December 07, 2010, 06:41:31 pm »
the routines can be found as links in this thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.

0.25 you mean :S

Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: RLE in Axe
« Reply #3 on: December 07, 2010, 06:41:52 pm »
thanks nemo. did u get my pm?

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: RLE in Axe
« Reply #4 on: December 07, 2010, 06:44:20 pm »
the routines can be found as links in this thread. by yours truly (: but mind you, they can be optimized severely, they were written with axe 2.5 or so.

0.25 you mean :S

I think he's using floating point notation ;)
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: RLE in Axe
« Reply #5 on: December 07, 2010, 06:45:18 pm »
i did, but i am unsure how to implement it right now. and i don't know how to implement bresenham's line algorithm soo i may have issues


Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: RLE in Axe
« Reply #6 on: December 07, 2010, 06:51:07 pm »
I understand everything except assigning a size byte to the output file on a compression? How would I do that when the output file could be any size?

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: RLE in Axe
« Reply #7 on: December 07, 2010, 07:25:34 pm »
I understand everything except assigning a size byte to the output file on a compression? How would I do that when the output file could be any size?

i'm pretty sure there's a counter variable in there somewhere... it might be C (i generally use it for counters), so GetCalc("Str#",C*2) may work at the end. if that doesn't work i'll modify it
« Last Edit: December 07, 2010, 07:25:53 pm by nemo »