Jump to content

EDF problem


Nonameman

Recommended Posts

Hey!

I'm working on my custom EDF, this is the code:

<def name="RP definitions"> 
    <element name="office_door_cp" friendlyname="Office door" icon="edf/img/office_door_cp.png"> 
        <data name="name" type="string" default="" /> 
        <data name="team" type="integer" default="0" /> 
        <data name="position" type="coord3d" default="0,0,0" /> 
        <data name="type" type="selection:arrow,checkpoint,corona,cylinder,ring" default="checkpoint" /> 
        <data name="size" type="number" default="3" /> 
        <data name="color" type="color" default="#0000FF" /> 
        <data name="interior" type="integer" default="0" /> 
        <data name="dimension" type="integer" default="0" /> 
        <data name="command" type="selection:enter,exit", default="enter" /> 
        <data name="icon" type="integer" default="1" /> 
        <marker position="!position!" type="!type!" size="!size!" color="!color!" interior="!interior!" dimension="!dimension!" /> 
        <blip position="!position!" icon="!icon!" size="2" color="#FFFFFF" dimension="!dimension!" /> 
    </element> 
</def> 

But when I add it in the map editor, the icon I set doesn't appear.

What could be the problem?

Thanks

Nonameman

Link to comment

I faced that problem, if I'm right the problem is the dimension, the map editor dimension is 200.

So here:

<def name="RP definitions"> 
    <element name="office_door_cp" friendlyname="Office door" icon="edf/img/office_door_cp.png"> 
        <data name="name" type="string" default="" /> 
        <data name="team" type="integer" default="0" /> 
        <data name="position" type="coord3d" default="0,0,0" /> 
        <data name="type" type="selection:arrow,checkpoint,corona,cylinder,ring" default="checkpoint" /> 
        <data name="size" type="number" default="3" /> 
        <data name="color" type="color" default="#0000FF" /> 
        <data name="interior" type="integer" default="0" /> 
        <data name="dimension" type="integer" default="200" /> 
        <data name="command" type="selection:enter,exit", default="enter" /> 
        <data name="icon" type="integer" default="1" /> 
        <marker position="!position!" type="!type!" size="!size!" color="!color!" interior="!interior!" dimension="!dimension!" /> 
        <blip position="!position!" icon="!icon!" size="2" color="#FFFFFF" dimension="!dimension!" /> 
    </element> 
</def> 

Link to comment
<meta> 
    <info author="Nonameman" version="0.1" type="gamemode" edf:definition="edf/ncrp.edf" /> 
    <file scr="\edf\img\office_door_cp.png" /> 
    <script src="authServer.lua" type="server" /> 
    <script src="authClient.lua" type="client" /> 
    <script src="generalServer.lua" type="server" /> 
    <script src="generalClient.lua" type="client" /> 
</meta> 

Link to comment

It's src not scr

And wrong directory should be / not \

<meta> 
    <info author="Nonameman" version="0.1" type="gamemode" edf:definition="edf/ncrp.edf" /> 
    <file src="edf/img/office_door_cp.png" /> 
    <script src="authServer.lua" type="server" /> 
    <script src="authClient.lua" type="client" /> 
    <script src="generalServer.lua" type="server" /> 
    <script src="generalClient.lua" type="client" /> 
</meta> 

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...