Nonameman Posted August 5, 2011 Posted August 5, 2011 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
JR10 Posted August 5, 2011 Posted August 5, 2011 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> Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
JR10 Posted August 6, 2011 Posted August 6, 2011 <def> Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Nonameman Posted August 7, 2011 Author Posted August 7, 2011 Thanks, but the main proble is that the icon, like marker, object, pickup and vehicle icons in the default EDF doesn't appear when I add it to the definitions and try to scroll to the correct def.
JR10 Posted August 7, 2011 Posted August 7, 2011 Add the icon to the meta. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
JR10 Posted August 7, 2011 Posted August 7, 2011 Show me your meta.xml Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Nonameman Posted August 7, 2011 Author Posted August 7, 2011 <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>
JR10 Posted August 7, 2011 Posted August 7, 2011 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> Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Nonameman Posted August 7, 2011 Author Posted August 7, 2011 Edited, but the icon still not appear. Checked the directory and it's right.
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