TracyGaming Posted November 20, 2019 Share Posted November 20, 2019 Does anyone have experience doing this? I'm trying to alter my start of Darkness Falls. I've tried and I haven't been successful at all. I've located where to add the item names from items.xml onto the entityclasses.xml Link to comment Share on other sites More sharing options...
Crater Creator Posted November 20, 2019 Share Posted November 20, 2019 Here's an excerpt of entityclasses.xml from ComSenMod that worked as of Alpha 17. <configs> <set xpath="/entity_classes/entity_class[@name='playerMale']/property[starts-with(@name, 'ItemsOnEnterGame')]/@value">drinkJarBoiledWater,foodCanChili,meleeToolTorch,keystoneBlock,medicalFirstAidBandage,medicalFirstAidBandage,medicalFirstAidBandage</set> </configs> Link to comment Share on other sites More sharing options...
TracyGaming Posted November 20, 2019 Author Share Posted November 20, 2019 Here's an excerpt of entityclasses.xml from ComSenMod that worked as of Alpha 17. <configs> <set xpath="/entity_classes/entity_class[@name='playerMale']/property[starts-with(@name, 'ItemsOnEnterGame')]/@value">drinkJarBoiledWater,foodCanChili,meleeToolTorch,keystoneBlock,medicalFirstAidBandage,medicalFirstAidBandage,medicalFirstAidBandage</set> </configs> So do I just add this anywhere I'd like in the entityclasses.xml? Link to comment Share on other sites More sharing options...
Crater Creator Posted November 20, 2019 Share Posted November 20, 2019 No. While you can still edit the original entityclasses.xml, the above is xpath syntax that tells the game how to modify the original file. You put it in a text file called entityclasses.xml, and put that in your Mods folder. Or you find the entityclasses.xml file that Darkness Falls already uses to modify vanilla, and replace however it's modifying the same ItemsOnEnterGame property in that file. If you want a stack of something, that's more involved. The above works for single player, but I presume there's also a Mods folder the dedicated server looks for - e.g. wherever you put Darkness Falls. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.