Page 1 of 1

PCs can not place items into a container

Posted: Mon Dec 02, 2013 4:11 am
by stranf
Containers set by Xuri's World Builder do not have the weightmax flag attached (don't know why).

I added the following to the "set.js" to add weightmax manually:

Code: Select all

case "WEIGHTMAX":
		ourItem.weightmax = nVal;
		okMsg( socket );
		break;

Changing the value says it is a "success", but the value is not set. Do I have the syntax right?

I'm going to look for "tweak" in the JS and see how it is run, weightmax is listed; however, you CAN NOT adjust the value. It is stuck at 0.

Any thoughts?

Re: PCs can not place items into a container

Posted: Wed Dec 18, 2013 2:37 pm
by stranf
Guess I should read the changelog..
A command to iterate through old containers to fix them is also available: 'FIXCONTWEIGHT
Easy enough, I'll give it a try! :D

Re: PCs can not place items into a container

Posted: Wed Dec 18, 2013 7:46 pm
by Xuri
You might be able to avoid having to use that command for containers added through WB if you add entries for the containers in harditems.dfn, with the WEIGHTMAX (and TYPE, even) flags set. That way all "base" containers added automatically get those settings applied.