Make a trigger for log a line into a file

Posted by Rafael on Wed 06 Nov 2019 05:34 PM — 6 posts, 19,943 views.

#0
Hi i make some java app to translate t2t map into a legible text for the blind impaired, i need to capture the map into a file and then execute the jar, erase after and so on. Any help will be apreciated :)
Australia Forum Administrator #1
What's a t2t map?

In Lua you can write to files so it would be a case of opening the file (if not open already) and writing the line that you want, when the trigger fires.
#2
Nick Gammon said:

What's a t2t map?

In Lua you can write to files so it would be a case of opening the file (if not open already) and writing the line that you want, when the trigger fires.


t2tmud wildmap, i have make a translate tool, that split the map into various sections and other stuff, the output is something readable. in a future i want to add more muds. i dont know lua i make in java. the thing i want is to start loggin when the map start and stop at the hp promp. Thanks for the help. ^^
Australia Forum Administrator #3
You can also write files in Javascript as far as I know.
#4
Nick Gammon said:

You can also write files in Javascript as far as I know.

Sorry to trouble you so much, im not a mush user, my friend use it. I dont familiar to this, i can make a jar to pass a string into a file, how i can get such string from a trigger. Thanks in advance ^^
Australia Forum Administrator #5
I have a tutorial about triggers:

http://www.gammon.com.au/forum/?id=9626