Project Zomboid

Project Zomboid

5,225 ratings
Moodle Framework B41
5
6
4
3
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
111.139 KB
5 Sep, 2022 @ 4:22pm
21 Jan @ 4:17pm
15 Change Notes ( view )

Subscribe to download
Moodle Framework B41

In 2 collections by Tchernobill
PZ Build 41
27 items
Modder Tools
5 items
Description
Makes it easy to add moodles for modders.


Moodle Framework Configuration
If you want colors to be easier to distinguish, you can set to white the reference color for moodles.
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.


Ask for permission[theindiestone.com]
This mod can only be added to and extended with the express permission from the original creator. Having received permission, credit must be given to the original creator, both within the files of the mod and wherever the mod roams online.

If no permission is received you may not alter the mod.

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

Workshop ID: 2859296947
Mod ID: MoodleFramework
Popular Discussions View All (1)
7
28 Jul @ 6:22am
PINNED: Moodle Framework For Modders
Tchernobill
177 Comments
floppawarrior 29 Nov @ 4:44pm 
@Danyo look up Moodle Framework and you'll find one without the B41 caption
Danyo 29 Nov @ 1:46pm 
Ok. Everyone talking about a B42 version of this. Where is it? Why isn't it linked in the description or comments or anywhere in the lists? I went through all your mods and there is no B42 version. Am I blind?
Takaki Kasekari 9 Nov @ 11:46pm 
I've been using Moodle Framework but wish when I click on Build 42 category I can see only Build 42 mods. Like this mod but why its marked B42 when you have another for B42?
A 21 Aug @ 10:56am 
I encountered a bug just now, Here is what happened "I was camping near the source water, no zomboids around and no dead bodies. Then sudden an awful smell moodle just pop out. I drive away from the lake (no zomboids / dead bodies). I tried to disable the mod and the awful smell is gone."
Tchernobill  [author] 16 Jun @ 2:12pm 
@theplanettree you should use B42 version instead of this one if you play B42
theplanettree 16 Jun @ 11:55am 
You should change name to b41/b42 , almost skipped this
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 O.O 24 Mar @ 9:37am 
Epic
bballzki01 28 Feb @ 10:39am 
my game is also doing that. did you guys ever figure it out