Jump to content

0 A.D's Built-in Encyclopedia


Lion.Kanzen
 Share

Recommended Posts

14 hours ago, ShadowOfHassen said:

I tried it and got this error:

 

image.thumb.png.613ef80ee905cf813aadd7949456841a.png

 

But seriously, what you have in the video looks amazing!

Does everyone get this error? I was able to reproduce it only once, it seems like an issue with the PNG decoder. Have you tried simply reopening the game? And pressing 'suppress' should enable you to resume the game anyway.

 

11 hours ago, Norse_Harold said:

The drop-down box for selecting a civilization is not obvious to a first-time user. I think that it should have a label, like "Choose a civilization: ".

Good point. The dropdown is an instance of the same class responsible for the civilization selection dropdowns everywhere else in the game (like above the structure tree). And actually, I intentionally hid the automatically created "Civilization:" text. I thought the dropdown was self-explanatory with the context. So, how about showing "Choose you civilization:", but only as long as no civilization is selected?

 

11 hours ago, Norse_Harold said:

An image in an article makes it more interesting and more likely to be read. I wouldn't say it's required to have an image in every article, but I would encourage adding an image here and there.

I agree. And adding images inline images is already possible with the TextRenderer by using tags. 

7 hours ago, wowgetoffyourcellphone said:

If only to call the object's UI portrait.

Plus, I implemented a feature to add "title images" above the articles (where we could show the portraits). The only problems with it I see are: Firstly, I'm not sure where to place it on the page, there's not much free space. Secondly, we don't have images for every article and many articles do not primarily describe one unit or building, I'm afraid some portraits would fail to thematically fit with the texts themselves.

 

11 hours ago, Norse_Harold said:

Ensure that the layout works properly with different screen sizes

Yes, I am aware of that. I tried keeping it in mind while building the page, but I'm pretty sure there will still be some issues of overlapping UI elements on smaller screen sizes. But that won't be very hard to fix.

 

11 hours ago, Norse_Harold said:

Ensure that there isn't a stack overflow or other type of error if a lot of page navigation history is accumulated

The navigation history is stored in a simple array, so it probably won't cause issues over short periods of time. But I will test it. And I suppose the best solution would probably be to to limit its length to (let's say) 20. (Meaning you can't go back more than 20 times)

Link to comment
Share on other sites

1 hour ago, Vantha said:

Does everyone get this error? I was able to reproduce it only once, it seems like an issue with the PNG decoder. Have you tried simply reopening the game? And pressing 'suppress' should enable you to resume the game anyway.

I don't know if its persistent with anyone else, but I get that error consistently when running the latest AppImage of the release candidate with the mod.

Link to comment
Share on other sites

37 minutes ago, ShadowOfHassen said:

I don't know if its persistent with anyone else, but I get that error consistently when running the latest AppImage of the release candidate with the mod.

What happens when you press 'suppress'?

Link to comment
Share on other sites

17 minutes ago, ShadowOfHassen said:

It vanishes but the menu is glitchy and unreadable. What version of 0 A.D. did you use to make the mod?

I used the A27 release candidate, but have also (successfully) tested it on the latest development version.

  • Like 1
Link to comment
Share on other sites

3 hours ago, Vantha said:

Plus, I implemented a feature to add "title images" above the articles (where we could show the portraits). The only problems with it I see are: Firstly, I'm not sure where to place it on the page, there's not much free space. Secondly, we don't have images for every article and many articles do not primarily describe one unit or building, I'm afraid some portraits would fail to thematically fit with the texts themselves.

I can work with you to create relevant images. As far as space goes, they can be as large as the space allows. 64x64, whatever, Then bigger images in the article itself.

Link to comment
Share on other sites

6 minutes ago, Stan` said:

@Vantha did you, by any chance use any texture that is not a power of two (eg. 135x168) and not 128x128 or 128x512 etc. That will break the game on most oses when in release mode.

I'm pretty sure not. As far as I know that throws a different error.

Link to comment
Share on other sites

47 minutes ago, wowgetoffyourcellphone said:

I can work with you to create relevant images. As far as space goes, they can be as large as the space allows. 64x64, whatever, Then bigger images in the article itself.

Where would you place them on the page? Images would be great, but the articles themselves should remain the focus point of the layout.

Link to comment
Share on other sites

 

2 hours ago, wowgetoffyourcellphone said:

I have mockups above that show exactly what I would do. :)

Hmm, not sure if I like the large square portraits. They take up so much space.

Edited by Vantha
Link to comment
Share on other sites

great work! Not necessary but a another nice feature would be buttons to "turn pages", so you can read it like a book. E.g. after reading about the first Athenian hero I would like to go straight to the second one on the next page instead of going one level up to the category above and down again.

  • Like 2
Link to comment
Share on other sites

38 minutes ago, nifa said:

great work! Not necessary but a another nice feature would be buttons to "turn pages", so you can read it like a book. E.g. after reading about the first Athenian hero I would like to go straight to the second one on the next page instead of going one level up to the category above and down again.

Interesting idea. We currently only have the section for related articles on the right (which is currently empty because they have to be filled manually). Adding a button below the articles that simply opens the first of them (i.e. "the next page") won't be hard to implement. I'm sure some players would prefer the feeling of leafing through a book rather than of clicking through menus.

 

37 minutes ago, wowgetoffyourcellphone said:

Well, you don't want a wall of text do you?

No, of course not. I'm still unsure what to go for with the images.

  • Like 2
Link to comment
Share on other sites

1 hour ago, Vantha said:

Interesting idea. We currently only have the section for related articles on the right (which is currently empty because they have to be filled manually). Adding a button below the articles that simply opens the first of them (i.e. "the next page") won't be hard to implement. I'm sure some players would prefer the feeling of leafing through a book rather than of clicking through menus.

I would prefer to open the next page alphabetically, like they are shown when going one step up to the category. So e.g. if you'd like to find a specific animal out of the 50 animals in the game, you could just pick the first one (African Elephant starting with "A") and then just turn page by page through all of the fifty animals until you finish at Zebu (Z). Makes it easier than going back and forth fifty times.

Icon could be something like these, in ancient style of course:

turn page backwards:

image.png.b7d923af812467aa8b0467e351b908eb.png

turn page forward: the same but mirrored.

If the design is made to resemble a papyrus roll I know turning pages is kind of strange though :D

Link to comment
Share on other sites

2 hours ago, nifa said:

I would prefer to open the next page alphabetically, like they are shown when going one step up to the category. So e.g. if you'd like to find a specific animal out of the 50 animals in the game, you could just pick the first one (African Elephant starting with "A") and then just turn page by page through all of the fifty animals until you finish at Zebu (Z). Makes it easier than going back and forth fifty times.

Icon could be something like these, in ancient style of course:

turn page backwards:

image.png.b7d923af812467aa8b0467e351b908eb.png

turn page forward: the same but mirrored.

If the design is made to resemble a papyrus roll I know turning pages is kind of strange though :D

Ok, I can picture what you mean now, that might indeed be useful to have. I'll see what I can do.

 

1 hour ago, ShadowOfHassen said:

As promised here's my logs @Vanthalogs.zip

You've downloaded the mod from the GitHub repo, correct? Deleting the .gitattributes, the README.md, and the Setup.js should get it working.

By the way, if anyone is interested, Setup.js is the script which I'm using to make the directories, extract the data from the xmls, categorize them, and create the json files. I'm running it with NodeJS and its filesystem and xmlBuilder package.

  • Thanks 1
Link to comment
Share on other sites

3 hours ago, Vantha said:

Ok, I can picture what you mean now, that might indeed be useful to have. I'll see what I can do.

 

You've downloaded the mod from the GitHub repo, correct? Deleting the .gitattributes, the README.md, and the Setup.js should get it working.

By the way, if anyone is interested, Setup.js is the script which I'm using to make the directories, extract the data from the xmls, categorize them, and create the json files. I'm running it with NodeJS and its filesystem and xmlBuilder package.

So that got the error fixed when I immediately launch the encyclopedia but it sometimes runs the same error when clicking through articles and when I hit suppress it messes up the UI. I try to reproduce it, but sometimes it doesn't. (Do you want more logs?)

Still the UI looks pretty amazing. Good job!

  • Thanks 1
Link to comment
Share on other sites

9 hours ago, ShadowOfHassen said:

So that got the error fixed when I immediately launch the encyclopedia but it sometimes runs the same error when clicking through articles and when I hit suppress it messes up the UI. I try to reproduce it, but sometimes it doesn't. (Do you want more logs?)

Still the UI looks pretty amazing. Good job!

Thanks.

Well, the log files didn't contain any error messages last time... Is the crash message the same as before?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...