Minimap Mod

Onos Ate MeOnos Ate Me Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
<div class="IPBDescription">Adds a minimap for non-commanders</div>Couldn't wait for an official implementation so I made my own.

This mod will add a minimap to the upper-left corner of the screen. Being a client-side mod, it is possible to use this mod on vanilla servers. The minimap displays your current location as an arrow, teammates as a green blip, friendly hives/commands stations as green blobs, and other friendly structures as a grey blip.
<img src="http://img560.imageshack.us/img560/5359/closeup.png" border="0" class="linked-image" />

<!--sizeo:5--><span style="font-size:18pt;line-height:100%"><!--/sizeo--><a href="http://damien.kodingen.com/minimap.zip" target="_blank">Download Minimap</a><!--sizec--></span><!--/sizec-->

<b>Note</b>: NS2 doesn't provide non-commanding players with the locational information of entities far away from the player. Because of this, blips of far-off entities will disappear from the minimap as the client no longer knows where those entities are.

<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Installation<!--sizec--></span><!--/sizec-->
<ol type='1'><li><b>Extract <a href="http://damien.kodingen.com/minimap.zip" target="_blank">minimap.zip</a></b> into the Natural Selection 2 folder
<!--coloro:#C0C0C0--><span style="color:#C0C0C0"><!--/coloro-->(C:\Program Files (x86)\Steam\steamapps\common\natural selection 2)<!--colorc--></span><!--/colorc--></li><li>Set the launch options for NS2 to load minimap
<ol type='1'><li>Start Steam</li><li>Right-click on the game title under the <b>Library</b> in Steam and select <b>Properties</b>.</li><li>Under the <b>General</b> tab click the <b>Set launch options...</b> button.</li><li>Enter <b>-game minimap</b> and click OK.</li><li>Close the game's <b>Properties</b> window and launch the game.</li></ol></li><li>Minimap is installed</li></ol>
<a href="http://img815.imageshack.us/i/dir.png/" target="_blank"><img src="http://img815.imageshack.us/img815/4207/dir.th.png" border="0" class="linked-image" /></a> <a href="http://img841.imageshack.us/i/launchoptions.png/" target="_blank"><img src="http://img841.imageshack.us/img841/6596/launchoptions.th.png" border="0" class="linked-image" /></a>

<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Uninstallation<!--sizec--></span><!--/sizec-->
<ol type='1'><li>Remove <b>-game minimap</b> from the launch options</li><li><b>Delete</b> the <b>minimap</b> folder that was extracted into the NS2 installation folder</li></ol>

<!--sizeo:4--><span style="font-size:14pt;line-height:100%"><!--/sizeo-->Screens<!--sizec--></span><!--/sizec-->
<img src="http://img199.imageshack.us/img199/9453/alienwi.jpg" border="0" class="linked-image" />

<img src="http://img222.imageshack.us/img222/4361/marineoc.jpg" border="0" class="linked-image" />

Comments

  • woodywoody SoCal Woody56 Join Date: 2004-02-14 Member: 26541Members
    NICE Job and it actualy Works . lol
  • PricePrice Join Date: 2003-09-27 Member: 21247Members
    edited January 2011
  • derWalterderWalter Join Date: 2008-10-29 Member: 65323Members
    edited January 2011
    good job!

    THANK YOU!
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    Great mod!

    Does anyone know how to run multiple mods like this? I've been trying to get this and <a href="http://getsatisfaction.com/unknownworlds/topics/fade_controls_change_hold_mouse2_for_ghost_release_mouse2_for_blink" target="_blank">xx's single click fade blink </a> to work at the same time, but I can't figure out how to run both under launch options. I've tried
    -game mod_fade -game minimap
    -game mod_fade minimap
    -game mod_fade, minimap
    -game mod_fade -minimap

    but only the first mod in the list runs.
  • fsfodfsfod uk Join Date: 2004-04-09 Member: 27810Members, NS2 Developer, Constellation, NS2 Playtester, Squad Five Blue, Squad Five Silver, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    You can't but i have been working on a multi-mod system <a href="https://github.com/fsfod/NS2ModLoader" target="_blank">https://github.com/fsfod/NS2ModLoader</a>
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=1825184:date=Jan 17 2011, 10:22 PM:name=fsfod)--><div class='quotetop'>QUOTE (fsfod @ Jan 17 2011, 10:22 PM) <a href="index.php?act=findpost&pid=1825184"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You can't but i have been working on a multi-mod system <a href="https://github.com/fsfod/NS2ModLoader" target="_blank">https://github.com/fsfod/NS2ModLoader</a><!--QuoteEnd--></div><!--QuoteEEnd-->

    That would be great!

    Is there a way to run both via a config file? I noticed that NS2 has a config folder. Can we do something similar to source engine games where we can run multiple commands at startup via an autoexec file?
  • CamronCamron Join Date: 2011-01-06 Member: 76356Members
    <!--quoteo(post=1825180:date=Jan 17 2011, 11:53 PM:name=ScardyBob)--><div class='quotetop'>QUOTE (ScardyBob @ Jan 17 2011, 11:53 PM) <a href="index.php?act=findpost&pid=1825180"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Great mod!

    Does anyone know how to run multiple mods like this? I've been trying to get this and <a href="http://getsatisfaction.com/unknownworlds/topics/fade_controls_change_hold_mouse2_for_ghost_release_mouse2_for_blink" target="_blank">xx's single click fade blink </a> to work at the same time, but I can't figure out how to run both under launch options. I've tried
    -game mod_fade -game minimap
    -game mod_fade minimap
    -game mod_fade, minimap
    -game mod_fade -minimap

    but only the first mod in the list runs.<!--QuoteEnd--></div><!--QuoteEEnd-->


    <!--quoteo(post=1825184:date=Jan 18 2011, 12:22 AM:name=fsfod)--><div class='quotetop'>QUOTE (fsfod @ Jan 18 2011, 12:22 AM) <a href="index.php?act=findpost&pid=1825184"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->You can't but i have been working on a multi-mod system <a href="https://github.com/fsfod/NS2ModLoader" target="_blank">https://github.com/fsfod/NS2ModLoader</a><!--QuoteEnd--></div><!--QuoteEEnd-->
    Yes you can, you just have to combine the mods into 1 single mod. Luckily the blink mod is only made up of 2 non-conflicting files, so just copy those over into the minimod folder. Drag the "lua" folder from the fade mod into the the minimap mod's folder so it will combine with it's own "lua" folder. Press yes at the prompt.
  • PricePrice Join Date: 2003-09-27 Member: 21247Members
    i realy hope they made it official.
    Works great, i use it always now.
  • CamronCamron Join Date: 2011-01-06 Member: 76356Members
    <!--quoteo(post=1825244:date=Jan 18 2011, 01:17 PM:name=Price)--><div class='quotetop'>QUOTE (Price @ Jan 18 2011, 01:17 PM) <a href="index.php?act=findpost&pid=1825244"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->i realy hope they made it official.
    Works great, i use it always now.<!--QuoteEnd--></div><!--QuoteEEnd-->
    According to NS2 Twitter, we will get official minimaps in b162

    "Brian just put in player-minimaps so you can find your way to locations and see other players, structures, etc!"
    <a href="http://twitter.com/NS2/status/27438022219792384" target="_blank">[source]</a>
  • PricePrice Join Date: 2003-09-27 Member: 21247Members
    Yes, i saw 2 mins ago :)
  • ScardyBobScardyBob ScardyBob Join Date: 2009-11-25 Member: 69528Forum Admins, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow
    <!--quoteo(post=1825195:date=Jan 17 2011, 11:59 PM:name=Camron)--><div class='quotetop'>QUOTE (Camron @ Jan 17 2011, 11:59 PM) <a href="index.php?act=findpost&pid=1825195"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Yes you can, you just have to combine the mods into 1 single mod. Luckily the blink mod is only made up of 2 non-conflicting files, so just copy those over into the minimod folder. Drag the "lua" folder from the fade mod into the the minimap mod's folder so it will combine with it's own "lua" folder. Press yes at the prompt.<!--QuoteEnd--></div><!--QuoteEEnd-->

    Didn't think of that. Thanks! It works great now.
  • vizioNzvizioNz InversionNS2.com Join Date: 2003-12-21 Member: 24595Members, Constellation, NS2 Playtester
    Does this still work Onos?
  • Onos Ate MeOnos Ate Me Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1893314:date=Jan 9 2012, 10:14 PM:name=vizioNz)--><div class='quotetop'>QUOTE (vizioNz @ Jan 9 2012, 10:14 PM) <a href="index.php?act=findpost&pid=1893314"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->Does this still work Onos?<!--QuoteEnd--></div><!--QuoteEEnd-->

    No, too much has changed between the builds so the mod no longer runs.
  • vizioNzvizioNz InversionNS2.com Join Date: 2003-12-21 Member: 24595Members, Constellation, NS2 Playtester
    <!--quoteo(post=1893325:date=Jan 10 2012, 01:55 AM:name=Onos%20Ate%20Me)--><div class='quotetop'>QUOTE (Onos%20Ate%20Me @ Jan 10 2012, 01:55 AM) <a href="index.php?act=findpost&pid=1893325"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->No, too much has changed between the builds so the mod no longer runs.<!--QuoteEnd--></div><!--QuoteEEnd-->

    I find myself still using the standard minimap key then the new map overview that was implemented in the new HUD. Would you happy to know what line in the LUA code allows the minimap to stay up while on the Kharaa/Frontiersmen? Similar to how it works for the Spectator. I already know how to modify the opacity of the minimap, so having it up permanently with the opacity of .1 would be better in my opinion then having to hold down C and have it flash in front of me.
  • Onos Ate MeOnos Ate Me Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1893372:date=Jan 10 2012, 08:53 AM:name=vizioNz)--><div class='quotetop'>QUOTE (vizioNz @ Jan 10 2012, 08:53 AM) <a href="index.php?act=findpost&pid=1893372"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I find myself still using the standard minimap key then the new map overview that was implemented in the new HUD. Would you happy to know what line in the LUA code allows the minimap to stay up while on the Kharaa/Frontiersmen? Similar to how it works for the Spectator. I already know how to modify the opacity of the minimap, so having it up permanently with the opacity of .1 would be better in my opinion then having to hold down C and have it flash in front of me.<!--QuoteEnd--></div><!--QuoteEEnd-->

    To change the map key to a toggle key replace lua/Player.lua:1781
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function Player:UpdateShowMap(input)

        PROFILE("Player:UpdateShowMap")
        
        if Client then
            self:ShowMap(bit.band(input.commands, Move.ShowMap) ~= 0, true)
        end
        
    end<!--c2--></div><!--ec2-->

    with this:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function Player:UpdateShowMap(input)

        PROFILE("Player:UpdateShowMap")
        
        if Client and not Shared.GetIsRunningPrediction() then
            local buttonPressedNow = bit.band(input.commands, Move.ShowMap) ~= 0
            if self.mapButtonPressed ~= buttonPressedNow then
                if buttonPressedNow then
                    self:ShowMap(not self.minimapScript.background:GetIsVisible(), true, true)
                end
                self.mapButtonPressed = buttonPressedNow
            end
        end
        
    end<!--c2--></div><!--ec2-->
  • vizioNzvizioNz InversionNS2.com Join Date: 2003-12-21 Member: 24595Members, Constellation, NS2 Playtester
    <!--quoteo(post=1893412:date=Jan 10 2012, 02:52 PM:name=Onos%20Ate%20Me)--><div class='quotetop'>QUOTE (Onos%20Ate%20Me @ Jan 10 2012, 02:52 PM) <a href="index.php?act=findpost&pid=1893412"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->To change the map key to a toggle key replace lua/Player.lua:1781
    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function Player:UpdateShowMap(input)

        PROFILE("Player:UpdateShowMap")
        
        if Client then
            self:ShowMap(bit.band(input.commands, Move.ShowMap) ~= 0, true)
        end
        
    end<!--c2--></div><!--ec2-->

    with this:

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function Player:UpdateShowMap(input)

        PROFILE("Player:UpdateShowMap")
        
        if Client and not Shared.GetIsRunningPrediction() then
            local buttonPressedNow = bit.band(input.commands, Move.ShowMap) ~= 0
            if self.mapButtonPressed ~= buttonPressedNow then
                if buttonPressedNow then
                    self:ShowMap(not self.minimapScript.background:GetIsVisible(), true, true)
                end
                self.mapButtonPressed = buttonPressedNow
            end
        end
        
    end<!--c2--></div><!--ec2--><!--QuoteEnd--></div><!--QuoteEEnd-->
    Thanks buddy! :)
Sign In or Register to comment.