[REL] [CLIENT] Nukes: 'MERICA

Discussion in 'Released Mods' started by dom314, April 11, 2015.

  1. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Adds patriotic flag to nuke explosions! Hard to see in gif, but is clearer in game.

    [​IMG]

    Inspiration:
    Last edited: April 11, 2015
  2. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    was wondering if you handplaced each particle by hand until I saw the python... xD Nice job, python seems pretty useful.
    dom314 likes this.
  3. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Hand place 2847 particles? Yeah no thanks. xD
  4. Alpha2546

    Alpha2546 Post Master General

    Messages:
    977
    Likes Received:
    1,561
    **** YEAH

    What you gonna do when we come for you!
  5. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    OMG can you do the french flag??? pretty please!!!!
  6. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Haha yeap. Hold on let me work on that now.
    Although if you knew python you could do it yourself, since the code is provided in the mod already :).
  7. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    Done! Put this in your client mods directory and extract.
    EDIT: IIRC, you are on linux, which means the extraction might work a bit differently to me. Just be sure to place all the extracted files inside a folder named 'com.pa.domdom.nukes.french'.

    Attached Files:

    Last edited: April 28, 2015
    tatsujb and DeathByDenim like this.
  8. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,327
    Likes Received:
    2,125
    Ha, that's so cool! That's really neat.

    I had to change your script to read images though. It's rather hacky, but I attached it anyway in case you're interested. Also I made a mistake on lines 104-105, I think, which is why the image doesn't appear on top. Still looks cool though. :)

    Attached Files:

  9. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    oh god you gotta reduce the alpha though ;-;
  10. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,327
    Likes Received:
    2,125
    Pffft, it looks great! :p
    dom314 likes this.
  11. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    xD, anyway, I think I found the issue. You were converting x/y image space coordinates into the wrong world space coordinates.
    Does this look familiar? :3
    [​IMG]
    Here is the updated script.

    Attached Files:

    Nicb1 and DeathByDenim like this.
  12. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,327
    Likes Received:
    2,125
    Ha, cool. And yeah, this is what happens when you post your source code. :)
    I noticed a lot of clean-up of my messiness as well. Nice!

    You seem to have dropped the palette stuff in favour if RGBA, but there are still some remnants in there, such as the "print palette" that you may want to remove. I only used palette because my avatar happens to be in that format (826 bytes, baby!), and it seemed natural with the grouping of colours. I didn't realize tuples were a perfectly valid indices for dictionaries. Neat. 8 in the morning and I already learned my new thing for the day. :)
    dom314 likes this.
  13. dom314

    dom314 Post Master General

    Messages:
    896
    Likes Received:
    1,196
    I actually dropped the palette method because it seemed to dither my contiguous regions of color in my image!

    Yeah this code could really do with a lot of cleanup. Nice catch though.
  14. finalformpotato

    finalformpotato New Member

    Messages:
    1
    Likes Received:
    1
    Hey, Hyperion here. Big thanks to all the modders out here, paving the future of gaming! I am really impressed with your mod, and I am using it right as we speak! Major props, man.
    dom314 likes this.

Share This Page