#Humber* Posted December 12, 2016 Posted December 12, 2016 Hi all, I'm trying to make a gamemode for my server, but I have a problem. meta.xml: <meta> <info author="Humber" version="1.0" name="ZombieWar" type="gamemode" edf:definition="edf/ZombieWar.edf" /> </meta> ZombieWar.edf: <def name="Zombie War"> <element name="spawnpoint" friendlyname="Spawnpoint"> <data name="position" type="coord3d" default="0,0,0" /> </element> </def> Debugscript: ERROR: [editor]/edf/edf.lua:220: zombiewar: couldn't load edf file Help please
ViRuZGamiing Posted December 12, 2016 Posted December 12, 2016 Not sure if this will help but I found the MTA source code and the error you're getting: function edfLoadDefinition(fromResource, inResource, alreadyLoaded) local fromResourceName = getResourceName(fromResource) --get the EDF filename local definitionName = getResourceInfo(fromResource, "edf:definition") if not definitionName then return false end --try to load it local definitionRoot = xmlLoadFile(':' .. getResourceName(fromResource) .. '/' .. definitionName) if not definitionRoot then outputDebugString(fromResourceName .. ': couldn\'t load edf file', 1) return false end --etc.. https://github.com/multitheftauto/mtasa-resources/blob/master/[editor]/edf/edf.lua#L220 As I see and the error says, there's an error finding the file, are the Caps correctly? maybe try writing lowercase in meta and change the file name to be lowercase
#Humber* Posted December 13, 2016 Author Posted December 13, 2016 (edited) However, it is not complicated to create spawnpoints manually. Thank you. Edited December 13, 2016 by #Humber*
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now