Many thanks, Moriarty! I can't say it works perfectly, as I'm getting weird critical exceptions, but it's a big progress.
Now let's make some stuff.
![Wink ;)](https://openxcom.org/forum/Smileys/default/wink.gif)
EDIT
Now I have another question - sorry if it's silly, but it's my first time modding X-Com. I'm making a custom minigun for fun now and it works fine... However, the palette is broken in Ufopedia while in the battlescape inventory picture it is not.
Battlescape pic (correct):
![](https://i200.photobucket.com/albums/aa43/SolariusScorch/Modding/screen001.jpg)
Ufopedia pic (broken):
![](https://i200.photobucket.com/albums/aa43/SolariusScorch/Modding/screen000.jpg)
Seeing as it's the same picture that is used in both places, I don't know why this happens. Help, please?