So you're working on a server - maybe your own, or maybe you're contributing to another project - and you want to add a new object. Maybe it's a piece of armor or clothing; maybe it's a chair converted from the NGE; or perhaps you're taking something previously unacquirable and putting it in player hands.
This tutorial is written to help you.
(I've done a fair number of object implementations; Lasko is probably the master of it at this point, due to the massive number of conversions he's done from NGE to pre-CU. In fact, if you're looking at implementing an NGE object, you should probably start by looking at the Mod the Galaxy repository and public TREs - most likely it'll have most of the code already done to make this work.)
This tutorial assumes a basic working knowledge of SIE and access to a SWGEmu development environment. Before you begin, make sure you have SIE running and you are familiar with the tool. You won't need to get on your SWGEmu server until the 6th checklist entry.
Here's your checklist of everything necessary for your new item:
1.) Object IFF file
2.) Object model file (.apt or .sat)
3.) String files entries (optional)
4.) CRC entry
5.) Custom TRE file
6.) Object .lua file
7.) objects.lua file entry
8.) serverobjects.lua file entry
We'll handle this piece by piece. If you're following this as a tutorial, we'll do it by implementing a new object using existing models - in this case, we'll be taking the Endor-style hat and implementing it as an armor helmet.
This tutorial is written to help you.
(I've done a fair number of object implementations; Lasko is probably the master of it at this point, due to the massive number of conversions he's done from NGE to pre-CU. In fact, if you're looking at implementing an NGE object, you should probably start by looking at the Mod the Galaxy repository and public TREs - most likely it'll have most of the code already done to make this work.)
This tutorial assumes a basic working knowledge of SIE and access to a SWGEmu development environment. Before you begin, make sure you have SIE running and you are familiar with the tool. You won't need to get on your SWGEmu server until the 6th checklist entry.
Here's your checklist of everything necessary for your new item:
1.) Object IFF file
2.) Object model file (.apt or .sat)
3.) String files entries (optional)
4.) CRC entry
5.) Custom TRE file
6.) Object .lua file
7.) objects.lua file entry
8.) serverobjects.lua file entry
We'll handle this piece by piece. If you're following this as a tutorial, we'll do it by implementing a new object using existing models - in this case, we'll be taking the Endor-style hat and implementing it as an armor helmet.