Minimap Mod
Onos Ate Me
Join Date: 2010-12-31 Member: 76072Members, NS2 Playtester, Squad Five Blue
in Modding
<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" />
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
THANK YOU!
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.
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?
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.
Works great, i use it always now.
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>
Didn't think of that. Thanks! It works great now.
No, too much has changed between the builds so the mod no longer runs.
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.
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-->
<!--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! :)