Unofficial PAPA file format

Discussion in 'Mod Support' started by LennardF1989, June 4, 2013.

  1. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,323
    Who's awesome? You're awesome :D
  2. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    Heh
    itsme.png

    I'm a nebula!
  3. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Sweet :) Time to convert some png's :)
  4. Dementiurge

    Dementiurge Post Master General

    Messages:
    1,094
    Likes Received:
    693
    I will be expecting nude Delta commander skins by morning. Fantasticness ahoy!
    cptconundrum likes this.
  5. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    Oh, hmm. I went a bit further with my proof of concept code and made it load arbitrary files. It looks like I just got lucky picking the skybox papa's. Those are stored in "TF_A8R8G8B8" according to papadump (which is kind of weird, since I load them as R8G8B8A8. Oh well.). It seems there are other formats called "TF_DXT5" and "TF_DXT1" too. Those are probably these:
    https://en.wikipedia.org/wiki/S3_Texture_Compression

    That doesn't seem to be to hard to implement. So maybe I'll have a texture viewer (and writer?) done over the weekend. Not sure what the purpose would be since it would most likely be more useful to have it in the Blender import tool. But I don't know Blender so well and I'm having fun, so there. :)
    LavaSnake and cwarner7264 like this.
  6. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Meanwhile, over in WrongCat's house...

    [​IMG]
  7. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This would be good for making new skyboxes, right? People have been asking Uber for them, but it seems like a great area for the community to contribute something and take the work off the devs.
  8. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    Yeah, that's true. The image I posted above is in fact my new default skybox. :)
    cptconundrum likes this.
  9. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    What size image do you need to work with that?
  10. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    Well, the textures in "media/pa/terrain/sky/textures" for skybox_01 are all 1024 x 1024. There are seven of them, but one of them is called "ref". I'm not sure what that one does. Probably for reference. :)
    Anyway, you have six 1024 x 1024 textures for the whole skybox cube. I just plunked my avatar on top of one and saved it.
  11. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
    Oh hells yes. Subtle in-game clan plugs here we come.

    EDIT:

    Also this: http://i.imgur.com/Entxsw6.jpg
    Raevn and cptconundrum like this.
  12. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    LavaSnake likes this.
  13. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    You can already theme the start screen, silly. :)
    introscreen.png
    Just shadow media/ui/alpha/start/img/img_start_bground_sample.jpg
    cptconundrum and cwarner7264 like this.
  14. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Great! Another thing to add to the to-do list...
  15. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    Yeah that happens when you start to mod :)
    Great work DeathByDenim !
    Raevn likes this.
  16. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    Ok, first draft version for the texture editor is available. See GitHub. I haven't been able to get the DXT1 and DXT5 formats to work yet, but the A8R8G8B8 one works fine. So at least people will be able to make custom skyboxes.
    With the editor, you can open a texture directory (File -> Open dir) and it will try to load all of the textures (and fail on most of them at the moment). Selecting one of the textures and going to File -> Import will overwrite the texture in the papa file with the image you imported. It has to be the same size as the original for now though.

    I've included a mod for custom sky boxes. Just edit the papa files in there. Thank WrongCat for the sample picture:
    sogalaxy.jpg


    Also note that there is only a Linux binary on GitHub because I don't have readily access to a Mac and no access at all to a Windows machine. I'm sure one of you could be able to provide a Windows binary of the code on GitHub? It's all with cmake and I think Visual Studio supports that? Maybe? You'll need the Qt4 libraries.
  17. cwarner7264

    cwarner7264 Moderator Alumni

    Messages:
    4,460
    Likes Received:
    5,390
  18. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,323
    Such Skybox
    Much custom
    Wow
    cwarner7264 and LavaSnake like this.
  19. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Personally, I would prefer a space core skybox.

    [​IMG]
  20. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,326
    Likes Received:
    2,118
    So, here is a Windows version, maybe? I compiled it using MinGW under wine and it seems to work when running with wine. So there is probably a decent chance it might work on Windows. Download from GitHub.
    lokiCML and LavaSnake like this.

Share This Page