Loading...
  OR  Zero-K Name:    Password:   

increase tweakunits size limit

4 posts, 164 views
Post comment
Filter:    Player:  
sort
3 years ago
Why is the limit so ridiculously small for how long tweakunits can be on multiplayer lobbies? I want a QUICK and easy way to test out tweaks on air fac and don't particularly like having to go into singleplayer and micro both teams at once just so I can test out my changes.

At the moment there is only enough room to alter a few parameters on one unit and even then you need to minify your lua half the time to make it fit.

What other way is there to quickly test stuff with other players and iterate quickly? Or can we be allowed to increase the limit on our own lobby using a setting??







+0 / -0


3 years ago
As far as I'm aware, tweakunits is hitting the server message length limit. There is also a limit to the size of string that lua can deal with. The only workaround I can think of is creating multiple versions of the option that can be used in parallel.
+0 / -0
3 years ago
That would be a better way to do it maybe. Currently I can fit about 2 units worth in if I really cut it down. Lua doesn't seem to have any problems having 3 full unitdefs with comments in single player, so must be that limit.

I end up with this being about the max I can cram into it.

e3BsYW5lZmlnaHRlcj17Y3VzdG9tUGFyYW1zPXtmaWdodGVyX3B1bGx1cF9kaXN0PTM1MH0sbWF4VmVsb2NpdHk9MTUsd2VhcG9ucz17e21heEFuZ2xlRGlmPTI1fSx7bWFpbkRpcj1bWzAgMCAxXV0sbWF4QW5nbGVEaWY9MzB9fSx3ZWFwb25EZWZzPXtTV0lGVF9HVU49e2RhbWFnZT17ZGVmYXVsdD0zMH0sZmFsbE9mZlJhdGU9MC4wNSxkdXJhdGlvbj0wLjAxMixleHBsb3Npb25HZW5lcmF0b3I9W1tjdXN0b206cGxhc21hX2hpdF8zMl1dLHJlbG9hZHRpbWU9MC4xLHR1cnJldD10cnVlLHdlYXBvblZlbG9jaXR5PTgwMCxhY2N1cmFjeT0xMDAwfSxNSVNTSUxFPXthcmVhT2ZFZmZlY3Q9MTAwLGRhbWFnZT17cGxhbmVzPTIyMH0sZXhwbG9zaW9uR2VuZXJhdG9yPVtbY3VzdG9tOkZMQUtQTE9TSU9OXV0sZmxpZ2h0VGltZT0xLjUscmFuZ2U9MTAwMCxyZWxvYWR0aW1lPTEzLHN0YXJ0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YXBvbi9taXNzaWxlL3JvY2tldF9oaXRdXSxzb3VuZFN0YXJ0PVtbd2VhcG9uL21pc3NpbGUvcmFwaWRfcm9ja2V0X2ZpcmVdXSx0ZXh0dXJlMj1bW0FBc21va2V0cmFpbF1dLHRvbGVyYW5jZT0yMjAwMCx0cmFja3M9dHJ1ZSx0dXJyZXQ9dHJ1ZSx0dXJuUmF0ZT0xNTAwMCx3ZWFwb25BY2NlbGVyYXRpb249MTMwMCx3ZWFwb25UeXBlPVtbTWlzc2lsZUxhdW5jaGVyXV0sd2VhcG9uVmVsb2NpdHk9MzcwMH19fX0=
+0 / -0
If the tests are with only a few people then you could commit the changes to your personal ZK fork and have everyone make a zk.sdd with the fork. Provided everyone has the same local files cloned, you can do '!game zk:dev' in the host to run the fork.

Tweakunits is fundamentally a bit of a hack so I wouldn't expect it to be scalable. Increasing the length of the string lobby-side sounds good to me, but doubt it should be supported past the next technical roadblock.
+2 / -0