Project Zomboid

Project Zomboid

712 ratings
Moodle Framework
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
60.079 KB
Dec 30, 2024 @ 3:04pm
Mar 10 @ 2:11pm
3 Change Notes ( view )

Subscribe to download
Moodle Framework

In 1 collection by Tchernobill
B42
23 items
Description
Makes it easy to add moodles for modders.
This version may have frequent updates that we do not wanna bother B41 MP players with.


Moodle Framework Configuration
If you want colors to be easier to distinguish, you can set to white the reference color for moodles (default on).
This applies to both vanilla and modded moodles.
You can also deactivate various displays to enhance mod compatibility.
Modded Backgrounds with small extensions right or down are now handled too.


How to create a new moodle
If you wanna create a Moodle * then follow the next steps, replacing * by your moodle name.

1/ Moodle Texture
Add Moodle *.png under media\ui.
Should be 30 by 30 pixels png with alpha enabled.

2/ Texture
Add the following text under media\lua\shared\Translate\EN
Moodles_EN { Moodles_*_Good_lvl1 = "text_1", Moodles_*_Good_desc_lvl1 = "text_desc_1", Moodles_*_Good_lvl2 = "text_2", Moodles_*_Good_desc_lvl2 = "text_desc_2", Moodles_*_Good_lvl3 = "text_3", Moodles_*_Good_desc_lvl3 = "text_desc_3", Moodles_*_Good_lvl4 = "text_4", Moodles_*_Good_desc_lvl4 = "text_desc_4", Moodles_*_Bad_lvl1 = "text_1", Moodles_*_Bad_desc_lvl1 = "text_desc_1", Moodles_*_Bad_lvl2 = "text_2", Moodles_*_Bad_desc_lvl2 = "text_desc_2", Moodles_*_Bad_lvl3 = "text_3", Moodles_*_Bad_desc_lvl3 = "text_desc_3", Moodles_*_Bad_lvl4 = "text_4", Moodles_*_Bad_desc_lvl4 = "text_desc_4", }
You can implement only a subset of this as long as you call only the implemented part.

3/ Moodle object creation
Add these lines in your mod:
require "MF_ISMoodle" MF.createMoodle(*);

4/ Moodle value updates
Access your moodle from your code with
require "MF_ISMoodle" MF.getMoodle(*,playerNum):setValue(myNewMoodleValue)--float
0.0 <= myNewMoodleValue <=1.0
Missing playerNum will make the mod incompatible with SplitScreen.

For tuning options see dedicated discussion


Limitations
  • Not tested with multiplayer. (it is expected to work)
  • Not tested with splitscreen. (it is expected to work since last version)
  • Oscillations are not based on vanilla value and the behaviour may depend on performances.


Credits where it is due


Known mods using this
Have a look at how they use this mod.


On Lockdown[theindiestone.com]
This mod cannot be modified by anyone else, for anything else, at all, ever. Even if the user disappears, he or she would much rather you didn't touch the fruits of their hard labour.

You wanna support? A nice word is always welcome. Constructive feedback too.

Workshop ID: 3396446795
Mod ID: MoodleFramework
Popular Discussions View All (2)
1
Dec 30, 2024 @ 10:15pm
Better movement sync
UnCheat
0
Feb 11 @ 4:45pm
[FIXED] Incorrect moodle size bug introduced in 42.3.0
ModestPileOfCat
30 Comments
lisbar (ESP) Oct 29 @ 10:58am 
I'm playing in the game's lastest version and it won't appear in my mod list
Jiopaba Oct 20 @ 8:42am 
For folks saying they don't see it in their mod list, that literally just means you're using the one for the wrong version. Th is is the B42 exclusive Moodle Framework version. The other one was for B41, but it's flagged as B41/B42, so maybe you can use either if you're on B42? If you're playing in Multiplayer though for example, you're on B41 right now and you can't use this one. Make sure to grab the one for the version you're playing.
Cradge Oct 3 @ 4:43pm 
This is also not showing up in my mods list
Zepehr Sep 29 @ 3:58pm 
still works with .12?
tacticaltomatoes Sep 25 @ 7:20pm 
mod isnt showing up in mod list
Acee Sep 24 @ 10:18pm 
why cant i see it in my mods?
ribs Sep 2 @ 11:53am 
I made a mod that lets you customize the thresholds for vanilla moodles:
https://steamcommunity.com/sharedfiles/filedetails/?id=3560934901
KoBaYaShi Aug 17 @ 7:31am 
为什么订阅后不显示在mod列表里
Benzo-Kazooie Aug 1 @ 1:13am 
Suggest adding in Build 42 to the title or throw a tag on the mod that says it.
58g Jul 6 @ 7:37am 
I don't see it in my mod list and so the other mods that require it won't work. How can it be fixed?