The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.24 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Renegade Projects Network Forums
Multiple non-conflicting mods - Printable Version

+- Renegade Projects Network Forums (https://forums.renegadeprojects.com)
+-- Forum: Modding (https://forums.renegadeprojects.com/forumdisplay.php?fid=3)
+--- Forum: Red Alert 2 & Yuri's Revenge Editing (https://forums.renegadeprojects.com/forumdisplay.php?fid=8)
+--- Thread: Multiple non-conflicting mods (/showthread.php?tid=414)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


Multiple non-conflicting mods - DCoder - 12.09.2006

<disclaimer> This is just theoretical babble from one bored and sleep deprived man, not a request to do anything.</disclaimer>

Plenty of mods, particularly Total Conversions and TS mods, tend to hexedit the game(md).exe to look for <modname>##.mix and other files that are undetectable by the original game installation. With the creation of RP/ETS, they have to keep editing each version of the patched exe to keep their changes functional. Clearly, there should be better ways to separate mods. This idea (multiple non conflicting mods) has been brought up in the past, in this very forum, and as I recall it was proposed to use Quake style -dir=moddir exe switches and load content from gamedir/moddir as if it were part of the game.

Thoughts?


RE: Multiple non-conflicting mods - ZombyDragon - 12.09.2006

Maybe have Mod01 (Mod02, Mod 03, ect) folders, and if it detects them then it gives you the option while loading?


RE: Multiple non-conflicting mods - Bobingabout - 12.09.2006

i say have folders such as rrotc, rboth and... wbr, and if you run the game normally, it loads normal YR, however if you run ra2md.exe -m rrotc then the game will load everything in the RA2 folder, plus subfolders, and then also load everything in the rrotc subfolder, and any other subfolders such as \taunts. now taunts is an important 1 because with new countries and 4th sides, many people replace or add new taunts.

on a semi-related note, i also sugest doing to the bag and idx files like what you did with string tables. where it loads everything in the original, then the modified 1, this will not only improve distribution of sounds, but it will also allow you to place the sounds files in the sub directory, to allow multiple mods with new sounds, without having the 35Mb+ original sounds cloned god knows how many times.


RE: Multiple non-conflicting mods - ZombyDragon - 13.09.2006

The idea with the ModXX folders is that no special icons or typing is needed, and it would only ask if the user installed it.

Hmmm, maybe have Mod[String] (Like ModDerelict Soil) and it will display the name of the mod (On the list it would have 'Derelict Soil', the folder name without the 'Mod')


RE: Multiple non-conflicting mods - Bobingabout - 13.09.2006

its easy enough to have an ini file.
most installer software, like what we use for R:ROTC can add a few tags to a small ini file. and if its a small file with only a few tags, I'm sure people wouldn't mind editing it.


modmd.ini, with a [Mods] section, followed by a 0=rrotc (the folder name), and 1=wbr, and so on.

then a menu pops up if the file contains something, and on that file is a list of mods, by reading the Name= tag from the [General] section of rules.

I'm sure VK did something like that already, but only with the rules files.
http://forums.renegadeprojects.com/showthread.php?tid=260&pid=4207#pid4207


RE: Multiple non-conflicting mods - ZombyDragon - 13.09.2006

I still think the folder way is easier, but if any of this is done then it is how it is.


RE: Multiple non-conflicting mods - Bobingabout - 13.09.2006

i have a few other things that would make things easier. for this, and other things.

1. do to audio.bag what was done to ra2md.csf. allow multiple small .bag and .idx files, that include only your new files, and can be placed in mix files, such as expandmd##.mix

2. allow placing taunts in a mix file, these overide existing, or add new taunts. maybe a spacificly named taunts.mix file that can be placed inside other mix files, such as expandmd##.mix



RE: Multiple non-conflicting mods - DCoder - 13.09.2006

One central ini file as a modlist sucks. What if the user simply deletes your mod's folder? After all, it works if the mod is an XCC MC/L executable... He now has a nonfunctional mod entry that he pretty likely doesn't know how to dispose of. Yay.


RE: Multiple non-conflicting mods - DeathRay2K - 14.09.2006

I think it really should be as simple as deleting a folder to remove mods, and I think this was the best idea...


RE: Multiple non-conflicting mods - Vinifera7 - 14.09.2006

I agree. That method is the best that has been presented so far. The problem with it is that it requires the user to run the exe with special commands, which is no problem for the computer savvy, but not everyone is.


RE: Multiple non-conflicting mods - Bobingabout - 14.09.2006

well, for R:ROTC this is no problem, the mod comes with a control panel, which can easily be modified to run ra2md.exe -m rrotc instead of just ra2md.exe. it also give you the option to add shortcuts to the desktop and start menu.

with a new system, comes a distribution other than XCC mod launcher. i supose people can then distribute their mod with an alternate system, that might include some kind of shortcut, or a new control pannel interface that you run. like a menu.exe, spacificly programmed to determine what folder is a mod or not. (you could make gamemd.exe do it, but then the loading sccreens is missed)


RE: Multiple non-conflicting mods - Marshall - 14.09.2006

One could create a program that checked for mod folders, checked for a control ini file within that mod folder that listed things like Mod Name, version, etc (like in Half-Life). The user then chooses what mod to run and the program does the rest.

The problem would be what to do about all the existing mods/installation methods (including XCC MC/L) that would bypass this system.


RE: Multiple non-conflicting mods - Bobingabout - 14.09.2006

basicly, all you can do is encourage people to move to the "new" system, and make the program give a warning if it detects non-compliant mods. also a message somewhere near the downloader saying "this is a Rockpatch multi-mod launcher compliant mod" or whatever, would be a good start.

i would presume map packs would be ok to install into the game directory, the only problem there is that they do not contain their own sting tables. too bad costom new string tables don't work in a YRO.


RE: Multiple non-conflicting mods - VK - 15.09.2006

Add "select mod" dialog box at start up?


RE: Multiple non-conflicting mods - Bobingabout - 15.09.2006

you could do that, but as in your demo, that only apeared on the loading screen after the bink video, many mods, including R:ROTC have their own costom intro video and loading screens, so it would have to be the very first thing that happened before the intro bink video. would be a lot simpler to program if it were an external exe like ra2md.exe and yuri.exe are loaded before gamemd.exe.