Mario_and_Luigi_55 wrote:
I have particles in LuaScriptsLib and when I use \\ it gives me :
Debug
C:\Programy\SMBX 2 Open Beta \ LuaScriptsLitAparticles.lua:574: Could not open particle descriptor file C:\Programy\SMBX 2 Open Beta\LuaScriptsLib\particles\p_snow.ini
(Path to p_snow.ini: "C:\Programy\SMBX 2 Open Beta\LuaScriptsLib\particles\p_snow.ini"
and // - Can't fint file
Please note that "particles.lua" is not the same thing as the "particles" folder. There should be a folder named "particles" in your LuaScriptsLib folder, with files such as "p_snow.ini" in it.
As I said before, \\ will give you the same result as /, but // makes no sense, as / isn't an escape character, which is why that doesn't work.
I suggest you try re-installing particles.
Camacho wrote:Pls tell me how to change the fog color... (the fog comes from Particles.lua)
I mean fog this

You can do this by copying the ini file into your level folder (from LuaScriptsLib/Particles) and adding a line into it. You need the hexadecimal colour code for the colour you want to use, and then add this line to the ini file:
This will tint it red, but if you fill in the hexadecimal colour code like this:
You will get any colour you like. It's also worth noting that when you copy the file into your level folder, you will need to change the path of the ini file in your code, as it will no longer be "particles/p_fog.ini", but just "p_fog.ini".
Alternatively, if you don't want to copy the ini file, you can do it from Lua too. When you create your fog particle system, just call:
Code: Select all
fogEmitter:SetParam("col",particles.ColFromHexRGB(0x######));
Which will do exactly the same thing, but without copying the ini file.