Custom client by Latikai, building on Ender's client

Forum for game modifications and custom clients.

Re: Custom client by Latikai, building on Ender's client

Postby Kandarim » Sat Feb 21, 2015 2:51 pm

Is there anything out of the ordinary in C:/Users/pewpeat/Salem/bin/updater.log?
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Custom client by Latikai, building on Ender's client

Postby Kandarim » Sat Feb 21, 2015 3:45 pm

upcoming feature: inventory sorting!

I'm trying to implement this purely client-side, and so far it seems to be working. I'll be testing it myself for a couple of days to make sure no bugs persist, as this was rather messy. For those interested, it's done by keeping a dictionary between client-side and server-side item coordinates in the inventory grid.

Will only work for the main inventory. Current sorting is alphabetical in reading order (row-first), but I'm open to suggestions about other sortings as the messy part is the dictionaries and changing inventory sizes - different approaches to sorting should be relatively straightforward.

Image
Image
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Custom client by Latikai, building on Ender's client

Postby alloin » Sat Feb 21, 2015 4:46 pm

Kandarim wrote:upcoming feature: inventory sorting!

I'm trying to implement this purely client-side, and so far it seems to be working. I'll be testing it myself for a couple of days to make sure no bugs persist, as this was rather messy. For those interested, it's done by keeping a dictionary between client-side and server-side item coordinates in the inventory grid.

Will only work for the main inventory. Current sorting is alphabetical in reading order (row-first), but I'm open to suggestions about other sortings as the messy part is the dictionaries and changing inventory sizes - different approaches to sorting should be relatively straightforward.

Image
Image

Image
jorb wrote:all I see is misplaced machismo and a lot of very cheap talk. ^^

Darwat confirmed scrub!
User avatar
alloin
Customer
 
Posts: 3031
Joined: Wed Aug 01, 2012 1:33 am

Re: Custom client by Latikai, building on Ender's client

Postby M13tz » Sat Feb 21, 2015 5:07 pm

Beta version for us all ?

How i can wait couple of days for this .......
User avatar
M13tz
 
Posts: 320
Joined: Sun Dec 30, 2012 9:10 pm

Re: Custom client by Latikai, building on Ender's client

Postby hitori » Sat Feb 21, 2015 7:46 pm

Kandarim wrote:upcoming feature: inventory sorting!


damn. thats another real advantage over Enders work :o

is there a chance to fix non-starting client on java6? I may offer any assistance (as a tester)
User avatar
hitori
 
Posts: 201
Joined: Sat Nov 17, 2012 6:02 pm

Re: Custom client by Latikai, building on Ender's client

Postby Kandarim » Sun Feb 22, 2015 9:43 pm

Time for some nice things.

First of all: don't press the button and nothing bad can happen. The inventory sorting works with a client-side overlay and translation of server-side locations for the items. Don't press the button and there will be no translation, meaning no change over the current behaviour.

Second: press the button and enter the rabbit hole!
There are now two buttons in the main inventory window: one for sorting and one for undoing the changes of the sorting. Sorting will happen based on an alphabetical sorting of the resource file name for the items (e.g. not necessarily the tooltip name of the items). Items of the same type will be sorted according to their purity (descending). The inventory size should remain similar, but I haven't quite managed to pin down the formula and didn't feel like wasting more time on it :)

Currently sorting will only work in your main inventory (i'm evaluating how hard it will be in other containers - stay posted).

For now: if you manage to break it please let me know. Try to explain as detailed as possible what is broken, as issues have shown not to be that straightforward.

Known issue: if you have previously sorted a lot of stuff, put some of it in a container and then start picking up new stuff, the new stuff will not enter your inventory like you expect it to, and your inventory may remain a larger size than you think it should be.

EDIT: sorting should now be enabled in all containers except pockets.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Custom client by Latikai, building on Ender's client

Postby hitori » Sun Feb 22, 2015 10:52 pm

can sorting option be saved for particular containers?
User avatar
hitori
 
Posts: 201
Joined: Sat Nov 17, 2012 6:02 pm

Re: Custom client by Latikai, building on Ender's client

Postby Kandarim » Sun Feb 22, 2015 10:55 pm

hitori wrote:can sorting option be saved for particular containers?


as in, always sort Chests? Never sort Turkey Coops?
I suppose it would be possible, but right now sorting is an on-demand thing. Keep in mind that this is all just client-side. As far as the server is concerned, your inventory is still all jumbled up.

ps: I was made aware that the tooltip is wrong on the sort button (talks about the main inventory in all containers) but that isn't exactly crucial. Will be fixed whenever I roll out an important change.
I have neither the crayons nor the time to explain it to you.
JC wrote:I'm not fully committed to being wrong on that yet.
User avatar
Kandarim
Customer
 
Posts: 5321
Joined: Mon Jan 21, 2013 4:18 pm

Re: Custom client by Latikai, building on Ender's client

Postby hitori » Sun Feb 22, 2015 10:58 pm

nah, i mean saving this option for specific chests, not all of them
i bet each of them has its unique id that can be saved into a list..
User avatar
hitori
 
Posts: 201
Joined: Sat Nov 17, 2012 6:02 pm

Re: Custom client by Latikai, building on Ender's client

Postby rkaney » Mon Feb 23, 2015 12:17 am

Love the sort feature, however I crash every time trying to open a piggy bank.

java.lang.ClassCastException: haven.Scrollport$2 cannot be cast to haven.Window
at haven.Inventory.<init>(Inventory.java:128)
at haven.Inventory$$_.create(Inventory.java:89)
at haven.Widget.makechild(Widget.java:246)
at haven.Scrollport$Scrollcont.makechild(Scrollport.java:75)
at haven.Scrollport.makechild(Scrollport.java:108)
at haven.UI.newwidget(UI.java:175)
at haven.RemoteUI.run(RemoteUI.java:71)
at haven.MainFrame.run(MainFrame.java:291)
at java.lang.Thread.run(Unknown Source)
rkaney
 
Posts: 28
Joined: Mon Nov 26, 2012 11:30 pm

PreviousNext

Return to Artifice & Arcana

Who is online

Users browsing this forum: No registered users and 1 guest