Menu

Capi City / Capi City - Blog: Recent posts

Capid translation

I just finsihed moving Capid translations to Qt-Framework.
but the .qm-files that are needed normally wont be uses. capid reads the .ts files for translation.

But why?
The Qt-Translation Framework uses a QTranslator to translate string. But this can only handle one language. Capid is able to translate messages for every player individually. So Capid has a own translator-object that does this.
This means Using QObject::tr() to translate is senseless and makes code unreadable.
so i use an other (not much better) solution: Move all translate able strings to an own header file. (This make finding typing errors easier).
But this led to the problem that lupdate does not find the Strings.
So i made a copy of the header file where the strings are parameters of QObject::tr().
This header has no semantic use at all. It just there to make lupdate know of the strings. This method has two advandages:
1. Preprocessor-replacement does not lead to useless QObect::tr() calls.
2. Translation of client and server is seperated.... read more

Posted by Anonymous 2013-02-21

Capi City 1.0

Long time ago since the last release. But now i can present you Capi City 1.0
wich contains Capid, a new monopd-server (compatible to monopd 0.9.3).
And i have added some other changes:

  • Disabled gator-support since there is no more gator out there
  • Added abiility to add/remove known servers
  • Costum-avatar support (works only with Capid)
  • Display-messages wont be deleted anymore. instead of it alsways the last 15 messages will be shown
  • Improved visuals for chat.
  • Added ability to diable notification... read more
Posted by Anonymous 2013-02-21

Handling depts

I am currently working on a better debt handling system that solved some problems.
For example:
* Player A owes Player B 900
* Player A has only 10 and an estate S
* Player B has only 400

  • Player A makes an offer: Trading S for 900

Currently this trade cannot be done, because B does not have 900, even if he will get 900 from A.
The new System should be able to allow such a trade and detect, that there is now a debt-circle (A -900-> B -900-> A) and resolve it.
The code for the resolving is now there in the debt-graph.
Now its time to integrate it to the game. But this makes some changes in the game itself.
With these changes also an other problem will solved: If a player gets bankrupt, all its estates goes to that player that should get the money. This behavior seems to be fair. But the current implementation is not: All debts are settled one after one. If a player has more that one dept, it depends on luck, who will get the assets.
So the new behavior is that all assets will go to the bank.

Posted by Anonymous 2013-02-20

Project upgraded - New blog

Hello everyone. Capi City has been upgraded on Sourceforge.
This means: Capi City has a new Wiki with all important information.
Also this blog is new. Here i can tell new about new planned and deleveoped featues.

Posted by Anonymous 2013-02-19