Script Documentation
#4

Quote:
Originally Posted by MP2
View Post
My main 'concern' is this: I create a function, for example, CreateDoubleRainbow(), and it's in some file in my server files, for example /scripts/core/objects/blah/dir/lol/rainbows.inc
That is the main problem (I mean I won't even hide my p*rn files in that many sub-folders). You have taken the "using many include files" too literally. Don't use a new include for each and every function you create, that's just a mess (according to me). Try to use a different include file for a specific system, for example, if you're creating a weather changing system, use a specific include for that which contains all the functions related to weather changing only. This is one way. You can store them include/systems/*.inc

The other way, is to use a different include for every type of code (this can get a bit messy). I cannot express myself but what I mean is to make a specific include containing all the functions, a specific include for all the variables, for all the macros, defines etc. You can store them as include/*.inc

Using one of these methods, you know where something is. You're concerned with changing a part of the code in your weather changing system, you look for it in the 'weather.inc' or if you want to change a function, you search the 'functions.inc' rather than searching for it in multiple directories.
Reply


Messages In This Thread
Script Documentation - by MP2 - 15.05.2013, 17:22
Re: Script Documentation - by playbox12 - 15.05.2013, 18:13
Re: Script Documentation - by Bakr - 15.05.2013, 18:22
Re: Script Documentation - by Cell_ - 15.05.2013, 18:46
Re: Script Documentation - by MP2 - 15.05.2013, 19:42
Re: Script Documentation - by Basssiiie - 15.05.2013, 20:42
Re: Script Documentation - by MP2 - 15.05.2013, 21:26
Re: Script Documentation - by Basssiiie - 15.05.2013, 21:29
Re: Script Documentation - by cessil - 15.05.2013, 21:58
Re: Script Documentation - by thefatshizms - 15.05.2013, 22:11
Re: Script Documentation - by Dan.. - 16.05.2013, 11:56

Forum Jump:


Users browsing this thread: 2 Guest(s)