[Tutorial] Client Editing

Forum for alternative clients, mods & discussions on the same.
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

Re: [Tutorial] Client Editing

Post by iamahh »

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
User avatar
vatas
Posts: 5249
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Post by vatas »

If I had to take a guess, that's an issue with the UI scaling.
Haven and Hearth Wiki (Maintained by volunteers - test/verify when practical. Forum thread

Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
LostJustice
Posts: 691
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Post by LostJustice »

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: 691
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Post by LostJustice »

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
iamahh
Posts: 1806
Joined: Sat Dec 12, 2015 8:23 pm

Re: [Tutorial] Client Editing

Post by iamahh »

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){
	}
User avatar
vatas
Posts: 5249
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Post by vatas »

Bump to help make possible interested people see this.
Haven and Hearth Wiki (Maintained by volunteers - test/verify when practical. Forum thread

Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
Zampfeo
Posts: 652
Joined: Sun Apr 25, 2010 8:30 pm
Location: USA

Re: [Tutorial] Client Editing

Post by Zampfeo »

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
LostJustice
Posts: 691
Joined: Sun Mar 25, 2012 3:57 am

Re: [Tutorial] Client Editing

Post by LostJustice »

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
vatas
Posts: 5249
Joined: Fri Apr 05, 2013 8:34 am
Location: Suomi Finland Perkele

Re: [Tutorial] Client Editing

Post by vatas »

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?
Haven and Hearth Wiki (Maintained by volunteers - test/verify when practical. Forum thread

Basic Claim Safety (And what you’re doing wrong
TL:;DR: Build a Palisade with only Visitor gates.)

Combat Guide (Overview, PVE, PVP) (Includes how to escape/minimize risk of getting killed.)
User avatar
JTB
Posts: 41
Joined: Fri Mar 06, 2020 2:10 pm

Re: [Tutorial] Client Editing

Post by JTB »

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?
You do not have the required permissions to view the files attached to this post.
As fearless in death as he was in life

Return to “The Wizards' Tower”