CodingGoYangE Posted February 17, 2025 Share Posted February 17, 2025 I want to change the tutorial video to another one. "tutorials\\DIGGING", <<<< I think this part is a problem. I'm working on a mod to change tutorial videos in Visual Studio 2022, and there's no way I can change the original source of the videos I bring to my string... I hope someone smart can help. [HarmonyPatch(typeof(Game), "OnSpawn")] public class Game_OnSpawn_Patch { public static void Postfix() { Message message_mod_Cooling_and_Overheating = null; message_mod_Cooling_and_Overheating = new TutorialMessage(TutorialMessages.TM_Basics + 99001, "Title", //title "body text", //body "tooltip text", //tooltip "tutorials\\Digging", null, "Video Title Text", // video title text "icon_action_dig"); Messenger.Instance.QueueMessage(message_mod_Cooling_and_Overheating); }} Link to comment https://forums.kleientertainment.com/forums/topic/164184-how-to-change-tutorial-videos/ Share on other sites More sharing options...
SGT_Imalas Posted February 17, 2025 Share Posted February 17, 2025 you define a local message variable, assign and queue it. you do nothing about the original message in that patch Link to comment https://forums.kleientertainment.com/forums/topic/164184-how-to-change-tutorial-videos/#findComment-1798721 Share on other sites More sharing options...
CodingGoYangE Posted February 18, 2025 Author Share Posted February 18, 2025 That's right. I wrote this code to add a new custom tutorial. I'm not trying to replace the original message. However, I keep failing to replace the "tutorials\\Digging" part that reads the video as string with another video. Link to comment https://forums.kleientertainment.com/forums/topic/164184-how-to-change-tutorial-videos/#findComment-1798928 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.