Author Topic: Mix mods together?  (Read 5352 times)

Jack Bauer

  • Posts: 200
  • Turrets: +6/-10
Mix mods together?
« on: September 02, 2009, 07:35:41 pm »
Hello, I am pretty much brand new to modding and know almost nothing about it.. but I was just wondering...
Is it possible to take my favorite things from other mods and put them all together into one mod or "mix" them?

Anther question is that I use trembots alot when I play along since I have a crappy internet connection at my house, and I was wondering if I could get the bot command (!bot) to work with the game.qvm that other mods use?
"Las guns are a woman's weapon. That's why they're called 'Las' guns!"
"In My Opinion", eg "IMO you should have googled it instead of asking"

David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Re: Mix mods together?
« Reply #1 on: September 02, 2009, 07:46:59 pm »
Grab the patches (You may have to split them out yourself if no-one has done it yet for that feature), and apply them all and hope.
You'll probably then have to fix a ton of conflicts by hand.
The bots are a big patch so probably won't apply cleanly.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Jack Bauer

  • Posts: 200
  • Turrets: +6/-10
Re: Mix mods together?
« Reply #2 on: September 02, 2009, 08:36:42 pm »
Well I since I have no modding experience, how do I "grab the patch"? Sorry these questions may be so..."noobish" but work with me please.
"Las guns are a woman's weapon. That's why they're called 'Las' guns!"
"In My Opinion", eg "IMO you should have googled it instead of asking"

Baconizer

  • Posts: 221
  • Turrets: +80/-52
    • Barking Frogs
Re: Mix mods together?
« Reply #3 on: September 02, 2009, 10:28:46 pm »
Well I since I have no modding experience, how do I "grab the patch"? Sorry these questions may be so..."noobish" but work with me please.

The patch file for the feature you want. For instance, if you wanted to turn grenades into mines then you would grab the patch to the Tremulous source code and compile.

If you were running Linux, then to apply a patch you might do this:

Code: [Select]
% svn co svn://svn.icculus.org/tremulous/trunk tremulous -r966
% cd tremulous
% wget www.example.com/path/to/file.patch
% patch -p0 < file.patch
% make

First line gets the source code, second gets you into the source code directory, third grabs the patch, fourth applies the patch, fifth compiles.

A good resource for various patches is the Mercenaries Guild Patch Tracker which has all sorts of nice things.

The mod/QVM/whatever you like probably has a list of patches that were included, and hopefully a link to where you can get the patches.

EDIT: I don't use Windows, but if you're running Windows you should be able to use MinGW to do pretty much the same thing, in a similar (if not identical) manner. On OS X you should be able to do it natively (iTerm is in Applications -> Utilities -> Terminal).

Your stuff will be located in tremulous/build/ after the compilation.
« Last Edit: September 02, 2009, 10:51:47 pm by Baconizer »
Why will you folk not ban me? :'(

Bissig

  • Posts: 1309
  • Turrets: +103/-131
Re: Mix mods together?
« Reply #4 on: September 02, 2009, 10:59:28 pm »
Hello, I am pretty much brand new to modding and know almost nothing about it.. but I was just wondering...
Is it possible to take my favorite things from other mods and put them all together into one mod or "mix" them?

Anther question is that I use trembots alot when I play along since I have a crappy internet connection at my house, and I was wondering if I could get the bot command (!bot) to work with the game.qvm that other mods use?

If you can't code, then learn how to code in C first. You will have to fix a lot of issues when merging patches and if you have no clue what the code means, you won't even know where to start looking (and other people have better things to do usually, than to do it for you).

Ytram

  • Posts: 65
  • Turrets: +3/-1
Re: Mix mods together?
« Reply #5 on: September 03, 2009, 09:19:51 am »
I was wondering if you wanted to merge two patches maybe you could do
Code: [Select]
% patch -p0 < file.patch
% patch -p0 < file2.patch
% make
and that might work. Could anyone confirm/deny this?
- Insert Signature Here -

gimhael

  • Posts: 546
  • Turrets: +70/-16
Re: Mix mods together?
« Reply #6 on: September 03, 2009, 09:53:55 am »
It might work, unless both patches change the same parts of the code. If this happens (look for FAILED in the patch output), you will get *.rej files which contain the parts that could not be merged automatically. Merging these manually usually requires understanding C and knowing the code you want to patch.

Ytram

  • Posts: 65
  • Turrets: +3/-1
Re: Mix mods together?
« Reply #7 on: September 03, 2009, 11:48:23 am »
Right. I assumed second one would overwrite the first ones changes if they changed the same part. I understand that could still make errors but I assumed usually the changes to the last one would not matter. Just a thought. Does anyone else know if that might work?
- Insert Signature Here -