[TUTORIAL] Custom Map Objective(s) (multiple languages)

Discussion in 'Tutorials & Resources' started by Swift, Nov 4, 2007.

  1. Swift

    Swift Guest

    Positive Ratings:
    0
    To have your map objective(s) explained (in multiple languages) when your map is loaded, create the following .txt files in the same directory your mapname.bsp resides: (..\Steam\SteamApps\*YourAccountName*\team fortress 2\tf\maps\)

    mapname.bsp
    mapname_danish.txt
    mapname_dutch.txt
    mapname_english.txt
    mapname_finnish.txt
    mapname_french.txt
    mapname_german.txt
    mapname_italian.txt
    mapname_japanese.txt
    mapname_korian.txt
    mapname_norwegian.txt
    mapname_polish.txt
    mapname_portuguese.txt
    mapname_russian.txt
    mapname_schinese.txt
    mapname_swedish.txt
    mapname_tchinese.txt

    Each .txt file should contain the manual translation of your map objective(s). If you can't translate it to any language yourself. Just put the english text in each of these .txt's. Foreign ciizins will just have to learn to read english then. :)

    Here is an example what the english map objective .txt file (cp_dustbowl_english.txt) of cp_dustbowl contains, to give you a better idea of what I'm refering too:

    Objective:
    Blue team wins by capturing both Control Points on each of three stages before the time runs out. Red team wins by preventing all the points from being captured.

    Other Notes:
    Control Points cannot be captured while they are locked.


    PS: I found this out using GCFScape browsing the "team fortress 2 content.gcf"
     
    • Thanks Thanks x 5
    Last edited by a moderator: Nov 4, 2007
  2. Swift

    Swift Guest

    Positive Ratings:
    0
    I also made a suggestion about this that could cut our time making these .txt files, here - a php coded webpage could help out enormously.
     
  3. Armadillo of Doom

    aa Armadillo of Doom Group Founder, Lover of Pie

    Messages:
    949
    Positive Ratings:
    614
    Kick ass! There aren't too many TF2 tuts on the web right now, which makes our forum all the cooler :)
     
  4. richard_cabeza

    richard_cabeza Guest

    Positive Ratings:
    0
    I agree. I've been all over the place and you guys are the best. I'm about done with my first map (a true masterpiece) and I'll share it here later.
     
  5. Spacemonkeynz

    Spacemonkeynz L5: Dapper Member

    Messages:
    234
    Positive Ratings:
    52
    If you only going to make it English, You only need 'mapname.txt' if TF2 can't find one for a certain language, it will default to that one.
     
  6. Open Blade

    Open Blade L7: Fancy Member

    Messages:
    439
    Positive Ratings:
    34
    nobody has mentioned this but what do you do with the text file when you zip up your map? I use pakrat and it finds all my custom textures and signs but it doesn't find the text file. Do you add it manually or will it be embedded into the bsp when you compile? I don't understand how people get the text file once you make it?
     
  7. TotalMark

    TotalMark L6: Sharp Member

    Messages:
    331
    Positive Ratings:
    40
    You have to pack it manually into the BSP.
     
  8. luxatile

    aa luxatile deer

    Messages:
    2,289
    Positive Ratings:
    1,348
    How can I do that?
     
  9. ChronoTriggerFan

    ChronoTriggerFan L7: Fancy Member

    Messages:
    435
    Positive Ratings:
    72
  10. luxatile

    aa luxatile deer

    Messages:
    2,289
    Positive Ratings:
    1,348
    I would, but according Open Blade, that doesn't work.
     
  11. YM

    aa YM LVL100 YM

    Messages:
    7,099
    Positive Ratings:
    5,742
    Well hes wrong, pakrat works.
     
  12. luxatile

    aa luxatile deer

    Messages:
    2,289
    Positive Ratings:
    1,348
    Heh, well then, that's nice. I'd rather not have another go at the nightmare that is trying to manually pack something into a map.
     
  13. russtolium

    russtolium L1: Registered

    Messages:
    15
    Positive Ratings:
    0
    Boy I just had a real episode with this issue. I successfully packed the txt file and time after time it still wasn't showing up. After banging my head on the problem for two hours, I found out that I was placing the file in the wrong directory.

    There was a reason for this, as I thought the map objective was what pakrat refers to as the 'level overview'. Turns out it's actually the 'map description'. The files use the same filename, but are in different directories. So now that I've solved that mystery, does anyone know what the level overview does? Is it some setting for playing those walkthrough movies on the projector screen on the team select screen?
     
  14. Shadow Monkey

    Shadow Monkey Super Monkey

    Messages:
    244
    Positive Ratings:
    23
    Thank you for the tutorial and all other for the tip with pakrat :)
     
  15. shpladoink

    shpladoink L3: Member

    Messages:
    108
    Positive Ratings:
    6
    Since I seem to be having this issue as well, what is the correct folder for the map description file?

    Edit: Apparently pakrat puts the entire file location in the line when you manually add a file. You need to modify the location to simply "maps" before saving the new .bsp.
     
    Last edited: Feb 26, 2009
  16. kwagner

    kwagner L2: Junior Member

    Messages:
    92
    Positive Ratings:
    6
    I've just tried the above, inserted my maps _english.txt file and got the map objectives to show up, but the process has broken my env_cubmaps? (getting purple/black checkerboard reflections.)

    I tried building the cubemaps from the console again, but that isn't doing the trick.

    Any ideas?
     
    Last edited: Mar 29, 2009
  17. kwagner

    kwagner L2: Junior Member

    Messages:
    92
    Positive Ratings:
    6
    Solved my post-pakrat reflection problems using instructions found on this thread:

    http://forums.tf2maps.net/showthread.php?t=4530&highlight=env_cubemap

    Still not sure why using pakrat to insert my map objectives .txt created a problem, nor exactly which command(s) from that thread solved it. (Although I suspect it was the mat_specular 0 stuff?)