Page 1 of 2

Current resources - Sorting of planets

Posted: Wed May 07, 2008 5:41 pm
by Belisama
Hoi,

is there a way to get the current resource list for all planets sorted the different resource classes alphabetical.

I mean not the order of mineral and chemical - i mean from for example the carnivore meat. At the moment it is unsorted for example:
Edox, Rori Carnivore Meat
Folla, Tatooinian Carnivore Meat
Obriega, Yavinian Carnivore Meat
Tovar, Mustafarian Carnivore Meat
Aesis, Lokian Carnivore Meat
Eskolce, Dantooine Carnivore Meat
Llarciom, Dathomirian Carnivore Meat
Pitro, Endorian Carnivore Meat
Estimespo, Kashyyykian Carnivore Meat
Imastug, Corellian Carnivore Meat

I would like to see them in the same order as at the original: (Alphebtical order of the planets) like:
Imastug, Corellian Carnivore Meat
Eskolce, Dantooine Carnivore Meat
Llarciom, Dathomirian Carnivore Meat
Pitro, Endorian Carnivore Meat
Estimespo, Kashyyykian Carnivore Meat
Aesis, Lokian Carnivore Meat
Tovar, Mustafarian Carnivore Meat
Edox, Rori Carnivore Meat
Folla, Tatooinian Carnivore Meat
Obriega, Yavinian Carnivore Meat

Same for all other flora and creature resources. Also for water and fiberplast of course. :)

best
beli

Re: Current resources - Sorting of planets

Posted: Wed May 07, 2008 6:29 pm
by Rommel
I'd prefer it be ordered like the resource crate myself...

Dantooine Bristley Hide
Dathomirian Bristley Hide
Endorian Bristley Hide
Lokian Bristley Hide
Nabooian Bristley Hide
Rori Bristley Hide
Talusian Bristley Hide
Tatooinian Bristley Hide
Yavinian Bristley Hide
Kashyyykian Bristley Hide
Mustafarian Bristley Hide

The full listing of how resources are ordered in the resource crate is HERE

Re: Current resources - Sorting of planets

Posted: Wed May 07, 2008 8:36 pm
by Sobuno
Seems I really need to implement user-based reordering

Looking into this, can't figure out why they get sorted as they do (The code for the Current Resources page is really messy... I wrote it)

Re: Current resources - Sorting of planets

Posted: Wed May 07, 2008 9:05 pm
by Sobuno
http://www.swgcraft.co.uk/dev/current_r ... 5&planet=0

It did have the side effect of every category, apart from the main ones, being alphabetized as they all have the same sorting ID. They're not completely alphabetized, but just within their own categories.

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 4:08 am
by Belisama
Rommel wrote:I'd prefer it be ordered like the resource crate myself...
That would be ok also because it's a logical order also. But at the moment it's diffficult to find the one you looking for.

best
beli

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 12:24 pm
by Sobuno
http://www.swgcraft.co.uk/dev/options2.php <- "Page-specific" 0_o.... Doesn't save anything though

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 4:19 pm
by Belisama
Sobuno wrote:http://www.swgcraft.co.uk/dev/options2.php <- "Page-specific" 0_o.... Doesn't save anything though
Sorry, can't write a long answer, have to test that page... :)

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 4:24 pm
by Belisama
Sobuno wrote:http://www.swgcraft.co.uk/dev/options2.php <- "Page-specific" 0_o.... Doesn't save anything though
looks nicce. No wit only have to work :)

best
beli

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 4:36 pm
by Rommel
Sobuno wrote:http://www.swgcraft.co.uk/dev/options2.php <- "Page-specific" 0_o.... Doesn't save anything though
OMG!!, ME LIKE!!

Would it be possible to have a drop down box somewhere on that page so users can select from a couple preconfigured versions also?
Like...
Default
Alphabetic
Free Resource crate
Random (For those masochistic types LOL)

Ok, I am only kidding about the random one...

Re: Current resources - Sorting of planets

Posted: Thu May 08, 2008 4:43 pm
by Sobuno
Rommel wrote:
Sobuno wrote:http://www.swgcraft.co.uk/dev/options2.php <- "Page-specific" 0_o.... Doesn't save anything though
OMG!!, ME LIKE!!

Would it be possible to have a drop down box somewhere on that page so users can select from a couple preconfigured versions also?
Like...
Default
Alphabetic
Free Resource crate
Random (For those masochistic types LOL)

Ok, I am only kidding about the random one...
Certainly would.

Random is the easiest one to make

Re: Current resources - Sorting of planets

Posted: Wed May 14, 2008 7:05 pm
by Sobuno
Okay, this is a bigger project than I imagined. The options2.php page is partially working, but the design of the current resources page is limiting it at the moment.

The problem is that resource categories can only be sorted within their own parent category. And there's alot of hidden parent categories (All seen at http://www.swgcraft.co.uk/dev/resource_tree.php). Mineral, for example, is the parent of the hidden categories Gemstone, Low-Grade Ore, Metal, Radioactive and Solid Petrochem, which all have their own children (Most of the children are visible).

This means that a Metal child (Such as Steel) cannot move to the other side of the Gemstone children. Basically, it means you can't mix your current resources page as much as you may want to.

Anyway, I am going to have to rewire the system (Remove the hidden parents from the circuit) on the Current Resources page to complete this feature. I can't think properly at the moment though.

Re: Current resources - Sorting of planets

Posted: Wed May 28, 2008 7:47 pm
by Sobuno
http://www.swgcraft.co.uk/dev/current_r ... s_sort.php
http://www.swgcraft.co.uk/dev/options2.php#page_tab

You should be able to move the categories around as much as you like (Within their own main category that is)

The numbers located after the categories just indicate what their main category is

Re: Current resources - Sorting of planets

Posted: Sat Jun 07, 2008 12:23 am
by Sobuno
Presets should be on that options2.php page now

If you make up a order/sorting that you feel is a good preset, I can easily convert it into one usable by anyone on the site. Just give me a name for it, a reason for why you feel it should be a preset and a couple of hours of you not changing it (To allow me to convert it)

Re: Current resources - Sorting of planets

Posted: Mon Jun 09, 2008 8:51 am
by Tharek Tolemac
Hello!
I have a little problem with the sorting... before the change, every categories was sorted like they are in the survey tool... now, they are sorted for their Class. So, Fiberplast is at the beginning of Chemical, Unknown Liquid Fuel at the end... in the survey tool, it is much harder not to check rapidly which resources are new/vanished/still there.

So, it would be really helpful if the sorting can be setted like in the survey tool or at least the option to do so.

Edit:
And in Minerals on Dantooine/Infinity, I dont see any order at all. Aluminum is somewhere in the middle, Zinsiam Ore is second on the top after Bal'tan Gem.

Edit2: Ok, that is really ugly now. Especially in Flora, with Domesticated Cereals on top and Wild Cereals at the end, you are scrolling like hell to check stuff. Will stop checking for now until the sorting is like in the tools again.

Edit3: Is it possible that the options2.php isnt linked correctly? When I select "Page specific" I just get the main categories, which arent extendable.

Edit4: ok, with the options2 it is nice... you can sort them like you want. But it isnt correctly linked.

Re: Current resources - Sorting of planets

Posted: Mon Jun 09, 2008 11:28 am
by Sobuno
Tharek Tolemac wrote:Hello!
I have a little problem with the sorting... before the change, every categories was sorted like they are in the survey tool... now, they are sorted for their Class. So, Fiberplast is at the beginning of Chemical, Unknown Liquid Fuel at the end... in the survey tool, it is much harder not to check rapidly which resources are new/vanished/still there.

So, it would be really helpful if the sorting can be setted like in the survey tool or at least the option to do so.

Edit:
And in Minerals on Dantooine/Infinity, I dont see any order at all. Aluminum is somewhere in the middle, Zinsiam Ore is second on the top after Bal'tan Gem.

Edit2: Ok, that is really ugly now. Especially in Flora, with Domesticated Cereals on top and Wild Cereals at the end, you are scrolling like hell to check stuff. Will stop checking for now until the sorting is like in the tools again.

Edit3: Is it possible that the options2.php isnt linked correctly? When I select "Page specific" I just get the main categories, which arent extendable.

Edit4: ok, with the options2 it is nice... you can sort them like you want. But it isnt correctly linked.

Options.php should now be updated to match options2.php

Is your resource order equal to the survey tool order now?