hi,
I just looked through the ucp file and saw that the system is based on modules extending the module class, could anyone give me a short outline of the functions and of how this system works and what benefits it has, because I don't want to read all the files to get an idea of how it works.
Thanks, naderman
UCP - Module class
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
- VxJasonxV
- Registered User
- Posts: 341
- Joined: Sun Mar 02, 2003 2:51 pm
- Location: Castle Rock, CO
- Contact:
Re: UCP - Module class
Well, there's no documentation yet.naderman wrote:hi,
I just looked through the ucp file and saw that the system is based on modules extending the module class, could anyone give me a short outline of the functions and of how this system works and what benefits it has, because I don't want to read all the files to get an idea of how it works.
Thanks, naderman
But you're very welcome to look through all the files, write the documentation, and submit it after 2.2 releases STABLE.
"If You Support It, They Will Come."
"Construction"
"Construction"
Re: UCP - Module class
Not entirelyVxJasonxV wrote:Well, there's no documentation yet.
In a very broad sense the UCP module system is designed so that which modules are displayed is determined by database entries (as opposed to including all the files) and by doing it in a modular fashion there is no need for each module to repeat the same common code for display and so on, this is done once by the central script which then determines which module to load
Re: UCP - Module class
Well I read quite a bit of it now, and it looks quite useful. But I am wondering how the install and uninstall functions will be implemented. This system is espacially very useful for mods.
I'm not going to write a documentation but I hope somebody else will
I'm not going to write a documentation but I hope somebody else will
Re: UCP - Module class
At present, installing a new module consists of dropping a file in a specified folder and inserting a row into a particular table in the database. Uninstalling consists of removing that row from the database.
Whether any functions will be provided in the release to do this I don't know, but if they are not then writing one is quite simple.
So fars as docs are concerned, I do already have a basic one on UCP modules sat on my computer right now which will probably be made available later on in some form.
Whether any functions will be provided in the release to do this I don't know, but if they are not then writing one is quite simple.
So fars as docs are concerned, I do already have a basic one on UCP modules sat on my computer right now which will probably be made available later on in some form.