[Tutorial] Client Editing

Forum for alternative clients, mods & discussions on the same.

Re: [Tutorial] Client Editing

Postby iamahh » Tue Nov 17, 2020 5:14 pm

after some tries I proceeded and ruined the window title only

Image

seems the IDE has changed, I couldn't find the "+" button for Ant... but right-clicking "build.xml" then selecting "Ant Build" worked nice
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: [Tutorial] Client Editing

Postby vatas » Tue Nov 17, 2020 5:26 pm

If I had to take a guess, that's an issue with the UI scaling.
The most actively maintained Haven and Hearth Wiki (Not guaranteed to be up-to-date with all w14 changes.)

Basic Claim Safety (And what you’re doing wrong) (I recommend you read it in it's entirety, but TL:;DR: Build a Palisade.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
vatas
 
Posts: 4530
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Postby LostJustice » Tue Nov 17, 2020 10:41 pm

iamahh wrote:after some tries I proceeded and ruined the window title only

Image

seems the IDE has changed, I couldn't find the "+" button for Ant... but right-clicking "build.xml" then selecting "Ant Build" worked nice



When first opening the IDE, it will be a hidden tab to the right if you have ant build installed and imported correctly, otherwise you must show the tab by pressing ctrl + shift + a and typing "ant" in which case the tab will appear.

LostJustice wrote:So to begin, anywhere on your IDE type CTRL + Shift + A. The search box like the one below should appear somewhere near your mouse.



So from here type Ant Build and press enter. Then a window like the one below on the right should appear.


I know there is a lot of steps here but reading carefully can help save you from a lot of headaches :)
Image
User avatar
LostJustice
 
Posts: 677
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Postby LostJustice » Thu Nov 19, 2020 6:58 pm

There seems to be a lot of activity relating to client editing recently and a lot of people wanting to get into it. I updated the post to include the fixes for the possible resource url issue.
Image
User avatar
LostJustice
 
Posts: 677
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Postby iamahh » Sat Nov 21, 2020 1:07 pm

thanks to this thread I made these attempts (bugs may happen)

Zoom speed option for bad cam
[step 1]
in Config.java add the line
Code: Select all
public static int badcamsensitivity = getint("haven.badcamsensitivity", 5);



[step 2]
in MapView.java find class FreeCam and change method wheel() line
from
Code: Select all
float d = dist + (amount * 5);

to
Code: Select all
int cfg = Utils.getprefi("badcamsensitivity", 5);
float d = dist + (amount * cfg);



[step 3]
in OptWnd.java find line
Code: Select all
composer.add(new Button(UI.scale(200), "Reset to defaults")
and add this code before it:
Code: Select all
            composer.add(new Label("Zoom speed"));
            {
               Label dpy = new Label("");
               final double smin = 5, smax = 25;
               final int steps = (int) Math.round((smax - smin) / 1);
               composer.addr(
                     new HSlider(UI.scale(160), 0, steps, (int) Math.round(steps * (Utils.getprefi("badcamsensitivity", 5) - smin) / (smax - smin))) {

                        protected void added() {
                           dpy();
                        }

                        void dpy() {
                           dpy.settext(String.format("%.2f\u00d7", smin + (((double) this.val / steps) * (smax - smin))));
                        }

                        public void changed() {
                           double val = smin + (((double) this.val / steps) * (smax - smin));
                           Utils.setprefi("badcamsensitivity", (int) val);
                           dpy();
                        }
                     },
                     dpy
               );
            }

use system pointer cursor (maybe unstable)
in JOGLPanel.java method drawcursor() find line
Code: Select all
if(cursmode == "awt")
add before it
Code: Select all
   try{
      if(curs.name.endsWith("curs/arw")) {
         lastcursor = null;
         setCursor(Cursor.getDefaultCursor());
         return;
      }
   }catch (Exception nevermind){
   }
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: [Tutorial] Client Editing

Postby vatas » Sat Mar 27, 2021 4:36 pm

Bump to help make possible interested people see this.
The most actively maintained Haven and Hearth Wiki (Not guaranteed to be up-to-date with all w14 changes.)

Basic Claim Safety (And what you’re doing wrong) (I recommend you read it in it's entirety, but TL:;DR: Build a Palisade.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
vatas
 
Posts: 4530
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Postby Zampfeo » Wed Mar 31, 2021 3:27 am

Thanks for this. Not all devs work with JDK on the regular, so it was very helpful. I personally havn't used it since Uni 15 years ago. I program robots in C for a living, so Java video game clients aren't exactly my wheelhouse.
User avatar
Zampfeo
 
Posts: 607
Joined: Sun Apr 25, 2010 8:30 pm
Location: USA

Re: [Tutorial] Client Editing

Postby LostJustice » Tue Aug 09, 2022 12:44 pm

Bumping thread for people messaging or asking for modders discord server as well as client editing tutorial. At some point I will be updating this since some parts of it seem irrelevant and has changed slightly with intellij updates.
Image
User avatar
LostJustice
 
Posts: 677
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Postby vatas » Tue Mar 28, 2023 5:04 pm

I got about this far in an attempt to merge new Loftar code into Purus Pasta
Image
Someone said to just add "jglob" as an library but it's already one?
The most actively maintained Haven and Hearth Wiki (Not guaranteed to be up-to-date with all w14 changes.)

Basic Claim Safety (And what you’re doing wrong) (I recommend you read it in it's entirety, but TL:;DR: Build a Palisade.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
vatas
 
Posts: 4530
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Postby JTB » Thu Mar 30, 2023 2:41 am

vatas wrote:I got about this far in an attempt to merge new Loftar code into Purus Pasta
Image
Someone said to just add "jglob" as an library but it's already one?


Ctrl+alt+shift+S, maybe you need something like this?
Attachments
sssss.png
sssss.png (11.25 KiB) Viewed 1653 times
As fearless in death as he was in life
User avatar
JTB
 
Posts: 28
Joined: Fri Mar 06, 2020 2:10 pm

PreviousNext

Return to The Wizards' Tower

Who is online

Users browsing this forum: No registered users and 2 guests