It is currently Sat May 11, 2024 10:06 pm

RUNNING WITH RIFLES Multiplayer

test

Game servers 44 List provided by EpocDotFr | Players online 31


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Apr 05, 2015 12:30 am 
Offline
User avatar

Joined: Sun Apr 05, 2015 12:27 am
Posts: 9
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?

_________________
I can't decide between Greencollars and Graybelts
Image


Top
 Profile  
 
PostPosted: Sun Apr 05, 2015 8:52 pm 
Offline

Joined: Sun Apr 05, 2015 8:33 pm
Posts: 26
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.


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 12:26 am 
Offline
User avatar

Joined: Sun Apr 05, 2015 12:27 am
Posts: 9
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.

_________________
I can't decide between Greencollars and Graybelts
Image


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 3:26 am 
Offline

Joined: Sun Apr 05, 2015 8:33 pm
Posts: 26
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....


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 3:37 am 
Offline
User avatar

Joined: Sun Apr 05, 2015 12:27 am
Posts: 9
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

_________________
I can't decide between Greencollars and Graybelts
Image


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 3:47 am 
Offline

Joined: Sun Apr 05, 2015 8:33 pm
Posts: 26
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.


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 4:00 am 
Offline

Joined: Sun Apr 05, 2015 8:33 pm
Posts: 26
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?


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 4:43 am 
Offline
User avatar

Joined: Sun Apr 05, 2015 12:27 am
Posts: 9
I tried using the Vanilla folder as a base like you said but got an error :lol: go figure

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!

_________________
I can't decide between Greencollars and Graybelts
Image


Top
 Profile  
 
PostPosted: Mon Apr 06, 2015 4:54 am 
Offline

Joined: Sun Apr 05, 2015 8:33 pm
Posts: 26
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 42 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group