Jump to content

BeanieFancier

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BeanieFancier

  • Rank
    On the Coast
  1. BeanieFancier

    Mission file in Modding Basics Tutorial fails to load

    Don't seem to be able to delete this, so, Update: It's been a mix-up in file names. Works now.
  2. Hi all, I'm currently making my way through the Modding Basics Tutorial at https://community.bistudio.com/wiki/DayZ:Modding_Basics. I've followed all the steps, but when I try and start up the game it gets stuck loading up and gives me the error message Mission script has no main function, player connect will stay disabled! My mission file looks like this and is directly copy-pasted from https://community.bistudio.com/wiki/DayZ:Modding_Basics#Singleplayer. Mission CreateCustomMission(string path) { return new MissionGameplay(); } void main() { PlayerBase player; ItemBase item; // Create player player = PlayerBase.Cast((GetGame().CreatePlayer(NULL, "SurvivorF_Linda", "2200 10 2200", 0, "NONE"))); // Spawn a black t-shirt item = player.GetInventory().CreateInInventory("TShirt_Black"); // Spawn an apple in the t-shirt, don't redefine 'item' so we can still spawn other items in the t-shirt item.GetInventory().CreateInInventory("Apple"); // Select player the client will be controlling GetGame().SelectPlayer(NULL, player); } I'm launching then game as indicated in the tutorial with start /D "path\to\my\install" DayZDiag_x64.exe "-mod=P:\Mods\@FirstMod" "-mission=./missions/firstMission.ChernarusPlus" -filePatching I'm probably missing something very obvious but I've started over three times now and can't see what I'm doing wrong. Anyone have a hint? 🙂 Beanie
×