BombSquad Modding Guide Episode 6: Meteor Shower

Ok; enough with the expositional stuff already… today we’re going to make an actual, playable, (hopefully) enjoyable mini-game.

It’s called ‘Meteor Shower’, and it’s pretty simple. You run around a platform as bombs fall from the sky at an ever increasing rate. The last team/player alive wins.

Here’s a video of me testing it:

To play, simply download the following file and stick it in BombSquad’s user-scripts dir.  Poke the “Settings”->”Advanced”->”Show-Mods-Folder” button if you forgot where that is. You can then launch BombSquad, create a new teams or free-for-all playlist, and you should be able to add a ‘Meteor Shower’ game to it.

http://www.files.froemling.net/bombsquad/mods/api-002(1.3.28)/bsMeteorShower.py

..And that’s it… To see what’s going on, just open the file and take a look at the code. I’ve commented it so you should be able to follow along. If you’re brave, take a stab at modifying it; see if you can change where or when the bombs fall, or change it to use a different map. Good luck!

This entry was posted in BombSquad. Bookmark the permalink.

40 Responses to BombSquad Modding Guide Episode 6: Meteor Shower

  1. Jonathan Hill says:

    Hey Eric,

    Just a quicky about modding a game mode… I’m starting out with something really simple, like changing the bomb types that fall in Meteor Shower… I see that the regular bomb is called by bsBomb.Bomb… was wondering what the calls are for the other bomb types?
    Thanks!

    • Eric says:

      Hi Jonathan,
      All the bombs are actually bsBomb.Bomb().. there’s just a ‘bombType’ arg you can pass to Bomb() to get the different varieties… it can be ‘ice’,’impact’,’landMine’,’normal’,’sticky’, or ‘tnt’.

      Note that with land-mines there’s one extra step you have to do of arming the mine after you create it (this normally happens when your character throws it).

      ..so as an example, to create a land-mine and arm it 1 second later you’d do:
      myMine = bsBomb.Bomb(bombType=’landMine’)
      bs.gameTimer(1000,bs.WeakCall(myMine.handleMessage,bsBomb.ArmMessage()))

      Hope that helps!
      -eric

  2. Ryan Smith says:

    Thanks for posting these modding tutorials. It’s awesome, love the fact that I can take a already great game and think up a mini game for it.

    If say I really liked a mini game I made or someone made a really awesome mini game and sent it to you would you consider putting it in the actual game?

  3. Pez says:

    Do you have a place (even a repo) for people to submit and download mini-games? Would make sharing them much easier.

    Mind you I’ve only achieved very minor tweaks so far.

  4. Jeramie says:

    This is great and would love to see some more examples or other peoples work! I’ve tinkered with it a bit my self with mixed results.

    • Jeramie says:

      Reading the guide fully helped a whole lot (VERY EXCITED)!

      • Eric says:

        Glad to hear it! I need to take a pass through and update a few things that have changed in 1.3.22, so don’t hesitate to post here or email me at support@froemling.net if you have any questions or something doesn’t seem to be working. There’s not a whole lot of examples out there just yet since this stuff is all pretty new, but I’m hoping that will start to change soon :-)

  5. Arthur says:

    I’ve downloaded the files and tried putting it in the mod directory but with no luck. The gametype is able to be picked and played but is simply the rampage map without any bombs falling, title and description, or anything else.

    The disabled pickup, bombs, and punching is inputted into it though, so I cannot do any of that. I’ve tried moving the files around as well within the Sys directory and 1.3.22 directory, but still no luck. On a Mac, do you know whatsup?

  6. Christopher says:

    My OUYA is connected to my PC via micro USB and it won’t let me edit the about this folder file, or let me put anything in the folder on MTP. On PTP, it jst shows how much storage I have on my USB and when I click it, it says nothing is on the USB.

  7. TBillows says:

    Hi Eric,
    I’d like to know more about the coordinate system for the maps to adjust the bomb spawn points for other maps. Thanks
    T

    • Eric says:

      Currently spawn points and other positions are contained in a little python module for each map. If you look at bsMap.py in the system scripts you’ll see them.. i.e.; for the HockeyStadium map it imports hockeyStadiumDefs.py which has a bunch of positions in it (‘flag1′,’flag2′,’powerupSpawn’,etc). I’m hoping to come up with an easier way to customize maps at some point but for now you can edit those or whatnot..

  8. Cmo says:

    Has the latest update broken this minigame? I’m having the same problem as Arthur.

    • Eric says:

      I’ve made a lot of changes in the 1.3.24 update, so the old meteor-shower example breaks if you try to run it there. I just uploaded a new version that works in 1.3.24, so give it another try if you’d like.
      I’m currently reorganizing/simplyfing/documenting the whole Python API; the dust should hopefully start to settle by version 1.3.26 or so…

  9. Nancy says:

    Hello Eric,
    Bomb Squad is a wonderful game, and right now it is just available on OUYA console. As a Chinese player, I cannot get OUYA, do you have a plan to make it available on some game consoles in China ?

    • Eric says:

      I’m hoping to look into the Chinese market at some point, but right now I’m pretty busy trying to finish up modding/net-play/etc..

      • Nancy says:

        Hi Eric, tks for your reply. Happy to know u’re busy with upgrading the game , and display a better version to us. Hope the Chinese players can play it on mobile phone and game console in future. We really love it very much and I play in on OUYA in my office, I really hope you can port it on our Android game console, we can pay some minimum guarantee to make it. If you really don’t have time, can you share the source code with us based on some payment ?

  10. Lackar says:

    My friends and I are really enjoying playing BS! We would love to translate BS into Chinese! Though very few people use Mac in China. But it’ll be popular someday for sure.
    And if there’s a place stores all mods fans made. That would be great.

  11. Malik Kauczki says:

    How do I download the file? It says “URL Not Found, 404″. I found the file later, but when I click on it, it opens the script, but it doesn’t download the file. Can you send me a direct link to the file, please?

    • Eric says:

      The link should be fixed now; thanks for the heads-up… (also, please make sure you’re running BombSquad 1.3.28 or later)

      • Malik Kauczki says:

        I don’t understand, because when I click on the link, it doesn’t download the file, it just opens the file script. Maybe I’m just being dumb… How can I convert the script to a Py file?

        • Malik Kauczki says:

          Never mind. But is it unavailable on the Windows Public Beta/Early Pre-build version? I’ve created a Py file with the script, extracted it to the mods folder, but when I open the game, no Meteor Shower game mode shows up in Team Mode or in Free-For-All Mode.

          • Eric says:

            You have to create a new game list and add a game to that list to see it; it won’t just show up next to the current ‘Default Game List’ or whatnot.. is that what you’re trying? Also for future reference you should just be able to right click on the link and go to ‘download this file’ or whatnot. Hope this helps!

      • Pulidomedia says:

        Hey Erick.

        I’m running version 1.3.29 and for some reason meteor shower is not working on this version. I had no problem running it on 1.3.28. Is there something I’m doing wrong? or do you need to update the script for it to work?

  12. Malik Kauczki says:

    I’ve tried to create a new game list, but it still doesn’t show up. :(

  13. S-COnfig says:

    Just curious if more modding information will be published such as will there be a way for users to make their own custom maps or perhaps even their own models?

    Thanks for the wonderful game.

    – S

  14. Jim says:

    Seems broken in 1.3.29…. reports:
    http://imgur.com/ncRqdXv

    • Eric says:

      There should be a new version in my mods folder that will work with 1.3.29: http://www.files.froemling.net/bombsquad/mods/
      Let me know if you run into problems with that one..

      • Jesus Becerra says:

        Hi, great game overall. My only issue is that I cannot play the meter shower mini game because I get an error about “Can’t load game bs meteor shower -2…..it targets api version none: we require 2″. I tried downloading the current and latest script file inside of: Index of /bombsquad/mods/api-002(1.3.28) but it still doesn’t work. I would appreciate your help with this for my son thank you. By the way I am running 1.3.29 for Mac on OSX 10.9.4

  15. MIKE B says:

    Hey Eric how do you do mods on an android phone say a HTC One M8

    • Eric says:

      The game should create a ‘BombSquad’ dir on your sdcard or whatnot and you can drop mod scripts in there. See the ‘modding’ section here for details.. You can also telnet in to the game to issue commands to it.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>