Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2]

Author Topic: CMV to GIF  (Read 8441 times)

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: CMV to GIF
« Reply #15 on: June 20, 2015, 12:14:15 pm »

The reverse? What, turn a GIF into a CMV? Not currently, but it should be possible, but that would be a lot of extra work.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: CMV to GIF
« Reply #16 on: June 20, 2015, 11:25:09 pm »

Yeah, it wasn't a serious suggestion, though it was something I've thought about.
Logged

DrCyano

  • Bay Watcher
  • For !!SCIENCE!!
    • View Profile
Re: CMV to GIF
« Reply #17 on: April 07, 2019, 08:36:51 am »

I found a bug that was preventing CMVtoGIF from working with non-square tilesets. I fixed it by changing lines 111-120 in main.go to:
Code: [Select]
tileH = (bounds.Max.Y - bounds.Min.Y) / 16
tileW = (bounds.Max.X - bounds.Min.X) / 16
fmt.Println("Tileset is ", tileW, "x", tileH)


// Generate tile positions.
var tiles [256]image.Point
for i := 0; i < 256; i++ {
tiles[i] = image.Pt((i % 16) * tileW, (i / 16) * tileH)
}

Essentially, the problem was that the width and height were used inconsistently between slicing the image into tiles and reading the tiles into the tile array.

Great program, BTW! *thumbs up*
Logged


A mad scientist necromancer, a peasant with a dream, a secret message inscribed on a gem, a giant bridge.
Come witness the Saga of the Puzzling Sea!
A documented Dwarf Fortress v0.47.xx game combining Fort Mode and Adventure Mode.

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: CMV to GIF
« Reply #18 on: April 23, 2019, 10:56:15 pm »

Wow, I had almost forgot this existed. I'm not sure how that bug was never found previously, but thank you for reporting it!

I threw together a build with the fix and uploaded it to DFFD.
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS
Pages: 1 [2]