Jump to content
Sign in to follow this  
Phil4127

Please help me...

Recommended Posts

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

Can you paste the section of your init.c around line 94?  Like maybe 10 lines before and after?

 

  • Like 1

Share this post


Link to post
Share on other sites

   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

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×