ED Team NineLine Posted June 18, 2013 ED Team Share Posted June 18, 2013 Anyone had any luck adding custom guns/ammo for added vehicles? I can add my model, but I have to use an existing gun/ammo to make it fire. I would like to be able to add all new info but after a weekend long marathon of trial and error I am looking for help :) Now I was able to add custom info the old way, in the actual main lua files, but obviously this method renders the game incompatible with multiplayer.. I am just missing how to move the custom info to the Mod folder of my vehicle. Anyone pulled this off yet and willing to help? Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Silver_Dragon Posted June 18, 2013 Share Posted June 18, 2013 A think first part weapon definition on FW-190D-9 Lua can be a clue for making them. Something can test them? Link to comment Share on other sites More sharing options...
ED Team NineLine Posted June 18, 2013 Author ED Team Share Posted June 18, 2013 A think first part weapon definition on FW-190D-9 Lua can be a clue for making them. Something can test them? Yes, and I tried messing with that, and I continue to, but I am a lua hack at best so it could be that I am just doing it wrong, I will just keep plugging away at it. As you said though the 190 lua does seem to set up both a weapon and ammo. One think I thought about and hadnt tried is my entry lua still pointed at the CA binaries, I wonder if I have to remove those to use custom stuff, what do you think? Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Silver_Dragon Posted June 18, 2013 Share Posted June 18, 2013 CA binaries? the first I have heard something of them. Even so, you would be able to afford even, to add new weapons as a new object. In my ships MOD files I adding weapons changing names, and put existing ammunition on them, but I have not tried adding new ammunition (and I would like my add torpedoes and depth charges). I attach my LUA Pr-183 to you review them.Project183_Class.lua Link to comment Share on other sites More sharing options...
ED Team NineLine Posted June 18, 2013 Author ED Team Share Posted June 18, 2013 (edited) CA binaries? the first I have heard something of them. Even so, you would be able to afford even, to add new weapons as a new object. In my ships MOD files I adding weapons changing names, and put existing ammunition on them, but I have not tried adding new ammunition (and I would like my add torpedoes and depth charges). I attach my LUA Pr-183 to you review them. Could I see what your entry lua looks like as well? Your lua looks similar to mine, its the add_launcher line that is causing me issues, old way I could add a custom "launcher" and point to it there, of course now the question is where do I add the custom "launcher" when using a Mod folder addition. The main lua's under script in the main DCS directory cant be edited, so I dont know if I can have a custom script folder in my mod folder or if I can just add the stuff like the 190. Edited June 18, 2013 by NineLine Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
ED Team NineLine Posted July 2, 2013 Author ED Team Share Posted July 2, 2013 Still beating my head on the desk with this one... Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Silver_Dragon Posted July 2, 2013 Share Posted July 2, 2013 I have my "projects" on hold some days ago, but that need see a light on the end of the tunnel (Can ED give some help?). I think need open on wiki or "How to" forum a section to "easy explanation .Lua files objetcs definitions and Troubleshooting". Link to comment Share on other sites More sharing options...
ED Team NineLine Posted July 2, 2013 Author ED Team Share Posted July 2, 2013 I have my "projects" on hold some days ago, but that need see a light on the end of the tunnel (Can ED give some help?). I think need open on wiki or "How to" forum a section to "easy explanation .Lua files objetcs definitions and Troubleshooting". I spent alot of time this weekend trying various ways with various results, still trying, but need someone to turn the lights on for me, I am having trouble finding the switch :) Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Pangloss Posted July 2, 2013 Share Posted July 2, 2013 You can add whatever you want to add without modifying any DCS-World file. Here are some examples : To avoid to use the generic vehicules just write : --Chassis GT.chassis = {} GT.chassis.life = 2 GT.chassis.mass = 10300--ok GT.chassis.length = 7.56--ok GT.chassis.width = 2.82--ok etc To add your animations : --Animations GT.animation_arguments={} GT.animation_arguments.alarm_state = 3 etc To create your own sensors : GT.Sensors = { OPTIC = { {--TVN-2Day type = OPTIC_SENSOR_TV, scan_volume = { azimuth = {-135.0, 135.0}, elevation = {-5.0, 25.0},--ok }, view_volume_max = { azimuth_sector = 30.0,--ok elevation_sector = 30.0,--ok }, magnifications = {1.0,},--ok resolution = 1.0,--ok }, {--TVN-2Night type = OPTIC_SENSOR_LLTV, scan_volume = { azimuth = {-135.0, 135.0}, elevation = {-5.0, 25.0}, }, view_volume_max = { azimuth_sector = 30.0, elevation_sector = 30.0, }, magnifications = {1.0,}, resolution = 1.0, }, } You can do the same for everything! Using this system, all what is related to your vehicule is in the vehicule.lua in the mod folder! Just take a look at how things work in common ED scripts and do the same in your script. Link to comment Share on other sites More sharing options...
ED Team NineLine Posted July 2, 2013 Author ED Team Share Posted July 2, 2013 This issue I am having is custom weapons systems, launchers, shells, ect, right now they are based off of what ED has set, adding custom ones eludes me... atleast for the mods folder. Adding them to the system lua's renders your game incompatible for MP obviously... Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
ED Team NineLine Posted July 3, 2013 Author ED Team Share Posted July 3, 2013 Making progress... I finally think I got a custom launcher on my 88, but the custom shell still escapes me... I am running through lua files that are linked to shells in the game and seeing if I can figure out how to add them to my lua for my new vehicle... slowly getting there... hacking my way along :) Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Pangloss Posted July 3, 2013 Share Posted July 3, 2013 Nice ;) Link to comment Share on other sites More sharing options...
ED Team NineLine Posted July 3, 2013 Author ED Team Share Posted July 3, 2013 Your suggestions helped me start back at the beginning, although your examples didnt work exactly, they helped point me in the right direction, I want to test further to make sure it really is a custom launcher and not picking it up somewhere else before I share and get anyones hopes up :) Nice ;) Forum Rules • My YouTube • My Discord - NineLine#0440• **How to Report a Bug** Link to comment Share on other sites More sharing options...
Recommended Posts