aliens

Author Topic: Import of old graphics set.  (Read 7954 times)

Offline Munkeylord

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Import of old graphics set.
« on: November 13, 2012, 08:39:01 pm »
I have run into problems trying to import some old graphic sets into openxcom. I've simply copied them over from their original working state to their specified areas and run into graphical issues, both with individual bigobs and compile bigobs. I've even gone as far as using pck_view (dos version) to extract and re-image. still same results. though not everything is broken. some images are in their proper places. The only thing i have not tried yet is recompiling using bb's tools. though im still bugging him on how it even works since i can't get it to run on my machine either. figures.  any suggestions?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: Import of old graphics set.
« Reply #1 on: November 13, 2012, 09:07:36 pm »
1: open a command prompt
2: navigate to your xcom working folder (the folder that contains bb's modpack)
3: navigate to the bb_tact folder
4: run something along the lines of "pck2gif c:\path\to\xcom\UNITS\bigobs"
or copy bigobs.pck and bigobs.tab to the bb_tact folder and run
"pck2gif bigobs"
this will unpack the contents of the bigobs file to bb_tact\bigobs\
from here you can edit any files you need to, and if you want to add more files, use the same naming convention as what is laid out already.
5: after modifying/adding all the textures that you want, run "gif2pck bigobs"
this will re-pack the .pck file and update the index of the .tab file
6: copy the newly remade bigobs.pck and bigobs.tab to the \xcom\UNITS\ folder, and hey presto! you have your graphics available in-game.

the same method can be applied to just about any of the game's resource files, though some may require renaming (for example from .spk to .pck in rare cases)

note, that they will not show up unless there is a reference to them defined in the ruleset.
the numbers in the rulesets are NOT specific references to indexes in the PCKs, they are OFFSETS, so for example, if you wanted to make a new craft, you would need to use sprite offset 22 for the first available slot in the basebits, which would refer to the index basebits_54 (craft sprites start at 33 ) or to get to the same sprite as a base interior, you'd need to use offset 55, as they enumerate from the FIRST indexed position (0).

you may also need to pad files with blank entries, using craft as an example again, with a craft using sprite offset 22 (sprite 54 in basebits) you will need to pad the inticons.pck with 5 blank entries (i would use these slots for weapon icons), then the "minimized interception icon"(sprite 21 in inticons), then 10 more blank entries, then the "maximized interception icon"(sprite 32 in inticons). as you can see, this limits us to a maximum of 11 additional craft in a given mod, unless we use external pck files.

actually, scratch the limit. we'd just need to alternate between minimized and maximized icons every 11 files.
hope all this ranting helps.
« Last Edit: November 13, 2012, 09:18:56 pm by Warboy1982 »

Offline Munkeylord

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Import of old graphics set.
« Reply #2 on: November 13, 2012, 10:18:34 pm »
oh, durr. i was freaking using dosbox...anyways, carry on. I'll post again when i run into another self created brick wall.

Offline Munkeylord

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Import of old graphics set.
« Reply #3 on: November 16, 2012, 02:47:50 am »