Commander Camera
slayer20
Killed a man once. Join Date: 2007-12-13 Member: 63157Members, Reinforced - Shadow
in Mapping
I can't get this thing to work.
It is supposed to change the view height of the commander right?
The default setting is like 390 or something. I've tried bumping it up all the way to 1500 and it's still not making any difference.
Anyone else having the same problem?
It is supposed to change the view height of the commander right?
The default setting is like 390 or something. I've tried bumping it up all the way to 1500 and it's still not making any difference.
Anyone else having the same problem?
Comments
But that is what I basically did: place a commander camera inside a location entity and setting the height... It worked for my own map and ns2_sample...
Angles would help in some places if you could put multiple cameras in one area taking it from strait down to a 4%-6% angle on the other side of a room smoothly.
I have problem with my commander camera (while testing ingame) for my map. It won't stop moving once I move it.
I have the location-box and the minimap-box stretched out over my map (not readyroom).
I did set one commander_camera in the same room as marine powerpoint (the cc im using).
I think it have something to do with this error message that spams my console:
Error: lua/Commander_Client.lua:133: attempt to index field 'heightmap' (a nil value)
so? :)
<a href="http://www.unknownworlds.com/ns2/wiki/index.php/Ns2_sample#Overview" target="_blank">wikilink</a>
I've learned alot from your sample map, it's great :) but how did you hide the readyroom?
any advice?
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec--><!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->hey kouj,
having trouble generating my overview maps using your batch file. i drop my level on it and it tells me it can't find the overview.exe file.
batch and .exe file are in C:\Program Files (x86)\Steam\steamapps\common\natural selection 2\
any tips?<!--QuoteEnd--></div><!--QuoteEEnd-->Did you place it in your ">youdrivehere<:\Steam\SteamApps\common\natural selection 2" folder? I think it has to be in the same dir as the overview.exe<!--QuoteEnd--></div><!--QuoteEEnd-->
yeah i did. it's right next to the overview.exe.
can you try to grab it from your zip file on the wiki and try it with your level again to see if you can reproduce my error?
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->.\Overview.exe
Windows cannot find '.\Overview.exe'. Make sure you typed the name correctly, and then try again.<!--c2--></div><!--ec2-->
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->ERROR: The system was unable to find the specified registry key or value.
Steam directory is:
Install path is: \steamapps\common\natural selection 2\
Level: C:\Program Files (x86)\Steam\steamapps\common\natural selection 2\ns2\map
s\ns2_skyfalls.level
The system cannot find the file .\Overview.exe.
Press any key to continue . . .<!--c2--></div><!--ec2-->
Haha lol, I didn't know man, I just didn't know...
Anyways I'll have a look at it, I'm on WinXP btw. Could it be OS related...
[edit]
The one in the archive is the same as the one I have locally saved
And it doesn't seem to be related to the Overview.exe location. You should be able to run it from anywhere you want, by dragging your map file onto the batch file. It gets the steam installation directory from the windows register.
However, somehow it doesn't seem to be able to retrieve your steam directory
"Steam directory is:"
This shouldn't be empty.
You might want to have a look at the windows register using regedit and going to
HKEY_LOCAL_MACHINE -> SOFTWARE -> Valve -> Steam
Then have a look if there is a REG_SZ (String Value) called InstallPath and if it is set to your steam directory. Mine is: D:\Games\Steam
so your batch file by default had the path for reg search set to HKLM\SOFTWARE\Valve\Steam (default win xp im sure)
in win 7 ultimate, its HKLM\SOFTWARE\Wow6432Node\Valve\Steam
i put that in the batch and it worked.
thanks kouji, i'll probably make another tutorial thread for this.
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->START "Overview Map Generator" /d "C:\Program Files\Steam\steamapps\common\natural selection 2" Overview.exe %1 ns2
Pause<!--c2--></div><!--ec2-->
couldn't you just add the (x86) to that for vista/7 or change the path to point to your overview.exe file if installed in a custom location?
pause<!--c2--></div><!--ec2-->
I had to specify the full path twice
Then there is the Gettype.exe from Microsoft, but I don't want to distribute it with an exe file...
Edit: I found something better: %PROGRAMDATA% only exists in Windows Vista/7, so you could use this.
It looks like we may need to get someone to make a UI based application and with some clever tinkering to get it to detect the registry for each person, mine was also as Tigs was. No idea why Windows 7 is different for different people, although mine is 7 Home and it was the same path as Tigs.
It looks like we may need to get someone to make a UI based application and with some clever tinkering to get it to detect the registry for each person, mine was also as Tigs was. No idea why Windows 7 is different for different people, although mine is 7 Home and it was the same path as Tigs.<!--QuoteEnd--></div><!--QuoteEEnd-->
think its more win 7 vs. xp. i was just frustrated cuz i wanted to see things from commander view on my map and it won't work without the minimap. turns out a camera height of 1000 is much much too high up.
Then I had to type: Overview.exe "C:\Program Files (x86)\Steam\steamapps\common\natural selection 2\ns2\maps\ns2_<mapname>.level" ns2
It's a pain to type out...
W2K/XP
XP-64bits
Vista/Win7 32bits
Vista/Win7 64bits
I'm not even sure if they all are different either
It copies the map to the NS2 map folder, then runs overview.exe and then launches NS2 with your map.
But I think you can make the "current" batch work on XP/Vista/7 in one file with no problems, let me give that a try.
Now that sounds handy. Maybe better suited for this if the launch option was removed.
Put this in a .bat file (the location doesn't matter).
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->copy %1% ns2\maps /Y
Overview.exe %1% ns2
REM NS2.exe map %2%<!--QuoteEnd--></div><!--QuoteEEnd-->
Now, go to Spark Editor and go to Tools -> External Tools.
Give it a name (I have it set as "Test Map", since it launches the map too).
Click the "..." button and search for your bat file.
Now, in the Arguments field, put this:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->$(ItemPath) $(ItemFileName)<!--QuoteEnd--></div><!--QuoteEEnd-->
If you ever want to launch your map too, remove the "REM" part of the last line of the bat.
Edit: You can set keyboard shortcuts for any external tools, too, so you can set it to Ctrl+T or something like that every time you want to "compile" your overview/test your map.
Edit 2: I also fixed (I think) Kouji's bat, let me know if this works for both XP and Vista/7.
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->@echo off
SET regkey="HKLM\SOFTWARE\Valve\Steam"
IF NOT "%programdata%" == "" (
cd "%systemroot%\system32\"
IF NOT "%programfiles(x86)" == "" (SET regkey="HKLM\SOFTWARE\Wow6432Node\Valve\Steam")
)
SETLOCAL EnableExtensions
FOR /F "tokens=2,*" %%i IN ('reg query %regkey% /v "InstallPath" ^| Find /i "InstallPath"') DO set
SteamDirectory=%%j
@echo Steam directory is: %SteamDirectory%
set InstallPath=%SteamDirectory%\steamapps\common\natural selection 2\
set Level=%~1
@echo Install path is: %InstallPath%
@echo Level: %Level%
start "overviewbatch" /d"%InstallPath%" /b .\Overview.exe "%Level%" ns2
pause<!--QuoteEnd--></div><!--QuoteEEnd-->
I tried the external tools method and the batch method and they don't seem to be working after my last update.
Edit: Doh, forgot i upgraded to win 7 64 bit....working now...lol