Project Zomboid

Project Zomboid

Moodle Framework B41
171 Comments
darkArt 22 Apr @ 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 1 Apr @ 3:11pm 
Turkish language does not work in b42.6 version
ROZZIE 24 Mar @ 9:37am 
Epic
bballzki01 28 Feb @ 10:39am 
my game is also doing that. did you guys ever figure it out
PepperCat 21 Jan @ 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] 21 Jan @ 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 21 Jan @ 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] 30 Dec, 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 29 Dec, 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 28 Dec, 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 27 Dec, 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 27 Dec, 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 21 Dec, 2024 @ 2:14am 
will it break one of my moodle mod (plain moodles, b41)?
Tchernobill  [author] 18 Dec, 2024 @ 11:39pm 
@PepperCat & Enthuziazt :steamhappy:
@Additive yes. you can check mods tags for that
Enthuziazt 18 Dec, 2024 @ 4:02pm 
Tchernobill, from the bottom of my heart, you a goated modder my guy
AddictiveOutlier 18 Dec, 2024 @ 12:59pm 
Is it compatible with both builds?
PepperCat 18 Dec, 2024 @ 12:17pm 
Solved. It was just a 8 layer error :)
PepperCat 18 Dec, 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] 18 Dec, 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 18 Dec, 2024 @ 11:15am 
Hmmm I'm not getting my Moodles resized. Is your Protein Moodle being resized? I may have something wrong.
Tchernobill  [author] 18 Dec, 2024 @ 11:02am 
@PepperCat Vanilla (B42) moodles resize is handled.
PepperCat 18 Dec, 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 17 Dec, 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] 17 Dec, 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 17 Dec, 2024 @ 3:11pm 
Are you even human? How did you update it so fast!? THANKS
Tchernobill  [author] 17 Dec, 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 17 Dec, 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] 17 Dec, 2024 @ 2:22pm 
@огуречйк it should be fully compatible B41, can you provide me the errors ?
огуречйк 17 Dec, 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] 17 Dec, 2024 @ 2:13pm 
@Raven Yes, it is compatible with both B41 and B42.
Raven 17 Dec, 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 7 Nov, 2024 @ 2:57pm 
@Tchernobil Hello, can I use the mod in my mod pack?
Ery 30 Oct, 2024 @ 2:26pm 
@PCR because hide in cars utilizes a moodle to let you know that you are indeed hidden
PCR 28 Sep, 2024 @ 6:54am 
why i need this for mod "hide in cars"? :V
Dreamy_Abyss 13 Aug, 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 16 Jul, 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 15 Jul, 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 28 May, 2024 @ 10:51am 
the pregnancy mod got unlisted, which is curious.
Tchernobill  [author] 13 May, 2024 @ 10:58am 
@Remanner From my POV this looks a lot like someone is fishing for externalizing their mod problems.
Remanner 13 May, 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] 7 Feb, 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] 4 Feb, 2024 @ 12:47pm 
@Eden1914 fair enough, I clarified.
Eden1914 4 Feb, 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] 28 Jan, 2024 @ 9:05am 
@Eden1914 Why would you use in splitscreen a mod that is not compatible with splitscreen ?
Eden1914 28 Jan, 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 24 Jan, 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] 19 Jan, 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 19 Jan, 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
Slider-Man 16 Jan, 2024 @ 3:42pm 
Just quick update, culprit has been found

Autotsar Tuning Atelier - Chevalier Samara [TUNING 2.0]

Server crashes saying no script for the car, not sure what the fix is as i redownloaded mod but still instant crashes World dictionary error with no script for above mod, so ya. Mystery solved.
Slider-Man 16 Jan, 2024 @ 12:44pm 
Ya its related to vehicles and even vanilla vehicles its just weird your mod brings the tires back when removed which i legit dont get but ill stop flooding the comments now that i got it narrowed down, appreciate it, take care.