kanji koohii FORUM
AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Printable Version

+- kanji koohii FORUM (http://forum.koohii.com)
+-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html)
+--- Forum: Learning resources (http://forum.koohii.com/forum-9.html)
+--- Thread: AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) (/thread-9207.html)

Pages: 1 2 3 4 5 6 7 8


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - prink - 2012-12-16

I haven't installed and tested if it works yet, but that you for putting time and work into updating this. I really liked it on Anki 1.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - kaamaru - 2012-12-16

nohika Wrote:Sorry, took me a bit to trigger it!

An error occurred in an add-on. Please contact the add-on author.

Traceback (most recent call last):
File "C:\cygwin\home\dae\Lib\anki\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.webview", line 21, in link
File "C:\cygwin\home\dae\Lib\anki\win\build\pyi.win32\anki\outPYZ1.pyz/aqt.reviewer", line 296, in _linkHandler
File "C:\cygwin\home\dae\Lib\anki\win\build\pyi.win32\anki\outPYZ1.pyz/anki.hooks", line 56, in repl
File "C:\Users\Liz\Documents\Anki\addons\ankiemperor\AnkiEmperor.py", line 89, in answerCard
self.__treasureChest.updateGold(card, self.lastQuality, cardsAnsweredToday)
File "C:\Users\Liz\Documents\Anki\addons\ankiemperor\treasureChest.py", line 36, in updateGold
if (card.reps
Download the add-on again from my previous post and that should fix it. When you replace the add-on, make sure you keep ankiemperor.db or you'll loose your gold, etc.

prink Wrote:I haven't installed and tested if it works yet, but that you for putting time and work into updating this. I really liked it on Anki 1.
No problem, me too!


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Chigun - 2012-12-17

Thank you so much, kaamaru. I've been waiting for this with anticipation. Smile


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - bleko - 2013-01-02

kaamaru, thank you for the port! Kudos for carrying the torch.

I'm getting the following startup error when I launch Anki 2.0.3 on Mac OS X 10.6.8 after placing the contents of your zip in my Anki addons folder (the path to which on Mac is ~/Documents/Anki/addons). The traceback looks suspiciously similar to the one in my original post, so I'm guessing it's the same Mac-related bug.
Code:
An error occurred in an add-on. Please contact the add-on author.

Traceback (most recent call last):
  File "aqt/addons.pyc", line 42, in loadAddons
  File "/Users/Me/Documents/Anki/addons/AnkiEmperor.py", line 2, in
  File "/Users/Me/Documents/Anki/addons/ankiemperor/AnkiEmperor.py", line 30, in __init__
  File "/Users/Me/Documents/Anki/addons/ankiemperor/Options.py", line 14, in __init__
  File "/Users/Me/Documents/Anki/addons/ankiemperor/dbConnect.py", line 64, in getOptions
OperationalError: near "?": syntax error



AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - bimspramirez - 2013-01-02

kaamaru Wrote:So it took me all weekend (when I should have been revising for exams), but I ported AnkiEmperor to Anki 2!

http://i671.photobucket.com/albums/vv73/Calumks/Capture_zpsedac1bb0.png
Hi kaamaru! Thanks for updating this to Anki 2. I love this plugin, it gives me an extra boost to finish my reviews. Big Grin

Btw, what is the name of the file that makes the AnkiEmperor window appear? The AnkiEmperor in my linux laptop does not have any images like in your screenshot. It is just a plain and boring text. It does have pics during pop ups though-- congrats for the extra gold (the thumbs up shows up here) or for finishing a construction (the pic shows up here also). Btw, I put the files under the /home/user/Anki/addons


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - ryuudou - 2013-01-02

kaamaru Wrote:So it took me all weekend (when I should have been revising for exams), but I ported AnkiEmperor to Anki 2!

http://i671.photobucket.com/albums/vv73/Calumks/Capture_zpsedac1bb0.png

Install
Unzip the file and put the contents of the folder into your anki add-ons folder.
It should look like this:

http://i671.photobucket.com/albums/vv73/Calumks/Capture2_zps68c42cf3.png

You can use your old save file from Anki 1 too. Look in your Anki 1 AnkiEmperor folder and copy ankiemperor.db to the Anki 2 AnkiEmperor folder.

http://www.mediafire.com/download.php?35pcle0f1jkk5el

Last edited = last updated. The add-on won't tell you when there is an update so check back here. If you update, remember not to delete your ankiemperor.db file.

I'll keep updating until Proxx takes over or ports it himself.
Please have my children.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - kaamaru - 2013-01-03

For those using the updated add-on, please tell me if you are getting as much gold as you used to in AnkiEmperor for Anki 1. I had to change the way AnkiEmperor gave gold slightly because I'm not sure how to get anki 2 to give me a card's successive review count.

Thanks!


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Necrojesta - 2013-01-03

Thanks for the port!


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Devinate - 2013-01-06

Hi,

I've experienced some trouble with AnkiEmperor on Win XP. (Emperor on my Win7 laptop works alright and is really amazing!) Here's the report:

Traceback (most recent call last):
File "C:\cygwin\home\dae\Home\anki\win\build\pyi.win32\anki\outPYZ1.pyz/ankiqt.ui.main", line 2679, in loadPlugins
File "c:\pyi\iu.py", line 439, in importHook
File "c:\pyi\iu.py", line 524, in doimport
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\AnkiEmperor.py", line 118, in
aw = AnkiEmperor()
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\AnkiEmperor.py", line 22, in __init__
self.db = DBConnect()
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\ankiemperor\dbConnect.py", line 16, in __init__
self.conn = sqlite3.connect(self.db, detect_types=sqlite3.PARSE_DECLTYPES)
OperationalError: unable to open database file
Exception AttributeError: "'DBConnect' object has no attribute 'conn'" in > ignored


I'm sorry, but I don't have a clue what the problem is. If you could help me with it, I'd be very grateful.

EDIT: I'm using Anki 1.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Devinate - 2013-01-15

Devinate Wrote:Hi,

I've experienced some trouble with AnkiEmperor on Win XP. (Emperor on my Win7 laptop works alright and is really amazing!) Here's the report:

Traceback (most recent call last):
File "C:\cygwin\home\dae\Home\anki\win\build\pyi.win32\anki\outPYZ1.pyz/ankiqt.ui.main", line 2679, in loadPlugins
File "c:\pyi\iu.py", line 439, in importHook
File "c:\pyi\iu.py", line 524, in doimport
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\AnkiEmperor.py", line 118, in
aw = AnkiEmperor()
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\AnkiEmperor.py", line 22, in __init__
self.db = DBConnect()
File "C:\Documents and Settings\Silvie\Data aplikac�\.anki\plugins\ankiemperor\dbConnect.py", line 16, in __init__
self.conn = sqlite3.connect(self.db, detect_types=sqlite3.PARSE_DECLTYPES)
OperationalError: unable to open database file
Exception AttributeError: "'DBConnect' object has no attribute 'conn'" in > ignored


I'm sorry, but I don't have a clue what the problem is. If you could help me with it, I'd be very grateful.

EDIT: I'm using Anki 1.
Nevertheless, I upgraded to Anki 2 and now it works perfectly.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - joe78 - 2013-02-26

Proxx Wrote:Hi,

I have created a Website to add new cities (for now only in Japan) and constructions: http://ankiemperor.hallojapan.de/viewCities.php

If you have favourite spots in Japan which you would like to see in AnkiEmperor, please add them using the website! They will be included in an update release of AnkiEmperor, which means more constructions to build for everybody Smile
When will it be possible to add cities for other countries like "Thailand" ?


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - gombost - 2013-02-26

bimspramirez Wrote:Btw, what is the name of the file that makes the AnkiEmperor window appear? The AnkiEmperor in my linux laptop does not have any images like in your screenshot. It is just a plain and boring text. It does have pics during pop ups though-- congrats for the extra gold (the thumbs up shows up here) or for finishing a construction (the pic shows up here also). Btw, I put the files under the /home/user/Anki/addons
I have the very same problem.

The source files of the main window are in the ankiemperor/views directory and the paths of the images are constructed in the ankiemperor/util.py file. The constructed paths are correct.
I've looked at the source code but unfortunately I have very little python and no Qt knowledge so I have no idea what the problem is.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Oniichan - 2013-02-26

joe78 Wrote:
Proxx Wrote:Hi,

I have created a Website to add new cities (for now only in Japan) and constructions: http://ankiemperor.hallojapan.de/viewCities.php

If you have favourite spots in Japan which you would like to see in AnkiEmperor, please add them using the website! They will be included in an update release of AnkiEmperor, which means more constructions to build for everybody Smile
When will it be possible to add cities for other countries like "Thailand" ?
Hmm... maybe the empire should be limited to Japan this time.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Norman - 2013-02-26

Oniichan Wrote:
joe78 Wrote:
Proxx Wrote:Hi,

I have created a Website to add new cities (for now only in Japan) and constructions: http://ankiemperor.hallojapan.de/viewCities.php

If you have favourite spots in Japan which you would like to see in AnkiEmperor, please add them using the website! They will be included in an update release of AnkiEmperor, which means more constructions to build for everybody Smile
When will it be possible to add cities for other countries like "Thailand" ?
Hmm... maybe the empire should be limited to Japan this time.
I think keeping the cities in Japan would give the game a more authentic feel. That being said, I've noticed that New York City is even one of the choices in the added cities section.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - joe78 - 2013-02-27

I don't see your problems with other countries like thailand, except that it's maybe the wrong place here to post this wish. This name of the game isn't JapanEmperor but AnkiEmperor and Anki is a tool to learn foreign languages, even the origin of the word comes from japan.
So whats the point?


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - bimspramirez - 2013-02-27

gombost Wrote:The source files of the main window are in the ankiemperor/views directory and the paths of the images are constructed in the ankiemperor/util.py file. The constructed paths are correct.
I've looked at the source code but unfortunately I have very little python and no Qt knowledge so I have no idea what the problem is.
I found the file too. The directory is correct but some of the images are not showing up. :/ I remember I even altered some of the lines like putting an apostrophe but nothing changed.

Anyone knows how to fix this?

Btw, what is your OS?


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Oniichan - 2013-02-27

joe78 Wrote:I don't see your problems with other countries like thailand, except that it's maybe the wrong place here to post this wish. This name of the game isn't JapanEmperor but AnkiEmperor and Anki is a tool to learn foreign languages, even the origin of the word comes from japan.
So whats the point?
Sorry, I was being sarcastic. Let's just say that Japan's neighbors probably feel a bit safer these days, at least from Japan, since the emperor and his army decided to stay home.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - gombost - 2013-02-27

bimspramirez Wrote:Btw, what is your OS?
Arch Linux.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - gombost - 2013-02-27

I have found another bug.

If I grade a card while a view other than the MainView is opened I get the following error:
Quote:An error occurred in an add-on. Please contact the add-on author.

Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 578, in keyPressEvent
if self.keyHandler(evt):
File "/usr/share/anki/aqt/reviewer.py", line 290, in _keyHandler
self._answerCard(int(key))
File "/usr/share/anki/anki/hooks.py", line 55, in repl
old(*args, **kwargs)
File "/home/user/.anki/addons/ankiemperor/AnkiEmperor.py", line 97, in answerCard
self.view.checkSuccessPopup() # Check if popup should be displayed
AttributeError: 'CitySelectView' object has no attribute 'checkSuccessPopup'
I started to fix it but soon I realized Python is not even close to any language I can properly use so in the end I just copy-pasted the checkSuccessPopup() function into the other views and modified it a bit. Seemingly it fixes the error but it's not a patch by any means, thus I'm not sure if I should publish it here at all.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - gogo496 - 2013-02-28

gombost Wrote:I have found another bug.

If I grade a card while a view other than the MainView is opened I get the following error:

I started to fix it but soon I realized Python is not even close to any language I can properly use so in the end I just copy-pasted the checkSuccessPopup() function into the other views and modified it a bit. Seemingly it fixes the error but it's not a patch by any means, thus I'm not sure if I should publish it here at all.
i have the same problem, so maybe u can post it?


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - gombost - 2013-02-28

gogo496 Wrote:i have the same problem, so maybe u can post it?
Here you are. Just copy it into the addons folder.

In the meantime I've found 2 other bugs.

If the main AnkiEmperor window is hidden the popup about the extra gold is empty when shown.

Most of the time after undoing a reviewed card it is placed somewhere among the pile of due cards and not shown instantly. This never happens without AnkiEmperor so I have uninstalled the plugin for the time being.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - bimspramirez - 2013-02-28

gombost Wrote:
bimspramirez Wrote:Btw, what is your OS?
Arch Linux.
Mine is OpenSUSE. I wonder what the problem is. I'll try to study Python too and see if I can fix it.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - Errol246 - 2013-03-06

Thank you so much for putting time into doing this, I've been waiting with great anticipation.

I just finished installing and encountered a bug. The pictures of the buildings don't appear when I construct them. At least, the picture doesn't appear for the first building, the cat shrine. I haven't tried building anything else yet, so I might be jumping the gun, but just thought I should let you know.

I'm running Mac OS X Mountain Lion


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - kaamaru - 2013-03-07

Sorry guys, I was subscribed to the topic, but it didn't email me any new replies.

gombost Wrote:I have found another bug.

If I grade a card while a view other than the MainView is opened I get the following error:
Quote:An error occurred in an add-on. Please contact the add-on author.

Traceback (most recent call last):
File "/usr/share/anki/aqt/main.py", line 578, in keyPressEvent
if self.keyHandler(evt):
File "/usr/share/anki/aqt/reviewer.py", line 290, in _keyHandler
self._answerCard(int(key))
File "/usr/share/anki/anki/hooks.py", line 55, in repl
old(*args, **kwargs)
File "/home/user/.anki/addons/ankiemperor/AnkiEmperor.py", line 97, in answerCard
self.view.checkSuccessPopup() # Check if popup should be displayed
AttributeError: 'CitySelectView' object has no attribute 'checkSuccessPopup'
I started to fix it but soon I realized Python is not even close to any language I can properly use so in the end I just copy-pasted the checkSuccessPopup() function into the other views and modified it a bit. Seemingly it fixes the error but it's not a patch by any means, thus I'm not sure if I should publish it here at all.
I can't reproduce this problem. Are you using the latest release? What OS are you using?

gombost Wrote:
gogo496 Wrote:i have the same problem, so maybe u can post it?
Here you are. Just copy it into the addons folder.

In the meantime I've found 2 other bugs.

If the main AnkiEmperor window is hidden the popup about the extra gold is empty when shown.

Most of the time after undoing a reviewed card it is placed somewhere among the pile of due cards and not shown instantly. This never happens without AnkiEmperor so I have uninstalled the plugin for the time being.
Fixed the first bug, not sure about the second Sad!

I'll install OSX and linux and try to try and fix the image bug.


AnkiEmperor - Build your own empire (aka AnkiWarrior 2.0) - kaamaru - 2013-03-07

Fixed the image bug on Ubuntu. Hopefully that will fix it on OSX and other OS too.

http://www.mediafire.com/?3odhv57aw2twox2