Debugging Client, analyzing it

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

Debugging Client, analyzing it

Postby displaced » Fri Mar 31, 2017 11:27 am

Hello everyone,

is someone there willing to help me set up an IDE (IntelliJ or Eclipse) and to explain me in short how the building and debugging process is working for this project via discord?
I wanna get through the code and understand how some part of it is working. Any help will be appreciated.

Greetings
Kami
displaced
 
Posts: 121
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Postby iamahh » Fri Mar 31, 2017 11:39 am

hire a teacher and get yourself a comfy cup of warm chocolate
Last edited by iamahh on Fri Mar 31, 2017 7:02 pm, edited 4 times in total.
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: Debugging Client, analyzing it

Postby displaced » Fri Mar 31, 2017 4:50 pm

Not exactly helpful.

Still can't make breakpoints -> Step through the code.
displaced
 
Posts: 121
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Postby shubla » Fri Mar 31, 2017 6:54 pm

http://stackoverflow.com/questions/4733835/how-to-use-breakpoints-in-eclipse
http://stackoverflow.com/questions/934794/is-there-break-on-exception-in-intellij
https://www.jetbrains.com/help/pycharm/2016.1/breakpoints.html
Google is a friend.

Client is a mess, maybe it makes sense to people like Apxeolog who have carefully inspected and studied how it works. Or something.
Image
I'm not sure that I have a strong argument against sketch colors - Jorb, November 2019
http://i.imgur.com/CRrirds.png?1
Join the moderated unofficial discord for the game! https://discord.gg/2TAbGj2
Purus Pasta, The Best Client
User avatar
shubla
 
Posts: 13043
Joined: Sun Nov 03, 2013 11:26 am
Location: Finland

Re: Debugging Client, analyzing it

Postby displaced » Fri Mar 31, 2017 8:02 pm

I'm not new into programming.. But i've never used this much java, plus i never had a problem with debugging code.
This one seems different because of the ant builds.

I've tried to make a debug configuration with MainFrame as main class and put in the -jar hafen.jar as vm command line argument, but he's telling me that "-- "D" is a invalid parameter.
I'm not sure what he's trying to tell me, since i don't have this parameter defined anywhere
displaced
 
Posts: 121
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Postby Astarisk » Sun Apr 02, 2017 6:20 pm

Look into remote debugging for intellij that's what I use.
IRC/IGN: Rawrz

Join the Haven & Hearth Discord if you need help and our community will surely help you:
Image
Image
User avatar
Astarisk
 
Posts: 869
Joined: Fri Aug 13, 2010 7:08 am

Re: Debugging Client, analyzing it

Postby displaced » Sun Apr 02, 2017 7:06 pm

I really not wanted to have this, but yeah i'm using remote debugging now too.
The only problem i have is, that you have a time gap between running the programm and using the debugger..
So you can't actually debug from the first line of code, or maybe i haven't found a way yet.
displaced
 
Posts: 121
Joined: Wed Feb 12, 2014 12:09 am

Re: Debugging Client, analyzing it

Postby APXEOLOG » Thu Apr 20, 2017 1:02 pm

displaced wrote:I really not wanted to have this, but yeah i'm using remote debugging now too.
The only problem i have is, that you have a time gap between running the programm and using the debugger..
So you can't actually debug from the first line of code, or maybe i haven't found a way yet.


If you want to lauch client from the IDE, not from jar, then you need to manually process annotations, because loftar's runtime annotation processor doesn't work properly in this case
https://github.com/dolda2000/hafen-client/blob/master/src/haven/Resource.java#L760
There are also some more annotations you should take care of, just search for usage of the dolda.jglob.Loader in the code
W10 Meme Plot | W9 Mantis Garden | W8 Core | W7 Ofir | W6 the City of Dis | W5 Vitterstad | W4 A.D. | W3 Mirniy
jorb wrote:All your characters will be deleted, and I will level every village any one of them were ever members of.
User avatar
APXEOLOG
 
Posts: 1267
Joined: Fri Apr 23, 2010 7:58 am
Location: Somewhere on Earth


Return to The Wizards' Tower

Who is online

Users browsing this forum: Trendiction [Bot] and 9 guests

cron