Search found 17 matches

by SoulSpirit
Mon Aug 27, 2018 7:35 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 6556

Re: Sync with online DB

Vadi wrote:
Sun Aug 26, 2018 1:26 pm
With GET and parameters, yep. POST/PUT isn't supported out of the box.
How? I only found openUrl(), but the docs says it opens a browser window.
Should I use downloadFile() ?

Thanks
by SoulSpirit
Mon Aug 27, 2018 7:34 pm
Forum: Help Forum
Topic: Git
Replies: 4
Views: 1609

Git

Hi, I'd like to develop a set of plugins for a MUD collaborating with some friend, and I'm trying to figure out how to setup the project to handle it. I'm not interested in simply exporting and importing sources, I'm looking for a way to have my plugins sources (identified by a "group", using the na...
by SoulSpirit
Sun Aug 26, 2018 1:18 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 6556

Re: Sync with online DB

Anything about calling an HTTP service to upload data?
by SoulSpirit
Fri Aug 24, 2018 10:21 am
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 6556

Re: Sync with online DB

I'm on the latest 3.12.0 version. I solved this way, even if I don't like it very much: local handlerId = registerAnonymousEventHandler( "sysDownloadDone", function(_, filename) local f, s, result = io.open(filename) if f then result = f:read("*a"); io.close(f) end if result:find("The document has m...
by SoulSpirit
Fri Aug 24, 2018 7:10 am
Forum: Help Forum
Topic: How to capture this?
Replies: 18
Views: 3921

Re: How to capture this?

The trigger to catch you attacks shoul look like: ^Your (?:massive|mighty|powerful|awesome) (?:slash|bludgeon) (?:barely|slightly|severely|badly) wounds .+\.$ In it, you should save a global variable like: gRound = true No need to check the prompt, you can use blank lines to detect the end of a roun...
by SoulSpirit
Fri Aug 24, 2018 6:36 am
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 6556

Re: Sync with online DB

Thanks for the advice.
I was experimenting with it but I've just noticed that "downloadFile()" doesn't follow redirects (HTTP 302).
This is a problem with Google Drive, since every download is subject to one or more redirects, and the real download link is not reliable!
Any idea?

Thanks.
by SoulSpirit
Wed Aug 22, 2018 1:38 pm
Forum: Help Forum
Topic: Sync with online DB
Replies: 16
Views: 6556

Sync with online DB

Hi, I'm developing a set of plugins for the MUD I play on, and sharing them to all the other players. I'm also maintaining some online tables (made with Google Sheets) automatically updated by a form (made with Google Form) that any player can fill by copy/pasting the MUD output (for object identifi...