Updates made to Mob Wars: The reason of the Inventory script problem
|
|
Read a while ago on the Mob Wars main page about the following updates: "==UPDATES==
11/18/2008.1
11/16/2008
So it seems this is what is causing the script to go into error. Hope this can be of help so the script can be fixed. |
|
|
I've been looking extensively into the problem, but it looks like the changes that have been made are only part of the changes that will be done over the next few days / weeks. I made a fix that seems to work for now (although it is not a permanent fix), it will at least not have errors, and it will continue to do prep jobs. Here it is: Look for this code:
and change it to this:
Basically since it is not able to find the required energy for the prep jobs it has been giving errors, so with this fix it will set the prep job energy to 15 instead. Sorry this isn't a full fix, but I don't feel like doing one when I think it will change anyway. Note: I changed a lot of things in this process, so if this doesn't fix it right I'll try and remember what else I did. |
|
|
Nice one 'TheDruidsKeeper' that works fine for me. Looking forward to the real fix. This script is a godsend to as i'm away a lot. |
|
|
As mentioned already, the drop items are being "looked through" by the script thinking that they are prep items, but not, though they share the item_## naming convention. Through my own level I can see 6 things being scanned through: item_57, item_58, item_59, item_39, item_35 and item_34; the first 3 are % drop items and the latter 3 are prep items. I think the root of our issue is that the current script relies on the naming convention to detect prep items, which gives false positives. I would recommend slicing the entire "app8743457343_content" div into two pieces, first piece being "The Job List" and second piece being "Job Prep", as the game already has tags and sections set up that way. Then dig ONLY through the second section for those with the item_## naming convention for calculating the item.energy_per_unit; By the way, I believe However, from the data captures I got, it seems that the unit values of the prep items are a few levels deeper situated than those in the Job List. So the current codes are only able to find Energy for the prep items (while nothing for the non-prep items as they do not have either). And I'm not sure if that regex can match if the two values are positioned backward (unit first then energy) In short, I recommend to list just prep items, dig thru correct level, & check the regex match. |
|
|
Here is the rest of the fix. They changed the layout of the prep items, so the script cant find how many of the prep items you have, which is why it doesn't seem to be doing the prep job before doing the actual job. Look for this text: "Update the number of items that we have"
|
|
|
I've posted my solutions to revise the script in a new thread: http://userscripts.org/topics/18142 |
|
|
I've posted my fixed version of the script in a new thread: http://userscripts.org/topics/18139 |
|
|
looks like TheDruidsKeeper's solution works just fine for me at the moment. tweaked script from Chrisos seems to have a problem on my computer its always "resting". not sure what went wrong. i'm not an expert anyway ;) but thanks to TheDruidsKeeper and Chrisos and Pea Cracker and all the others for helping us out. This is a great script. |