[TOOL] Overview previewer

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 August 2014 in Mapping
Hey guys, just finished up a tool that let's you preview your overviews without having to leave the editor!

https://www.dropbox.com/s/gayxbek2ixfjcdy/Overview Preview.zip
NEW LINK: https://www.dropbox.com/s/0o4vn2i9qr26ie0/Overview Preview.jar?dl=1
d37771d02b62955ba20fbb62d3e02c.jpg
(And yes... that is a wip of the next build of temple... I know you guys were DYING to know...)

TO INSTALL:
-Place the .jar file inside your "Natural Selection 2" folder (NOT your "ns2" folder, it needs to be the folder that "overview.exe" is in).
-Create a new BAT file with this exact text (including the quotes):
"%~dp0\Overview Preview.jar" %1
-Add the external tool to the editor by going to Tools -> External Tools...
-Click "Add", and set the title to whatever you want it to be.
-For "Command", use the "..." button to navigate to where you placed the .bat file, and choose that, THEN PLACE QUOTES around it, or else Spark will gripe at you.
-For "Arguments", use the ">" button and choose "Item Path", and then place quote marks around this one too.

Here's what mine looks like:
609247fe2976649739b07e8ece123f.jpg

There you have it! There should now be a brand new tool for you under the "Tools" menu. Bear in mind it is slow, takes about 10-12 seconds for me; no faster than it is when you're running it from Builder. Overview.exe has to basically load up the whole map, generate the overview, save it to a temporary directory, then MY tool loads THAT image, displays it, and deletes the hard disk copy. Yes that last part is correct, this does NOT update the overview image that *should* be in your output folder, this is in effect JUST a previewer. You'll still need to use Builder to make your output folder copy as usual.
«1

Comments

  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
    edited July 2014
    What about a screenshot of the actual preview working?
  • 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
    Alright Samus I'll add your stinkin' preview! (Added into first post)
  • KalopsiaKalopsia Join Date: 2003-05-15 Member: 16331Members, Reinforced - Shadow
    Nice Job.

    WIll give this a whirl tonight!
  • 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
    Now nobody has ANY excuse for crappy looking overviews.
  • aeroripperaeroripper Join Date: 2005-02-25 Member: 42471NS1 Playtester, Forum Moderators, Constellation
  • VetinariVetinari Join Date: 2013-07-23 Member: 186325Members, Squad Five Blue, Reinforced - Shadow, WC 2013 - Silver
    BeigeAlert wrote: »
    Now nobody has ANY excuse for crappy looking overviews.

    "I couldn't get the previewer to work" :P
  • 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
    BeigeAlert wrote: »
    Now nobody has ANY excuse for crappy looking overviews.

    "I couldn't get the previewer to work" :P

    LIAR!
  • 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
    Anybody had a chance to use this yet? I've only ever tested it on my machine, so I'm anxious to hear if it's working properly for everyone else.
  • SamusDroidSamusDroid Colorado Join Date: 2013-05-13 Member: 185219Members, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Gold, Subnautica Playtester, NS2 Community Developer, Pistachionauts
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    used it works great thanks, my map seems to be a little wide though whilst it isnt finished the right edge has map meeting it like it isnt fully centered?
  • 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
    used it works great thanks, my map seems to be a little wide though whilst it isnt finished the right edge has map meeting it like it isnt fully centered?

    Not exactly sure what you're asking here, but all this utility does is run Overview.exe and display the output of it. If the output is bad... it's on your map's-end, not mine. :/
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    edited August 2014
    doesnt work anymore :( click button nothing happens
  • 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
    doesnt work anymore :( click button nothing happens

    Just checked it, seems to work fine over here. :/ What's it say in the output window of the editor? (Make it visible through the "window" menu)
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    edited August 2014
    C:\Program Files (x86)\Steam\SteamApps\common\Natural Selection 2>"C:\Program Files (x86)\Steam\SteamApps\common\Natural Selection 2\\Overview Preview.jar" "C:\Program Files (x86)\Steam\SteamApps\common\Natural Selection 2\ns2\maps\dagon3.level"

    alot of errors for shader missing technique for rendering light on a huge loop

    also unable to load mining light illum red also
  • 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
    Go inside your "Natural Selection 2" directory. When you run the tool, does a directory appear called "beigeToolTempOverviews"?
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    yes a folder appears, with maps/overviews but its empty
  • 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
    yes a folder appears, with maps/overviews but its empty

    Really? A TGA file never appears in there? :/
  • pakuizepakuize Join Date: 2011-09-02 Member: 119652Members
    Could you upload a clean version ?
    Antivirus discovered malicious software attached to the zip file.
  • 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 August 2014
    pakuize wrote: »
    Could you upload a clean version ?
    Antivirus discovered malicious software attached to the zip file.

    Which AV software is that? All that's in there is a jar and bat to run it. No malware in there. :/

    EDIT: What the hell? Yea I'm getting the malicious software warning from Chrome. Does anybody know what can cause this? It's uploaded to my personal dropbox... not sure how anyone else could have access to that.

    EDIT2: It's also doing it for my quick arc range thing.
  • pakuizepakuize Join Date: 2011-09-02 Member: 119652Members
    Firs I got the warning from chrome, knowing chrome tend to be a little over cautious I tried from IE could download fine there then as I wrote my antivirus notified me.
    My Antivirus application on one machine is ESET Smart Security 7.0
    On my 2nd machine it's Avast.
    Both warned about malicious software attached.

    I do by no means want to cause trouble I only just really want to use your tool as looks great and it will save me the trouble of opening up photoshop or the game to check the overview.
    I think this is something that should have been build into the editor in the first place.
    I will try to unzip the file in a sandbox machine for now.
  • pakuizepakuize Join Date: 2011-09-02 Member: 119652Members
    edited September 2014
    Thanks the new link works perfectly!
  • 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
    pakuize wrote: »
    I think this is something that should have been build into the editor in the first place.

    In their defense, the editor is part of the engine, not the game per-say. Theoretically, not every game that uses spark will use overviews... though we have yet to see a spark engine game not use overviews (ns2... combat... ?...)
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    edited September 2014
    yea folder is empty, i delete the folder chain click on overview previewer and it recreates the folders but no tga file appears

    the map in its current state is not a functional ns2 map, i can run it in ns2 and explore it but it isnt set up to work with all the res nodes tech points and locations etc..


    It was working before like a week ago but now wont.
  • 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 September 2014
    yea folder is empty, i delete the folder chain click on overview previewer and it recreates the folders but no tga file appears

    the map in its current state is not a functional ns2 map, i can run it in ns2 and explore it but it isnt set up to work with all the res nodes tech points and locations etc..


    It was working before like a week ago but now wont.

    Ooooh wait a minute. YOU delete the folder? It's supposed to get rid of that automatically. So you're saying it's leaving an empty folder behind? Hmmm... this could indicate an error is stopping the program before it gets to that point... interesting...
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    the overview.exe is just hanging i think its in my programs but isnt doing anything
  • 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
    the overview.exe is just hanging i think its in my programs but isnt doing anything

    Hmm... I've noticed that overview.exe has been crashing again on exit like before... but it still works for me. Wonder if that could be causing you problems.
  • Soul_RiderSoul_Rider Mod Bean Join Date: 2004-06-19 Member: 29388Members, Constellation, Squad Five Blue
    BeigeAlert wrote: »
    though we have yet to see a spark engine game not use overviews (ns2... combat... ?...)

    How about Proving Grounds and GorgeCraft? Neither of those have maps or minimaps, os neither use overviews...
  • UncleCrunchUncleCrunch Mayonnaise land Join Date: 2005-02-16 Member: 41365Members, Reinforced - Onos
    Soul_Rider wrote: »
    BeigeAlert wrote: »
    though we have yet to see a spark engine game not use overviews (ns2... combat... ?...)

    How about Proving Grounds and GorgeCraft? Neither of those have maps or minimaps, os neither use overviews...

    It hangs since build 268. The error message is "unable to queue job" (from builder) or something like that.

    It still render properly the overview image. With a little difference though. It seems sharper. Maybe it crashes before a blur effect (as last operation), dunno.
  • 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 September 2014
    Where is that error message appearing? Editor console?

    I haven't run it since 269 came out, I'll give it a look.

    EDIT: Working fine over here. :/
  • deathshrouddeathshroud Join Date: 2010-04-10 Member: 71291Members
    edited September 2014
    since 269 it works again :)

    332pem9.jpg
Sign In or Register to comment.