Since the particles_manifest.txt isn't used anymore, I need to learn some lua.
I uploaded [url=http://www.garrysmod.org/downloads/?a=view&id=130541]this small model pack on the workshop[/url] and as you can see there are many particles in it, sadly these particles do not load on gmod 13, even though the PCF correctly uploaded on the workshop.
So I know of the line [b]game.AddParticles( “particles/invoker_orbs.pcf” )[/b] but I don't know the syntax to have it read by the game.
anyone?
What's your problem? You know the function to use and you can upload the particles.
[QUOTE=Robotboy655;36339158]What's your problem? You know the function to use and you can upload the particles.[/QUOTE]
I have never ever written a single lua file, I know of the function but I don't know where I should put it in a file, or where I should put the file.
I tried making a "lua" folder with an "init.lua" containing the only line "game.AddParticles( “particles/invoker_orbs.pcf” )" but it seems that the game ignores it completely.
[QUOTE=Deity Link;36340648]I have never ever written a single lua file, I know of the function but I don't know where I should put it in a file, or where I should put the file.
I tried making a "lua" folder with an "init.lua" containing the only line "game.AddParticles( “particles/invoker_orbs.pcf” )" but it seems that the game ignores it completely.[/QUOTE]
Okay, so you want to create folder 'lua' in your addon folder, inside the lua folder you have to create folder named 'autorun'. There you need to create a lua script, a *.lua file. The name in autorun folder is not important, so just to make sure it don't get replaced by script with same name, you should give it unique name. Like own prefix (I use 'rb655_' for example) or something. So one you created your .lua file, you open it and type in all the game.AddParticles("filename") for each file you have. Save it, upload and you are done.
[QUOTE=Robotboy655;36341588]Okay, so you want to create folder 'lua' in your addon folder, inside the lua folder you have to create folder named 'autorun'. There you need to create a lua script, a *.lua file. The name in autorun folder is not important, so just to make sure it don't get replaced by script with same name, you should give it unique name. Like own prefix (I use 'rb655_' for example) or something. So one you created your .lua file, you open it and type in all the game.AddParticles("filename") for each file you have. Save it, upload and you are done.[/QUOTE]
Thank you :D
I think that the problem was calling my script "init.lua", it may have conflicted with another file.
Anyway it works now, so I'm happy :P
Sorry, you need to Log In to post a reply to this thread.