Working on a new client

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

Working on a new client

Postby Limitless0 » Fri Jan 07, 2022 2:46 am

Hi! I'm Limitless and I'm working on a custom client that I eventually intend to release here. However, there are some design decisions to be made, which is why I'm making this post.

My goals for my client will be mainly to update the codebase to at least java 11, and also to make it work on apple silicon.
By "update the codebase" I mean add modules, this should hopefully increase readability and increase speed on future work. Also I want to migrate to maven as a build tool, which should make adding/removing dependancies much easier.

And by "make it work on apple silicon" I mean your M1 Macs, etc. Basically both of these things are "under the hood" changes that most people won't notice, but every client has to start somewhere, right?

The first design decision is what to do with JOGL. JOGL hasn't had a stable update since 2015, and ALL the clients currently depend on it. JOGL also doesn't support M1 Macs, which is what's causing that problem. One solution would be to use JOGL 2.4, which is pre-release and could be unstable, while the other option is to move to a different library like LWJGL.

JOGL 2.4 could be unstable, but I haven't tested it personally. Migrating to LWJGL would be a lot of work, but might not even work properly. LWJGL is actively maintained at the moment though, so there is a good level of support for the foreseeable future.

TL;DR: JOGL or LWJGL? I'd have to figure out a solution either way
Limitless0
 
Posts: 11
Joined: Wed Jan 05, 2022 4:40 pm

Re: Working on a new client

Postby noindyfikator » Fri Jan 07, 2022 7:04 am

Neither of them. Use unity
W3 - W10 - Hermit / small plots with spruces
W11 - The Friend Zone
W12 - KoA aka Kingdom of Ashes
W13 - Monke
W14 - Alpaca Farm aka Animal Planet
W15 - Whatever Bay - The Greatest Siege Defense Victory in Haven History - https://www.youtube.com/watch?v=KhyUveSeZ0Q
User avatar
noindyfikator
 
Posts: 827
Joined: Fri Jul 15, 2011 11:10 am

Re: Working on a new client

Postby shubla » Fri Jan 07, 2022 9:54 am

My design decision is to install linux instead.
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: Working on a new client

Postby Limitless0 » Fri Jan 07, 2022 10:43 am

noindyfikator wrote:Use unity


Ah yes, let me throw this whole codebase away, brush off my C#, and rebuild the whole thing from scratch!

shubla wrote:linux

Bruh, it's been the year of linux on desktop for like 15 years now. Let it go.
Limitless0
 
Posts: 11
Joined: Wed Jan 05, 2022 4:40 pm

Re: Working on a new client

Postby shubla » Fri Jan 07, 2022 11:17 am

You won't need to add dependencies etc. very often so migrating from ant to maven is likely just waste of time.
What you mean by updating codebase to java 11? Is there something in java 11 that you need? Sounds like another way to waste time for nothing.

After reading the code a bit, rebuilding from scratch doesn't probably sound that bad anymore.

Sounds like a pain to maintain lwjgl bindings whenever loftar decides to change anything with jogl.
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: Working on a new client

Postby mvgulik » Fri Jan 07, 2022 11:59 am

I would try to see what's Loftar thinks.

JOGL overall, at a glance, seem a bit of a dead horse. Including 2.x progress. But ... its the known devil.

Going with something else that might not work in the end. ... I would not do that unless one can be sure it can be made to work, but that it probably just as much work.
mvgulik
 
Posts: 3742
Joined: Fri May 21, 2010 2:29 am

Re: Working on a new client

Postby Limitless0 » Fri Jan 07, 2022 12:00 pm

Modules! Currently the main package is a bit of a dumping ground for whatever, wouldn’t it be nice if it was organised into neat modules? I get antsy to split up a package when there’s about 5-10 files in it, and there’s easily over 100. Also, I really hate ant
Limitless0
 
Posts: 11
Joined: Wed Jan 05, 2022 4:40 pm

Re: Working on a new client

Postby noindyfikator » Fri Jan 07, 2022 12:15 pm

shubla wrote:After reading the code a bit, rebuilding from scratch doesn't probably sound that bad anymore.


That's completely true. Current client code is really so bad, maintaining it in the future will be pain in the ass. No developer will want to do it. It's just one big mess and antipattern. (no offence, but I would get fired after 1 day from my work if I write my code this way).

If you are not going with unity, it's waste of time. Client needs to be completely rewritten with modern libraries. Actually it's unity or similar. Don't bother with jogl or lwjgl or libdx because you will waste a lot of time, result will be probably the same.
Last edited by noindyfikator on Fri Jan 07, 2022 1:51 pm, edited 2 times in total.
W3 - W10 - Hermit / small plots with spruces
W11 - The Friend Zone
W12 - KoA aka Kingdom of Ashes
W13 - Monke
W14 - Alpaca Farm aka Animal Planet
W15 - Whatever Bay - The Greatest Siege Defense Victory in Haven History - https://www.youtube.com/watch?v=KhyUveSeZ0Q
User avatar
noindyfikator
 
Posts: 827
Joined: Fri Jul 15, 2011 11:10 am

Re: Working on a new client

Postby iamahh » Fri Jan 07, 2022 12:28 pm

join the Modders discord, may find something there
iamahh
 
Posts: 1810
Joined: Sat Dec 12, 2015 8:23 pm

Re: Working on a new client

Postby noindyfikator » Fri Jan 07, 2022 12:58 pm

iamahh wrote:join the Modders discord, may find something there


it's dead discord
W3 - W10 - Hermit / small plots with spruces
W11 - The Friend Zone
W12 - KoA aka Kingdom of Ashes
W13 - Monke
W14 - Alpaca Farm aka Animal Planet
W15 - Whatever Bay - The Greatest Siege Defense Victory in Haven History - https://www.youtube.com/watch?v=KhyUveSeZ0Q
User avatar
noindyfikator
 
Posts: 827
Joined: Fri Jul 15, 2011 11:10 am

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: Yandex [Bot] and 15 guests