SA-MP Forums Archive
[FilterScript] BugReport - Let players report bugs! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] BugReport - Let players report bugs! (/showthread.php?tid=437034)



BugReport - Let players report bugs! - Kwarde - 13.05.2013

BugReport - Let players report bugs!

What is this?
This filterscript (BugReport) gives players the possibility to report bugs.
No, it won't just send a message to admins with the bug report. It also saves the report into a file (default "scriptfiles/ServerBugReports.txt") and ingame you -as admin- can use a command to see the last 9 bug reports (reading from that file).

Why would this be usefull?
Well, I personally think that it's handier to let people report the bug ingame then letting them go to a site and report the bug there. Off course, the site is more advanced (they can include images and such) and this script only allows a max bug-report-string length of 100 characters.
However, it's also handier (I think) to use a command (or look into the file) to see all the bugs then going to a site and look through topics.
But the most important opinion off course, is your opinion!

Changelog
Код:
[13-05-2013]
* Initial release (version 0.1.22-RC)

[14-05-2013]
* Added interval for using /reportbug to prevent spam (thank you [KHK]Khalid for the idea!) (v0.1.28-RC)
* Added server config file (v0.2.0-B)
* Added /editconf command to be able to configure settings (v0.2.1-B)
* USE_INGAME_ADVERTISE now must be true/false! (v0.2.3-B)
* Slightly improved /editconf, making it more user-friendly (v0.2.10-RC)

[15-05-2013]
* Script rewritten (v0.3.0-RC):
- Improved perfomance (PVars are no longer used. I use global variables instead now)
- Minor bug fixes
- Improved 'clean-code' (the script is better readable now)
- /editconf is made a little bit more user-friendly
* Added in config file: lastUpdate - For 0.4 I'm gonna need to change the bugreport file, this config will make sure that the file gets editted properly without causing bugs (v0.3.0-RC)

[16-05-2013]
* Added update-system (edit the BUG_REPORT_FILE; add IDs) (v0.4.1-A)

[17-05-2013]
* Improved update-system (v0.4.2-A)
* Fixed update-system bugs (v0.4.3-A)

[22-05-2013]
* Changed the update-system; it now only is a system to check if the bug report file is compatible with the current version! (Since 0.4 will be the last update) (v0.4.6-A)

[23-05-2013]
* BugReportFileCheck system done; 100% fixed (v0.4.16-B)
* Added /removebugreport [bugreport ID] (v0.4.17-B)
* Added define 'TMP_FILE' (name for tmp file, not really usefull unless if you want a seperate directory) (v0.4.18-B)
* Added function 'removeBugId(id);' to remove IDs from reports (v0.4.20-B)
* Changed /checkbugs; added the ID of the report
* Fixed bugs in 0.4-added stuff + perfomance increased (also from 0.4 stuff) (v0.4.29-B)
* Debugging prints removed, switched to Release Candidate (v0.4.30-RC)
* Removed 'djStyled(true);', futher small unimportant changes (v0.4.32-RC)
* Added instant saving of the server configuration file (otherwise bugs might occur when the server crashes while new reports were added, for example) (v0.4.33-RC)
* Small bugfix (REPORT_INTERVAL); forgot to add '* 1000' (v0.4.34-RC)

[24-05-2013]
* Changed /editconf 'interval' (players who still wait now immediately can use the command again) (v0.4.35-RC)
* Changed /editconf 'interval' (I shouldn't use "*1000" here; it would be multiplied by '*1000' again!) (v0.4.36-RC)
* Changed /checkbugs and /removebugreport; Removed '!fexist' check (because GetFileLines() does this already) (v0.4.37-RC)
* >>FINAL RELEASE! v1.0.0-S (Stable) <<

[26-05-2013]
* Important update! Fixed possible bug (OnDialogResponse returned 1 but should be 0. Check out https://sampwiki.blast.hk/wiki/OnDialogResponse) (v1.0.1-S)
Download
Version 1.0.1-S (Latest, most stable)
* Full package: http://www.mediafire.com/download/4h...nload_101S.zip
* Source (.pwn) only: http://pastebin.com/Wm7Fb3TP
Please use this one! Others might occur bugs in other filterscripts because OnDialogResponse returns "1", which should be "0"! Check out https://sampwiki.blast.hk/wiki/OnDialogResponse
Also, after all case, "1" should be returned (which happened in this version too). If you have a little bit knowledge you can do this all yourself, otherwise download this one!)


Version 1.0.0-S
* Full package: http://www.mediafire.com/download/6b...nload_100S.zip
* Source (.pwn) only: http://pastebin.com/Vpksb56M
(NOTE: It's a stable version. I did quite alot tests, tested everything on different ways and I no longer found bugs (actually I did, but those are fixed :P). Although I haven't found bugs, you perhaps can find them! If you find a bug, please report it! (Don't use /reportbug but report it on this topic))

Version 0.4.34-RC (Note: small bug in /editconf)
* Full package: http://www.mediafire.com/download/6j...oad_0434RC.zip
* Source (.pwn) only: http://pastebin.com/fTMnVJNZ

Version 0.3.0-RC:
* Full package: http://www.mediafire.com/download.php?yk3jndju3cmbtha
* Source (.pwn) only: http://pastebin.com/pGiWmEMd

Version 0.1.28-RC:
* Full package: http://www.mediafire.com/download.php?az9e0bszidnrljb
* Source (.pwn) only: http://pastebin.com/gaVpkthM

Version 0.1.22-RC:
* Full package: http://www.mediafire.com/download.php?29dqm9zgg7i7add
* Source (.pwn) only: http://pastebin.com/RY44GApW

The project is no longer in development; no new updates will be added unless if there are requests! Eventually bugs however will be fixed

Credits
- DracoBlue for djson
- ****** for sscanf2
- ZeeX for zcmd

More help
A file called BugReport_README.txt is included in the full package download. There is more information about the filterscript and its content.
If you still have questions after reading all the files, don't hesitate to contact me.

Video and screens

Gonna make a video later!


p.s.
Off course, if you find a bug in this script, don't use /reportbug but let me know!


Re: BugReport - Let players report bugs! - [KHK]Khalid - 14.05.2013

Nice. But, I think there should be a time gap between each report by a player to avoid abuses (flooding etc).


Re: BugReport - Let players report bugs! - RajatPawar - 14.05.2013

Really simple and really nice, we won't be killing people!


Re: BugReport - Let players report bugs! - Kwarde - 14.05.2013

Quote:
Originally Posted by [KHK]Khalid
Посмотреть сообщение
Nice. But, I think there should be a time gap between each report by a player to avoid abuses (flooding etc).
That's actually quite a good idea! Thanks for the idea, I have added it (version 0.1.28-RC)
Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Really simple and really nice, we won't be killing people!
True! And thank you. Though I didn't get the "we won't be killing people" comment to be honest.

Script update! Version 0.1.28-RC: Added interval for the usage for /reportbug.
Interval time (in seconds) can be changed (by changing REPORT_INTERVAL, default: 30

Script update 2: Version 0.2.9-B: Added option to change config ingame


Re: BugReport - Let players report bugs! - RajatPawar - 14.05.2013

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
That's actually quite a good idea! Thanks for the idea, I have added it (version 0.1.28-RC)

True! And thank you. Though I didn't get the "we won't be killing people" comment to be honest.

Script update! Version 0.1.28-RC: Added interval for the usage for /reportbug.
Interval time (in seconds) can be changed (by changing REPORT_INTERVAL, default: 30

Script update 2: Version 0.2.9-B: Added option to change config ingame



Re : BugReport - Let players report bugs! - Rayan_black - 14.05.2013

I like it, good job.. I enjoy seeing new things that never been done before, so here's a rep for you.


Re: Re : BugReport - Let players report bugs! - Kwarde - 14.05.2013

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
Haha off course! I totally forget about that :')
Quote:
Originally Posted by Rayan_black
Посмотреть сообщение
I like it, good job.. I enjoy seeing new things that never been done before, so here's a rep for you.
Thanks alot! And I try to create unique things (Currently also busy on a gamemode that might be unique)


Re: BugReport - Let players report bugs! - ImChroniX - 14.05.2013

Really nice, very well made and will definitely be using this. Thank you! I would rep you, but I can't sadly.


Re: BugReport - Let players report bugs! - iPlaySAMPalot - 14.05.2013

Cool


Re: BugReport - Let players report bugs! - Kwarde - 15.05.2013

Quote:
Originally Posted by ImChroniX
Посмотреть сообщение
Really nice, very well made and will definitely be using this. Thank you! I would rep you, but I can't sadly.
It's nice to hear that. I'll send you a visitor message once v0.3.0-RC is released (which is going to be better then the current version, and better perfomance)

UPDATE @ 16/05/2013 00:05 (GMT+1)
Version 0.3.0-RC released!
- Better perfomance (no PVars anymore)
- Minor bugfixes
- Script 'cleaner' (comments removed, code made more readable)
- /editconf is now more user-friendly