Jump to content

Recommended Posts

Posted

Not what you were thinking. Dirty mind! :D

 

I'm trying to add new missile rails and bomb racks to FC2 for a mod, but after looking through the mountains of lua coding in the ADA mod for a reference, I realized just how much there is to it...just to add a new pylon to the sim! :surprise:

 

Adding new entries to the ContainerTable.sht, db_weapons.lua, Names.lua, Racks.lua, Types.lua, WsTypes.lua, making new bundles of weapons+new rack with more entries. It's a ridiculous amount of work, and I've been searching and haven't found a tutorial yet that explains this cut-and-dry how to do it, without having to wade through a sea of original and new code to find what entries I have to add, then try and modify them for my own use.

 

Does anyone know of a tutorial on how to accomplish this, or would care to explain it a little bit? I wish this wasn't so friggen difficult. Would be nice if it could just be like "Add a weapon to that station? Ok, I'll draw "pylon_name" there. Done!"

 

C'est la vie.

 

:helpsmilie:

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Posted

Well it is a bit tedious, but once you have tried it a couple of times its not too bad.

 

It sounds like you already know which files you need to modify for the purpose, so a good way to go about it is to pick a particular existing rack/weapon combo and then "trace" it down through the varies files to figure out the relationship between them.

 

Mind you the files you listed are just the ones you need to modifiy to "declare" the new racks and rack/weapon associations - after that you also need to assign them to weapons stations of each aircraft entry you want to make them available for......and perhaps also modify each of the stock payload options accordingly(which is a right pain).

JJ

Posted

Yeah, I guess more digging. Just having to edit 6 files (7 with the aircraft's own lua) to add 1 new object is insane to say the least.

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Posted

Hehe yeah.

 

Its been a long while since I last did any rack modding, so I am a little rusty, but if you run into a problem, just shoot me a PM and I will try to help you out :) .

JJ

  • Recently Browsing   0 members

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