Overview.exe refuses to work unless I run through builder

BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
edited July 2014 in Mapping
I'm currently writing another little external tool that will run overview.exe, output the images to a temporary directory, and pop-up the resulting image so you can quickly preview what the overview will look like without having to leave the editor.

Hit a bit of a snag though... for whatever reason, if I run overview.exe either from within eclipse or through a .bat file on my desktop, it rage-vomits a ton of "can't open file" error messages at me. It looks as though it isn't able to load a single file from my map (models... materials... xml... nothing!) When run from builder though, it works just fine!

I've double-checked, and overview.exe is getting the exact same arguments passed to it. I had task manager running when I did a "re-build" in builder, paused it when I found "overview.exe" in the process list, and noted the command line arguments it started with. I then ran a batch file with those exact paths, and it didn't work.

What could be preventing overview from reading any of these files except when run from builder??? :(

EDIT: Hm.... the plot thickens... It works fine if I run it from command prompt (well I say "fine" I mean, "lots and lots of typing" :P )

Comments

  • MendaspMendasp I touch maps in inappropriate places Valencia, Spain Join Date: 2002-07-05 Member: 884Members, NS1 Playtester, Contributor, Constellation, NS2 Playtester, Squad Five Gold, NS2 Map Tester, Reinforced - Shadow, WC 2013 - Shadow, Retired Community Developer
    edited July 2014
    In the "Start from" parameters in Windows it requires to be in the NS2 folder (or the folder with the resources). or the second parameter (that is usually "ns2") to be the path of the folder with all the resources (if you start from the overview.exe folder this is "ns2" :P )
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    don't forget "quotes" in the path to deal with spaces etc.. The tools really freak out in NS2 if spaces are not accounted for.
  • BeigeAlertBeigeAlert Texas Join Date: 2013-08-08 Member: 186657Members, Super Administrators, Forum Admins, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, NS2 Map Tester, Reinforced - Diamond, Reinforced - Shadow, Subnautica Playtester, Pistachionauts
    edited July 2014
    Mendasp wrote: »
    In the "Start from" parameters in Windows it requires to be in the NS2 folder (or the folder with the resources). or the second parameter (that is usually "ns2") to be the path of the folder with all the resources (if you start from the overview.exe folder this is "ns2" :P )

    Not sure I follow you. I'll test it out more tonight, but what I gathered from looking at the "builder_setup.xml" file was that Overview.exe takes two arguments: 1) the path of the .level file, and 2) the desired destination of the images generated. Based on my testing of using command prompt only, this holds true. I suspect that the execution directory of these commands matters now... oops!

    EDIT: Aha! That's what it was. You've gotta run the program out of the "Natural Selection 2" folder. Working now! :D
Sign In or Register to comment.