Jump to content

Vantha

Community Members
  • Posts

    335
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Vantha

  1. ShadowOfHassen mentioned it already; it's about letting devs know we exist, what we do, for them to integrate that into their workflow, and to accept our patches. But that's probably achieved best by just getting the (big) stone rolling...
  2. To continue the thought: In short, can we become the official "writers" for the project of 0 A.D.? The idea is, there are programmers, artists, playtesters, but no one responsible for creative writing tasks yet. Having dedicated people for that would not only help keeping the style consistent, but also ensure a certain level of writing across the game. And it would of course lift some things off other people's current workload. In practice it would mean improving current texts, writing new ones, and overseeing all other related matters. And when I say "texts" I'm referring to (the untranslated English version of) everything textual in the game - from tooltips to various descriptions to campaigns to encyclopedia articles.
  3. Sorry for the confusion yesterday, I just found my answer in the code, everything's clear now . @ShadowOfHassen I can take care of making the encyclopedia translatable.
  4. Sorry to bother you, but I'm not sure if I'm understanding it correctly. Are the strings extracted while the code is running?
  5. Ok. And does the translating always need to be done in the init() function?
  6. And what about texts in files other than XMLs? The articles are stored in JSON files at the moment, and from those templates aren't generated. The credits text are stored in JSONs as well, how are they being marked for translation? Or should we convert the articles' JSONs into XMLs and have them being treated just like the simulation template files?
  7. Turns out, the crashes were caused by some corrupted png files. I'm neither sure what exactly damaged the file structure nor why it would sometimes work regardless, however, I was able to fix them. Here is an updated mod: encyclopedia.zip
  8. Thanks. Yeah, adding hotkeys for certain actions is definitely something I should (and will) be looking into in the future.
  9. I will submit a diff for the encyclopedia page soon. And while it's getting reviewed, we will start with the process of "customizing" the articles - adding titles, subtitles, images, related articles, references to xml templates, and some formatting to the text contents itself. There is a ton to say about the features' implementation and what to pay attention to. I tried my best to lay out the information as logically as possible and I'm open to explaining it further, if anything is unclear:
  10. Well, it's not too different from the current system, is it? What is it in particular that's bothering you? Yes, I know! That has been on my radar for quite some time. It is way better structured and more visually appealing than what we currently have. And I plan to implement it sooner or later.
  11. Yes, exactly. The structure of the encyclopedia is not very hard change codewise. And as ShadowOfHassen said, we're more than open to suggestions!
  12. I suggest we add the page to the game now (after fixing the bug), but only with selected articles for testing. The review process will take a lot of time anyway and in parallel we can already "customize" the rest of the articles (adding images, subtitles, links to other articles, etc.). And as soon as the page framework is merged we can add the bulk of articles to the game too. I don't think incompletion is be something to worry about in this case, since the page framework is indeed complete and we can simply remove the button from the main menu as long as it doesn't contain all the articles to prevent players from finding a (seemingly) incomplete and empty page in a full release. And the existence of temporarily unused files in 0ad's code wouldn't be anything new either. Howevere, I will talk to some developers and adapt to what they deem best. I made the mod for the latest version, but it should be working with A26 (except the unit portraits) as well. Have you verified the mod is installed properly? Does anyone else face the same issue? You can try opening the javascript console with the assigned hotkey (per default '^' and F9) and entering the following command: Engine.SwitchGuiPage("page_encyclopedia.xml");
  13. Big news regarding the encyclopedia page! New features: - the ability to put images in the article header. I decided to place the images to the top right and the title to the top left. This saves a lot of space compared to other possibilities and it looks good with images of most aspect ratios. But I will talk more in depth about the implementation in a future post. - the ability to add subtitles. They are fully optional, but really enhance the header's visual appeal (in my opinion). - a button below the title that opens up the the template viewer showing the unit's in-game stats. Its portrait is embedded into the button, so players can visually recognise the unit from in-game as well. - buttons to directly switch to the next or previous article in the same subcategory (to the suggestion of @nifa) They currently do not include any text as I think the arrow sprites are enough of a hint as to what the buttons do. Here is a quick showcase: screen-recording-0ads-encyclopedia.mp4 Other improvements: - fixed GUI scaling on lower screen resolutions (down to 1024x768). This turned out as quite a hassle, but it had to be done eventually. I haven't tested it on large screens (yet), mainly because they usually don't cause problems. If you notice any problem with the GUI scaling, let me know. As always I packed it into a mod, please try it out, any feedback is welcome! encyclopedia.zip (unfortunately I have not yet managed to resolve the issue with the crashes, I recommend trying to open it multiple times and supressing the error, if you notice any patterns or have any idea on how to resolve it, please let me know)
  14. I agree. I think any decent team game rating system would bring a good improvement over the current system, just because most players play more team games than 1v1s and a higher number of rated games will automatically result in a more accurate rating. We wouldn't even need to abandon the current rating system, players can have both 1v1 and team game ratings at once. I can't even imagine it to be that hard to implement, the problem is a lack of manpower. However, if anyone decides to start working on it, I am open to help coding it.
  15. I just uploaded a patch: https://code.wildfiregames.com/D5297
  16. Han minister To my understanding the name currently in use ("官吏 Guānlì") is a collective term for government officials ( which is obviously not wrong, as ministers symbolically represent the entire government). However, after all, the unit is still called "minister" and limited to nine at a time in reference to the Han dynasty's nine ministers. And these nine ministers (/ chamberlains) were called "九卿 jiǔ qīng" with "九 jiǔ" translating to "nine" and "卿 qīng" translating to minister(s) or other high ranking officials. Here is the change I am suggesting: Guānlì -> Qīng Sources:
  17. Wow, that's so much more simple than I hoped for. It even allows to get the actually displayed size for GUI objects directly as well. Thanks.
  18. Is it possible to read the screen resolution from JavaScript scripts? If so, how?
  19. Good idea. Or maybe 'Tiger Guard Spearman'. Much better (and more unique) than just 'imperial/palace guard spearman'.
  20. Han champion spearman (Hǔ Bēn) This time it's about the GenericName (the translated descriptive name): At the moment, this unit is called "Palace Guard Spearman". "虎賁 Hǔ Bēn" (usually translated to something like "Rapid as Tigers") were indeed a guard unit stationed around palaces. However, they were not actually responsible for guarding the palaces, but rather the emperor himself (who just happened to spend most of his time at palaces). This distinction is important because there was another (completely separate) unit specifically assigned to just guard all palace buildings – even in absence of the imperial family. The Han bureaucracy strictly differentiated between corps of imperial guards and palace guards - so much so, in fact, that they had two different ministries for them. Thus here is the change I'm suggesting: Palace Guard Spearman -> Imperial guard spearman (It would be cool to also include "Rapid as Tigers", but I'm afraid it would feel out-of-style with the names of other units) Sources:
  21. I opened a second editing pr for some Athenian units that were left untouched in the first one https://github.com/TheShadowOfHassen/0-ad-history-encyclopedia-mod/pull/152
  22. @guerringuerrin Ok. As explained here, the icon tag has a property called 'displace' that allows moving the icon on the x and y axis by a certain number of pixels. Now, the target icons measure 32x32 pixels while the font is only 16 pixels high. A downwards offset by half the difference (in this case 8 pixels) perfectly centers the icon on the text => displace="0 8". (The text might appear a bit smaller than 16 pixels because it mostly contains lowercase letters, so I suspect an offset of 9 pixels might look slightly better, but you'll have to be the judge for that) I suggested according changes to the latest merge request.
  23. Sure, I can help with that. Where is the code? I don't see a merge request for it.
×
×
  • Create New...