Log in

View Full Version : Loot-Be-Gone Issue



Viekn
09-10-2015, 12:50 PM
So I just upgraded to Ruby 2.0 and Lich 4.6.22 so I could start using loot-be-gone. I've never used the script before, so when I type ;loot-be-gone, I get this...

--- Lich: loot-be-gone active.
[loot-be-gone: error: gameobj data is missing; you may need to download gameobj-data.xml]
--- Lich: loot-be-gone has exited.

I've tried just doing ;repo download gameobj-data.xml and it seems to be successful in downloading, but I still get the same ;loot error message when trying to run it.

Any suggestions?

Omrii
09-10-2015, 01:59 PM
The script in the repo assumes you've loaded GameObj.data. I think the assumption is made that if you're using loot-be-gone, you used loot.lic. Either way, add this to the top of the script a couple lines after =end


if defined?(GameObj.type_data)
GameObj.load_data if GameObj.type_data.empty? or GameObj.type_data.nil?
if GameObj.type_data.nil?
wait_while { running?('updater') }
wait_while { running?('repository') }
start_script 'repository', [ 'download', 'gameobj-data.xml' ]
wait_while { running?('repository') }
wait_while { running?('updater') }
start_script 'updater', [ 'add', 'gameobj-data.xml' ]
wait_while { running?('updater') }
GameObj.load_data
exit if GameObj.type_data.nil?
end
end

Viekn
09-10-2015, 02:11 PM
Thanks Omrii. My Windows10 computer wants to use Notepad to edit the script file. When I do that, the script is in a complete jumble. Is there a better program I should be using to edit?

Also, once I do get loot-be-gone to work, is it a graphical interface that I can use to set parameters, or I just need to use the ;loot-be-bone line in game to change those?

Omrii
09-10-2015, 02:12 PM
I'd recommend Notepad++ for editing on a Windows system. ;loot-be-gone help will get you going and you'll need to set a few variables that way.

Viekn
09-10-2015, 02:34 PM
Thanks Omrii! Haven't tested it all the way yet, but at the very least, ;loot-be-gone help seemed to run fine, so once I get the variables set, I'm thinking the script should to. Also, that Notepad ++, awesome sauce.

Question though. It looks like ;loot-be-gone does what the ;sloot sell function does of ;sloot, and for that matter, seems to probably do it a lot better because of what you're able to get it to do. But am I still using just ;sloot to loot and skin critters, then using ;loot-be-gone to get rid of stuff? Or now that I've upgraded lich, is there a better option?

Omrii
09-10-2015, 03:26 PM
So, in my current use. I have done what you suggest. I use ;sloot during hunting, but loot-be-gone for selling. I have not wanted *yet* to fork my local copy of ;sloot to include the tasks from ;loot-be-gone I like. This is partly because Drafix is actively supporting ;sloot and Tillmen is supporting ;loot-be-gone and they are both better than I am at this.

I had kicked around the idea in the past week to start coding my personal stuff to stockpile gems in my local town then sell all my items (including leftover gems in) in FWI. That has to do with negative trade factors for my dwarf in the Elven Nations. However, this week I've been coding things for work that I want to throw out a window.

Viekn
09-18-2015, 02:12 PM
Will loot-be-gone recognize a bounty gem and find an empty jar in your locker to put it in if you don't already have a jar started for that particular gem?

Omrii
09-18-2015, 02:28 PM
Loot-be-gone will recognize a gem not currently in your stockpile, pick an empty jar, and start a collection of that gem. There are cases where this can be problematic due to gems that don't fit in jars. I found something that caused an issue when hunting in River's Rest. Vaalor, Landing, Ice Mule... I've been able to jar all the gems I needed.

--Omrii

Viekn
09-18-2015, 02:50 PM
Loot-be-gone will recognize a gem not currently in your stockpile, pick an empty jar, and start a collection of that gem. There are cases where this can be problematic due to gems that don't fit in jars. I found something that caused an issue when hunting in River's Rest. Vaalor, Landing, Ice Mule... I've been able to jar all the gems I needed.

--Omrii

Thanks very much. I wanted to make sure before running it and mistakenly have it go sell gems I wanted to keep.