Flow754's Peg Assembler

Discussion in 'Tool Releases' started by flow754, May 3, 2015.

  1. So this is how the Famous Animated Shirt was made
     
  2. The imported texture will be dimmed in the game
     
  3. flow754

    flow754 Modding patch tester

    Yes, I've noticed this happens with certain textures, especially UI images. Easiest way to fix that is to use Yepoleb's SR Textool to set the BM_F_LINEAR_COLOR_SPACE flag to true on images that come out too dark. EDIT: It's a good practise to do this with normal maps as well.
     
    daspex likes this.
  4. Hi,
    I have this dark ui icons.Could you please tell me how to set the BM_F* flag with srtextool?
    I have no idea about the syntax.Thanks in advance.
     
  5. flow754

    flow754 Modding patch tester

    Try this command:
    Code (Text):
    srtextool m your_peg_file.cpeg_pc your_texture.tga -f 0x201
    It should set both the BM_F_LINEAR_COLOR_SPACE flag and the BM_F_ALPHA flag, which is the combination I'd recommend for UI icons. Note that, even though you probably packed your texture as "your_texture.tga.dds", you need to leave out the ".dds" extension in the texture name field of the command.
     
    Last edited: Sep 20, 2018
    daspex likes this.
  6. Thank you.I will leave out the .dds extension then.What is the 0x201 hex for?
    Works pretty cool.Thank's for help and the pegAssembler + WeaponClone tool. :)
     
    Last edited: Sep 20, 2018
  7. flow754

    flow754 Modding patch tester

    ox201 is the hex code for the binary number 1000000001, which you get by adding up the BM_F_LINEAR_COLOR_SPACE flag (1<<9, which equals 1000000000) and the BM_F_ALPHA flag (1<<0, otherwise written as 1).
     
  8. Ah,now it makes sense what i read in the peg file header,thank's.
     
  9. Hi Flow,
    I have a problem with animated icons.In the main weapon menu the icons are showing up fine but in the second menue of the weapon itself
    it shows only a white square.Only the RPG and the Gang SMG are displayed normal in the secondary menu.Can you help me out with that issue?
    [​IMG]
    Thanks in advance.
     
  10. flow754

    flow754 Modding patch tester

    For some reason the game doesn't use the same bitmaps for HUD weapon icons and icons shown in stores. I'm unsure why this is, because the contents of both bitmaps seem to be identical in all cases, but for each weapon you have to include two icon textures: one called "weapon_icon_name.tga" and a duplicate called "weapon_icon_name_c.tga". The one with the "_c" suffix will be shown in stores.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice