MQ2IniReplace

Overview


This is a plugin to allow for character replacement during writing to ini files.
Primary reason for this, is to allow for writing a mix of parsed and unparsed MQ2Data.
It will only work with single character replacement, for example

Commands


/inireplace "<Ini Path>" "<Section>" "<Key>" "<Search>" "<Replace>" "<Value>"



<Ini Path>: Path to ini file.
<Section>: [Section] in the ini file.
<Key>: Key to write too.
<Search>: Character to replace.
<Replace>: Character to replace with.
<Value>: Data to run search and replace on before writing to ini.


Example
/inireplace "..\mq2hud.ini" "elements" "CursorItemName" "^" "$" "7,-15,-15,255,255,255,^{If[^{Cursor.ID},^{Cursor},]}"

Results
ini
More +
[Elements]
CursorItemName=7,-15,-15,255,255,255,${If[${Cursor.ID},${Cursor},]}


Limitations


Not available on SoF
Sat Aug 08, 2020 9:50 am