collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: Make upgrade easier, rename .conf  (Read 13236 times)

0 Members and 1 Guest are viewing this topic.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Make upgrade easier, rename .conf
« on: October 22, 2008, 08:41:56 pm »
Small suggestion, rename this files so we dont need to edit / copy when a new version is released:

"Conf/Bot.conf" -> "Conf/Bot.conf.new"
"Conf/MySQL.conf" -> "Conf/MySQL.conf.new"


Thanks alot for a great tool!


Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Make upgrade easier, rename .conf
« Reply #1 on: October 22, 2008, 10:10:21 pm »
some people dont have that problem because they have 2+ bots, in which case there configs are botname.Bot.conf

personally i think its a bad idea, if we did they would be problem caused by people not updating
since they are new to bot they might try to run with Bot.conf.new which ofc wont work

we can make it easier for new install or upgraded , we choose new install because in most cases they will have less experience and are more likly to have problems from it.

however i will try to think of a better upgrade system, altho no idea if i will think of anything

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Make upgrade easier, rename .conf
« Reply #2 on: October 22, 2008, 10:11:16 pm »
It's the question of easier updates or easier first starts...

With the current names new user don't have to rename any files, just set them up. And in case of an update they simply got to remember not to copy the conf directory.

With your suggestion updating is saver, but new users will have to edit and rename the config files. Not really sure that would be better.

Besides, if you use Botname.Bot.conf and Botname.MySQL.conf as config files for your bot you won't run into trouble with updates either. Might just be a slight bother to update the MySQL config files if you are running several bots under one directory structure. Which you don't seem to be doing, wouldn't work with both config files still using default names - at least the Bot.conf would have to be renamed.

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Make upgrade easier, rename .conf
« Reply #3 on: October 22, 2008, 10:28:37 pm »
Point taken, and i can after 2 great answeers see my suggestion wasnt thought-through..
Sorry :(
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Make upgrade easier, rename .conf
« Reply #4 on: October 22, 2008, 11:30:11 pm »
Quote
rename this files so we dont need to edit / copy when a new version is released
if no change to the conf happened in the update then it would b a simple matter of renaming ur conf and then back after, or deleting it from the zip before u extract to ur bot folder

as for if there is a change well then u would have to edit your old 1 anyway even if the new 1 was name ...new

Quote
my suggestion wasnt thought-through..
just so you know me and alreadythere discused this on IRC before we posted and we decided the old way is better as new installed are often buy people with less experience and people upgrading so we want to make it easier for them, we dont see a way to make it just as easy for new installs useing your way

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Make upgrade easier, rename .conf
« Reply #5 on: October 22, 2008, 11:31:48 pm »
If there is be an easy way to make sure no existing configs are overwritten this side of an update or install script while keeping the easy way for new users I'm open for suggestions.

The supported OSs of bebot mean a script isn't straight-forward either...

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: Make upgrade easier, rename .conf
« Reply #6 on: October 23, 2008, 07:27:46 pm »
The supported OSs of bebot mean a script isn't straight-forward either...

Maybe not...all we need to really do is try and find the correct path to php (easy on UNIX, not so easy on Windows...), take AO Username, AO Password, Botname, and AO server, DB Username, DB Pass, DB name, DB server...org ID maybe...

I think it would be doable to create a first run startup script...


I think we should distribute the conf files as Bot.conf.TEMPLATE and MySQL.conf.TEMPLATE. I've accidentally overwritten conf files a couple times when updating. Throwing TEMPLATE in there makes it fairly obvious that this is the format for the conf files and that these files will need to be renamed for the bot to work.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Make upgrade easier, rename .conf
« Reply #7 on: October 23, 2008, 09:10:11 pm »
what about this option, when running the bot if the conf file isnt found make it, asking for details in console, i already wrote 1 think my self that asks stuff in console

Offline Getrix

  • Contributor
  • *******
  • Posts: 509
  • Karma: +0/-0
Re: Make upgrade easier, rename .conf
« Reply #8 on: October 23, 2008, 10:44:11 pm »
That was not a bad idea!

This way a first runner and also experienced ppl will have what they want/need=)
Success is not final, failure is not fatal: it is the courage to continue that counts.
- Sorry, i dont have time to reply question on PM. Make a topic.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Make upgrade easier, rename .conf
« Reply #9 on: October 23, 2008, 10:57:48 pm »
told ya i would think of an alternative that would please both new and old users :p

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 434
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal