Welcome, Guest. Please login or register.
Kingdoms of Ahln
Pages: [1]
  Print  
Author Topic: Bug/Idea/Typo  (Read 962 times)
Saffire
Citizen
***
Posts: 136


View Profile
« on: May 13, 2009, 09:30:11 pm »

I'm pretty sure every MUD has some form of these commands. The bug command is obviously used to report bugs to the administration. Typo would work pretty much the same, but it would be for tracking typos, and likewise for the idea command, but it would keep a list of player-submitted ideas. These commands allow the administration of a MUD to easily keep track of bugs, typos, and ideas, and fix/implement them at their leisure.

Each entry should be assigned a unique number. Entries should only be viewable by admins. Using the [bug/idea/typo] show command without an entry number would give a list of all unresolved bugs/typos/ideas. Admins should also have the ability to delete bugs. It might not be needed at the moment, but I think a good idea for the future would be giving admins the additional ability to add notes onto each entry, to keep track of progress or additional information.

Syntax:
Quote
bug [problem]
typo [error]
idea [suggestion]

bug show <entry number>
typo show <entry number>
idea show <entry number>

bug delete [entry number]
typo delete [entry number]
idea delete [entry number]

bug append [entry number] [additional information]
typo append [entry number] [additional information]
idea append [entry number] [additional information]
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #1 on: May 13, 2009, 09:50:58 pm »

Noooooooo!

If you show interest, I will have to work on it  Grin

Anyhow, I don't think this would be difficult at all. Perhaps a project for this weekend...
Logged
Saffire
Citizen
***
Posts: 136


View Profile
« Reply #2 on: May 14, 2009, 09:27:57 am »

Noooooooo!

If you show interest, I will have to work on it  Grin

Anyhow, I don't think this would be difficult at all. Perhaps a project for this weekend...

Haha. You don't have to.

I think it'd be a useful feature though, and I couldn't quite figure out how to do it myself.
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #3 on: May 16, 2009, 08:30:30 pm »

I have an implementation up on the KoA server if you want to check it out and comment on it.
Logged
Saffire
Citizen
***
Posts: 136


View Profile
« Reply #4 on: May 16, 2009, 08:41:05 pm »

That looks awesome. I can't think of anything to add to make it better than that.
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #5 on: May 17, 2009, 03:14:31 pm »

Hm. I keep finding myself wanting to do stuff like BUG 1 ADD or IDEA 2 DEL rather than BUG ADD 1 or IDEA DEL 2. Any preference?
Logged
Saffire
Citizen
***
Posts: 136


View Profile
« Reply #6 on: May 17, 2009, 03:50:17 pm »

I don't have any preference. MUDs generally use both types, so it's not like there's some sort of common precedent set for those sorts of commands. Players will become used to whatever way you give them.
Logged
Justin
Administrator
Citizen
*****
Posts: 189



View Profile
« Reply #7 on: May 17, 2009, 07:26:28 pm »

I couldn't decide, so either one will work.
Logged
Saffire
Citizen
***
Posts: 136


View Profile
« Reply #8 on: September 01, 2009, 07:09:18 pm »

I made a quick tweak to the issue code. Creating a new issue is still the same, but if you type 'bug new' with nothing else, it'll take you to the editor to write your issue.

Change this line:

Code:
when /^(bug|typo|idea)\s+(\d+)\s+(show|del|add|status)(\s+(.+))?$/i

to this:

Code:
when /^(bug|typo|idea)\s+(\d+)\s+(show|del|add|status|new)(\s+(.+))?$/i

And these lines:

Code:
when "new"
    issue = Issues.add_issue event[:itype], player.name, event[:value]
    player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."

To these:

Code:
when "new"
    if event[:value]
        issue = Issues.add_issue event[:itype], player.name, event[:value]
        player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."
    else
        player.editor([], 50) do |data|
            unless data.nil?
                issue = Issues.add_issue event[:itype], player.name,data
                player.output "Thank you for submitting #{event[:itype]} ##{issue[:id]}."
            end
        end
        end
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2006-2009, Simple Machines
Terra97 design by Bloc