RatPoison-dev / RatPoison

Latest Ver: 1.7; Default Menu Key is F1; Charlatano's Successor; dn
GNU Affero General Public License v3.0
327 stars 95 forks source link

UI issues #136

Closed GreenMan36 closed 5 years ago

GreenMan36 commented 5 years ago

So I had a few issues with the hack. I uninstalled java since it wouldn't recognize java as an command. Removed all Java references in the system variables Normal Java and the JDK re-installed. Ratpoison launches perfectly.

EXEPT.... The UI does this: Nothing in the game. Not F1 or anything. When I alt+tab to it: https://i.imgur.com/DEwp7QP.png F1 in it: https://i.imgur.com/OuU1P0f.png So far my hacking experience.

It did work before messing with java, all i had to do was cmd to the folder and run the same Java etc command but from a normal CMD prompt and it would work.

I need a tiny bit of help.

(Admin or not doesn't help)

GreenMan36 commented 5 years ago

My log is stuck on initializing btw https://i.imgur.com/ZJ1eGQG.png

TheRatCode commented 5 years ago

You shouldn't need to run as admin, someone had an issue when doing that a couple months ago. See these https://github.com/TheFuckingRat/RatPoison/issues/135 https://github.com/TheFuckingRat/RatPoison/issues/131 https://github.com/TheFuckingRat/RatPoison/issues/83 for troubleshooting. If your issue isn't fixed from these then I can't help you

GreenMan36 commented 5 years ago

I know, I just tested if Admin would help. The issues listed all pass initialization of the UI, it never completes the initialization. It just hangs on initializing.

Is there any way to get more debug information so I can post that?

TheRatCode commented 5 years ago

DEBUG = true in general.kts, I'm assuming everything will print out just fine. My only guess is you're using 1.8 instead of 12, but I assume you've checked that already

GreenMan36 commented 5 years ago

For some reason it was still using 1.8 even though I followed the instructions. It's probably because I installed normal java afterwards.

Anyways, here's some general steps to fix most issues:

How to fix: First of all, run the game in windowed mode, the UI is a seperate window so it needs to be able to go on top of the game. Second, do not run in administrator mode, it will only break stuff.

  1. Install the Java 12 JDK. (Download)
  2. Keep a note where it installs. (https://i.imgur.com/M39eeVN.png)
  3. Press start and type "variable" and press enter. (https://i.imgur.com/vRowRmx.png)
  4. Press "environment variables". (https://i.imgur.com/cmBhohO.png)
  5. Find the "Path" variable in the "System variables" and press edit. (https://i.imgur.com/1vaD6MH.png)
  6. Here, press "New" and paste the Java 12 JDK install path there and press "Move up" as many times as needed to get it to the very top. (Step 2) (https://i.imgur.com/gBSIEr4.png)

DONE! You should now be able to run the program correctly.

If you still experience issues. Uninstall ALL Java versions, including the JDK. Remove all entries for Java from BOTH the User variables and System variables. (https://i.imgur.com/JswGzj0.png, https://i.imgur.com/QL5Mr11.png) Re-install the latest Java version. (DO NOT INSTALL THE JDK FIRST, as it may cause issues.) Then you can repeat from step 1.

This should be general steps for people to take when the hack isn't working. I hope I helped TFR and that he will quote this post if anyone has an issue again. This should be clear and easy to understand.