DragonPrime - LoGD Resource Community
Welcome Guest
  • Good evening, Guest.
    Please log in, or register.
  • September 05, 2010, 07:37:00 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1] 2   Go Down
  Print  
Author Topic: Thinking of a Module update notification scheme  (Read 1546 times)
0 Members and 1 Guest are viewing this topic.
lonnyl
Guest
« on: February 14, 2005, 11:12:40 AM »

I know it's getting hard to keep track of if you have the latest version of modules.  I have played with and tryed the current module update tool (forget who wrote that module), and would really like to see something more useful and standardized.  

What I am thinking is that each author who wanted could maintain a version.txt file in their download area or somwhere attainable via http.....

The files then could be accessed by a module version notification module.  (did you get all that... no... read it again  Tongue)

This would take an extra line in the module that would contain the version.txt url.....

the version.txt would contain the current version info for each of an author's modules.  

An admin could then hit their check for module updated link in the grotto... and the module would grab and read all of the version.txt urls that it found and read the versions for the files that are installed on the server and simple offer download links that are read from the modules themselves.  The module would only check when an admin ran the check, thus no real added load on the server.....

Anyway is this an idea that anyone would be interested in participating in??  Either in helping to set a standard for the version.txt, to implement support in their modules, or even help develop this module?

Anyway I will leave this at the idea stage until I get further input.
Logged
Sneakabout
Member
Captain of the Guard
***
Offline Offline

Posts: 137


Fear the Sneak!


View Profile WWW
« Reply #1 on: February 14, 2005, 11:30:32 AM »

If you get it in core, people will implement the standard.
Logged

Admin on Central. Founder of the BAD Clan.
Arune
Member
Mod God
*****
Offline Offline

Posts: 718


Arune Vai - khatfield


View Profile WWW
« Reply #2 on: February 14, 2005, 01:14:11 PM »

I'm with Sneak..

And I would really like to see something like this at some point.
Logged
Jim
Member
Codemeister
****
Offline Offline

Posts: 316


Hit Alt F4 for the cheat menu....


View Profile WWW
« Reply #3 on: February 14, 2005, 01:19:50 PM »

If you get it in core, people will implement the standard.

Yes but if it doesn't get added to the core and people do not choose to do this their modules will fall behind.... their loss.

I think this is a great idea.
Logged
lonnyl
Guest
« Reply #4 on: February 14, 2005, 01:49:21 PM »

So far it seems like this is a favorable idea.  I would imagine the first step is going to be figuring out the version.txt format (what info it will hold and how if will be formated).  The next will be getting the version check module to read an include it from remote domains.  The rest will be very simple.  

so... for version.txt I would suggest a simple format
modulename
current version

like this

Code:
abandoncastle.php,
1.4,
usechow.php,
1.3,
etc.... and so on

very simple very small....

then it would be the matter of reading the files from the location specified in the modules and checking against the stored version numbers.  

I do however forsee some problems getting the info from remote servers however.
« Last Edit: February 14, 2005, 01:51:12 PM by lonnyl » Logged
enderwiggin
Guest
« Reply #5 on: February 14, 2005, 03:34:12 PM »

This should be an option you can turn off and on.  People were screaming that logd.net's server problems were slowing down their game.  What happens when every LoGD game is also sending checks to the dragonprime server as well to verify version info constantly?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5223



View Profile WWW
« Reply #6 on: February 14, 2005, 04:59:50 PM »

I think there are a couple issues to consider from the connecting to other servers perspective.

First, as Enderwiggin observed, slow servers causing problems on your end are a concern - the more diverse your mod collection, and the servers you are 'calling', the greater the potential for issues to occur - especially when a download source changes or goes offline permanently.

Secondly, how often would you be conducted this check?  I would suggest using newday_runonce as the main hook, and further set it to run the check every 2 or 3 real days.  This would reduce the risk of aggravating slowdowns, reduce the load on participating sites and stagger the requests over a period of days instead of all coming in within several hours of each other.

I think the concept sounds good, the trick is to make it a viable tool which doesn't become a resource hog.  DragonPrime will participate in any workable solution that is developed.

I anticipate that once the new portal code is released (in the next month or two), I will be writing a proper upload system which logs all the other things we're after - download counter, descriptions, etc.  I don't imagine it would be a far stretch to incorporate a system to read the file and generate the version.txt type file automatically.

Logged

Play the latest beta version here on DragonPrime
MetalDragon42
Guest
« Reply #7 on: February 14, 2005, 06:39:38 PM »

I was just thinking of something like this just said to my self the other say "damn wish I could just click to see if this mod has been updated yet"lol, with the amount of mods there is and how often that thay do get updated soemthing like this would be a god send if I can help in anyway like testing and such I would be more then happy to help.
Logged
Dannic
Guest
« Reply #8 on: February 14, 2005, 06:52:22 PM »

What's wrong with just updating the first post in the thread for the module here?
Logged
MetalDragon42
Guest
« Reply #9 on: February 14, 2005, 07:01:54 PM »

What's wrong with just updating the first post in the thread for the module here?

That would also be a very good standard to start here me thinks I have seen that nealy all the really good moders here at DP already do this "you know who you are Wink" but I also think having a way to check for updates from the game it self is a very cool one also unless I have missed it how about a way to check if the game it self has a update for it?
Logged
Talisman
Administrator
Mod God
*****
Offline Offline

Posts: 5223



View Profile WWW
« Reply #10 on: February 14, 2005, 09:06:27 PM »

You may have noticed that some of the 'regulars' have stickied "Module Status" threads in the completed module section.  Until something better comes along, this method is available, but depends on the individual authors to update their threads.

I would suggest they update the first post as their primary point.
Logged

Play the latest beta version here on DragonPrime
Kendaer
Global Moderator
Mod God
*****
Offline Offline

Posts: 1806


Once a dragon, always a dragon


View Profile WWW
« Reply #11 on: February 14, 2005, 10:13:31 PM »

I don't have an issue with this per-se, BUT!!!!

As has been pointed out this could cause a very heavy load.  Also, just because something has updated does *not* mean you necessarily want to update your version, though often you do.  Personally, I am of the opinion that if someone cannot take the time to check for new versions now and then, then they probably shouldn't be running the game (or the modules Smiley).

Given that, I do recognize that with there being a lot of modules, there is certainly a degree of time that this would take.

Now to the nuts and bolts, I'd prefer to see this as a module so that people who want to do their maintainence by hand (such as myself since I pretty much only use core modules Smiley) don't have the overhead at all.

Second, you can certainly add a field to the module_info returned by getmoduleinfo.

The game doesn't care if there is extra junk in there Smiley  Then your hypothetical module can call <module>_getmoduleinfo() and pick out the information it wants.

(well require_once('modules/<module>.php'); <module>_getmoduleinfo()Wink

Hope that at least gets you on the right track.
Logged

Ex co-developer of LotGD
Jim
Member
Codemeister
****
Offline Offline

Posts: 316


Hit Alt F4 for the cheat menu....


View Profile WWW
« Reply #12 on: February 15, 2005, 02:18:57 AM »

I must have missed something. How did the old module updater work. *runs to find the code*
Logged
lonnyl
Guest
« Reply #13 on: February 15, 2005, 07:45:35 AM »

Ugh... so I go to reply and just as I do so one of my hubs takes a dump.... ugh... 1/2 hour later....

I must not have gotten my point across clearly.... I don't want a module that >automatically<  checks for the updates, but one that checks at the time that an admin clicks on the check for updated modules.
Logged
Bandon
Member
Militia
**
Offline Offline

Posts: 91



View Profile WWW
« Reply #14 on: February 15, 2005, 11:17:40 AM »

Which certainly WOULDN'T cause a heavy load, unless everyone checks at once ;p

I like this idea and would certainly use a module for it.

-Bandon
Logged

Abandon all hope, no, really, abandon it.
Pages: [1] 2   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search