I found it...I'm sorry about the double post, but I think this deserves a post by itself
Spent all night wracking my brains (And I think I was even dreaming about offsets and whatnot...), and when I got up in the morning, I found it within 5 minutes, it was staring me in the face.
Offsets 1397914 to 1397980 are the offsets for vehicle equip images. All I needed to do was search for the image numbers of bigveh.pcx/smallveh.pcx for each vehicle in order; Pheonix, Hoverbike, Interceptor, Hawk, Dimprobe, Biotrans, Explorer, Retaliator, Annihilator. Specifically, it would be
05 00 0A 00 04 00 0B 00 06 00 03 00 09 00 07 00 00 00
for the air vehicles. Thank God they didn't have the vehicles all lined up in order int he pcx, making the search easier, a blessing in disguise I suppose
Oh man, I'm so estatic.
Edit: Okay, here's a modified bigveh smalveh .pck/.tab, ready for you to modify with your own images. Main thing I did was modify the .tab files to allow for importing of additional images. Images 0-12 are still the default ones, 13-27 are open to use; they're biotrans in bigveh and random vehicles in smalveh, IIRC. Chuck it in your UFODATA, and modify your UFO2P to address them to see if it works. I'm still trying to figure out where the correct palette is so I can export and import in correct colours so I can manipulate them in Photoshop.
Edit2: Damn, this colour palette thing is hard to crack. So bigveh.pck/smalveh.pck takes its palette from the vehicle background image being used (should have known, I experienced this when I was mucking around with the agent background equip image), but I can't figure out how its mapped out.
Edit3: Sweet, I got the palette. Turns out the palette in the PCX files, when opened in Photoshop, are reversed. So this palette is for the vehicle icons, bigveh and smalveh. Colour tables are saved as .ACT files in photoshop, but are the same as the .PAL/.DAT files in the game.
The colour choice is a little limiting, and there are a whole bunch of colours not being used (All the magenta/purple and the few checkered ones at the end). We can
introduce more colours into the blocks not being used, but then we'd have to edit every vehicle background pcx file as well. Not that hard, but just more things to do.
Edit4: Some samples: default red Pheonix with colour table/palette applied, and a modified blue pheonix.
Edit5: Looks like the first colour block in the palette is mapped as the background colour. It's only for our personal viewing, but you can choose to map it to black if you want. As long as the background colour is the first colour in the palette, it will be transparent anyway (unless you have the vehicle selected in the equip screen; then it's just black), so I figure magenta is fine. It's used as the colour to represent transparent in some other formats as well anyway. Hope this helps you out with your Megapol conversion, let me know if you need any help with anything. At this point in time, I think my Photoshop skills are still better than my programming/hex skills.
Edited by KayDat, 08 March 2010 - 10:39 AM.