Jump to content

Ground Vehicles


NineLine
 Share

Recommended Posts

  • ED Team

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?

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

A think first part weapon definition on FW-190D-9 Lua can be a clue for making them. Something can test them?

More news to the front

My Rig: AMD Ryzen 7 1800X Eight-Core  3.60 GHz / Crosshair VI Hero / Corsair H115i / 48 GB DDR4 RAM Vergance RGB Pro / GTX-1080 8 GB RAM / HD 1Tb / SSD 2Tb/2x1Tb / Warthog / 2 MDF / TFPR / Track Ir V / Logitech G633

DCS: Roadmap (unofficial): https://forums.eagle.ru/showthread.php?t=116893

DCS: List of Vacant models: https://forums.eagle.ru/showthread.php?p=4076891#post4076891

Silver_Dragon Youtube

Link to comment
Share on other sites

  • ED Team
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?

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

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

More news to the front

My Rig: AMD Ryzen 7 1800X Eight-Core  3.60 GHz / Crosshair VI Hero / Corsair H115i / 48 GB DDR4 RAM Vergance RGB Pro / GTX-1080 8 GB RAM / HD 1Tb / SSD 2Tb/2x1Tb / Warthog / 2 MDF / TFPR / Track Ir V / Logitech G633

DCS: Roadmap (unofficial): https://forums.eagle.ru/showthread.php?t=116893

DCS: List of Vacant models: https://forums.eagle.ru/showthread.php?p=4076891#post4076891

Silver_Dragon Youtube

Link to comment
Share on other sites

  • ED Team
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 by NineLine

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

  • 2 weeks later...

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".

More news to the front

My Rig: AMD Ryzen 7 1800X Eight-Core  3.60 GHz / Crosshair VI Hero / Corsair H115i / 48 GB DDR4 RAM Vergance RGB Pro / GTX-1080 8 GB RAM / HD 1Tb / SSD 2Tb/2x1Tb / Warthog / 2 MDF / TFPR / Track Ir V / Logitech G633

DCS: Roadmap (unofficial): https://forums.eagle.ru/showthread.php?t=116893

DCS: List of Vacant models: https://forums.eagle.ru/showthread.php?p=4076891#post4076891

Silver_Dragon Youtube

Link to comment
Share on other sites

  • ED Team
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 :)

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

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

  • ED Team

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...

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

  • ED Team

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 :)

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

  • ED Team

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 ;)

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...