RUNNING WITH RIFLES http://www.runningwithrifles.com/phpBB3/ |
|
Need help finishing process http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=7&t=2191 |
Page 1 of 1 |
Author: | Crash39 [ Sun Apr 05, 2015 12:30 am ] |
Post subject: | Need help finishing process |
So after playing for a while I decided I wanted a Mk18 in the game, I made the model, texture, sound, and weapon file. However I'm completely lost at getting it in the actual game in the armory, can anybody help me out with this last part? |
Author: | Avoh [ Sun Apr 05, 2015 8:52 pm ] |
Post subject: | Re: Need help finishing process |
1: Add model/texture/sound/weapon files into respective folders for the game (model = packages > vanilla > models) (texture = packages > vanilla > textures) (sound = packages > vanilla > sounds) (weapon = packages > vanilla > weapons) 2: Go to your factions folder inside packages > vanilla, open the xxxx_primaries.resource in notepad++ (xxxx = grey/green/brown/etc) 2a: Add "<weapon key='Mk18.weapon' />" without quotes 3: Go to packages > vanilla > weapons, open "all_weapons" in notepad++ 3a: Add <weapon file="mk18.weapon" /> 4: Go to packages > vanilla > weapons, open "all_invasion_weapons" in notepad++ 4a: Add the following code UNDERNEATH THE LAST "<weapons>" LINE <weapon file="mk18.weapon"> <capacity source="rank" source_value="0.0" value="1" /> </weapon> 4b: vv YOUR CODE SHOULD LOOK LIKE THIS vv <weapon file="xm8.weapon"> <commonness value="0.0004" in_stock="0" /> <capacity source="rank" source_value="0.0" value="0" /> <capacity source="rank" source_value="0.3" value="1" /> </weapon> <weapon file="mk18.weapon"> <capacity source="rank" source_value="0.0" value="1" /> </weapon> <weapon file="tow.weapon" /> (don't think this step is necessary) 5: Go to packages > scripts > gamemodes > invasion, open gamemode_invasion.php in notepad++ 5a: Ctrl + F - // green weapons, add the line: $list[] = new ResourceRef("mk18.weapon", "weapon"); ((REPEAT FOR // brown weapons AND // grey weapons)) 6: Enjoy your new gun, it'll be usable in quick-matches and your campaign. |
Author: | Crash39 [ Mon Apr 06, 2015 12:26 am ] |
Post subject: | Re: Need help finishing process |
Avoh wrote: 1: Add model/texture/sound/weapon files into respective folders for the game (model = packages > vanilla > models) (texture = packages > vanilla > textures) (sound = packages > vanilla > sounds) (weapon = packages > vanilla > weapons) 2: Go to your factions folder inside packages > vanilla, open the xxxx_primaries.resource in notepad++ (xxxx = grey/green/brown/etc) 2a: Add "<weapon key='Mk18.weapon' />" without quotes 3: Go to packages > vanilla > weapons, open "all_weapons" in notepad++ 3a: Add <weapon file="mk18.weapon" />........ Thank you so much for your help, the file "all_invasion_weapons" in step 4 wasn't there so I left it at step three and it works! My only question now would be how to create it as a downloadable mod. I'd love to flood the Mod release page with quality content but I'm not real sure how to use the overlay folder and such. Again, thank you! It's so cool playing with a gun I made. |
Author: | Avoh [ Mon Apr 06, 2015 3:26 am ] |
Post subject: | Re: Need help finishing process |
The only overlay mod I've messed with so far is the zombie mod, don't really know how to use the overlay system from scratch.... I'm assuming just make a folder under overlays and make the appropriate folders for any custom content. (models, sounds, textures, factions, etc) Only problem is, using the overlay like that means your mod will ONLY work in the quick-battles, not campaign. I think one of the admins on this forum mentioned some way of making it work in the campaign by adding a line of script-code, but I don't know if it'd work in multiplayer if you did that. I just started modding this game literally 3 days ago so I'm still teaching myself, lol. :3 I've rebalanced all the weapons in my vanilla files and sent them to friends so we can play coop campaigns together, modified the zombie mod to have the vanilla guns again, etc. Haven't *needed* to use the overlay, yet.... |
Author: | Crash39 [ Mon Apr 06, 2015 3:37 am ] |
Post subject: | Re: Need help finishing process |
Oh I see, I'm right there with you then haha, I put in the respectable folders (models, weapons, sounds, and textures) in the overlay sub-folder and I'm not seeing anything, I feel like it's something to do with factions, I know it doesn't say it should be in the green faction anywhere in the mod. But I don't know where I'd put that code haha |
Author: | Avoh [ Mon Apr 06, 2015 3:47 am ] |
Post subject: | Re: Need help finishing process |
Based off the "The Time After" mod, just judging from its layout, you'll probably need to make a factions folder with a all_factions.xml, green/grey/brown.xml, and a primaries.resources file So you can just copy/paste the vanilla files in there then modify them for your mk18 I'd assume... Then the weapons folder, model, sound, anything else your weapon will use. Basically, if your weapon has a dependency on any vanilla file I'd just copy/paste it over into your mods folder and just modify it again. Just remember, ***IT WILL NOT WORK IN CAMPAIGN AS AN OVERLAY***. Atm, in my opinion anyways, the easiest way to make mods is to just take the entire vanilla "packages" folder and use that as your base, then upload that for people to use. It allows for online, campaign and quick-match with no issues/hassle at all. Granted I only say that because I don't know how to make a overlay work in campaign, otherwise overlay would be easier, Imo. |
Author: | Avoh [ Mon Apr 06, 2015 4:00 am ] |
Post subject: | Re: Need help finishing process |
So, for example with the factions files: 1: Make a "all_factions.xml" 1a: CODE: <?xml version="1.0" encoding="utf-8"?> <factions> <faction file="green.xml" /> <faction file="brown.xml" /> <faction file="grey.xml" /> </factions> 2: copy over the vanilla green_primaries.resources to your mods factions folder. 2a: open green_primaries.resources with notepad++ and add your mk18 code line. 2b: rename green_primaries.resources to new_primaries.resources (or whatever you want to call it) 3: open each factions .xml file and find the line: <resources file= 3a: add <resources file="new_primaries.resources" /> to be in line with the rest of them 4: Enjoy your mod, I think? |
Author: | Crash39 [ Mon Apr 06, 2015 4:43 am ] |
Post subject: | Re: Need help finishing process |
I tried using the Vanilla folder as a base like you said but got an error ![]() Instead I brought in the factions folder as you suggested and the allweapons file and it worked! Now it's time to get a greycollar and brownpants rifle to even things out, then release. Thank you so much for your help! |
Author: | Avoh [ Mon Apr 06, 2015 4:54 am ] |
Post subject: | Re: Need help finishing process |
The using the vanilla packages as a base only works by using your modded packages as a replacement for the vanilla, aka modding the vanilla file copy, deleting the actual vanilla "packages", then replacing it with the modified version. It's the way I'm doing my rebalance mod atm. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |