I'm using a program that can pack/compile a folder with files into a single *.xyz file that only that program can decompile and read. In order for the program to create a compiled file the flag:


must be in the file Meta.ini. If not, the file cannot be unpacked/decompiled and there is no way to get back the source files.

I have created a compiled file and have lost the source files. I forgot to add the decompile flag, so I currently have no way to unpack the file and continue my work. I can still compile and decompile files using the program as long as I include the flag. The file produced is in the FoxPro FPT format. The program is written in Visual Basic.

To Summarise:

  • I have a compiled/packed file that I need to decompile/unpack.
  • I have access to the program that can compile and decompile the file.
  • I don't have the required decompile flag in the file.
  • The file produced is in the FoxPro FPT format.
  • The program is written in Visual Basic.

I know where the flag needs to go but I have no way of inserting it without first decompiling/unpacking the file (that I know of). When I open the file with Notepad++ it's mostly gibberish (makes sense as the file contains alot of images and geometry data) but the contents of Meta.ini are in plaintext. However, trying to add the flag or replace one of the other flags with it gives Incorrect String errors when the program tries to load the file.

My options are:

  • Insert the flag into the file so the "Compile" option becomes available within the program
  • Isolate the compiler (maybe it's all in one dll hidden within the program) and skip the program's check for the flag entirely.
  • Find the flag check that returns false using a memory editor and changing it to true (suggested by @DarthGizka here).

How should I go about this?


  • "I'm using a program that can pack/compile a folder with..." - What's the name and version number of the program? Dec 9, 2015 at 14:16
  • 1
    As Jason said. Stating the name of the program greatly improves the possibility of someone knowing about it. However, what you want might just not be feasible. For example, the flag might just be read when you create the file, and if it's set, both source code and compiled version go into the package; if it's clear, the source code is omitted. No amount of patching the finished package will give you the original source back. Dec 9, 2015 at 17:03
  • @JasonGeffner the program is Lucas' Simpsons Hit & Run Mod Launcher Version 1.12.1 Dec 9, 2015 at 19:51
  • @JasonGeffner here is another of my files that has the decompile flag. To load it into the launcher click Open... then Mods and paste the folder there, then click Reload. To decompile the mod right click on it (Audi R8) and click Decompile. The compile process is practically identical. Thanks Dec 10, 2015 at 6:38

1 Answer 1


I had a look at the program you mentioned and the compilation means only packaging, so decompilation is always possible. The format of the file seems to be very simple, so if you want you can reverse it easily. However you can insert the decompilation flag into the meta.ini with a hex editor for example in the following way:

  • Open the file in your preferred hex editor.
  • Locate an [Author] section and modify it by overwriting the file content with [Compile]\x0aDecompilable=1\x0a (\x0a means a new line character).
  • Fill up the remaining string with spaces until the next section start.

After these modification you should have a similar entry such in the following picture:

enter image description here

  • Thanks for taking a look :) Inserting it didn't work initially but I'll do some fiddling and see what happens. Jan 22, 2016 at 20:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.