Download
(33Kb)
Download
Updated: 06-13-13 10:30 PM
Updated:06-13-13 10:30 PM
Created:01-04-13 08:55 AM
Downloads:1,545
Favorites:5
MD5:

Jogu Predictions

Version: 1.1.2
by: Choonstertwo [More]

Description
Jogu Predictions records Jogu the Drunk's current crop prediction when you speak to him and shares this with other users of the AddOn. This allows you to know his prediction without talking to him (which can save you some gold if you're not Best Friends with him), as long as someone else using the AddOn has talked to him and asked for his prediction recently.

Version 1.1.0 saves Jogu's predictions between sessions, so once you've talked to Jogu on one character, you can view his prediction on any other character even if there's nobody else running the AddOn to sync with.

Use /jp, /jogup or /jogupredictions to print out the current prediction and /jp sync to update the prediction from other users.

The AddOn also creates a LibDataBroker plugin that shows the current prediction, so you can display it on a DataBroker display like DockingStation, ChocolateBar, Bazooka or Titan Panel.


Translations
Currently Jogu Predictions is only available in English and German (not completely localised yet), meaning only people on English or German clients will be able to update the prediction by talking to Jogu; but anyone running the AddOn will receive updates from others.

The AddOn records a list of Jogu's prediction phrases, making it easy for me to add support for your locale. Just copy/paste the contents of your WTF\Account\<Account Name>\SavedVariables\JoguPredictions.lua into a comment on Curse/WoW Interface and put either the vegetable's English item name or the itemID next to each phrase.

If commenting on WoW Interface, please highlight the text and click the blue "Wrap [highlight=lua] around selected text" button before posting the comment. If commenting on Curse, please put the text into a CurseForge Paste and put the URL to that in the comment instead.

ItemIDs can be found on the end of Wowhead/Armory URLs, as well as in the AddOn's locale files (each locale file has a list of vegetable itemIDs and their English names).

To translate the AddOn's text into your language, please visit the CurseForge localisation page. The General namespace contains the AddOn's text, while the Phrases namespace contains Jogu's prediction phrases (which can be translated directly on CurseForge as well, if you prefer that to leaving a comment).

Translators



Source Code
The source code is viewable on GitHub. The AddOn and its code is licensed under the MIT Licence. See the included LICENCE.txt for details.

Public API
As of version 1.1.0, Jogu Predictions provides a small selection of public functions that can be used by other AddOns/scripts. For more details, see the documentation page on CurseForge.

Credits
The original idea for Jogu Predictions was outlined by Ailindah in this thread.

Thanks also to yodadoe of Wowhead for compiling a list of prediction phrases here.

See CurseForge for the latest changes.

1.1.1
tag 1.1.1
976712464c94f3399c3a0dbd2510120d392e832b
Choonster <[email protected]>
2013-02-28 10:30:05 +1100

Tagging as 1.1.1

--------------------

Choonster:
- Fix Juicycrunch Carrot prediction phrase
-- Thanks to Gizmojo for reporting this.
- Modify tonumberall function to use unpack args
-- Now uses second and third arguments of unpack to unpack the range of
values passed to the function instead of wiping and unpacking the whole
table
- Add @description tag to JPAPI's doc comment
- Add @name to JPAPI's doc comment
- Add @class table to JPAPI's doc comment
- Change JPAPI table documentation format
- Remove <pre></pre> tags from description of
JPAPI:GetCurrentPrediction() (documententer doesn't render inline HTML)

1.1.0
tag 1.1.0
31ee0f793cbd6ea7d0ab257d3917fbd096479b98
Choonster <[email protected]>
2013-02-09 19:48:11 +1100

Tagging as 1.1.0

--------------------

Choonster:
- Add enUS.lua to the .pkgmeta's ignore list
- Remove enUS.lua from .gitignore
- Add GetLastUpdateString to the public API
- Add .docmeta file for CurseForge's documenter.
- Add public API
-- Make StringToTime available outside of its block.
- Save predictions between sessions.


1.0.1

tag 1.0.1
2d8130fdf016c8b6f4fc7e7f5afee25cc7274bdd
Choonster <[email protected]>
2013-01-06 05:26:33 +1100

Tagging as 1.0.1

--------------------

Choonster:
- Updated TOC to 5.1
-- Probably should have done that earlier.
- Added licence info to README
- Added Curse/WoWI links to README
- Initial commit


1.0

tag 1.0
ff0c6595351a1b3684bd78f36a8d43e6309b2ca8
Choonster <[email protected]>
2013-01-05 01:02:58 +1100

Tagging as 1.0

--------------------

Choonster:
- Moved the caching checks to the caching function
- Also fixed the checks to properly recognise when the cache has its
data.
- Cache function will now delete itself when the cache has its data.
- Added cache population function
-- This is called at PLAYER_ENTERING_WORLD as well as in the slash
command and DataObject:OnTooltipShow method.
-- Hopefully this should fix the caches not being populated.
- Fixed the deDE locale file, deleted the teset enUS file properly.
- Fixed a typo at the end of the locale files.
- Added proper locale files
- Removed the test enUS.lua file
- Localisation fix
- Changed phrase table keys to strings
- Added code to convert the keys to number in the locale initialisation
code in core.lua
- Added licence, fixed .pkgmeta
- Initial Commit
Optional Files (0)


Post A Reply Comment Options
Unread 02-27-13, 07:15 PM  
Ralphius
A Kobold Labourer
Premium Member

Forum posts: 1
File comments: 23
Uploads: 0
Re: Re: Problem with whisper sync

Originally Posted by Choonstertwo

Whisper sync only updates the prediction by communicating with other people on your realm running the AddOn. If there's nobody else running the AddOn, the only way to update the prediction is to talk to Jogu.
I see. Thank you for the explanation.
Report comment to moderator  
Reply With Quote
Unread 02-17-13, 12:46 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Re: Problem with whisper sync

Originally Posted by Ralphius
I seem to be having problems with the whisper sync. /jp gives me the current prediction but when I first login and when typing /jp sync I get:
Jogu Predictions: Starting Whisper sync.
Jogu Predictions: Whisper sync did not receive a prediction reply. The current prediction will be updated when you or someone else using Jogu Predictions talks to Jogu.

Lua Code:
  1. JOGU_PHRASES = {
  2.     ["enUS"] = {
  3.         "Shpring for a leek, and you might get two.", -- [1]
  4.         "Fields of white turnips. Raw and shpicy!", -- [2]
  5.     },
  6. }
  7. JOGUP_SAVED_ITEMID = 74850
  8. JOGUP_SAVED_UPDATE = "2013-02-13T09:53"

Thanks,
Whisper sync only updates the prediction by communicating with other people on your realm running the AddOn. If there's nobody else running the AddOn, the only way to update the prediction is to talk to Jogu.
Report comment to moderator  
Reply With Quote
Unread 02-13-13, 03:34 PM  
Ralphius
A Kobold Labourer
Premium Member

Forum posts: 1
File comments: 23
Uploads: 0
Problem with whisper sync

I seem to be having problems with the whisper sync. /jp gives me the current prediction but when I first login and when typing /jp sync I get:
Jogu Predictions: Starting Whisper sync.
Jogu Predictions: Whisper sync did not receive a prediction reply. The current prediction will be updated when you or someone else using Jogu Predictions talks to Jogu.

Lua Code:
  1. JOGU_PHRASES = {
  2.     ["enUS"] = {
  3.         "Shpring for a leek, and you might get two.", -- [1]
  4.         "Fields of white turnips. Raw and shpicy!", -- [2]
  5.     },
  6. }
  7. JOGUP_SAVED_ITEMID = 74850
  8. JOGUP_SAVED_UPDATE = "2013-02-13T09:53"

Thanks,
Report comment to moderator  
Reply With Quote
Unread 02-09-13, 03:51 AM  
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view AddOns

Forum posts: 194
File comments: 105
Uploads: 34
Version 1.1.0

I've just released version 1.1.0, which includes the following:
  • Predictions saved between sessions (as suggested by antieuclid here)
  • Partial German localisation by yoshimo
  • A new public API, which can be viewed on CurseForge
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: