Large mod optimization

Questions

So I haven't had much time to do my own testing on this as I'm catching a flight tonight but I figured someone has to have run into this problem. How can you optimize mods with tons of images and still be able to use full size textures?

I started working recently on my biggest project so far. I'm making a Killer Bunnies mod and anyone familiar with the game knows this includes a hefty amount of cards. I currently have 8 main decks and 7 smaller ones for a total of around 500 cards. The problem is I can only load the save file with full sized textures unchecked otherwise the game crashes (I'm thinking from the memory limit of 32 bit applications as in this post.) While the game is playable, the cards look like trash and I spent a lot of time making sure each card was pretty. Is there anything I can do to get this runnable in its full glory or am I limited by TTS?

Can combining smaller decks into one template ease that memory down enough or should I just compromise and reduce the overall size of the images and re-upload? The card backs are png so perhaps converting to jpeg could help but this seems like a trivial amount of memory.

The scans are 300dpi and the average size of the sheet is 7000x7000 (I know this is over the recommended which is probably my problem)

Example Deck and Card Back if it would help.

Thanks for any help and suggestions I'll check back once I arrive tomorrow morning.

Posted Jun 27, 2015, 3:03 PM UTC

38
Knils•

7k x 7k is your problem by far. 4096x4096 is recommended deck size.

3
k2trf•

Have you tried loading them all in one main deck, then splitting them manually in the game (and saving it that way)?

This thread in that same post seems to have concluded that to be a possible fix, although that OP never reported back if it worked or not.

2
jo411OPPawn•

A few of the smaller decks do waste space like this one. I'll try combining them and using a back template to preserve the decks once I get back to my computer in a couple weeks.

1
aeneasfate•

Try importing the cardsheet more than once with a different cardback for each set and sort them out in-game. Likewise any duplicates should be copied in game instead of on the cardsheet. You probably want to save the unique back cardsheets for when you have a lot of cards with, well, unique backs.

2
DMJason•

Assuming you are using the deck builder to make your custom decks your problem is that the program saves them as ridiculously high quality jogs. Like 100 quality which is just retarded.

Open the jpg it generates in GIMP or Paint.net and re save the jpg with 60 quality. You can even get away with 30, but you might start to see slight artifacts then.

2
aeneasfate•

Probably better to export them as PNG if you're going to recompress to jpeg, that way you don't keep degrading the quality every time you modify and save.

Sadly optimizing your jpeg compression doesn't seem to matter as much since they use their own compression levels when you download them to cache in game, resulting in larger files. Unless that's changed recently.

1
GRANDMA_FISTER•

I don't know if all cards have to be present at all times but you can put them in sacks and they won't load until taken out.

1
DMJason•

Yeah I do export them as PNGs in case I want to modify them later, that's true. I'm POSITIVE that my JPG-60s load faster than the default exports. I've got a deck that's comprised of 512x512 cards that's 100K, loads right up when you pull it out of a bag. Before I killed the file size it crashed TTS when I tried to open it.

1