Forums » Questions and answers »
Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
Added by Edward London 7 months ago
I have updated my old plugin to the existing framework and have followed the directions for creating my blueprint and park imml. (I assume when it says to open in the IMML pad application, this is simply the imml editor in the Creator?)
Any ideas what could be causing this error message?
Thanks,
Ed
Replies (10)
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Craig Presti 7 months ago
Edward London wrote:
I have updated my old plugin to the existing framework and have followed the directions for creating my blueprint and park imml. (I assume when it says to open in the IMML pad application, this is simply the imml editor in the Creator?)
Hi Ed,
It's referring to a differnt application called ImmlPad: http://immlpad.codeplex.com/
Any ideas what could be causing this error message?
I would guess you are trying to join two values together, a string and an object (currentpp) and that currentpp is nil.
Does your script look something like this?
myval = "some string"..currentpp
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Edward London 7 months ago
I have searched the entire solution, and cannot find currentpp anywhere.
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Craig Presti 7 months ago
Did you look in the imml file?
This error is from Lua so it is unlikely you'll see the variable defined in your visual studio solution.
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Edward London 7 months ago
This is my entire IMML file, which is why I did not even look in it, because I knew nothing of the sort existed here.
<IMML Name="untitled" Gravity="0,-9.8,0" GlobalIllumination="#4c4c4c" xmlns="http://schemas.vastpark.com/2007/imml/">
<Plugin Name="Plugin.GreenPhosphor" Enabled="True" Source="C:\Users\Ed\Documents\VastPark\Creator v1.5\Assets\Plugin.GreenPhosphor.plugin" />
</IMML>
Ideas?
Thanks,
Ed
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Craig Presti 7 months ago
It looks like the error is actually coming from vastpark:home, I notice in that IMML there is a variable currentpp - vastpark:home is the default document, it can be changed in the Tools -> Options dialog to point to yours instead.
You can safely assume that error is not a problem with your code and it won't affect your IMML as the interpreters are flushed prior to it loading.
Does your plugin do what you're expecting it to do?
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Edward London 7 months ago
As of right now, that error seems to be keeping it from loading. I'll try the changes you've suggested, load again and let you know what I've got.
Thanks again,
Ed
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Edward London 7 months ago
That resolved the error, but nothing happens when I load my IMML. The screen stays gray. I assume the empty park would still look like an empty world, not simply a gray screen, is that correct?
Do you have any idea what I should try?
Thanks,
Ed
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Craig Presti 7 months ago
Gray is the default background color.
What are you expecting to see in the environment once it loads? It's possible your camera is in a bad position if you expect to see something.
Try using freecam mode (the camera icon in the bottom right), it allows you to move the camera with left mouse click and WASD on your keyboard.
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Edward London 7 months ago
I didn't write the original plugin, which is why I'm unfamiliar with it. I will go through the code to determine what we should be seeing, but can you please confirm that plugins are automatically loaded when the park loads and by default, the load method is called? Or do I need to add a trigger and a script to do so?
Thanks,
Ed
RE: Error Message: [string "chunk"]:32: attempt to concatenate global 'currentpp' (a nil value)
-
Added by Craig Presti 7 months ago
Edward London wrote:
can you please confirm that plugins are automatically loaded when the park loads and by default, the load method is called?
As long as you have Enabled="True" in the IMML, then yes, this is the case.
(1-10/10)