Mod Making Help Pls

Everything about mods can be found here.

Moderator: Morax

Mod Making Help Pls

Postby rockoe10 » 12 Jan 2013, 20:34

I'm making a mod that changes and modifies many of the units that already exist. I tried hooking the .bp files and not hooking, but nothing worked. After getting help on the lobby chat (Thanks Washy ;D) I learned I needed ALL the files in the mod. This would mean allot of Copy/Paste and more disc space than in desirable. I know I could also put all the units into one .lua file without needing to hook or including the other files (Script, etc.) but this too would require allot of Copy/Paste, if not more, and also leave me with one LONG .lua file.

So this leads me to my question:

Is there a better way to make a mod that changes many of the units that already exist in the game by just including the .bp files I already have, other than "Blue Printing" them all in a .lua file all crammed together?
ZeP: doesn't matter if it's an avatar, a trophy or a collection of dead cats
ZeP: it's the same code
User avatar
rockoe10
Avatar-of-War
 
Posts: 299
Joined: 05 Jan 2013, 05:09
Has liked: 36 times
Been liked: 17 times
FAF User Name: Rockoe10

Re: Mod Making Help Pls

Postby Krapougnak » 17 Jan 2013, 08:56

If you only modify the unit bp you only need to copy that unit bp in your mod just put it under yourmod/units/yourunit/yourunit.bp, no need of other files.
Of course include the merge line at the begining of your unit bp and voilà !

If there is script or texture/model editing you need to hook the whole unit files though.
User avatar
Krapougnak
Contributor
 
Posts: 340
Joined: 12 Jul 2012, 11:03
Has liked: 193 times
Been liked: 24 times
FAF User Name: Krapougnak

Re: Mod Making Help Pls

Postby Myxir » 17 Jan 2013, 13:46

i'm not very familiar with unit modding but saw many mods hooking more than just the bp files, that's why i assumed you got to replace all the files (i didn't even think you might replace textures aswell, sorry for that)

but as it seems, replacing just the bp file will do :)
Unhappy with balance http://i.imgur.com/q5G2BlM.png
User avatar
Myxir
Evaluator
 
Posts: 791
Joined: 09 Apr 2012, 14:01
Has liked: 94 times
Been liked: 306 times
FAF User Name: Washy (irc)

Re: Mod Making Help Pls

Postby rockoe10 » 21 Jan 2013, 08:51

dangit, i forgot to include the "merge" lines..... *slaps forehead*. Thanks Krapougnak, ill give this a test.


EDIT:

It worked! Thank you again. I feel so stupid :p
ZeP: doesn't matter if it's an avatar, a trophy or a collection of dead cats
ZeP: it's the same code
User avatar
rockoe10
Avatar-of-War
 
Posts: 299
Joined: 05 Jan 2013, 05:09
Has liked: 36 times
Been liked: 17 times
FAF User Name: Rockoe10


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest