Page 1 of 1

Limit on aliases/triggers?

Posted: 07 Nov 2017 16:48
by mallor
Hi.

It seems like there's a hard-coded limit for size of aliases/triggers, around 70k. If request to save settings exceeds 70k, it fails with response "Incomplete response received from application".
Is it intended? I mean I can easily have up to 70k JS code in aliases/triggers.

Thanks,
Mallor's player.

Re: Limit on aliases/triggers?

Posted: 07 Nov 2017 20:30
by Saimon
There was already rised this issue in past:

https://www.genesismud.org/forums/viewt ... 843#p35843

Re: Limit on aliases/triggers?

Posted: 07 Nov 2017 20:36
by mallor
The fact it still hasn't been fixed is quite alarming. 70k text is nowhere near enough to be able to maintain even minimal amount of scripts.

Re: Limit on aliases/triggers?

Posted: 08 Nov 2017 01:41
by Drazson
mallor wrote:The fact it still hasn't been fixed is quite alarming. 70k text is nowhere near enough to be able to maintain even minimal amount of scripts.
Wait, 70k characters in total for the sum of the aliases or for each? :P

Re: Limit on aliases/triggers?

Posted: 08 Nov 2017 08:17
by mallor
Drazson wrote:
mallor wrote:The fact it still hasn't been fixed is quite alarming. 70k text is nowhere near enough to be able to maintain even minimal amount of scripts.
Wait, 70k characters in total for the sum of the aliases or for each? :P
Why do people keep asking that? :D The total size of json that is being sent to server when you save your settings, so it's all triggers/aliases/whatever is sent as well.

Re: Limit on aliases/triggers?

Posted: 08 Nov 2017 15:16
by Drazson
mallor wrote:Why do people keep asking that? :D The total size of json that is being sent to server when you save your settings, so it's all triggers/aliases/whatever is sent as well.
We gotta seize the day, grasp the opportunities to learn. (lol am i drunk)
Uhm to be honest I use most scripts I can think of needing and I'm just fine.
However, I don't pvp tho but there's no scripting there now is it.

If the server can take it then I think it's a worthy expansion. MAYBE some widely used stuff could get integrated for casual usage though, just like "l" for "look". If wizzies think it's a possibity then we can create a post with (hopefully sensible) suggestions. Hmm... maybe that's irrelevant to your issue though, since those are mostly aliases with little size contributions. Anyway.

Re: Limit on aliases/triggers?

Posted: 08 Nov 2017 15:26
by mallor
1200 lines of JS code is about 70k of text, there you go. ONLY 1200 lines :)

Re: Limit on aliases/triggers?

Posted: 19 Nov 2017 17:38
by cotillion
Should be fixed in 0.4.9.

Re: Limit on aliases/triggers?

Posted: 19 Nov 2017 20:08
by Shanoga
cotillion wrote:Should be fixed in 0.4.9.
Awesome response time. Thanks!

Re: Limit on aliases/triggers?

Posted: 19 Nov 2017 21:22
by mallor
I've already implemented a workaround that compresses my aliases, but still thanks :)