Chagui2222
Chieftain
- Joined
- Jan 9, 2015
- Messages
- 22
Sukritact's Events and Decisions had an issue while building in Firetuner. It simply said "failed". Disabled it and the pack was created seemingly fine.
Well it seems that the files on MP_MODSPACK\Mods\Community Balance Patch (v 13) were not the same files that are in MODS\Community Balance Patch (v 13)\
I repleaced some of them and now the UI display error is fixed. So maybe there is some error on the file copying algorithm?
I was wondering: if I download 2 packs here, is there a way to use them both?
I tried to simply put them in the dlc folder but only one of the 2 is loaded each time :\
Hmm, that's interesting. The current version of the MPMPM does have a problem with files that have the same name in different folders in the same mod; this is because it doesn't copy the files recursively. I've been meaning to fix it, but I'm simply time-deprived at the moment. This is the issue that's been borking the community balance patch. It'll be great if it works even sort of. Have you found it to work?
I can't test it multiplayer because nobody wants to test it with me xD
Yes, this mod has repeated files in different folders. I could fix the issue in the code, but i don't know anything about modding civ5. I need to know how the mod knows which file to use.
I did take a look into the .modinfo file, and I found that the correct files to use were marked with import="1". I don't know what that means, but maybe we have to copy just the files with import="1" ?
Hello again, I just implemented this line from the MPMP_Maker.lua:
-- to do: pass modID and version, parse the Mods folder in C++ for .modinfo files to find the correct folder even if it was not conventionnaly named...
So now is searches in the mod folder and finds the correct mod, doesn't matter the folder name![]()
Well that's definitely useful. Do you have the code on-hand?
Also, regarding the Import=1, that just indicates whether or not the game includes files in the Virtual File System (VFS) when loaded as a mod. This is necessary for sql, lua, art, music files, etc. but not xml, which are loaded regardless of this import line.
For the DLC pack though, this information is not even checked. The game loads all files, regardless.
In any case, I'm sure a lot of the problems with the balance patch are due to files with the same name in different folders being mashed together into the same folder and overwriting each other. I intend to try and make the folder copying recursive later tonight, so hopefully that should resolve it.
Doctor McGann, does the Events & Decisions mod come with files of the same name in multiple folders? If so, it's probably a victim to same problem as above, which I'm going to try and deal with later...
Yeah I just meant copy with folders. Internally, the folder copying function I inherited from Gedemon just goes through the list of files and copies all of them without preserving directory structure. This is obviously problematic if a mod contains two folders both with name "example.xml" and intends to use both.Yes, i made a pull request in your github repository (MPMPMaker-Things). I already merged it with what you had (the banned list thingy).
What do you mean by recursively? You mean copy with folders? Because the algorithm is already recursive, and it overwrites the files with same names.
About the import thing: So if i have a lua file that has import = 0, what does it mean? because thats what i see in the modinf of that mod in particular: Lua files used -> import=1, lua files not used-> import = 0.
Yes, i made a pull request in your github repository (MPMPMaker-Things). I already merged it with what you had (the banned list thingy).
What do you mean by recursively? You mean copy with folders? Because the algorithm is already recursive, and it overwrites the files with same names.
About the import thing: So if i have a lua file that has import = 0, what does it mean? because thats what i see in the modinf of that mod in particular: Lua files used -> import=1, lua files not used-> import = 0.
Would it be possible to reupload Cicero225's Anime Pack by any chance? I'm fairly certain the reason there weren't any luxuries on the map is because it bugged or errored in the middle of downloading but I somehow still finished it and got the file.
It turns out that changing this was almost laughably trivial, once I finally went and looked. Thanks to Gedemon for coding things in a well thought-out manner...
Yes, i saw the changes. It was just 2 lines of code hahaha.
btw, problem 11 in first post should now say:
error ("Failed! Couldn't find folder for mod: " .. name)
instead of error ("Failed! Check Folder Names!")
It also makes file copying into the dlc pack now preserve directory structure, which may fix events and decisions and community balance, and fixes some issues with Names by Policies.