Our servers are now running a Steam Workshop rotation, if you'd like your map to be considered for inclusion on our rotation, post in the rotation discussion thread

Or, if you just want to play some of the best community maps the Workshop has to offer, you can join our servers by clicking these links:

What I currently know about MvM.

Discussion in 'Mapping Questions & Discussion' started by Untouch, Aug 16, 2012.

  1. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    I'll be editing this as I find out more crap.

    Everything is handled in a .pop file.
    To get your map to work with MvM you need a [YOUR MAP].pop file (I just copied the coaltown .pop file and renamed it).

    Put it in the tf/scripts/population folder.

    You need the game logic as well, put tf_logic_mann_vs_machine in your map.
    This enables MvM on your map, but for some odd reason, it won't spawn bots.

    To fix this you need a .nav mesh (which you'd need anyways, but it's a requirement.)

    MvM is now enabled on your map!
    There's much more, but this is the basics, you can edit the .pop file.


    More crap.

    The tank boss is called.. tank_boss, I don't really know how it works too well though.

    You can spawn money, the entity is called tf_currencypack_small/large/medium.
    Small gives 5, large gives 25, assuming medium gives 10.

    You CANNOT use the upgrade station outside of MvM, even if you have currency, it doesn't apply the changes. You NEED to be in MvM for it to work.
     
    • Thanks Thanks x 1
    Last edited: Aug 18, 2012
  2. Hell-met

    Hell-met L1: Registered

    Messages:
    42
    Positive Ratings:
    3
    very interesting

    though not exactly user friendly
     
  3. henke37

    henke37 L15: Legendary Member

    Messages:
    1,525
    Positive Ratings:
    292
    • Thanks Thanks x 1
  4. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    Found out how to make it work.
    I'll re-write it to just get it working.
     
  5. Hell-met

    Hell-met L1: Registered

    Messages:
    42
    Positive Ratings:
    3
    well they just updated sourcesdk, but now hammer crashes
     
  6. Trotim

    aa Trotim

    Messages:
    1,171
    Positive Ratings:
    984
    Wait wait wait... does this mean normal TF2 bots can now use unlocks too? Like Natascha, Huntsman, Targe etc...?

    Oh man you can apply wearer attributes to the spawned bots. This is pretty neat

    And the wave can send an output to entities when it starts or ends. Yeah this is surprisingly flexible considering how hardcoded many additions have been
     
    • Thanks Thanks x 1
    Last edited: Aug 16, 2012
  7. Hell-met

    Hell-met L1: Registered

    Messages:
    42
    Positive Ratings:
    3
    I just hope we can use those bots without tf_logic_mann_vs_machine
     
  8. Trotim

    aa Trotim

    Messages:
    1,171
    Positive Ratings:
    984
    There's mvm_upgrades.txt too: http://pastebin.com/mcTFKCkT

    Does this mean you can replace the file on your server and have different upgrades...? The upgrade definitions are very modular.
     
  9. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,273
    IDK but I want an upgrade panel allowing 'purchases' of items for the base, i.e. permanent level 1 sentry near bomb hole, add a bridge at x location, add health/ammo at x location, permanently reroute tanks through longer segment, etc... Put the emphasis on the fortress in team fortress
     
    • Thanks Thanks x 3
  10. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    I've messed around and you CAN edit the giants and normal bots.
     
  11. Prestige

    aa Prestige im not gay anymore

    Messages:
    1,764
    Positive Ratings:
    1,504
    goddamn you can do literally everything with these entities. thankya, valve~

    mvm contest in a month, gogogo

    also ravenholm traps.
     
    • Thanks Thanks x 1
    Last edited: Aug 16, 2012
  12. LeSwordfish

    aa LeSwordfish semi-trained quasi-professional

    Messages:
    3,618
    Positive Ratings:
    4,348
    I really like the idea of a sentry at base, simply because it's currently near mandatory to have an engineer, who puts his sentry at the base and stands by it.
     
  13. ForbiddenDonut

    aa ForbiddenDonut

    Messages:
    391
    Positive Ratings:
    338
    Uh. Hmm. There's currently nothing in my tf/scripts folder. No 'population' folder or anything. :X
     
  14. samp20

    samp20 L1: Registered

    Messages:
    19
    Positive Ratings:
    11
    I found the sample mvm stuff in sourcesdk_content\tf\mvm. That contains a .bsp, .nav and .pop
     
  15. ForbiddenDonut

    aa ForbiddenDonut

    Messages:
    391
    Positive Ratings:
    338
    I don't have an mvm folder in my sourcesdk_content/tf folder - just my 'mapsrc', modelsrc' and 'particles' folders.

    Mr. Happy told me last night I'd be able to find the example stuff in the tf2 content.gcf. But apparently, my computer deleted my GCFScape a while back and the download links for it no longer work.

    Anyone know of a good substitute program?
     
  16. tyler

    aa tyler snail prince, master of a ruined tower

    Messages:
    5,015
    Positive Ratings:
    3,904
    Just refreshing the SDK content should pull the mvm_example vmf up in your mapsrc folder. As for the rest, I dunno, I'd find a mirror for GCFscape.
     
    • Thanks Thanks x 1
  17. ForbiddenDonut

    aa ForbiddenDonut

    Messages:
    391
    Positive Ratings:
    338
    Well, you learn something new everyday. I've never had to do that in order to get new files to show up after an update. Thanks.

    I'll just try making my own population folder in tf/scripts and seeing if I can run the example map that the SDK comes with like that.
     
  18. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,983
    Positive Ratings:
    1,206
    When do we get a mvm mapping contest?
     
  19. Davydov611

    Davydov611 L1: Registered

    Messages:
    4
    Positive Ratings:
    0
    Pop files & MvM Upgrade station

    Wait a sec i dont understand does tf2 automatically check for the pop files or to i have to tell tf2 to look for it using a function in the map :confused:

    Any way what i am wondering is if we can use the upgrade station in other game modes. I currently managed to put it in to 2fort but im questioning the ability to gain money. As Far as i know the most we can do is make red team start with a specific number of credits but that would be useless in a ctf map.

    One the other hand i see some potential for this on Attack\ Defense or Payload maps. You could have the Red team with a specific number of credits and Blu with instant respawn and more team mates (which if i recall can be controlled by a function and the number of info_start_team entitys respectively.)

    As for covering up MvM (which is a must have in order to get the credits working in the pop file as far as i know) i think you can use the tf_gamerules entity to cover it up by switching the hud (or gui i don't know what its called) to Ctf, Payload or Control Points. And to prevent people from messing up the hud (which happens when all players press F4 and there arnt any pop commands) you can use a command to prevent the first wave to start (P.S. although i don't know what it is you can see it at work in all official valve MvM maps while waiting for a more players.)

    I'm not much of a map maker but i decided to trow this info out when i was this thred in hopes that some one alot better would use this to make a non-MvM map that still uses the upgrade station.
     
  20. Untouch

    Untouch L4: Comfortable Member

    Messages:
    187
    Positive Ratings:
    43
    It's automatic.

    Also you can get money outside of the game modes, but the upgrade stations will NOT work.