Alter Trans so Monkey just uses Data folder :)

Monkey Forums/Monkey Programming/Alter Trans so Monkey just uses Data folder :)

therevills(Posted 2011) [#1]
Inspired by AdamRedwoods' hack to trans and the CONFIG.TXT, here is a hack to make Trans just use a "data" folder instead of "yourproject.data":

1. In your Monkey folder, find the target.monkey file (src\trans)
2. In the SetSourcePath method alter the following line:
dataPath=StripExt( srcPath )+".data"

to be
dataPath = ExtractDir( srcPath ) + "/data"

3. Save the file
4. Open the trans.monkey file and compile using stdcpp
5. Rename to built exe to trans_winnt.exe
6. In your Monkey bin folder, rename trans_winnt.exe to trans_winnt.exe.bak
7. Copy over the new trans_winnt.exe to the bin folder

Done :)