When using edit on an item the transform variable halts the process by returning;
runtime error: undefined variable /mob/Player/var/transform
proc name: Edit (/mob/GM/LVL3/verb/Edit)
source file: Level_3.dm,301
usr: Iratu (/mob/Player)
src: Iratu (/mob/Player)
call stack:
Iratu (/mob/Player): Edit(Iratu (/mob/Player))
It does the same for the alpha and color var.
I haven't used these variables anywhere in the coding yet.
Numbered Steps to Reproduce Problem:
Right click something and click Edit and there is the error message.
Code Snippet (if applicable) to Reproduce Problem:
http://pastebin.com/tfXEw1W0
Did it in a pastebin since its a lot of lines.
Expected Results:
Edit window to popup.
Actual Results:
Results in errors
Does the problem occur:
Every time? Or how often? Everytime
In other games? Cannot check.
In other user accounts? Yes.
On other computers? Yes.
When does the problem NOT occur?
Having the verb skip those 3 variables.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
It did not show the error and worked perfectly fine in BYOND 4.x
Workarounds:
Include
variables -= "transform"
variables -= "alpha"
variables -= "color"
I checked the code, and it looks like these should definitely be in the vars list for an up-to-date .dmb, but anything compiled in an older version won't have them.