White Sands Custom File Directory
What it isThis directory exists to house custom code changes that can be properly seperated from the codebase and placed here. All files that can be placed here should. The less code in any folder that isn't this one, the fewer conflicts will exist in future updates. Concept and readme shamelessly stolen from Hippiestation. What it means to modularizeSomething is modular when it exists independent from the rest of the code. This means that by simply adding something modular to the DME file, it will exist in-game. It is not always possible to completely modularize something, but if standards are followed correctly, then there should be few to none conflicts with /tg/station in the future. How to stay modularized
Icons, code, and soundsIcons are notorious for conflicts. Because of this, ALL NEW ICONS must go in the "whitesands/icons" folder. There are to be no exceptions to this rule. Sounds don't cause conflicts, but for the sake of organization they are to go in the "whitesands/sounds" folder. No exceptions, either. Unless absolutely necessary, code should go in the "whitesands/code" folder. Small changes outside of the folder should be done with "hook" procs. Larger changes should simply mirror the file in the "whitesands/code" folder. If a multiline addition needs to be made outside of the "whitesands" folder, then it should be done by adding a proc called "hook" proc. This proc will be defined inside of the "whitesands" folder. By doing this, a large number of things can be done by adding just one line of code outside of the folder! If possible, also add a comment in the modularized file pointing at the file and proc where the "hook" proc is called, it can be helpful during upstream merges and such. If a file must be completely changed, re-create it with the changes inside of the "whitesands/code" folder. Make sure to follow the file's path correctly (i.e. code/modules/clothing/clothing.dm.) Then, remove the original file from the tgstation.dme and add the new one. DefinesDefines only work if they come before the code in which they are used. Because of this, please put all defines in the `code/__DEFINES/~whitesands_defines' path. Use an existing file, or create a new one if necessary. |