Jump to content
The Dark Mod Forums

Handy utility for mappers: searching for keyword's within files.


Bikerdude

Recommended Posts

I have been copying a lot of new textures, models and entities from the SVN into my current WIP. And the issue I had was manually searching for the shader and its path within the material definition/s, but this took ages manually search each .mtr file. What I wanted was a utility that could search for keywords within text files and tool I found to do that is called "Astrogrep".

 

So now it takes seconds to find the into i want instead of 5-15mins (or more)

Link to comment
Share on other sites

I've been looking for something like this and I also have notepad++ so this is great.

 

Thanks!

Link to comment
Share on other sites

I actually use notepad++ for that, CTRL+F and there's an option to search within files,

Ah now, this is much better as it will then allow me to open the file I want to edit directly in NP++, nice one mister!

 

Question though, Astrogrep added a "search using" funtion from the right click menu. Is there a way to get notepadd++ to do this..?

Link to comment
Share on other sites

You can also open multiple files in NP++ all at once and search them all simultaneously which is helpful. Also, Win7 (and on) now have "search file contents" as well in the folder options dialogue which is similar to grep.

 

A free utility that you also may find some use for that I use from time to time is Winmerge. The name is misleading but the app allows you to do a visual "diff" (unix/linux command) and compare two text files to find any differences between the two. Saves oodles of time.

Edited by Lux
Link to comment
Share on other sites

Ah now, this is much better as it will then allow me to open the file I want to edit directly in NP++, nice one mister!

 

Question though, Astrogrep added a "search using" funtion from the right click menu. Is there a way to get notepadd++ to do this..?

 

Yes, you can. Go to menu 'Settings/Adjust contect menu' (or however it would be displayed in english)

and add the following in the file popping up, e.g. right after the initial 'Edit' section and restart Notepad++:

 

<Item id="0" />

<Item MenuEntryName="Search" id="43013" />

 

43013 is for 'Search in files'

 

However, you could simply use Ctrl-Shift-F in order to get to the same 'Find in files' dialog.

Edited by gnartsch
Link to comment
Share on other sites

  • Yes, you can. Go to menu 'Settings/Adjust contect menu' (or however it would be displayed in english)
  • However, you could simply use Ctrl-Shift-F in order to get to the same 'Find in files' dialog.

  • dont seem to have that option
  • And its not finding files I'm after its finding lines of text within files.

Link to comment
Share on other sites

  • dont seem to have that option
  • And its not finding files I'm after its finding lines of text within files.

- I just checked. The english menu reads 'Settings / Edit Popup ContextMenu'.

In case you don't have it, maybe get an update on Notepad++.

- Isn't that even better ??? Well, you can right-click and seelct 'Collapse All' on the result list and then expand it again.

Link to comment
Share on other sites

This is what I use it for usually.

If I need to find a reference burried in the MTR files, I'll set up the search this way:

 

 

 

And I get results like this:

 

 

 

You can double click on each line and will open the corresponding file at that line.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

You could probably just do this and sub the notepad++.exe but maybe that won't work if the exe isn't in the system directory. Try it.

 

You could uninstall Notepad++ and then reinstall it and check that option or you might be able to "change" the install and it will run through again and you can check the box.

 

Link to some solutions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 3 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 2 replies
    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
×
×
  • Create New...