Jump to content

[Question] DuckEncoder not working for me.


Go to solution Solved by happybox,

Recommended Posts

Posted

I have tried Nano and gedit on linux, and notepad on windows. No matter how I format the command, I get one of this error:

-Loading : script.txt

-script.txt [FAILED]

Or something along those lines.

Posted

The ducky works flawlessly once the bin is generated. I would rather be able to use a terminal, but if I am not able to fix it I can live with an online generator.

Posted (edited)

Try running it through the Duck Encoder v2.4, available in the stickies. If it works on that then please give feedback. The new release has been greatly altered since that one, it would be good to know if I've broken anything. Can you post the actual text file you are trying to encode?

Can you also please run the faulty code in debug mode and post the resulting stack trace? A screenshot will suffice if you can't cut and paste.

java -jar encoder.jar -i script.txt --debug
Edited by ApacheTech Consultancy
  • Solution
Posted

Try running it through the Duck Encoder v2.4, available in the stickies. If it works on that then please give feedback. The new release has been greatly altered since that one, it would be good to know if I've broken anything. Can you post the actual text file you are trying to encode?

Can you also please run the faulty code in debug mode and post the resulting stack trace? A screenshot will suffice if you can't cut and paste.

java -jar encoder.jar -i script.txt --debug

java.io.FileNotFoundException: script.txt ETC.

Thanks, new to java and did not realize there was a debug command. I still have the problem of the directory of ducklings not automatically read, with ./ducklings/script.txt it worked. This is good enough, thanks.

Posted

So, you didn't have script.txt in the same directory as encoder.jar? You do need to fully qualify the path to the input file; there's no "default" input file at this time. If using duckling macros, you don't need to have the .txt script in the ducklings subdirectory, it will work from any directory, so long as it's qualified (absolute or relative).

The ducklings are imported with an "all or nothing" approach. if they're not imported properly, the program will exit with an error.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...