Phil4127 1 Posted August 27, 2020 Whats wrong with this NS3843197, 28.08 2020 00:59:55 NULL pointer to instance Class: 'CustomMission' Function: 'SpawnTraderObjects' Stack trace: TM/Trader/scripts/5_Mission/mission\missionserver.c:397 TM/Trader/scripts/5_Mission/mission\missionserver.c:63 ZomBerry/AT/scripts/5_Mission/zomberry.c:404 ToxicZone/scripts/5_Mission/missionserver.c:35 BaseBuildingPlus/scripts/5_Mission/mission\missionserver.c:19 $CurrentDir:mpmissions\Expansion.ChernarusPlus\init.c:94 Share this post Link to post Share on other sites
drgullen 596 Posted August 27, 2020 Can you paste the section of your init.c around line 94? Like maybe 10 lines before and after? 1 Share this post Link to post Share on other sites
Phil4127 1 Posted August 27, 2020 Sure , thanks for your fast reply! i really appreciate it! override void OnInit() { ExpansionMissionModule missionModule; if ( Class.CastTo( missionModule, GetModuleManager().GetModule( ExpansionMissionModule ) ) ) { missionModule.SetMissionConstructor( COMMissionConstructor ); } super.OnInit(); } // ------------------------------------------------------------ // Override PlayerBase CreateCharacter // ------------------------------------------------------------ override PlayerBase CreateCharacter(PlayerIdentity identity, vector pos, ParamsReadContext ctx, string characterName) { Entity playerEnt; playerEnt = GetGame().CreatePlayer(identity, characterName, pos, 0, "NONE");//Creates random player Class.CastTo(m_player, playerEnt); GetGame().SelectPlayer(identity, m_player); return m_player; } Share this post Link to post Share on other sites
drgullen 596 Posted August 27, 2020 Okay, I was hoping for line numbers as well. 😜 Which one of those is line 94? Share this post Link to post Share on other sites
Phil4127 1 Posted August 27, 2020 sorry , its this one super.OnInit(); Share this post Link to post Share on other sites
drgullen 596 Posted August 28, 2020 Yeah not sure, that's looks okay. I would check for syntax errors in TM/Trader/scripts/5_Mission/mission\missionserver.c and also read through this that pertains to a different type of null pointer to instance but some of the suggested resolutions in this thread may pertain to your issue as well: https://github.com/Da0ne/DZMods/issues/56 Sorry I could not be of more help. Share this post Link to post Share on other sites
Phil4127 1 Posted August 28, 2020 Im not new to dayz servers , still no one ever explained me where to find these /TM/Trader/scripts/5_Mission.... are these offline data of the dayz game or where are they? If you could tell me that i'd be very happy... The Error said Class: 'CustomMission' Function: 'SpawnTraderObjects' And i had a few objects in the Expansion trader file that couldnt spawn because a mod was missing .. can this have caused this error? (it doesnt give crash errors anymore but i want to make sure it could cause this!) Thanks for answering me , not a normal thing in the dayz community! Best Regards, Phil Share this post Link to post Share on other sites
Phil4127 1 Posted August 29, 2020 No one who can explain this to me? Share this post Link to post Share on other sites
drgullen 596 Posted August 29, 2020 I believe some of the .c code is embedded in the PBO files if I'm not mistaken. You need to download DayZ Tools from Steam to mess with those. I ran a server previously, but the only editing I did was to my init.c and the xml configuration files. I never messed with any of the PBO files so I'll have to defer to someone else for that. Share this post Link to post Share on other sites
Phil4127 1 Posted August 29, 2020 Thanks , you helped me alot! 1 Share this post Link to post Share on other sites