[Reminder for new people] For the record, after enabling the mod you can still load your existing Campaigns. Game will ask you saying something like "You are trying to load a save file with different modules" just click yes and continue. But it is always logical to keep another save file. Game is still in early access.
Tried to install this and when I start the game I get "Cannot load: modules\discordrp\bin\windows64_shipping_client\discordrp.dll After realizing this may be due to blocked dlls, I made sure to unblock then tried again. It no longer gave me the specific file error but it still said the app encountered a problem and needed to close. 1.7.0
I'll look in to it asap but my finals are close and is it only you or is it same with everyone? And if you have bannerlord tweaks mod, could you upload the crash report as image or log, txt file.
I just got on, and updated my game along with the mod. It should work now. Thank you for the report, only tested in debug mode. So if it crashes again let me know please. Thanks in advance!
Can you give us some examples of how to use some of the new features? For example, I want to show the numbers of troops for both sides when I enter combat.
--------------------------- Mount and Blade Bannerlord has crashed --------------------------- Better crash report provided by Bannerlord Tweaks. NB: This does not mean this crash was necessarily caused by Bannerlord Tweaks, it is just allowing you to see what the error was.
NullReferenceException:
Object reference not set to an instance of an object.
Stack trace:
at DiscordRP.DiscordRP.setPresence(String details, String state, String playerName, Int32 presenceKey, Boolean forceUpdate, Timestamps timestamps) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 500
at DiscordRP.DiscordRP.initMission(Mission mission, String playerName) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 271
at DiscordRP.DiscordRP.OnMissionBehaviourInitialize(Mission mission) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 477
at TaleWorlds.MountAndBlade.Mission.AfterStart()
at TaleWorlds.MountAndBlade.MissionState.FinishMissionLoading()
at TaleWorlds.MountAndBlade.MissionState.OnTick(Single realDt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at DMD<DMD<OnApplicationTick_Patch2>?13791695::OnApplicationTick_Patch2>(Module this, Single dt)
--------------------------- OK ---------------------------
Okay, this one was weird. Managed fix. Updating in a minute. Thanks for all the crash reports and feedback! It really made it easier.
But the thing was i actually can fight, talk and enter taverns. When I ran from Visual Studio. After waking up, and seeing the posts, got confused. Anyway, it is now fixed!
I have to agree. I don't know why but knowing a game has Rich Presence just makes it better even if it literally has no effect on gameplay. Obviously a psychological thing.
Will it be possible to show both &n (Enemies) with &a (Allies) later? So: "In battle against &n enemies with &a allies" Thank you! This is running great atm, will let you know if anything is borked :P
Edit 2: nvm I just saw the git and a new json, it's been removed xD
I was editing that but haven't had time to add it in. Code is ready and such, i thought i removed it from config configuration. I will be adding that as soon as i can. Sorry for inconvenience :/
Oh wow this was what was causing it? I was trying to figure out why I can't load a save, and kept thinking it was other mods doing it. I was getting tired of trying to eliminate the culprit and totally skipped over the possibility that it could be this mod.
Sadly, you can not change the "Game Name" it is supported by Discord, and not dynamic. Only I can change it through their website. But i was thinking to add different named versions and let you switch between names.
Yeah, I tried add those but sadly wasn't able to find related classes in API. Since Documentation is too new too, I couldn't :(
49 comments
For the record, after enabling the mod you can still load your existing Campaigns. Game will ask you saying something like "You are trying to load a save file with different modules" just click yes and continue. But it is always logical to keep another save file. Game is still in early access.
After realizing this may be due to blocked dlls, I made sure to unblock then tried again. It no longer gave me the specific file error but it still said the app encountered a problem and needed to close. 1.7.0
Game crashed for me too when I launch it (1.4.0).
https://imgur.com/hAuwrrV
p.s., crash when entering Tavern to talk to a Wanderer from campaign map.
Mount and Blade Bannerlord has crashed
---------------------------
Better crash report provided by Bannerlord Tweaks.
NB: This does not mean this crash was necessarily caused by Bannerlord Tweaks, it is just allowing you to see what the error was.
NullReferenceException:
Object reference not set to an instance of an object.
Stack trace:
at DiscordRP.DiscordRP.setPresence(String details, String state, String playerName, Int32 presenceKey, Boolean forceUpdate, Timestamps timestamps) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 500
at DiscordRP.DiscordRP.initMission(Mission mission, String playerName) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 271
at DiscordRP.DiscordRP.OnMissionBehaviourInitialize(Mission mission) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 477
at TaleWorlds.MountAndBlade.Mission.AfterStart()
at TaleWorlds.MountAndBlade.MissionState.FinishMissionLoading()
at TaleWorlds.MountAndBlade.MissionState.OnTick(Single realDt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at DMD<DMD<OnApplicationTick_Patch2>?13791695::OnApplicationTick_Patch2>(Module this, Single dt)
---------------------------
OK
---------------------------
Crash Report
---------------------------
What happened here:
NullReferenceException:
Object reference not set to an instance of an object.
Stack trace:
at DiscordRP.DiscordRP.setPresence(String details, String state, String playerName, Int32 presenceKey, Boolean forceUpdate, Timestamps timestamps) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 500
at DiscordRP.DiscordRP.initMission(Mission mission, String playerName) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 271
at DiscordRP.DiscordRP.OnMissionBehaviourInitialize(Mission mission) in C:\Users\DoctorOne\source\repos\DiscordRP\DiscordRP\DiscordRP.cs:line 477
at TaleWorlds.MountAndBlade.Mission.AfterStart()
at TaleWorlds.MountAndBlade.MissionState.FinishMissionLoading()
at TaleWorlds.MountAndBlade.MissionState.OnTick(Single realDt)
at TaleWorlds.Core.GameStateManager.OnTick(Single dt)
at TaleWorlds.Core.Game.OnTick(Single dt)
at TaleWorlds.Core.GameManagerBase.OnTick(Single dt)
at DMD<DMD<OnApplicationTick_Patch2>?13791695::OnApplicationTick_Patch2>(Module this, Single dt)
---------------------------
OK
---------------------------
But the thing was i actually can fight, talk and enter taverns. When I ran from Visual Studio. After waking up, and seeing the posts, got confused. Anyway, it is now fixed!
Anyway thanks for the fixes!
Thank you! This is running great atm, will let you know if anything is borked :P
Edit 2: nvm I just saw the git and a new json, it's been removed xD
Thanks for fixing!
<?xml version="1.0" encoding="utf-8"?>
<Module>
<Name value="Discord RP"/>
<Id value="DiscordRP"/>
<Version value="v1.0.0"/>
<SingleplayerModule value="true"/>
<MultiplayerModule value="false"/>
<Official value="false" />
<DependedModules>
<DependedModule Id="Native"/>
<DependedModule Id="SandBoxCore"/>
<DependedModule Id="Sandbox"/>
<DependedModule Id="CustomBattle"/>
<DependedModule Id="StoryMode" />
</DependedModules>
<SubModules>
<SubModule>
<Name value="DiscordRP"/>
<DLLName value="DiscordRP.dll"/>
<SubModuleClassType value="DiscordRP.DiscordRP"/>
<Tags>
<Tag key="DedicatedServerType" value="none" />
<Tag key="IsNoRenderModeElement" value="false" />
</Tags>
</SubModule>
</SubModules>
<Xmls/>
</Module>
Also is it possible to add more info to what is happening in-game, such as:
"In a tournament at #Location#"
"In a battle against Raiders outside #Location#"
"In a siege at #Location#"
as well as stuff like "Exploring #Location#'s Keep", "Exploring #Location#'s Streets" or "At #Location# Tavern".
Yeah, I tried add those but sadly wasn't able to find related classes in API. Since Documentation is too new too, I couldn't :(