Vetric icon indicating copy to clipboard operation
Vetric copied to clipboard

Add a config guide

Open MOMIN5 opened this issue 4 years ago • 5 comments

the jar just creates a empty json file, with no instructions on how to make the config, i tried reading the code and found "files.input" and "files.output" in ConfigSetting.class , i put them in a json format like this Screenshot_2021-07-05_17-06-37

but it still throws Exception in thread "main" java.lang.IllegalArgumentException: Missing input file in config.

also please add the example in readme 🙏

MOMIN5 avatar Jul 05 '21 11:07 MOMIN5

Hey! Vetric is still in the really early stages of development and should not be used outside of testing. The config is pretty complex, so I will definitely add a full guide in the future. However, if you really want to use/test Vetric in its current state, I can give you a full config.

Oh, and files.input doesn't work because it's a JSON XPath. So the correct version would be:

"files": {
    "input": "./in.jar",
    "output": "./out.jar"
  }

If you have any more questions, feel free to add me on Discord: ByteZ#1337

ByteZ1337 avatar Jul 05 '21 13:07 ByteZ1337

I will leave this issue open as a reminder to add a config guide

ByteZ1337 avatar Jul 05 '21 13:07 ByteZ1337

thanks for helping!, one last thing how can i enable transformers? no transformers enabled

MOMIN5 avatar Jul 06 '21 14:07 MOMIN5

Here is a full config. Before using it, please pull the latest changes, since your version still contains some debug information.

ByteZ1337 avatar Jul 06 '21 15:07 ByteZ1337

the jar just creates a empty json file, with no instructions on how to make the config, i tried reading the code and found "files.input" and "files.output" in ConfigSetting.class , i put them in a json format like this Screenshot_2021-07-05_17-06-37

but it still throws Exception in thread "main" java.lang.IllegalArgumentException: Missing input file in config.

also please add the example in readme 🙏

hello momin

Napoleon-x avatar Jul 20 '21 14:07 Napoleon-x