Editing Jed`s Custom Resource Lists

By StealthJedi


Contents :


Many people have been asking how to customise the texture lists in Jed. This ability has been in place for Jed ver 0.51. You can edit the lists for wav,cog,template,mats (both JK and Mots ,Mots files have a "m" in front of the file name). The only things you need are a copy of Jed version 0.51 and Win95`s notepad.


Part 1: What are the Files ?

There is two types of files that need editing " *.JLH " & " *.JLL " . These have two different functions, The "JLH" (header) files control how the list shows up in the resource picker. The "JLL" (List) files are the actual lists of resources. The Files are placed in the "\JEDDATA" directory. Or alternatively you can create a custom set for your project by placing the custom lists in your project directory. These will override the ones in \JEDDATA.


Available files you may edit or create.


For example to create a list of cogs for Mots you would need to edit two files " MCOGS.JLH & MCOGS.JLL".


Part 2: How to make a simple list

We will use Mats for our examples. This works for all the lists you want to make ,just changing the appropriate names.

There is three command words in the JLH file " SUB, LIST, SUBEND" these are Make a list heading, the name of list,End heading.

To start , Open the Mats.JLH file or create one if you don`t have one.

Now we need to add a few things . (Commenets are preceded by "#" in the file)




SUB  Textures        # this makes a List heading in the picker ( the kind with an expandable box)
LIST Water Water # This is the "list name in the JLL file then the Text to appear under "Textures"
LIST Sky Sky # Same as above line, usualy the names are the same to keep it simpler
SUBEND # Ends the Main list heading "Textures"

You don`t have to indent the "LIST" just makes reading it better. Save this file "\JEDDATA\Mats.JLH

OK Now we need to make an actual list file to use. Either open or create \JEDDATA\Mats.JLL. Now you can add the lists to use . For our example i`m only going to add a few names..(example names only).

IN JLL files only " [ ] " are used to denote the beginnig of a list.


[Water]       # The List starts with the SAME Spelling and Case as in the JLH file. Your list will not appear if this is not the same. 

water1.mat    # Jed relies on you to spell these  resources right. If you make a mistake  either it will not display the Mat etc or further down the road you will get a resource error

water2.mat

water2.mat



[Sky]

sky1.mat

sky2.mat

sky3.mat      # a comment

The lists DONOT have to be in the same order you put them in the JLH file. But it does make it easier to keep track of if you wish to edit it later.

Now save this file also \JEDDATA\Mats.JLL. Then start up Jed and select a surface mat to edit.

If you have done this correctly you should have a display similar to this one.(this is not jed ,this i made for demonstration and screen capture only)

The Res2Gob will still be there for this type , that is the default resource list available to you and will change depending on what your editing.


Part 3: How to Add a new item to the list

In this example we will add another list under the "Textures list"

Open the Mats.JLH file.We will add an item called " Walls "




SUB  Textures 
LIST Water Water
LIST Sky Sky
LIST Walls Walls # The new item list to be added
SUBEND # Ends the Main list heading "Textures"

Save that file and open \JEDDATA\Mats.JLL.

Add the new " Walls " list.


[Water]       

water1.mat    

water2.mat

water2.mat



[Sky]

sky1.mat

sky2.mat

sky3.mat      # a comment



[Walls]

wall1.mat

wall2.mat

wall3.mat

Now save this file also \JEDDATA\Mats.JLL. Then start up Jed and select a surface mat to edit.

If you have done this correctly you should have a display similar to this one.

( the case of walls in the example is different than the screen shot,don`t pay any attention to that)


Part 4: How to Add a new expandable item to the list

Open the Mats.JLH file.We will add an item called " Doors_All "




SUB  Textures 
LIST Water Water
LIST Sky Sky
LIST Walls Walls
SUB Doors_All # The new sub item list to be added
LIST Door_small Door_small # new sublist item
SUBEND # Ends the SubList "Doors_All" SUBEND # Ends the Main list heading "Textures"

Save that file and open \JEDDATA\Mats.JLL.

Add the new " Door_small " list.


[Water]       

water1.mat    

water2.mat

water2.mat



[Sky]

sky1.mat

sky2.mat

sky3.mat      # a comment



[Walls]

wall1.mat

wall2.mat

wall3.mat



[Door_small]

smalldoor1.mat

smalldoor2.mat

smalldoor3.mat

Now save this file also \JEDDATA\Mats.JLL. Then start up Jed and select a surface mat to edit.

If you have done this correctly you should have a display similar to this one.


Part 5: How to Add a new expandable item to the main list

Open the Mats.JLH file.We will add an item called "BigList "




SUB  Textures       

   LIST Water Water  

   LIST Sky Sky      

   LIST Walls Walls

      SUB Doors_All                

	  LIST Door_small Door_small   

	  SUBEND                       

SUBEND                             # Ends the Main list heading "Textures"
SUB BigList List More More SUBEND # Ends the Main list heading "BigList"

Save that file and open \JEDDATA\Mats.JLL.

Add the new " More " list.


[Water]       

water1.mat    

water2.mat

water2.mat



[Sky]

sky1.mat

sky2.mat

sky3.mat      # a comment



[Walls]

wall1.mat

wall2.mat

wall3.mat



[Door_small]

smalldoor1.mat

smalldoor2.mat

smalldoor3.mat



[More]

more1.mat

more2.mat

more3.mat



Now save this file also \JEDDATA\Mats.JLL. Then start up Jed and select a surface mat to edit.

If you have done this correctly you should have a display similar to this one.


Part 6: Few last hints