Author Topic: Kali's Bod Sorter for openEUO  (Read 81576 times)

0 Members and 1 Guest are viewing this topic.

Offline likin998

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 1
  • likin998 has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #120 on: October 05, 2013, 07:38:58 AM »
0
I would suggest to split the smith item type like
- plate
- chain
- ring
- weapon
- shield/female/helm

i group plate, chain, ring to fill large bod, weapon only good for recycle. and shield/female/helm(except plate helm) i bride up for pof and bronze/copper hammer.

Offline likin998

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 1
  • likin998 has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #121 on: October 08, 2013, 06:10:40 AM »
0
i made a little teak to GetOrder sub so i can regroup the item types
Code: [Select]
function GetOrder(item)
  --local Orders = { {"Platemail","Plate Helm"}, {"Chain"}, {"Ring"}, {"shield","blucker","Female Plate"} }
  local Orders = { {"Platemail","Plate Helm"}, {"Chain"}, {"Ring"} }
  local result = nil
  --local offset = 5*(math.fmod(3,size))
  for k,v in pairs(Orders) do
    for k2,v2 in pairs(v) do
    print(item)
      result = string.find(item,v2)
      if result ~= nil then
        return k
      end
    end
  end
  return 4
end

I would also like to add 5th and 6th type but i am having trouble building the hash code additional types.

Offline KaliOfLSTopic starter

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #122 on: October 21, 2013, 11:32:35 AM »
0
It's been so long and I'm still 'unemployed' so my time goes to researching positions and applying.  Haven't had time to really give it a good look over again.  I wanted to see if I could make it more 'customizable' friendly, but really I've given you all the power there.  Did you try my index creator?  It should be able to differentiate plate helm.  I think you're going to hard into my script and not enough into the hash table.  My hash function actually includes a collision tester.  You should look at that if you're really looking to rework the hash function/table.  You can simulate the types you parse with their associated value and test it for collisions.  It will warn you if your hash function is invalid for your data set.

Until I figure out my future employment, I will not be able to help out with all of these situations.
R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline likin998

  • Jr. Member
  • **
  • Posts: 10
  • Activity:
    0%
  • Reputation Power: 1
  • likin998 has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #123 on: October 23, 2013, 05:33:45 AM »
0
No problem and good luck looking for job.

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #124 on: December 04, 2013, 02:31:41 AM »
0
Been a while since i had this running, i managed to start it yesterday, but today it seems to not want to run... this is the error message i am getting.

...ser\Desktop\Openuo\OpenEUO\scripts\kalibodsorter.lua:61: could not open file

Thanks in advance if somebody could clear this up :)

Nel.

(posted on both site's for a better chance at getting an answer :) )

Offline KaliOfLSTopic starter

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #125 on: December 04, 2013, 10:42:49 AM »
0
Hey Nel, I lost my laptop harddrive.  Since i had your version saved there (I think since i tested in your building, I had hardcoded a version and sent it to you) it is now gone.

On mine, line 61 could never produce such an error.  The only time an error like this happens is from a dofile on an invalid file name.  That means you are probably missing one of my dependent scripts (like kalilib.lua) or you're missing the bod sorting index you want to use.  your line 61 probably looks like one of these two lines.

Code: [Select]
dofile(getinstalldir().."/scripts/"..fName)
dofile(getinstalldir()..'/scripts/kalilib.lua')

and if it is the top one, then please also check the line much higher up that looks like:

Code: [Select]
fName = "Bodsorterindex.lua"

and verify that the file name is correct for the bod index you want to use.
Finally, make sure both those files are present int he openEUO root directory/scripts/ folder.  If not, please change the dofile lines to reflect the appropriate location.

R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #126 on: December 04, 2013, 02:29:22 PM »
0
Hmm yes i have the 2 lines together, the top of which is line 61, then the line at the top is called mytailor and is a txt file. The mytailor file is in the same location as the other 5 files (4 from top of this script and Kalilib)

Nel.

Offline KaliOfLSTopic starter

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #127 on: December 04, 2013, 05:25:27 PM »
0
tell me what prints with this:

print(getinstalldir()..'scripts/mytailor.txt')

and then tell me what the full path of your folder is that contains mytailor.txt
i.e.

E:\openEUO\scripts\mytailor.txt
R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #128 on: December 05, 2013, 02:16:31 AM »
0
I managed to get it working again, i re-downloaded the bodsorter script, and put in the bag numbers, opened the index creator and there opened the mytailor.txt and saved that as a Lua file, it then seemed to work. only thing that made it hang then was one of the books was saved as "Studded Bone" and it got stuck at a line saying it could not find that book (There were 5 in the bag). I will have to redo the whole sorting thing anyway as the one i am using throws away a lot of good bribe bods (using somebody elses as i accidentally saved over the top of mine :( ).

Thanks again for your help and Support Kali,

Nel.

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #129 on: December 17, 2013, 02:50:24 PM »
0
I have just finished sorting out all the bods into separate rewards from RUG to BRK, but along the way i saved and got a file called KBS, is there any way to rename this bin or move all the contents to a new bin and delete that one (All the contents of KBS are RUG reward) been looking around and cant see how to do it, unless i restart :(

Nel.

Offline KaliOfLSTopic starter

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #130 on: December 23, 2013, 06:43:20 AM »
0
Sorry Nel,  Gotta ask you to clarify, don't quite understand. 

You have a bod table saved as KBS or a bin in your bod table saved as KBS?
R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #131 on: December 23, 2013, 01:34:23 PM »
0
I think it auto saved a bin in the bod table called KBS and all that was in it was all Smithy bods and bods for Tailoring Rug rewards, so what i did was delete all the smithy rewards and saved again, a new bin was then created called KBS_Orphaned and that bin then contained all the smithy bods. The only reason i want to change then name from KBS to RUG is so i can share it. If i just keep it for myself it wont matter.

Nel.

p.s. if i had realized i could have set up a bin called RUG and set the Tailoring bods in there and i wouldn't have this problem, but i didn't know it would auto create a bin for orphaned bods.

Offline KaliOfLSTopic starter

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #132 on: December 23, 2013, 03:07:42 PM »
0
Yeah, I did this to prevent someone from not setting a bod to a bin and then when the script runs, the result would be a nil key in the hash table.  You should be able to open the save file in my creator, select the orphaned or KBS bin, apply the ones you want to which bins, then save it.  The script auto deletes empty bins from the index.  If you reopen it, the KBS_orphaned or whatever won't even show up as a bin anymore.
R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline Nellie

  • Full Member
  • ***
  • Posts: 144
  • Activity:
    0%
  • Reputation Power: 2
  • Nellie has no influence.
  • Gender: Male
  • Respect: +21
  • Referrals: 2
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #133 on: December 24, 2013, 12:18:31 PM »
0
ok, cheers mate will give it a go next time i am on, Merry Christmas :)

Nel.

Offline The Ghost

  • Elite
  • *
  • *
  • Posts: 1917
  • Activity:
    0%
  • Reputation Power: 25
  • The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.The Ghost is on the verge of being accepted.
  • Respect: +245
  • Referrals: 0
    • View Profile
Re: Kali's Bod Sorter for openEUO
« Reply #134 on: February 09, 2014, 09:03:12 PM »
0
Kali
When you have a min I required your help.  I'm slowly figure out how to move BOD and where I want them.   I have been trying to move the Large  Iron 2 parts weapons and small 20 bardiche and halbert to their own book.   Can you answer this for me plx

[25102] = "Smith Trash",  --Smithing Large Iron Exceptional 20 Weapons or Sheilds.   How did you get the [25102]  can't figure that one out.  thx

Tags: Bods  Bod