-
Notifications
You must be signed in to change notification settings - Fork 443
Pasting stops at around line 257 if pasting more than 257 lines #3084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can use the built-in Pastebin program. Add internet card to the computer => |
@NiamiTV you've found an interesting problem in our code with clipboard events
And bam, you have the 256 line limit issue. Sometimes (most times?) you see 257 because machine state wakes up soon enough to get at least 1 of the signals before the queue is maxed out, discarding the remaining 1074 lines. I tested creating clipboard events that pack more than a single line of text. This mitigates part of the problem, but it is also possible that such a solution could cause unanticipated side affects in the community that isn't expecting this change in clipboard data I have decided to pull out the hard coded value of 256 for our max queue size, and put that in our configuration. It will default to 256 so as to not interfere with what the community has come to expect. Thus, with the fix for this bug, if you wanted to paste such a large file, you'd want to change the oc config on the server, and change The alternative solution is to download the file in-game, such as by using the pastebin tool @SpaceBeeGaming suggested. |
I know this is an old (and closed) issue, but I suspect the fix described by @payonel is not working as intended.
If I understand this correctly, the intention is for However, in my modpack, I've been unable to increase this limit beyond the default value. I've tried pasting a file with ~300 lines and the insertion stopped at 256. It would seem that this is because, in the code implementation, the limit is calculated using
The end of this line should probably read: [...] config.getInt("computer.maxSignalQueueSize") else 256) max 256 ...so that the greater value of the two is used. I'll attempt to fix this myself for my modpack (for personal use only!), but still wanted to bring this up to your attention so it can be resolved in future releases. And sorry for the issue bump. 😄 |
There is something about putting the operator/function name |
I'm trying to paste this: https://pastebin.com/jdaM8FKG and everytime it stops pasting at around line 257. I've changed the maxClipboard value but it did nothing.
The text was updated successfully, but these errors were encountered: