Project Zomboid

Project Zomboid

Moodle Framework B41
173 Comments
Tchernobill  [author] Jun 16 @ 2:12pm 
@theplanettree you should use B42 version instead of this one if you play B42
theplanettree Jun 16 @ 11:55am 
You should change name to b41/b42 , almost skipped this
darkArt Apr 22 @ 12:22am 
If I subscribe to this and the new b42 only version of this mod it only shows me one moodle framework mod on the mod list.
Mrlaz Apr 1 @ 3:11pm 
Turkish language does not work in b42.6 version
ROZZIE O.O Mar 24 @ 9:37am 
Epic
bballzki01 Feb 28 @ 10:39am 
my game is also doing that. did you guys ever figure it out
PepperCat Jan 21 @ 11:08am 
My mod is B41/B42 so I'm using the original one.

Code for one of my moodles:

local moodle = MF.getMoodle("dtemcaffeine", player:getPlayerNum())
if moodle ~= nil then
if player:getModData().DTEMcaffeineOnBody > 0 and player:HasTrait("AddictedToCaffeine") then
moodle:setValue(0.6);
moodle:setBackground(moodle:getGoodBadNeutral(), moodle:getLevel(), getTexture("media/ui/dtemcaffeine.png"))
--print("Moodle 1 positive")
elseif player:getModData().DTEMtimeSinceLastCaffeine > 1440 and player:HasTrait("AddictedToCaffeine") then
moodle:setValue(0.4);
moodle:setBackground(moodle:getGoodBadNeutral(), moodle:getLevel(), getTexture("media/ui/dtemcaffeine.png"))
--print("Moodle 1 negative")
else
moodle:setValue(0.5);
--print("No Moodle")
end
end

I still can't see the red/green background circle in the moodle. It just displays the icon
Tchernobill  [author] Jan 21 @ 11:02am 
@PepperCat For B42, yes. You probably modified the related mod options.
Aside, if your mod is not hybrid B41/42, I suggest you link to B42 version of this. (not both)
PepperCat Jan 21 @ 9:35am 
Hello!
Question. I had my Moodles working all good but now, my image is being displayed but the green/red circle behind the Moodle icon is not displayed anymore, do I need to add an additional line of code for that? Did something related to that changed in the latest update?
Tchernobill  [author] Dec 30, 2024 @ 3:11pm 
While this version works for both B41 and B42,
I uploaded a B42 only version with higher update frequency here . It already includes minors updates and is likely to include more in the future.
vsnegupal Dec 29, 2024 @ 1:02am 
Greetings. Can you please give me permission to include this mod in my modpack for the server? There will be a link to this mod in the description, and I will always be in touch, if you change your mind. You can post your approval/disapproval here or in private messages.
thesimphany Dec 28, 2024 @ 4:13pm 
Please consider to keep a build 41 Version for those of us That will be remaining on Build 41 And the servers and files we have used for Years
UnCheat Dec 27, 2024 @ 3:36pm 
@Tchernobill
Here is a screenshot with the ProteinsMoodle
I don't think that overwriting the MF.ISMoodle.render by 3-rd patrty mods is the best solution to fix that
UnCheat Dec 27, 2024 @ 3:16pm 
@Tchernobill Please consider adding support for uneven textures backgrounds
For example neonMoodleIndicatorVertical vertical version is 128x138 px size or other mods where background is wider
So the aspect ratio scaling is needed to respect that.
To get the propper width you can use:
finalWidth = round(texture:getWidth() * moodleSize / texture:getHeight(), 0)

And you can calculate ratio only when:
texture:getWidth() ~= texture:getHeight()
Kacpix Dec 21, 2024 @ 2:14am 
will it break one of my moodle mod (plain moodles, b41)?
Tchernobill  [author] Dec 18, 2024 @ 11:39pm 
@PepperCat & Enthuziazt :steamhappy:
@Additive yes. you can check mods tags for that
Enthuziazt Dec 18, 2024 @ 4:02pm 
Tchernobill, from the bottom of my heart, you a goated modder my guy
AddictiveOutlier Dec 18, 2024 @ 12:59pm 
Is it compatible with both builds?
PepperCat Dec 18, 2024 @ 12:17pm 
Solved. It was just a 8 layer error :)
PepperCat Dec 18, 2024 @ 11:59am 
Omg... I took an old version of the mod where I was using Aiteron API for Moodles instead of MoodleFramework, I'm stupid. Let me try lol
Tchernobill  [author] Dec 18, 2024 @ 11:42am 
@pepperCat. Yes.
There is supposed to be nothing done on your side for resize. If you got the moodle, you're supposed to get the resize.
I guess you are not manipulating MF.scale. (it is not supposed to be manipulated from outside MoodleFramework)
PepperCat Dec 18, 2024 @ 11:15am 
Hmmm I'm not getting my Moodles resized. Is your Protein Moodle being resized? I may have something wrong.
Tchernobill  [author] Dec 18, 2024 @ 11:02am 
@PepperCat Vanilla (B42) moodles resize is handled.
PepperCat Dec 18, 2024 @ 7:24am 
Hey there! how are you? Did you do something for Moodle rezise now that's an option? I want to start working on Dynamic Traits update, but not really sure if I need to do something with your dependency for them to be resizable
Raven Dec 17, 2024 @ 3:35pm 
problems solved, issue was the other mod that updated (equipment ui) because it updated too many times too fast for steam to handle
Tchernobill  [author] Dec 17, 2024 @ 3:21pm 
@Sylon I am human, my bui.. birth certificate can prove it ! I am 100% hum.. kzzzt.. krrrrrr..pshhhhhh.. .. .. ERROR detected start reboot.. .. an and there is no way I am not.
Sylon Dec 17, 2024 @ 3:11pm 
Are you even human? How did you update it so fast!? THANKS
Tchernobill  [author] Dec 17, 2024 @ 2:29pm 
@Raven I suggest you go on discord mod support channel and give there as much detail as you can. https://discord.gg/theindiestone
Raven Dec 17, 2024 @ 2:26pm 
I didn't get a server crash but I can't join my locally hosted server because it needs to download mods (mods that I already have because I'm literally hosting it) and it was just bugging out steam as it tried to download nothing
Tchernobill  [author] Dec 17, 2024 @ 2:22pm 
@огуречйк it should be fully compatible B41, can you provide me the errors ?
огуречйк Dec 17, 2024 @ 2:16pm 
Hello, is there any way to access the old mod version? Can't continue the game with the current one, it crashes our server.
Tchernobill  [author] Dec 17, 2024 @ 2:13pm 
@Raven Yes, it is compatible with both B41 and B42.
Raven Dec 17, 2024 @ 2:05pm 
does this mod still work with b41? afraid to start up my server rn because someone said this mod's update duped a vehicle on another server
Jem Nov 7, 2024 @ 2:57pm 
@Tchernobil Hello, can I use the mod in my mod pack?
Ery Oct 30, 2024 @ 2:26pm 
@PCR because hide in cars utilizes a moodle to let you know that you are indeed hidden
PCR Sep 28, 2024 @ 6:54am 
why i need this for mod "hide in cars"? :V
Dreamy_Abyss Aug 13, 2024 @ 7:10pm 
Hello Tchernobill,

I hope you're doing well! I'm currently putting together a modpack for a Project Zomboid server called "Infected Chronicles," which is focused on creating a unique and immersive experience for our community through rp! (if anyone is interested reach out to me via messages). Your mod would be a perfect fit for the atmosphere we're aiming to build. I'd like to ask for your permission to include it in our modpack. Of course, full credit will be given to you, and I'll be sure to follow any guidelines you have. Thank you for considering my request!

Best regards,
Techspartan
Sealer Moon Jul 16, 2024 @ 8:49am 
Is there a way to reload the moodle UI while in-game?
I don't know if it's this or one of my other 110 mods but something causes moodles to just sometimes vanish until I re-host the server.
Anach Jul 15, 2024 @ 9:05pm 
With all these great Moodle additions, I think we need the moodles to overflow into a secondary column(s), if they reach a certain (configurable) number of Moodles on screen.
Naniwara May 28, 2024 @ 10:51am 
the pregnancy mod got unlisted, which is curious.
Tchernobill  [author] May 13, 2024 @ 10:58am 
@Remanner From my POV this looks a lot like someone is fishing for externalizing their mod problems.
Remanner May 13, 2024 @ 4:02am 
This mod conflicts with That DAMN Library and a bunch of it's cars (wich work fine on its own), problem related to car upgrades. Breaks roofrack storage: can't open, spam in log when you walk around or driwing car with roofrack storage
ERROR: General , 1715596533514> LuaManager.getFunctionObject> no such function "DG70.ContainerAccess.Roofrack"
Throws a bunch of errors when the game loads new cars, my guess the errors are related to optional upgrades, but can't say for sure because of lack of knowledge, spent several hours just to figure out what i said above

Other than that, mod works just fine with Medicine Moodles, even when TDL desperately cries in log, thumbs up
Tchernobill  [author] Feb 7, 2024 @ 12:20pm 
with version 1.10, this framework is now split screen compatible.
Client mods need to update their use of this mod to deliver the split screen compatibility to users.
Tchernobill  [author] Feb 4, 2024 @ 12:47pm 
@Eden1914 fair enough, I clarified.
Eden1914 Feb 4, 2024 @ 11:14am 
Because I seen you said it wasn't tested. Also because have mods dependant on this framework, and I want to enjoy this game with my wife. Figured if you may fix it some day or something
Tchernobill  [author] Jan 28, 2024 @ 9:05am 
@Eden1914 Why would you use in splitscreen a mod that is not compatible with splitscreen ?
Eden1914 Jan 28, 2024 @ 9:00am 
>version 1.8

>remove ghost moodles bug. (unexpected empty space between moodles)

I know I already commented about splitscreen incompatibility, but I'd like to add that the ghost moodles exist for player 2, so that bug still exists. Also, if both players have the same trait with a moodle that uses this framework, then the moodle for the trait will duplicate on player 2's screen, as it shows moodles for player 1 and player 2 on just player 2's screen. This makes it hard to tell who's moodle could be who's when only one is showing in the moment.
Eden1914 Jan 24, 2024 @ 7:51pm 
mods using this framework break on splitscreen, the moodle for player one stacks over and sometimes covers player two's moodles
Tchernobill  [author] Jan 19, 2024 @ 5:57pm 
@Ratamus as described in the interface, temporary off moodle default value is 0.5. you probably do not want to suspend/disable.
Ratamus Jan 19, 2024 @ 5:54pm 
Great mod, having an issue using this in my mod with two other mods that use your framework hopefully you can help me find the issue.

Improved Sneak and True Crawl both use your moodle framework that have moodles visible all the time.

My mod creates a moodle that tracks an effect over a duration, when it ends I set the value to 0 and suspend/disable the moodle, it dissapears but it leaves a gap between the two other moodles where it used to be. Im assuming its still in place just hidden but not sure how I go about completely removing it or pushing it to the bottom of the moodle list