This is a small tool (which i have made for own needs) which can set defines and the most important it converts RAW codes (256 encoding) numbers into decimal (10 encoding)
it affects only outputed war3map.j shortly said this tool is required to be able to save TcX (http://tcx.xgm.ru) map.

## REQUIMENT
it require cJass processor (AdicHelper) you can download it here http://cjass.xgm.ru
after you have installed it you will need to add some line into wehack.lua (JassNewGenPack) so the tool will be launched after the map is saved.
(place this tool in the same directory as the 'AdicHelper' (cJass) is placed)

open WEHACK.LUA
and search for

function compilemap_path(mappath) 

function. after you have found it search for line like that
wehack.runprocess2("AdicHelper\\AdicHelper.exe /mappath=\"" .. mappath .. "\"")

it may differ but it's what we need, so you need to copy it and change a bit (insert it BEFORE AdicHelper ...)
so it will looks like
wehack.runprocess2("AdicHelper\\Autoreplacer.exe \"" .. mappath .. "\"")

so it should looks like (ofc the path maybe different)

and so it looks in the file (at least in my)



	wehack.extractfile("war3map.j","war3map.j")
	wehack.closearchive(map)
	if cmdargs ~= "" then
		wehack.runprocess(cmdargs)
		cmdargs = ""
	end
wehack.runprocess2("AdicHelper\\Autoreplacer.exe \"" .. mappath .. "\"")
wehack.runprocess2("AdicHelper\\AdicHelper.exe /mappath=\"" .. mappath .. "\"")

	if havejh and jh_enable.checked then
		cmdline = "jasshelper\\jasshelper.exe"
		if jh_debug.checked then
			cmdline = cmdline .. " --debug"

save this file. and you should be able to save the map. (if the Autoreplacer will run properly.)
hf ^_^

