Creating custom image on-the-fly

strstrep

Chieftain
Joined
Feb 12, 2010
Messages
16
Hi, I'm working on a mod, and I'm wondering if there's some way to create an image on-the-fly within the game to display within the UI.

Any thoughts?
 
edit: Moderator Action: thread moved as asked :)


And what kind of image do you want to create ?
 
I'm thinking of creating a mod kind of like "advanced combat odds" for Civ IV, but as both sides can get damaged, the plan is to make a 2D heatmap-type image to visualize the probability of each damage combination.
 
For what it's worth, the dds files are loaded on-the-fly. There is some function called "UnloadTexture" (or something like that) that may be needed.

Gimp can be called from other programs to make your dds. Or if you understand dds format, perhaps you could construct it from scratch. Lua is sandboxed so you can't use it for IO. But I guess this should be possible from dll.
 
For what it's worth, the dds files are loaded on-the-fly. There is some function called "UnloadTexture" (or something like that) that may be needed.

Gimp can be called from other programs to make your dds. Or if you understand dds format, perhaps you could construct it from scratch. Lua is sandboxed so you can't use it for IO. But I guess this should be possible from dll.

I'll never understand why they just didn't sandbox the I/O functions instead.
 
Back
Top Bottom