GIR
New member
Hello Mafia Forum! This thread is simply going to be some information sharing for those who use the CLI (like me) who have questions with regard to generating .txt files for automation purposes. To be more specific, using item ID numbers to manipulate your goods.
Short story: updating CLI txts, came across my first comma-infused name: "Ouija Board, Ouija Board." Did some forum searching, discovered my scripts were horribly written (by server hit measurements), and I should use commands and commas in a single line. The Mafia Wiki CLI Resource section said an alternative was to use a pilcrow before the item's ID number if you have items with commas in the name. I said something along the lines of "hot damn," and spent the next day and a half re-writing and modernizing my commands.
However, I write my commands first in LibreOffice, and then transfer them to Notepad when I'm done. In LibreOffice, using the pilcrow is a cakewalk. And I was extremely pleased to see the pilcrow copy over to Notepad. And then I ran the script. Long story short - after watching the red text go by in a parade of failure, I tried a bunch of things until replacing the pilcrow with ¶ worked when I called the script in the Mafia interface.
Examples of change - went from:
try ; closet put * something
try ; closet put * something else
to:
try ; closet put * ¶####, * ¶####
and worked out writing:
try ; closet put * ¶####, * ¶####
And now is the time when all my readers give me flak for using Notepad. I know that the pilcrow is supported in the gCLI, and now know that Notepad only shows the pilcrow without directly supporting it. So, what would you use that could save the pilcrow, and be a file readable by Mafia's script call? If nothing, awesome, and I hope I've helped somebody in the future.
Short story: updating CLI txts, came across my first comma-infused name: "Ouija Board, Ouija Board." Did some forum searching, discovered my scripts were horribly written (by server hit measurements), and I should use commands and commas in a single line. The Mafia Wiki CLI Resource section said an alternative was to use a pilcrow before the item's ID number if you have items with commas in the name. I said something along the lines of "hot damn," and spent the next day and a half re-writing and modernizing my commands.
However, I write my commands first in LibreOffice, and then transfer them to Notepad when I'm done. In LibreOffice, using the pilcrow is a cakewalk. And I was extremely pleased to see the pilcrow copy over to Notepad. And then I ran the script. Long story short - after watching the red text go by in a parade of failure, I tried a bunch of things until replacing the pilcrow with ¶ worked when I called the script in the Mafia interface.
Examples of change - went from:
try ; closet put * something
try ; closet put * something else
to:
try ; closet put * ¶####, * ¶####
and worked out writing:
try ; closet put * ¶####, * ¶####
And now is the time when all my readers give me flak for using Notepad. I know that the pilcrow is supported in the gCLI, and now know that Notepad only shows the pilcrow without directly supporting it. So, what would you use that could save the pilcrow, and be a file readable by Mafia's script call? If nothing, awesome, and I hope I've helped somebody in the future.