Drey Posted November 27, 2011 Report Share Posted November 27, 2011 Hello, I have been trying to make stingers on the Gulf of Oman map shoot Havoc missiles against ground targets. So I tried the tutorial proposed here: http://www.bfeditor.org/forums/index.php?showtopic=12439 but it did not work. How do I make the map load a custom .tweak file? Thank you, Drey Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted November 27, 2011 Report Share Posted November 27, 2011 Copy the contents of your tweak file into the file 'tmp.con' in the map's root folder with a text editor. If 'tmp.con' doesn't exist create it. That file is run automatically by init.con. Quote Link to comment Share on other sites More sharing options...
Drey Posted November 27, 2011 Author Report Share Posted November 27, 2011 ' date='27 November 2011 - 08:22 AM' timestamp='1322382132' post='105134']Copy the contents of your tweak file into the file 'tmp.con' in the map's root folder with a text editor. If 'tmp.con' doesn't exist create it. That file is run automatically by init.con. Thanks for the response, but that just gives me a CTD on load. I tried putting the .tweak file into the root folder and adding the line: include usaas_stinger.tweak to the tmp.con and init.con but it still CTD's. Quote Link to comment Share on other sites More sharing options...
mschoeldgen[Xww2] Posted November 28, 2011 Report Share Posted November 28, 2011 Yeah, well, then obviously something's wrong with your tweaking Let us know more about what you're trying. The 'tmp.con' method is proven to be working . Quote Link to comment Share on other sites More sharing options...
Bad_santa12345 Posted November 28, 2011 Report Share Posted November 28, 2011 You should not include the whole tweak file instead include just the parts that you edited. ie. if you want to change the projectile of the stinger on a specific map, you add these lines to the maps temp.con ObjectTemplate.activeSafe GenericFireArm USAAS_Stinger_Launcher ObjectTemplate.projectileTemplate igla_9k38 Notice that i am not active safing the usaas_stinger but the USAAS_Stinger_Launcher which is the actual firearm. The crash with your method of including the whole tweak file is most likely because in the tweak file many new objects such as cameras are created ObjectTemplate.create Camera usaas_stinger_Camera If you create two objects with identical names =>CTD Quote Link to comment Share on other sites More sharing options...
Drey Posted December 3, 2011 Author Report Share Posted December 3, 2011 Thank you, Bad_santa12345, Your suggestion did the trick! Drey. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.