So,here I was,developing my mod with the solutions I received from the grateful community of the forums,
and I was adding a new feature to make sure that the mod would work properly with other versions.
So,I added an event to pop up a notification whenever the player loads a save file so that players know what they gain from my mod.
Then,this happened.
Game loaded the file,and I waited for seconds but nothing happened.
So,this was the code for the modboot.js (i named it that so that where the things that happens when a save file gets loaded are stored.)
var company = GameManager.company;
var eventstart = function (e) {
new Notification(
{
header: "Note!!!".localize(),
text: "Hello! This is just to make sure that my mod works with your current version of GDT!{n} You should try to improve your game company,which is ".localize()
}
);
}
GDT.on(GDT.eventKeys.saves.loading, eventstart);
This was just practice,but I still cant get it to work.Pls tell me what wrong