Skip to content
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

OTAPIv3 Client; Windows launcher: Cannot paste text. #56

Open
0x3fcf1bbd opened this issue Dec 4, 2021 · 3 comments
Open

OTAPIv3 Client; Windows launcher: Cannot paste text. #56

0x3fcf1bbd opened this issue Dec 4, 2021 · 3 comments

Comments

@0x3fcf1bbd
Copy link

0x3fcf1bbd commented Dec 4, 2021

Describe the bug
It is possible to copy or cut text from the game, but not to paste text.
Attempting to copy or paste text does not do anything, cutting simply deletes the text.

To Reproduce
Steps to reproduce the behavior:

  • Download the windows launcher from https://github.com/DeathCradle/Open-Terraria-API/releases/tag/launcher-windows.
  • Extract it, and run OTAPI.Client.Launcher.exe.
  • Press the "Build OTAPI" button, and wait until the operation finishes.
  • Press the "Launch modded Terraria (otapi)" button.
  • Once the game has loaded, join a singleplayer/multiplayer world.
  • Once in the world, copy text from the chat/a sign using Ctrl+C.
  • Attempt to paste it in the chat/a sign using Ctrl+V
    ->Nothing happens.

Expected behavior
It is possible to paste text in game, just as it is possible in vanilla.

Platform and patch info (please complete the following information):

  • OS: Windows 8.1
  • Assembly and version you are patching: Terraria.exe 1.4.3.2
  • Version of OTAPI/git commit: 8f0437f
  • .NET runtime: .NET 6
@SignatureBeef
Copy link
Owner

I have not tested but i can basically confirm this is a bug since System.Windows.Forms has been shimmed to nothing; i need to redirect those Get/Set clipboard calls to a library that works cross platform.
on the list 👍

@0x3fcf1bbd
Copy link
Author

0x3fcf1bbd commented Dec 6, 2021

Edited it, because actually no, copying and cutting doesn't work either.

As for a possible library, looked it up a bit, and found https://github.com/jtanx/libclipboard.
Would this suit your need?
Would have to do a C# wrapper though so uh lol

@SignatureBeef
Copy link
Owner

Edited it, because actually no, copying and cutting doesn't work either.

As for a possible library, looked it up a bit, and found https://github.com/jtanx/libclipboard. Would this suit your need? Would have to do a C# wrapper though so uh lol

yeh i suppose that would work, but a less effort package i stumbled across might be: https://github.com/CopyText/TextCopy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants