Introduction

This program quietly runs NearInfinity with the specified VM / HotSpot Options. It currently provides the option to:


  • Specify initial size of memory allocation pool.
  • Specify max size of memory allocation pool.
  • Specify initial size of permanent generation memory.
  • Specify max size of permanent generation memory.
  • Specify initial size of new generation memory.
  • Specify max size of new generation memory.
  • Specify additional custom parameters.

This is a beta release, and as such, may be buggy. I am, however, prepared to make every effort to correct any errors or problems that you encounter with this program. If there are other command-line arguments you would like this utility to support (like a non-standard garbage collector or something), please let me know and I'll add them. As of version 1.02, custom command-line arguments can be added by manually editing the "Custom" key in "Hide NI DOS Config.txt". The contents of the key should be exactly how the argument would be used in a batch file e.g. "-Xms512m" (without the quotes). This utility was built using the AutoHotkey scripting language, and as such will perform best on newer Windows operating systems. It has been optimized for Windows XP. Enjoy :-) !

Hide NI DOS > IntroductionBack To Top

Installation

Installation is very simple: just extract the contents of the .RAR archive into any directory and run "Hide NI DOS.exe". You have two options for setting the VM Options: you can either edit "\Hide NI DOS (files)\Hide NI DOS Config.txt" yourself, or you can use the program's built-in GUI.

If you choose to edit the Config file manually, then you can specify the size, in bytes, of the different memory allocation options. This value must be a multiple of 1024 greater than the minimum number of MB allowed for that option (usually 1 or 2). Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. If you do not want the utility to use a particular VM Option, then leave the value for that key blank.

On the other hand, to access the Config GUI, run Hide NI DOS.exe with the "-config" parameter. In other words, save "Hide NI DOS.exe" -config to a .BAT file and run it. The values set by the GUI are in megabytes. Uncheck a parameter to disable it. The "default" values are the ones I use and recommend for anyone with a 32-bit system and around 2 or more gigs of RAM.

Hide NI DOS > InstallationBack To Top

Frequently Asked Questions

Q: Why is this program needed?
A: Basically, the default memory allocation settings (which are platform-dependent) are just not high enough. NearInfinity can run out of memory if used for long periods of time, causing it to freeze or give OutOfMemory errors. The best way to counteract this is to allocate more memory for NI to use at runtime. Hide NI DOS is better than commonly distributed .BAT files because it makes it easy to adjust more than just the maximum size of the memory allocation pool. More importantly, it hides the command prompt window through which NI is run.

Hide NI DOS > FAQBack To Top

Credits

Thanks to all the people who contributed to the NearInfinity project over the years. Your contributions are very much appreciated by the Infinity Engine Modding Community.

Thanks to ScuD for telling me which command-line arguments he uses when running NearInfinity. I now use the very same ones every time I run NI, and they are the default values used by Hide NI DOS.

Thanks to corrupt for his CMDret-AHK functions.

To view the "About" dialog, run Hide NI DOS.exe with the "-about" parameter. In other words, save "Hide NI DOS.exe" -about to a .BAT file and run it.


Hide NI DOS > CreditsBack To Top

Version history

12 January 2012 - Version 1.03:
  • Fixed a bug where the Hide NI DOS process did not close when the NearInfinity window was closed.
  • Replaced corrupt's "CMDret_Stream" function with his "CMDret_RunReturn" function, as it is more appropriate and likely performs better in this situation.
  • Greatly improved logging. The output should actually be readable now :-) . It is still disabled by default.
  • Many other minor code improvements.
15 September 2011 - Version 1.02:
  • Replaced writing, running, and hiding .BAT files with corrupt's CMDret function.
  • Fixed input parameters so that "-about" and "-config" can be used at the same time.
  • Added option to enable logging of console output (disabled by default).
  • Added support for specifying additional custom parameters. See Introduction.
28 July 2010 - Version 1.01:
  • Added option to config to create a shortcut on the current user's desktop.
22 July 2010 - Version 1.00:
  • Initial release
Hide NI DOS > Version HistoryBack To Top