This sounds amazing. Would I be able to use this with, say Nocturnal Moths, to randomize or limit the lanterns it affects? I love it but places with a lot of lights like Balmora and Vivec are basically swarming, which lessens the effect (they're also quite noisy).
Is it safe to remove DOR's logging to MWSE.log? I'm looking at GPObjectReplacer.lua, specifically line 69:
mwse.log("[Object Replacer] Swapping %s with %s", ref.baseObject.id, newRef.object.id)
Can I comment out that line ( -- ) without affecting the rest of the function?
I ask mostly because the logging gets repetitive and I'm reading a lot of MWSE.log files, as I'm trying to pin down a memory leak somewhere in my mod build.
This mod seems to be flying under the radar at the moment, but it is a really cool framework. Thank you for sharing! I had a question about the `specificCell` function. Can that be made to accept strings? Like if you just entered `ancestral tomb`, then it would function in any cell that includes `ancestral tomb` in the name? That'd be useful so coins in ancestral tombs could be swapped with an older currency. That sort of thing.
I had the same quesiton as Melchior! In fact when I read it I was afraid that they were working on something with exactly the same concept, but it sounds different.
I just wanted to say thank you for making such a wonderful, useful mod. It was very easy to figure out, even for a codelet like myself and I can't wait to see what people do with it. I just have one question: Is there a way to specify multiple cells per entry, or does each cell need its own "object to replace"?
For now, each object can only have one cell defined. I didn't really anticipate the need for multiple cells however this could be easily fixed in a new update. I'll add that soon!
For now, each object can only have one cell defined. I didn't really anticipate the need for multiple cells however this could be easily fixed in a new update. I'll add that soon!
23 comments
Old:
MWSE/lib/DOR/GPObjectReplacer.lua and MWSE/Mods/GPObjectReplace/main.lua
New:
DOR/lib/DOR/GPObjectReplacer.lua and DOR/mods/GPObjectReplace/main.lua and DOR/mods/_OR_
Just rename DOR to MWSE. Silly mistake
I ask mostly because the logging gets repetitive and I'm reading a lot of MWSE.log files, as I'm trying to pin down a memory leak somewhere in my mod build.
We're halfway to Seasons of Morrowind, just need to tie swapping rules to [external thing] like ingame date.