Sign in to follow this  

Couldn't load edf file

Recommended Posts

Hi all, I'm trying to make a gamemode for my server, but I have a problem.


	<info author="Humber" version="1.0" name="ZombieWar" type="gamemode" edf:definition="edf/ZombieWar.edf" />


<def name="Zombie War"> 
	<element name="spawnpoint" friendlyname="Spawnpoint"> 
		<data name="position" type="coord3d" default="0,0,0" /> 


ERROR: [editor]/edf/edf.lua:220: zombiewar: couldn't load edf file

Help please

Share this post

Link to post

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
	--try to load it
	local definitionRoot = xmlLoadFile(':' .. getResourceName(fromResource) .. '/' .. definitionName)
	if not definitionRoot then
		outputDebugString(fromResourceName .. ': couldn\'t load edf file', 1)
		return false

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

Share this post

Link to post

However, it is not complicated to create spawnpoints manually. Thank you.

Edited by #Humber*

Share this post

Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.