PageRenderTime 51ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

Markdown | 191 lines | 167 code | 24 blank | 0 comment | 0 complexity | ff6c2a9ce0f999d8c926b17a972e63fb MD5 | raw file
  1. =================================================================================
  2. Dragon Tavern Logger.
  3. ---
  4. Created by: Thomas Hansen
  5. Contact: bbrundrscoretkiathotmaildtcom (You're smart, you can figure it out)
  6. Site:
  7. Compiler: Delphi RAD Studio 2010
  8. =================================================================================
  9. What is it?
  10. ---
  11. It's a Delphi tool which loads your local Internet Explorer into an subframe that monitors some of your actions while playing Dragon Tavern.
  12. * It keeps track of the number of creatures you've killed of each type. So you can see the best place to hunt for a certain type of creature.
  13. * It has a special easy-to-use loot-to-cube helper dialog to maximize your efficiency at transmuting loot into gold.
  14. * More utility to come in the future.
  15. Why did I make it?
  16. ---
  17. In theory it could have been done in Greasemonkey, but, I've got no experience with that script language. So, I made it into a desktop application. This means it's faster, easier to update, and can log much more data without it affecting compatibility. It also allows for a lot more user interface dialogues and ease-of-use utility in the future.
  18. The reason, well, I was getting tired of manually logging what zones had which type of creature in a google spread sheet. This is much more efficient. Once I had the basics, it kind of grew from there.
  19. How does it work?
  20. ---
  21. The application uses your installed Internet Explorer (Tested with IE9) in a subframe.
  22. The data is stored locally in an few .ini files and updated as you explore and play the game as normal.
  23. The right side holds some shortcut buttons - so you can go from cube transmutions STRAIGHT to the dragon tavern, without having to go "return to location" first.
  24. There's a detail box for your current zone info, and it will update (+1), and show info about any other zone you want - like subzones.
  25. ---------------------------------------------------------------------------------
  26. 1.1.0 : 2016x
  27. ---------------------------------------------------------------------------------
  28. * Added whitespace "trim" to zone name detection, to prevent an oddity with the latest zone detection.
  29. * Added death aura shortcut in menu.
  30. * Various speed improvements to parsing pages and updating lists. This will result in slightly faster exploration, opening the analyze dialog or inventory dialog.
  31. * Added mutex to ensure only a single instance of the application can be launched at a time. This shouldn't affect many people, but it's to ensure no unintended behaviour occurs while using the program.
  32. ---------------------------------------------------------------------------------
  33. 1.0.9 : 20121222
  34. ---------------------------------------------------------------------------------
  35. * Increase/decrease difficulty buttons added to main interface.
  36. * Main interface slightly narrowed, to allow more room for the second data view panel.
  37. * Fixed a number of missing popup button descriptions.
  38. * The bar is now filled with random patrons.
  39. * Added "Active zone" to dynamic data view, which will show the dynamic data for the current parent zone and it's sub locations.
  40. * Last visited zone (for use with "Active zone") is now remembered between sessions.
  41. * Last used dataview combobox row is now remembered between sessions.
  42. * The webbrowser is now "silent". Meaning, the occassional javascript error you might get upon launch will no longer occur.
  43. * Added ability to call 'Soul Stealer', 'Flaming Weapon', 'Legendary Luck' and 'Reaper' immortal powers from the menu for a single character.
  44. Preference Dialog(F11):
  45. * Added option to "warn on bursting souls", you will get a red "Souls!" text under the FAQ button warning you your stolen souls are about to burst free.
  46. * Options dialog redesigned. It now uses a tabbed interface.
  47. * Added "Dynamic Data view" option. Which adds the ability to view the best two hunting columns for each subzone in the selected or recent zone. This option is enabled by default, you can disable it in the options.
  48. * Made cube delay a preference between 200-5000ms - experiment at your own risk.
  49. * Referral ID made into preference. Share DTL with your friends!
  50. Data analysis dialog (F9):
  51. * Added option to show the best 2 creatures to hunt for each location instead of all creatures. This option is enabled by default.
  52. * Added option to sort the "best 2" columns by kill % or by creature type.
  53. * Added option to hide "beer dragon realms" data. Set this option in the preferences dialog. This option is enabled by default.
  54. ---------------------------------------------------------------------------------
  55. 1.0.8 : 20121106
  56. ---------------------------------------------------------------------------------
  57. We're now on GitHub!
  58. Inventory dialog:
  59. * Added option to limit the number of rows the auto-selection performs if you have a cube.
  60. ---------------------------------------------------------------------------------
  61. 1.0.7 : 20111225
  62. ---------------------------------------------------------------------------------
  63. * Fixed the name of "Abyssal Mines" in Zones.ini : All subzones have now been fixed and confirmed to be spelled correctly!
  64. * Added option to block out logging of "double XP" monsters such as spawn during festivus. Since these can spawn in all areas and may disrupt data integrity.
  65. Data analysis dialog (F9):
  66. * Added ability to completely hide certain rows based on kill count.
  67. * The dialog should now save it's settings more reliably.
  68. * The level column now sorts by it's first number rather than by text. So, it will sort as: 1,2,3,4,5,6 instead of 1,20,3,50+,7 etc.
  69. ---------------------------------------------------------------------------------
  70. 1.0.6 : 2011118
  71. ---------------------------------------------------------------------------------
  72. * Fixed the name of "Fork Tongue Clutch" in Zones.ini
  73. * Fixed Alt+F4 to close application.
  74. * Added "Lazy Zoneview" option. This ensures the zone view is never cleared automatically. To combat a so far unknown issue some people were having.
  75. * Added ability to pre-fill your username and password. Note: These are stored locally in DragonLogger.ini as plain text. So, only use this feature if your pc is 100% secure.
  76. * Added data export to .csv file format. See Menu: Browser -> Export. The exported data is controlled by your other preferences (such as include host data)
  77. * Added option to preferences(F11) to export .csv data as total kill count(default) or percentages(as seen in the analyze dialog).
  78. Inventory dialog:
  79. * Added progress dialog upon cubing more than two items. To show it is working hard on making your items into gold.
  80. * Sort columns are now remembered on open/close.
  81. * Position on screen and width/height are now remembered on open/close.
  82. Data analysis dialog (F9):
  83. * Dialog is no longer modal. Meaning you can keep it open while exploring, and press the new refresh button to update the data.
  84. * Sort columns are now remembered on open/close.
  85. * Position on screen and width/height are now remembered on open/close.
  86. * Now has a smaller "minimum" size.
  87. ---------------------------------------------------------------------------------
  88. 1.0.5 : 20111024
  89. ---------------------------------------------------------------------------------
  90. * Fixed the names of "Temple of Filth", "The Sandy Beggar" and "Den of the Delvisha" in Zones.ini - hope that's the last of them, but can't be 100% sure just yet.
  91. * Data analysis dialog(F9) added. You'll be able to find detailed % of which zones have the highest population to hunt.
  92. * Added background color preferences(F11) for the data analyzer. Fixed colors for now, but you can change the activation %.
  93. * Inventory list by default now sorts the value/weight column instead of the weight column.
  94. * Main window tables and Inventory dialog table changed to "read only" - doesn't affect anything but it looked silly if you tried to double click it.
  95. * Added lots more icons. Once again thanks to the FatCow free Farm-fresh set.
  96. ---------------------------------------------------------------------------------
  97. 1.0.4 : 20111015
  98. ---------------------------------------------------------------------------------
  99. * Fixed the names of "Planar Crossroads" and "Sliverghoul Burrow" in Zones.ini.
  100. * Inventory list dialog is now sortable.
  101. * Implemented alternating row colors for all tables.
  102. * Collected data is now stored separately from the developer data. You will never have to worry about losing your data after upgrading again!
  103. * Added preferences dialog (F11). Currently you are able to hide the developer collected data, and show/hide the combined data columns.
  104. * Added hotkey for help dialog (F1) and about dialog (F2).
  105. Main screen:
  106. * Gathered data method changed to "table views" to support host/local data.
  107. * The table row indication for new creatures found during this exploration attempt will now draw in a "bold" style instead of show "(+1)".
  108. * Zoneview and Dataview tables are now sortable! - Current sort column and direction will be remembered in the settings.
  109. * Made the screen slightly less wide. (Around 40-50 pixels or so)
  110. * Added ability to hide the browser navigation bar. You can find the option in the preferences dialog (F11).
  111. * Added ability to manually refresh the data view with the push of a single button.
  112. ---------------------------------------------------------------------------------
  113. 1.0.3 : 20110925
  114. ---------------------------------------------------------------------------------
  115. * Fixed browser window losing focus after closing the Inventory list dialog, or pressing certain action buttons. It should be a bit less "strange" to use now.
  116. * Disabled buttons when logged out or timed out.
  117. * More button icons added.
  118. * Buttons are now double buffered - which stops the strange icon fade-in / fade-out after selection on Vista and Windows 7.
  119. * Added several button tooltips.
  120. * Menubar added, to fit in a lot more actions and shortcuts for the future.
  121. * Hotkeys dialog added. It shows you all the known DT hotkeys and how to enable them.
  122. * Page source dialog: Added select all ability (Ctrl+A), as well as Escape button to close.
  123. * Dialog creation changed to runtime rather than global. (You shouldn't notice much other than a slightly smaller memory footprint)
  124. * Subdialog default positions changed to "Owner Form Center". So, no more random positions on those.
  125. * We are now hiding several "strange" urls like google syndication, facebook, blanc, javascript e.a. that were reported earlier. Remember this is a Dragon Tavern logger, so while other webpages might work - it is not the main focus of this application. As a result of hiding these urls, the buttons and menu actions should be enabled/disabled in a more reliable & predictable manner.
  126. * Disabled "Return to tavern", if you are in the tavern. It isn't going to do you much good to go where you already are.
  127. * Added the list of monsters found in the tavern.
  128. * Now keeping track of the latest version of the application you started. So we can show a changelog on startup later.
  129. Inventory dialog:
  130. * Added "select common" button.
  131. * Changed select weight in to work as "this weight and greater".
  132. * OK button renamed to: "Portal It!"
  133. * Turned warning text red.
  134. ---------------------------------------------------------------------------------
  135. 1.0.2 : 20110917
  136. ---------------------------------------------------------------------------------
  137. * Added application icon
  138. Main screen:
  139. * Button tab order improved.
  140. * Added "about" dialog. (Questionmark button topright)
  141. * Added some icons. It's not much, but looks better at least.
  142. * Page source button. Mostly for debugging purposes.
  143. * Inventory list button now has a better placement among it's fellows.
  144. * Inventory list button is now disabled properly.
  145. * Inventory list button can now be pressed even when you are not on your inventory page. It will try to load your inventory, "and then" open the dialog.
  146. Inventory dialog:
  147. * Button tab order improved.
  148. * Added 5 new buttons - Select all by weight: 10, 11, 12, 13, unselect all.
  149. * It will now tell you how many items you have selected.
  150. * Implemented number of cube charges available.
  151. * Show a warning if you select more items than the available cube charges.
  152. * No longer tries to recycle selected items if you do not have a cube.
  153. * Will not show certain buttons if you do not have a cube.
  154. ---------------------------------------------------------------------------------
  155. 1.0.1 : 20110606
  156. ---------------------------------------------------------------------------------
  157. * Added inventory list dialog.
  158. * Lots more initial data than the last version.
  159. * Window saves it's size and location.
  160. * Some spelling errors fixed in the elite sublocations (let me know if you find any more!)
  161. ---------------------------------------------------------------------------------
  162. 1.0.0 : 20110220
  163. ---------------------------------------------------------------------------------
  164. * Initial version.
  165. * Web frame
  166. * Url bars
  167. * Zone logging