"You can not perform any job."
|
|
I started getting this error/message in a pop-up box. First I thought it came from mobwars, then I had a look at the source of the script and found that it originated from the script. I get this message all the time and all I can do is to press "ok" on the pop-up box.
An example of when I get the message is when the script is trying to heal. After I click "ok" the script says resting. Could anybody help me in the right direction? |
|
|
Things have taken a turn, from getting the above error for the past 2 days whenever I activated the script it has now disappeared, however in the menu I get this error: "Error in module 'jobs' on line 1254: itemlist[item] is undefined"
|
|
|
They've added in new jobs and items. Check your jobs page. These new additions are throwing the script off. Its run 4 Obtain Safehouses in a row for me before I realised and stopped it. |
|
|
Yeah I noticed small new weapons icons and a new weapons smuggling... so I guess we wait until someone can add the new stuff to the script or live with it... :-) thanks for the reply! |
|
|
Here's a fix while Piotr gets round to doing something more permanent: Look for this:
function jobs_canDoJob(job) {
/* Check items */
for (var item in job.req_items) {
And add this after it:
if (item == "item_57" || item == "item_58" || item == "item_59") {
// depends on item not created yet
return false;
}
Then look for this:
function jobs_payRatio(jobid, jobs) {
if (!jobs) jobs = new Joblist();
var energy = jobs[jobid].energy + 0.0;
for (var item in jobs[jobid].prep_items) {
And change the following line:
energy += jobs[jobid].prep_items[item] * itemlist[item].energy_per_unit; for this:
try {
energy += jobs[jobid].prep_items[item] * itemlist[item].energy_per_unit;
} catch (err) {
// invalid requirement
}
That works for me, but your mileage may vary. Hope that helps, have a nice day etc... Edit:
|
|
|
I can't seem to get the above fix to work on mine, though my programing knowledge has much to desire... |
|
|
I posted a fix as well in the "Updates made to Mob Wars: The reason of the Inventory script problem" post |
|
|
Seems like that fix breaks the prep for train robbery. It just doesn't do it and attempts to do the actual job without the prep. |
|
|
My fixed version of the script deals with this issue, you can find it here: http://userscripts.org/topics/18139 |