Author Topic: ModMerger framework 0.2.3 [bug fixed for vanilla version]  (Read 7570 times)

0 Members and 1 Guest are viewing this topic.

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
ModMerger framework 0.2.3 [bug fixed for vanilla version]
« on: August 06, 2010, 01:49:01 PM »
ModMerger
"Keep your hands off my source (files)!"

(click to show/hide)


News:
  • Added jrider's New Presentations
  • Added XGM: Mod Options
  • Fixed some vanilla version issues.  It should work with pre-warband versions again, though there might still be undiscovered bugs.  please help me by feeding back. thanks!


ModMerger framework is just a glorified name for a bunch of python scripts/file arrangement that aims to provide an example for modders on how to keep their modded contents out of each others and also out of the original source files, so that 0-config porting to newer game versions or mixing non-conflicting mods can be possible. (even where not, probably less effort to do actual port, once set up that is)

In plain english, it just means that when done properly, people can be lazy when installing mini-mods coz they don't have to following long-winded instructions to do lots of manual edits.

This is the link to the original ramblings (only for those with nothing else better to do):
http://forums.taleworlds.com/index.php/topic,128320.0.html


(click to show/hide)

To add a ModMerger-wrapped mod, just place the mod files (should not overwrite any original source) and add the mod-id to modmerger_options.py (more instructions in readmes)

Current "MM-modpacks" using ModMerger:


Problems, suggestions, feedback welcome.  If any python gurus have any ideas to make this even simpler, (enter auditorium mode, increase reverb)
Quote
It is time for an Alliance, a Revolution, to Chase the Dream that the Chore of manually Porting/Merging Mods will be a Thing of the Past
(insert auditorium echoes: Past past past past....). 
Quote
and of course, we could also fail miserably at the end  :roll:


Change log
0.2.3:
+ Fixed bug with mission_templates's variable list for vanilla versions (thanks to motomataru).
+ Fixed error with vanilla for missing info_pages and postfx modules.
+ Fixed use of map without assignment in header file (may cause prob with earlier python?).

0.2.2:
+ Added GameMenuWrapper to util_wrappers.
+ Added MissionTemplateWrapper to util_wrappers.
+ Fixed bug with PresentationWrapper.FindTrigger always returning first trigger.

0.2.1
+ First release.
« Last Edit: August 28, 2010, 04:10:47 PM by sphere »

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
Re: [WB]ModMerger framework 0.2.2 [new modpack:rubik's battle minimap]
« Reply #1 on: August 21, 2010, 10:51:34 PM »
(reserved)

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
The Labs (WIP) a.k.a. "Either coming soon, or it will never arrive..."
« Reply #2 on: August 21, 2010, 10:51:41 PM »
Just rolled Mod Options out of the Labs.

Now warpping jrider's new presentations from his thread here
« Last Edit: August 22, 2010, 05:11:42 PM by sphere »

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
MM-Modpack: rubik's Battle Minimap (from Custom Commander) [1.0.0]
« Reply #3 on: August 21, 2010, 11:10:42 PM »
MM-Modpack: rubik's Battle Minimap (from Custom Commander)

Version
1.1
Expose mod options via "camp" if xgm_mod_options is also active.

Download
version 1.1 - http://www.filedropper.com/mmccminimap110
version 1.0 - http://www.filedropper.com/mmccminimap100

Screenshot


« Last Edit: August 22, 2010, 05:10:15 PM by sphere »

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
MM-Modpack: xgm: Item powers and Item Sets
« Reply #4 on: August 21, 2010, 11:10:50 PM »
Download
http://www.mbrepository.com/file.php?id=2156

Features
This is not a "content" mod.  This is a framework for users to define and add powers to items, or item-sets without scripting.


TODO:

Item powers:


Item Sets
« Last Edit: August 21, 2010, 11:31:30 PM by sphere »

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
MM-Modpack: xgm: Mod Options [1.0]
« Reply #5 on: August 22, 2010, 11:53:35 AM »
Download
http://www.mbrepository.com/file.php?id=2203

What is this?
Allows modders to expose their mod's options/parameters via a generic presentation "MOD option" accessible from "Camp" menu.
The basic presentation is adapted from rubik's Custom Commander which is a toy-store of excellent features.

Turn this:
(click to show/hide)

into


without any further scripting

Features
  • Define mod options via an abstracted structure (similar to other data in module system)
  • XGM autogenerates presentation
  • Includes a demo entry to toggle in-game cheat-mode
  • Should be compatible with most existing mods (via ModMerger)

Notes
The width of the pane/size of controls etc can be adjusted via xgm_mod_options_header.py for advanced users.
The space on the right is intended for selecting option pages in the future (categorize options into pages)
« Last Edit: August 22, 2010, 11:57:26 AM by sphere »

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #6 on: August 22, 2010, 12:18:27 PM »
Finally!
This should work for other presentations except module options, right?

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #7 on: August 22, 2010, 02:33:16 PM »
Finally!
This should work for other presentations except module options, right?

The "xgm mod options" part only contains the bare framework to expose the global options.  It does not contain jrider's presentations, which is in another package that is almost finished, but not released yet due to a possible bug which I'm waiting for jrider''s confirmation.  After we figure out and fix the problem (over in jrider's thread), I'll put up the package which includes all 4 of jrider's new presentations.

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #8 on: August 22, 2010, 02:53:30 PM »
:)
I don't want jrider's presentations (for now... :)), I want o make my own presentations using your controls! And they will be for 1.011. So, can I make other presentations with this or what?

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #9 on: August 22, 2010, 03:09:52 PM »
:)
I don't want jrider's presentations (for now... :)), I want o make my own presentations using your controls! And they will be for 1.011. So, can I make other presentations with this or what?

hmm I think I think I totally misunderstood what you want :)  Let's try to clarify.

The current version only supports adding user options to a fixed presentation.  So if you want to use this for your own presentations (to display your own mod options for example), you will have to copy and modify on your own. (the coding is almost the same, you just need to create a new "empty" presentation and change the generation scripts to add to your new presentation.  But just as a sneak preview, I plan to extend the current mod options to support "pages" of options, so that mods who define options can also declare which page it is supposed to belong to.  The final presentation will have switches between pages so that when a page is active, only the options belonging to the page will be shown (e.g. if your mod has a lot of options, it will be advisable that they are classified under the a specialized "page").  Not sure if this is what you want though.

But if you just want a means of generating generic presentations for your own use, it could be better if you just hand-place/design it?  Due to the fact that "mod options" was meant to collect all the options defined by different mods, it doesn't have a lot of freedom in the overlay layout.

Or what you may really want is something like be able to specify a presentation layout using arrays and make and let some framework generate the presentation for you?  Though it IS possible to move into that direction, it is not so simple if you want to be able to handle all the triggers properly.  the current "mod options" is simple coz it only handles 2 triggers (on load and on state change).  But in the end, if it needs to be so general, it may just become ..... the current presentation structure in module_presentations...

EDIT: btw, I have not verified whether ms 1.011 has all the same overlay operations as the current warband.  If some overlays are missing or behavior different, I will need to add in workarounds to make it version-sensitive

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #10 on: August 22, 2010, 03:27:30 PM »
I want to make a new presentation using lines, checkboxes and comboboxes. This is everything.

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #11 on: August 22, 2010, 04:22:39 PM »
Can be done, but not current framework not exposed to that extent yet. 

In that case, I think you don't need to "install" the mod options kit, but rather, can make use of the python functions directly.  I could give you the steps, but I need to know what you really plan to do.  It will involve some manual changes to the python functions in there to make use of the generation functions in "xgm_mod_options_presentations.py" to generate the scripts so that they can be inserted into your own presentation.

If you have some knowledge of python, you should concentrate on "xgm_mod_options_presentations.py" to try to adapt it for your own use (e.g. you could easily change the target presentation or the list of "mod_options" used for the generator functions "generate_presentations", "generate_presentation_load_script" and "generate_presentation_event_state_change_script").  I can give more detail instructions, but kindoff tired atm, so would rather do it if you are sure you want to go ahead.

If that is too troublesome, I can only say sorry as it cannot be easily done now until I generalized some of the functions to allow creation of more generic "mod_option" like presentations.  I can't promise "asap" here as it is of lower priority than some other stuff.  But it will probably be after "mod_options" 2.0, where some of the stuff required in 2.0 can probably be retrofitted for a more general option presentation generator.

Fearelement

  • Recruit
  • *
    • View Profile
  • Faction: Nord
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #12 on: August 22, 2010, 05:52:33 PM »
Stupid question.... What am I supposed to do if my files appear as Notepad, no matter how I do it?

Lumos

  • Grandmaster Knight
  • *
  • Mens sana in corpore sano
    • View Profile
  • Faction: Nord
  • M&BWBWF&SNW
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #13 on: August 22, 2010, 06:01:24 PM »
Install Python?

@sphere: I'll just stick with manual presentations for now, thanks for the info. :)

sphere

  • Grandmaster Knight
  • *
    • View Profile
  • M&BWB
Re: ModMerger framework 0.2.3 [bug fixed for vanilla version]
« Reply #14 on: August 23, 2010, 03:29:43 AM »
Stupid question.... What am I supposed to do if my files appear as Notepad, no matter how I do it?

Either you have not installed python, like Lumos have said, or you messed up your python installation's association of .py files with python.exe.

Easy way is to uninstall python (if you have previously installed) and reinstall it again.