ED Team NineLine Posted June 4, 2012 ED Team Posted June 4, 2012 SO I am trying to understand the file structure and how lua files work. Looking at the vehicle files I dont see a reference to any specific lua file, all I see is reference to model name, gun types, etc. Does that mean that the vehicle.lua searches the game folder for that reference or is the reference to those files coded in somewhere else that I am not seeing. For example, the ZU-23 has the model referenced, and the gun type referenced but I never see a search path. If I where to create my own lua for a custom gun type would it find it? Hope that makes sense what I am asking... Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
ED Team NineLine Posted June 4, 2012 Author ED Team Posted June 4, 2012 Maybe my question is too confusing? Basically how does a vehicle lua find the cannon lua, does it have a reference to look in the cannon lua somewhere or does it just search all lua files to find the reference gun (or whatever its looking for) Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
Mt5_Roie Posted June 18, 2012 Posted June 18, 2012 I'm fairly new to looking at the scripting side of it, but from looking at aircraft each object has a lua file in the main folder that sort of "adds" it to the sim. That file has a description of where all the rest of the files are and what they do. I deal more with aircraft, but can look to see if this is true for ground objects as well when I get home. Coder - Oculus Rift Guy - Court Jester
ED Team NineLine Posted June 18, 2012 Author ED Team Posted June 18, 2012 I'm fairly new to looking at the scripting side of it, but from looking at aircraft each object has a lua file in the main folder that sort of "adds" it to the sim. That file has a description of where all the rest of the files are and what they do. I deal more with aircraft, but can look to see if this is true for ground objects as well when I get home. Sure, let me know what you come up with, I havent had a ton of luck so far. Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
ED Team NineLine Posted June 19, 2012 Author ED Team Posted June 19, 2012 (edited) Ok, here is where I am at on this, in case anyone is interested. I talked to a dev and right now adding a vehicle is impossible without altering certain default files, at the very least one, which would cause a mismatch upon connecting to a server not running the addon vehicle. (My hope was to add a vehicle but not require it to be installed unless it was in the mission being hosted) Apparently this is in the works to be fixed on a code level. SO my work continues on my 88, but chances are I will have to wait till these updates are made to the sim before it sees the light of day as any sort of release. Still having fun creating this though. **I'd like to add the devs for this sim are incredible, and great to talk to... I envy the 3rd Party teams... maybe one day :) Edited June 19, 2012 by NineLine Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
Mt5_Roie Posted June 19, 2012 Posted June 19, 2012 Sorry didn't get to this until today. All the stuff I was looking at was for aircraft and not ground vehicles. Coder - Oculus Rift Guy - Court Jester
ED Team NineLine Posted June 19, 2012 Author ED Team Posted June 19, 2012 Sorry didn't get to this until today. All the stuff I was looking at was for aircraft and not ground vehicles. No problem, I still need to find the file structure for aircraft as well, addon aircraft that is. But anyways, as for ground vehicles, will have to wait for future developments from ED. But they are aware and want to improve it. Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug**
Recommended Posts