Bukz

The Achievements Script v1.0 Documentation - March 12th, 201

Mar 12th, 2011
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.89 KB | None | 0 0
  1. The Achievements Script v1.0 by DES|Bukz - README - Last Update: March 12th, 2011
  2. ---------------------------------------------------------------------------------
  3. A valid (IMHO) attempt to add an achievements system to AssaultCube via strictly CubeScript.
  4. Features 16 unlockable achievements with 3 variable degrees of difficulty, and a "level-up"
  5. type system that only allows you to unlock higher level achievements if you have unlocked
  6. all of the current level's achievements first.
  7.  
  8. Thanks to DES|GeneralDisarray, V-Man, and V-Wifey for their hard work on the 12 awesome
  9. new sounds used in the script. Thanks to all the folks at {BoB} clan for all their help
  10. advertising, testing, giving suggestions, etc. Thanks to everyone else who I may have
  11. forgotten to add up here, I'm happy that this can now be considered a community project.
  12.  
  13. This script requires tools.cfg! http://forum.cubers.net/thread-1776.html
  14.  
  15. This script is licensed under the attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license:
  16.  
  17. http://creativecommons.org/licenses/by-nc-sa/3.0/
  18.  
  19. CREDITS
  20. -------
  21.  
  22. Bukz - Creator/Rage Scripting
  23. GeneralDisarray - Advice/Audio/trimf (a.k.a. format_precision)/'The Lead Wind Blows' achievement's 'scoring' system
  24. V-Wifey - Vocals
  25. V-Man - Advice/Testing/Vocals
  26. Billybob - Advertising/Hosting
  27. gRamps - Advertising/Advice/Ideas/Testing
  28. slackie - Advertising
  29. R4zor - Promotional GFX Work
  30. Gibstick - Advice/Ideas/Testing
  31. vern - Advice/Ideas/Motivation/Testing
  32. Splatz - Ideas
  33. Lantry - Ideas
  34. Frogulis - Ideas
  35. noOne - Ideas
  36.  
  37. CHANGELOG
  38. ---------
  39.  
  40. v1.0 stable - March 11th, 2011:
  41. -------------------------------
  42.  
  43. * Formatting heavily modified for less overall script length (in lines). *** Upon request, I'll make a modder friendly version available that has proper formatting, or versions that work offline with bots, etc.
  44. * The listlen command was *almost* entirely avoided in favor of more efficient, predefined loops.
  45. * New achievement "The Lead Wind Blows" that is based off the total number of bullets fired over time.
  46. * Achievement "Akimbo Madman" now has lower difficulties.
  47. * Achievement "Knife Specialist" is now an "over time" achievement".
  48. * All "over time" achievements now have higher difficulties.
  49. * New optional sound system.
  50. * 12 awesome new sounds thanks to DES|GeneralDisarray, V-Man and V-Wifey. :)
  51. * The "Killstreak Settings" menu is now the "Achievements Script Settings" menu.
  52. * Bunch of new sliders in the settings menu.
  53. * New optional stats at the top of the menu that keep track of stuff like total: bullets fired, enemies killed, and rounds played (since progress start).
  54. * New command "achievement_stats_top" for enabling or disabling the extra stats at the top of the "My Achievements" menu.
  55. * New commands "add_achievements_main" and "add_achievements_ingame" for adding the "My Achievements" menu (item) to existing default AssaultCube menus.
  56. * New command "achievement_progress_style" for choosing between default (progress/goal) or new "percentages" view on the "My Achievements" menu.
  57. * New command "achievement_percentage_style" for choosing between default (rounded whole numbers) or (floating point) percentages on the "My Achievements" menu.
  58. * New command "achperlen" for setting the number of decimal places for the floating point percentages on the "My Achievements" menu.
  59. * New commands "sound_on_achievement" and "sound_on_levelup" for enabling or disabling the new sounds sytem.
  60. * New "extra" messages on the killstreaks if you're in the 2-10 killstreak range.
  61. * The "My Achievements" menu keybind requirement was removed from the actual script and put into the settings menu so users can set the key of their choice there, hopefully making installation less confusing in the future.
  62. * Script packaged as a zip archive now due to the new custom media (audio) requirement.
  63. * EOL style changed from WIN to UNIX on all .cfg files for less saved.cfg spam.
  64. * More stuff that can't be listed or I have forgotten... :P
  65.  
  66.  
  67. v1.0 beta - February 10th, 2011:
  68. --------------------------------
  69.  
  70. * First public release! :)
  71.  
  72. INSTALLATION
  73. ------------
  74.  
  75. NOTE: This script requires "tools.cfg", a collection of useful scripts (tools) for cubescripters to be installed in order to function.
  76. This script also requires it's custom sounds to be registered FIRST, before any other scripts you are using registers theirs. If you do not have any custom sounds (more than the default 98 in AssaultCube) you can safely ignore this warning.
  77.  
  78. Step 1: Extract "The_Achievements_Script_v1.0.zip" to your AssaultCube installation folder. (On windows, this is commonly C:\Program Files\AssaultCube_v1.1.0.4)
  79. Step 2: Open the "config" folder in your AssaultCube installation folder.
  80. Step 3: Open the "autoexec.cfg" file with any text editor. (Notepad will work.)
  81. Step 4: Add the following lines below where you execute tools.cfg:
  82. run achievements; run achievements_docs
  83. Step 5: Save and exit. (The script is now installed and you're almost done ! ;)
  84. Step 6: Launch AssaultCube and enter the following command to the in-game console:
  85. /showmenu "My Achievements"
  86. Step 7: Enter the Settings menu by checking the option at the bottom of the Achievements menu.
  87. Step 8: Setup your "My Achievements" menu keybind and other script settings and you're good to go! :D
  88.  
  89. AUTOEXEC
  90. --------
  91.  
  92. Here is what your autoexec should look like after having installed the achievements script properly:
  93.  
  94. exec config\tools.cfg
  95. run achievements; run achievements_docs
  96.  
  97. OR...
  98.  
  99. run tools
  100. run achievements; run achievements_docs
  101.  
  102. Take special note how you are executing the tools.cfg file before executing the Achievements script! This is absolutely necessary for the proper functioning of the script.
  103.  
  104. Optionally, instead of adding "run achievements; run achievements_docs" and moving the "achievements.cfg" and "achievements_docs.cfg" files to your config folder, you can drop them in your automatically executed scripts folder by following the instructions from this thread:
  105.  
  106. http://forum.cubers.net/thread-2356.html
  107.  
  108. NOTE: You still must ensure that the achievements script registers it's sounds FIRST, and is executed AFTER tools.cfg!
  109.  
  110. COMMANDS
  111. --------
  112.  
  113. /achievement_stats_top - Enables or disables extra over time stats at the top of the "My Achievements" menu.
  114. /add_achievements_main - Enables or disables adding the "My Achievements" menu (item) to the default "main" menu.
  115. /add_achievements_ingame - Enables or disables adding the "My Achievements" menu (item) to the default "In-game" menu.
  116. /achievement_progress_style - Enables or disables the new percentages view for the "My Achievements" menu.
  117. /achievement_percentage_style - Enables or disables floating point percentages on the "My Achievements" menu.
  118. /achperlen - Sets the exact number of decimal places on floating point percentages on the "My Achievements" menu.
  119. /sound_on_achievement - Enables or disables the various achievement unlock sounds.
  120. /sound_on_levelup - Enables or disables the on level up sounds.
  121. /reset_achievements - Resets your achievement progress.
  122. /reset_all_achievements - Resets EVERYTHING achievements script related, progress, completions counter, etc.
  123. /show_killstreak_switch - Enables or disables the showing of extra killstreak messages on the console.
  124.  
  125. NOTES
  126. -----
  127.  
  128. "The Lead Wind Blows" achievement uses a "balancing system" to make the achievement fair for non-automatic weapons users. In theory it will take
  129. longer for the automatic weapon user to earn this achievement because of the much higher rate of fire on their weapons, however, because of the way
  130. that the system scores every bullet, the achievement will take approximately the same amount of time regardless of what your primary weapon of choice is.
  131.  
  132. You must ensure that the achievements script is registering it's custom sounds before any others because the script assumes default sounds only and uses
  133. sounds 99-110 after installation to play the proper sound file upon achievement unlock/level completion. If for some reason other custom sounds are registered
  134. first, the script will most likely play the wrong sound file!
  135.  
  136. The /reset_achievements command resets everything you need to play the script again after having beaten it. The /reset_all_achievements resets everything and
  137. should only be used when you want the script completions counter, secret achievement progress, and other over time stats counters to reset as well.
  138.  
  139. The script relies heavily on saved.cfg being readable/writable by AssaultCube to store and gather/display information, progress and statistics used by the script. If
  140. for some reason your saved.cfg gets deleted, you will lose all of your progress and you will also lose any saved progress you had when using the save/load state script
  141. for the achievements script. This is an unfortunate but inevitable drawback of the cubescript system. Take careful note that executing commands like "/resetcfg" WILL
  142. ALSO delete your saved.cfg and cause this to happen.
  143.  
  144. A lot of data was added to this update because of the large amount of new features and settings, but because this script still does not modify and read a massive amount
  145. of data (aliases) simultaneously, the chances of suffering from the "large FPS drop of the MPL Script" is unlikely. If you do suffer from this or any other achievements
  146. script related problems PLEASE report them ASAP so they can be fixed in future versions! :)
  147.  
  148. Although this script is licensed under the attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) license, the sounds (created by DES|GeneralDisarray) are licensed under a completely different, custom license.
  149. Read the "README.txt" in /packages/audio/sounds/achievements/gd/ for more information about this. Do not assume you are free to anything without his prior written permission.
Advertisement
Add Comment
Please, Sign In to add comment