Add brace collapsing to E2 editor #2632
Replies: 13 comments
-
Includes have a size limit? I don't think there's a limit set anywhere in the code. |
Beta Was this translation helpful? Give feedback.
-
there may be no limit in e2, BUT there is limit on e2 file, which can be transferred to server. If you try to upload e2 sized over around 227KB, your client will FREEZE, spamming in console, something about file can't be transfered, I don;t remember exactly. That "freezing" means you can not do anything, only disconnect from server and connect again, it will freeze even in single player. And includes works just exactly like copy&paste, so it doesnt matter if you have 1 very large file or 10 smaller ones, anyways same large file will be generated and transfered. I am currently writing E2 PC (the most complex ever in gmod, I think) and that tons of limitations are really pissing me off. It takes about 20 seconds to just find line in one place, than same in another, argh... |
Beta Was this translation helpful? Give feedback.
-
@Divran I was thinking, it also may be very helpful to have comments like "#+label something" and "#!label", so that first can be link to position of second, supporting multiple links. Well, this is a bit weird, but useful. And links from functions to definitions... |
Beta Was this translation helpful? Give feedback.
-
So basically you have a file so large that you're hitting Lua's performance limit. |
Beta Was this translation helpful? Give feedback.
-
I never thought about it like that. It was more likely transfer limit, which can be 256KB - some meta deta included, but maybe. Do I need to test that behavior again to say correctly and add a new issue? |
Beta Was this translation helpful? Give feedback.
-
I don't think there is a transfer limit though, because the code splits up the transmitting over time automatically. The only explanation I have is that your code is simply too big for other reasons. For example, you said that searching through the file (with ctrl+f I assume?) takes several seconds. That's a hint. Hmm.. but you also said your client freezes when sending. Are you sure you're using the latest version of wiremod? In an older version, the splitting up of transmissions of E2 files wasn't very well coded, and that might cause the freezing you are seeing. |
Beta Was this translation helpful? Give feedback.
-
No-no, I didn't mean ctrl-f search, I meant just looking around to find what I need, and auto-search is still pretty fast, less than second. Yeah, It was actual about half a year ago, not for last version. |
Beta Was this translation helpful? Give feedback.
-
uhhh yeah testing with the latest version before you post a bug report is generally a good idea |
Beta Was this translation helpful? Give feedback.
-
tested a little, but hadn't enough time to determine the limit, and forgot, what it spammed to console again... lol.. but this problem is still actual, I think it's exactly same as it was. I'll check further later |
Beta Was this translation helpful? Give feedback.
-
So, it's gone to off-topic, but what status is it on topic? |
Beta Was this translation helpful? Give feedback.
-
ExpAdv2 will have this feature soon. Just ask the creator if you can use that code for this editor, or if you can replace this editor with theirs. |
Beta Was this translation helpful? Give feedback.
-
Can't simply copy paste code from a completely different editor. That's not how it works. (At least not for such a duct taped editor like E2s) |
Beta Was this translation helpful? Give feedback.
-
StarfallEx has this feature on their fork of the wire editor. Could ask the PR creator if their code could be brought into the original wire editor. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Functionality is same as hiding functions, etc., but realization must be simple, I think
That would definitely make a lot of people writing loooong e2's happy
Beta Was this translation helpful? Give feedback.
All reactions