NS2 Multi-Monitor HUD LUA Changes
<div class="IPBDescription">The necessary LUA changes to support the HUD on multiple monitors</div><b>Updated on 5/19/2012: Now supports changes to HUD in Build 208</b>
We now have multi-monitor HUD support for NS2. For those of you who are running 3 or 5 monitor configurations, you know how frustrating it can be to constantly turn your head to the left or right to check out your minimap or health and ability stats. These LUA changes will allow for all of the GUI elements to reside on the center monitor of your multi-monitor configuration.
<u><b>Features</b></u>
<ul><li>Moves Marine and Alien GUI elements to central monitor</li><li>Moves Marine and Alien Commander GUI elements to central monitor</li><li>Automatically detects between single and multiple monitors</li></ul>
<u><b>Limitations</b></u>
<ul><li>Does not support in-game resolution changes</li><li>Auto detection of single monitor assumes no single monitor horizontal resolutions above 2600 pixels</li><li>Team Chat vs. All Chat inputs display in different x-axis values depending on whether you are Alien or Marine</li><li>Close button in Marine buy menu does not properly move to center monitor</li><li>Jet Pack Buy Menu does not work properly when using more than one monitor. Results in not being able to purchase jet packs</li></ul>
I've tested this a bunch using my own private server as well as public games and so far it seems to work very well. However, let me state that I am not a professional software developer, so if someone finds a cleaner way to do this or can institute modifications to allow resolution changes within game, that would be fantastic.
Also, if anyone finds any elements that I may have missed when moving items to the central monitor, please let me know (and provide a screenshot if possible) so I can track down the code and get it modified.
Thanks in advance for any constructive feedback you may have.
<u><b>Instructions</b></u>
<ul><li>Download zip file from link below</li><li>Copy contents to "%ProgramFiles%\Steam\steamapps\common\natural selection 2\ns2\lua" or make the changes manually as described in the accompanying text file</li></ul>
<a href="https://docs.google.com/open?id=0Bx9QYXdNEy1rcVJvdXRjNWx5RDQ" target="_blank">Download ZIP File</a>
Here are some screenshots in different resolutions to give you an idea of what this looks like:
<u><b>First Person View @ 1280x1024</b></u>
<img src="https://lh6.googleusercontent.com/--TtZor4ABcw/T69Npd9hZrI/AAAAAAAADzw/JIW7h8V1uQ8/s931/NS2%20FP%20@%201280x1024.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1280x1024</b></u>
<img src="https://lh6.googleusercontent.com/-6b0GnbfSX90/T69NqGH-cCI/AAAAAAAADz4/VGNJ3-_hgkE/s931/NS2%20Commander%20@%201280x1024.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 1680x1050</b></u>
<img src="https://lh3.googleusercontent.com/-OzkTFK0msic/T69NoCWnJtI/AAAAAAAADzg/JsqT8X7aGIM/s1141/NS2%20FP%20@%201680x1050.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1680x1050</b></u>
<img src="https://lh3.googleusercontent.com/-NSfN7o7XyOQ/T69No3WWTwI/AAAAAAAADzo/D0gwTW6hz4o/s1141/NS2%20Commander%20@%201680x1050.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 1920x1080</b></u>
<img src="https://lh3.googleusercontent.com/-GoptEfuHvVw/T69NmNU7iaI/AAAAAAAADzQ/3Kw1oZCK3wY/s1141/NS2%20FP%20@%201920x1080.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1920x1080</b></u>
<img src="https://lh3.googleusercontent.com/-EeCi0y-GIrc/T69Nm0Pcq5I/AAAAAAAADzY/Dauu9cgP9rs/s1141/NS2%20Commander%20@%201920x1080.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 5760x1080</b></u>
<img src="https://lh4.googleusercontent.com/-FH5AVYjuE4g/T69NjWcdkmI/AAAAAAAADzA/1eSA0JORTCE/s1141/NS2%20FP%20@%205760x1080.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 5760x1080</b></u>
<img src="https://lh5.googleusercontent.com/-2EfbO6p-IS4/T69Nk94U3xI/AAAAAAAAD0E/0YYNgSuXpEg/s1141/NS2%20Commander%20@%205760x1080.jpg" border="0" class="linked-image" />
We now have multi-monitor HUD support for NS2. For those of you who are running 3 or 5 monitor configurations, you know how frustrating it can be to constantly turn your head to the left or right to check out your minimap or health and ability stats. These LUA changes will allow for all of the GUI elements to reside on the center monitor of your multi-monitor configuration.
<u><b>Features</b></u>
<ul><li>Moves Marine and Alien GUI elements to central monitor</li><li>Moves Marine and Alien Commander GUI elements to central monitor</li><li>Automatically detects between single and multiple monitors</li></ul>
<u><b>Limitations</b></u>
<ul><li>Does not support in-game resolution changes</li><li>Auto detection of single monitor assumes no single monitor horizontal resolutions above 2600 pixels</li><li>Team Chat vs. All Chat inputs display in different x-axis values depending on whether you are Alien or Marine</li><li>Close button in Marine buy menu does not properly move to center monitor</li><li>Jet Pack Buy Menu does not work properly when using more than one monitor. Results in not being able to purchase jet packs</li></ul>
I've tested this a bunch using my own private server as well as public games and so far it seems to work very well. However, let me state that I am not a professional software developer, so if someone finds a cleaner way to do this or can institute modifications to allow resolution changes within game, that would be fantastic.
Also, if anyone finds any elements that I may have missed when moving items to the central monitor, please let me know (and provide a screenshot if possible) so I can track down the code and get it modified.
Thanks in advance for any constructive feedback you may have.
<u><b>Instructions</b></u>
<ul><li>Download zip file from link below</li><li>Copy contents to "%ProgramFiles%\Steam\steamapps\common\natural selection 2\ns2\lua" or make the changes manually as described in the accompanying text file</li></ul>
<a href="https://docs.google.com/open?id=0Bx9QYXdNEy1rcVJvdXRjNWx5RDQ" target="_blank">Download ZIP File</a>
Here are some screenshots in different resolutions to give you an idea of what this looks like:
<u><b>First Person View @ 1280x1024</b></u>
<img src="https://lh6.googleusercontent.com/--TtZor4ABcw/T69Npd9hZrI/AAAAAAAADzw/JIW7h8V1uQ8/s931/NS2%20FP%20@%201280x1024.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1280x1024</b></u>
<img src="https://lh6.googleusercontent.com/-6b0GnbfSX90/T69NqGH-cCI/AAAAAAAADz4/VGNJ3-_hgkE/s931/NS2%20Commander%20@%201280x1024.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 1680x1050</b></u>
<img src="https://lh3.googleusercontent.com/-OzkTFK0msic/T69NoCWnJtI/AAAAAAAADzg/JsqT8X7aGIM/s1141/NS2%20FP%20@%201680x1050.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1680x1050</b></u>
<img src="https://lh3.googleusercontent.com/-NSfN7o7XyOQ/T69No3WWTwI/AAAAAAAADzo/D0gwTW6hz4o/s1141/NS2%20Commander%20@%201680x1050.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 1920x1080</b></u>
<img src="https://lh3.googleusercontent.com/-GoptEfuHvVw/T69NmNU7iaI/AAAAAAAADzQ/3Kw1oZCK3wY/s1141/NS2%20FP%20@%201920x1080.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 1920x1080</b></u>
<img src="https://lh3.googleusercontent.com/-EeCi0y-GIrc/T69Nm0Pcq5I/AAAAAAAADzY/Dauu9cgP9rs/s1141/NS2%20Commander%20@%201920x1080.jpg" border="0" class="linked-image" />
<u><b>First Person View @ 5760x1080</b></u>
<img src="https://lh4.googleusercontent.com/-FH5AVYjuE4g/T69NjWcdkmI/AAAAAAAADzA/1eSA0JORTCE/s1141/NS2%20FP%20@%205760x1080.jpg" border="0" class="linked-image" />
<u><b>Commander View @ 5760x1080</b></u>
<img src="https://lh5.googleusercontent.com/-2EfbO6p-IS4/T69Nk94U3xI/AAAAAAAAD0E/0YYNgSuXpEg/s1141/NS2%20Commander%20@%205760x1080.jpg" border="0" class="linked-image" />
Comments
Which map are you referring to? The marine mini map, or the map that shows up when you press the "c" key?
Much <3 for what you made already!
I'll see what I can create when I get home this evening. Seems like it would be pretty straight forward for the 3-monitor approach, but the dual monitor solution will take some investigation. The only downside I can think of is that you would lose some of your screen visibility when using the map constantly as it would sit over one of your peripheral vision monitors.
I'll see what I can create when I get home this evening. Seems like it would be pretty straight forward for the 3-monitor approach, but the dual monitor solution will take some investigation. The only downside I can think of is that you would lose some of your screen visibility when using the map constantly as it would sit over one of your peripheral vision monitors.<!--QuoteEnd--></div><!--QuoteEEnd-->
I haven't been able to determine how to make this happen yet. Just wanted to let everyone know I was still looking into it.
Hey Hackepeter,
Sorry I haven't replied sooner, but I got a little busy. Anyhow, I just posted the screenshots in the original post above, so feel free to scroll up and take a look. :)
Any suggestions?
I was wondering if this fix still works for the retail version of the game. On my game, I haven't tried the LUA editing to see if it still fixes the fov because this mod doesn't seem to have been updated in a while
But good job anyway ;)
What I'll probably do is try to finish as much of it as I can when I get the chance, then submit it Unknown Worlds to see if they'll make it official, the mod I'm making is a Custom HUD (maybe GUI as well) Area mod. Basically it lets you define the width and position the HUD is displayed, so it has some use on a single monitor system as well.
To let you know, the point as which I got in my mod, Alien and Marine HUDs are fixed chat is fixed, scoreboard is fixed. Command views are still spanned, spectator is still spanned, and there are probably a number of independent HUD items I've not fixed yet.
I mention this because you might be able to do it as well, if the engine actually supports it, as it too is written in LUA. Here is a link to the mod I used: <a href="http://www.curse.com/addons/wow/sunn-viewport-art" target="_blank">Sunn Viewport</a>
Don't know if that helps or is relevant at this time, but it's the thought that counts, right?
<!--quoteo(post=2023658:date=Nov 14 2012, 04:59 PM:name=Skid)--><div class='quotetop'>QUOTE (Skid @ Nov 14 2012, 04:59 PM) <a href="index.php?act=findpost&pid=2023658"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->I've actually already made a portion of a mod that would do the same job as this, and I've been using this as a reference for where to edit to save time, but there is a massive problem with using it. Because you have to change the LUA scripts all the servers will refuse your connection because the client and servers don't match. So you would have to have servers running this mod as well, which buggers up my implementation as it stands as the configuration is hard coded in a LUA script, meaning it would be different for different resolutions which messes with client server model even more.
What I'll probably do is try to finish as much of it as I can when I get the chance, then submit it Unknown Worlds to see if they'll make it official, the mod I'm making is a Custom HUD (maybe GUI as well) Area mod. Basically it lets you define the width and position the HUD is displayed, so it has some use on a single monitor system as well.
To let you know, the point as which I got in my mod, Alien and Marine HUDs are fixed chat is fixed, scoreboard is fixed. Command views are still spanned, spectator is still spanned, and there are probably a number of independent HUD items I've not fixed yet.<!--QuoteEnd--></div><!--QuoteEEnd-->
Didn't see this post when I was looking through the forums the other day. You might want to post something over at <a href="http://www.wsgf.org/forums" target="_blank">WSGF</a> about the mod. It may get more attention and help (about positioning for different resolutions). I don't like that I can't position the HUD in a usable area and would like it fixed. It would be cool if the dev's here would implement something since its already been done by the community.
I wish I would have read your post before I got my hopes up and installed this mod. Started getting the refuse connection issue and figured it had to be the mod. Going to restore everything back to stock but its really a shame this can't be used without it running on the server.