Page 2 of 2

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 4:38 pm
by Nsuidara
i was long time ago try ... and stop it...
i always hate about configurations project for property basic compile :P

if somebody explain how prepare proparty project here or PM then PLS :]

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 4:40 pm
by lachlaan
With ant i just use the config file kand's been using and it works fine. Sometimes you need to tweak the charset settings to match your computer's language, or your jdk version, but that's about all the tinkering it takes.

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 4:42 pm
by Nsuidara
lachlaan wrote:With ant i just use the config file kand's been using and it works fine. Sometimes you need to tweak the charset settings to match your computer's language, or your jdk version, but that's about all the tinkering it takes.

but somebody can said was used netbeans or eclipse ?

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 5:03 pm
by Freedoom
lachlaan wrote:Yeah, the source folder is where all the source code is that then compiles into classes that then compiles into the jar files i think, but again kand is the client modder here, i just tinker when i get bored. You need to open each file ever in the src folder and just stare at it for days and days till you understand what it does. Then you can actually change stuff and hope it works lol.

The structure of java applets is a bit odd for me, always has been confusing so the first thing to do is to figure out how each class relates to another. Which class is an extension of another class and which class uses which methods of its parent classes. Like i said before but was censored, it's a cluster of fornication. I personally blame Loftar :D


Thanks.

Why have i to know about applets?.

Which is the .java who has the main method of the project?.

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 5:07 pm
by Freedoom
I have this now

Image

Re: What I need to know to write a custom client?

PostPosted: Tue Nov 07, 2017 5:50 pm
by Kandarim
It depends so very much on what you want to do. Do you want to change the UI ? create extra windows that show certain information? Would you like to play different sounds, or silence turkeys (on-the-side: fix for that incoming soon, hopefully! When I get around to merging the latest changes).

I can only suggest you first learn to program in Java on some easier examples, and then tackle a codebase the size of the salem client.
If you want to persist (and don't mind working within the framework of my code), writing small plugins for my client may be a good place to start getting to grips with the client code: http://forum.salemthegame.com/viewtopic.php?f=11&t=18135.

lachlaan wrote:censored

Someone still has the training wheels on. You know you can disable the censor, right ?

Re: What I need to know to write a custom client?

PostPosted: Tue Jan 09, 2018 9:28 pm
by shubla
Dont do it.
You can still escape from the grasp of loftars code.