Looking at adding the boot / log for RR into mapdb. I looked at how the ticket is handled for the cutter and it's not nice. Darkstone short sword is worse I think, but I'll paste that one to start with.
Little help, please. Looks like crap on the forums, peek at this. You can find it via ;e echo Room[6955].inspect in Prime mapdb.
I don't really like it using lootsack or the limited range of nouns it thinks to look at. But I don't want to do a DownStream Hook. I will put a link to the Cutter code once I get it sorted.
Update: Have a pair of scripts on my computer for the RR boot that work. Just need to port them to StringProc and test it in the actual mapdb. I'll do it sometime soon!
Final result (and I'm really sorry) works!
Here is a relatively hacky shell script (I called lic2proc.sh) which will barf a one-liner you can paste when you call on a lich script. It strips lines beginning with # comment symbol (NB: ^first character). It's also gonna preserve your tabs and returns so that there's any hope of extracting it to a readable form again. It will deal with the common escapes (double quote and some hashes), but it cannot handle a script with at (@) because I use it as a sort of variable in the tr compression with sed.
(It occurs to me I am explaining leaning toothpicks that produce line-noise code. I apologize again.)
Code:
#!/bin/bash
printf "StringProc.new(\""
cat "$1" | sed '/^#/d' | tr '\n' '@' | sed 's/@/\\n/g' | tr '\t' '@' | sed 's/@/\\t/g' | sed 's/#{/\\#{/g' | sed 's/"/\\"/g'
printf "\")"
That way you can port your possibly almost readable code into a retard StringProc.