d3xter-dev / dayz-class-selection Goto Github PK
View Code? Open in Web Editor NEWDayZ Class Selection Mod
License: GNU General Public License v3.0
DayZ Class Selection Mod
License: GNU General Public License v3.0
Hi. I have an error when I first started the mod:
NULL pointer to instance. Variable 'className' Class: 'CustomMission' Function: 'EquipCharacter' Stack trace: d3xters-class-selection/Scripts/5_Mission/missionserver.c:380 scripts/5_Mission/mission\missionserver.c:405 JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:122 scripts/5_Mission/mission\missionserver.c:164 JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:18 SearchTheCorpse\scripts\5_Mission/searchthecorpse\mission\moddedmissionserver.c:7 d3xters-class-selection/Scripts/5_Mission/missionserver.c:315 scripts/3_Game/dayzgame.c:1293
Mods on the server are connected:
@CF;@Community-Online-Tools;@Weapons_Pack_by_DimA;@Banking;@BaseBuildingPlus;@Bed-Respawning;@BuildAnywhere_v3;@BuilderItems;@Code_Lock;@CorpseSearching;@CustomCharacterSpawnFix;@DayZ_Class-Selection;@GearPDA;@Heroes_And_Bandits;@Trader;@Translation_Base_Building_Plus;@Unlimited_Stamina;@VanillaPlusPlusMap;@VEHICLES_DAYZ174;@USSR_Dayz_Project
servermods @CFDZPlugin;@My_Server_Mod
Hi LemmingTV
As discussed on Steam chat yesterday, please see attached:
Class Selection Profiles Folder
init.c file
Let me know if you require anything else.
ClassSelection.zip
init.zip
Best,
JaNeeKyk
If you spawn primary or secondary gun with multiple mags, there is unusable space in first container, where other mags spawn. You can't move any item to that slot, and server will print out error once you try. This can be worked around, by spawning additional mags in general items.
Sample config:
{
"className": "Team A",
"selected": 0,
"primaryItems": [
{
"name": "AK74",
"selected": 0,
"quantity": 0,
"attachments": [
"AK_PlasticBttstck",
"AK_RailHndgrd",
"PSO11Optic"
],
"cargo": [],
"magazines": [
{
"name": "Mag_AK74_30Rnd",
"quantity": 3
}
]
},
{
"name": "FAL",
"selected": 0,
"quantity": 0,
"attachments": [
"Fal_FoldingBttstck",
"ReflexOptic"
],
"cargo": [],
"magazines": [
{
"name": "Mag_FAL_20Rnd",
"quantity": 3
}
]
},
],
"secondaryItems": [
{
"name": "Glock19",
"selected": 0,
"quantity": 0,
"attachments": [],
"cargo": [],
"magazines": [
{
"name": "Mag_Glock_15Rnd",
"quantity": 2
}
]
},
{
"name": "FNX45",
"selected": 0,
"quantity": 0,
"attachments": [],
"cargo": [],
"magazines": [
{
"name": "Mag_FNX45_15Rnd",
"quantity": 2
}
]
}
],
"utilities": [
{
"name": "LandMineTrap",
"selected": 0,
"quantity": 1,
"attachments": [],
"cargo": [],
"magazines": []
},
{
"name": "Rangefinder",
"selected": 0,
"quantity": 1,
"attachments": [],
"cargo": [],
"magazines": []
}
],
"generalItems": [
{
"name": "CombatKnife",
"selected": 0,
"quantity": 1,
"attachments": [],
"cargo": [],
"magazines": []
}
],
"clothes": [
{
"top": "BDUJacket",
"pants": "BDUPants",
"shoes": "MilitaryBoots_Bluerock",
"vest": "PlateCarrierVest",
"gloves": "TacticalGloves_Green",
"belt": "MilitaryBelt",
"hat": "Mich2001Helmet",
"glasses": "TacticalGoggles",
"mask": "BalaclavaMask_Green",
"armband": "Armband_Blue",
"vestAttachments": [
"PlateCarrierHolster",
"PlateCarrierPouches",
"M67Grenade",
"M67Grenade",
"M18SmokeGrenade_Red"
],
"beltAttachments": [
"Canteen",
"PlateCarrierHolster"
]
}
]
}
Server error:
[desync] HandleInputData man=SurvivorM_Cyril:02 CANNOT move cmd=SYNC_MOVE src={ type=CARGO item=Mag_Glock_15Rnd:024712 parent=PlateCarrierPouches:024697 idx=0 row=0 col=3 f=false } dst={ type=CARGO item=Mag_Glock_15Rnd:024712 parent=PlateCarrierPouches:024697 idx=0 row=0 col=2 f=false }
Class: 'DayZPlayerInventory'
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:44
scripts/4_World/systems\inventory\dayzplayerinventory.c:608
scripts/4_World/systems\inventory\dayzplayerinventory.c:1102
scripts/4_World/systems\inventory\dayzplayerinventory.c:482
Runtime mode
CLI params: config serverDZ.cfg port 2302 dologs adminlog netlog freezecheck profiles D:\SteamLibrary\steamapps\common\DayZServer\profiles mod @CF;@Code Lock;@BaseBuildingPlus;@MunghardsItempack;@SchanaModParty;@Unlimited Stamina;@VanillaPlusPlusMap;@zSpawnSelection;@DayZ Class-Selection;@ZomBerry Admin Tools;
This error is appearing in the crash logs, just reporting even I believe it is not making the mod not work.
WIN-68IU8DIVOMK, 29.07 2020 19:11:58
NULL pointer to instance
Class: 'ClassSelectionClass'
Function: 'SpawnItem'
Stack trace:
d3xters-class-selection/Scripts/5_Mission/classselectionclass.c:252
d3xters-class-selection/Scripts/5_Mission/classselectionclass.c:425
$CurrentDir:mpmissions\dayzOffline.chernarusplus\init.c:240
scripts/5_Mission/mission\missionserver.c:405
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:122
scripts/5_Mission/mission\missionserver.c:164
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:18
VPPATExtensions/5_Mission/б?Щјшў.p3d:58
d3xters-class-selection/Scripts/5_Mission/missionserver.c:20
VPPAdminTools/5_Mission/missionserver.c:259
scripts/3_Game/dayzgame.c:1293
Hi.
First, sorry for my english.
I'm having trouble adding items [deagle scope/pistolscope and Fal FoldingBttstck/OeBttstck] to the class menu.
When I add them, the preview of the items disappear from the class selection menu. This makes the choice impossible.
Any idea to solve this?
Tks
Stack after player dead.
LocalDestroyEntity: No inventory location
Class: 'DayZPlayerInventory'
Function: 'Error'
Stack trace:
scripts/1_Core/proto\endebug.c:44
scripts/3_Game/systems\inventory\humaninventory.c:440
scripts/4_World/entities\manbase\playerbase.c:1059
d3xters-class-selection/Scripts/5_Mission/classselectionclass.c:193
d3xters-class-selection/Scripts/5_Mission/classselectionclass.c:428
`d3xters-class-selection/Scripts/5_Mission/missionserver.c:58`
scripts/5_Mission/mission\missionserver.c:483
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:122
scripts/5_Mission/mission\missionserver.c:249
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:18
VPPAdminTools/5_Mission/vppadmintools\missionserver.c:44
d3xters-class-selection/Scripts/5_Mission/missionserver.c:20
scripts/3_Game/dayzgame.c:1357
Runtime mode
CLI params: config serverDZ.cfg.active port 2302 profiles StarDz adminlog freezecheck dologs mod @Advanced Weapon Scopes;@CF;@Cl0ud's Military Gear;@DayZ Class-Selection;@RevGuns;@Server_Information_Panel;@stardz;@Unlimited Stamina;@VPPNotifications;@VPPAdminTools;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.