-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Photos expansion #30672
Photos expansion #30672
Conversation
i have
and travis gives me error |
src/iuse.cpp
Outdated
@@ -6485,22 +6498,23 @@ const auto trap_name_at = []( const tripoint &point ) | |||
|
|||
std::string get_field_description_at( const tripoint &point ) | |||
{ | |||
static const std::unordered_set<field_id> covered_in_affix_ids = { | |||
typedef std::unordered_set<field_id, std::hash<int>> Field_id_set; | |||
static const Field_id_set covered_in_affix_ids = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is that i have found related to error: https://stackoverflow.com/a/29618545
I guess I shouldn't see contents of the closed constructions on the photos. Such as lockers, vats or kegs. |
Well, you are right. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well this is a pretty epic PR
I've been fairly picky with my review as I haven't noticed any issues with the larger structure/goals of this PR.
Wow, thats a lot of changes! :D Thanks for review! |
No problem, sorry that it's taken so long for someone to get around to this PR. It is a little large after all. |
5d16cef
to
7cfbba6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bunch of little grammar fixes this time. Don't think it's possible to make the wording perfect in every case without making the code super complex, but this should be pretty good.
Aside from that I'd say this is ready to merge.
I'm not native speaker, so these suggestions are always appreciated, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me.
There may be a few rough edges on the wording in some combinations of circumstances that I haven't thought of/noticed, but nothing that should prevent merging imo.
That's unfortunate. I will look into required changes when I have time after #31362 is merged. |
179f090
to
f3bdfd5
Compare
@ZhilkinSerg I have renamed some method names that have been changed, but i fear after #31362 there will be a lot required changes. |
src/iuse.cpp
Outdated
}; | ||
static const auto format_object_pair_article = []( const std::pair<std::string, int> &pair ) | ||
{ | ||
return format_object_pair( pair, "a " ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String is not translated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can see only one way it can be translated properly:
return format_object_pair( pair, pgettext( "Article 'a', replace it with empty "
"string if it is not used in language", "a " ) );
…ects around point.
… name. Refactor long effects_description_for_creature method.
…to blinded, save all monsters in photo to memory
…ER furniture. Added "balancing" pose.
…earby object, for cases when no creature in photo area.
…update quality in monster collection.
Co-Authored-By: Isaac Freund <[email protected]>
Co-Authored-By: ZhilkinSerg <[email protected]>
6a6a3a9
to
ec94129
Compare
Filthy cargo pants covered in blood splatter are mentioned twice. Do we really need that? |
@Night-Pryanik its not mentioned twice, its cargo pants and cargo shorts |
@egorzaderiy it's cargo pants. |
well, yes, it shows description of item at the aim point. If player have chosen it as main focus of photo, then it is significant, thats why i decided to put in more info. |
Summary
SUMMARY: Features "More features in photos. Allows centered on any tile, captures all creatures."
Purpose of change
Include more features in photos, like furniture, vehicles, weather, etc, for roleplaying purposes. Later this can be used to fill cameras/tablets with pregenerated photos that lead to treasure, for example.
Describe the solution
Monsters, npc and player use unified
extended_photo_def
format. Still saving monsters to monster memory. Old saves will load fine, as it saves photos to new section, while still reading old sections.Describe alternatives you've considered
First alternative is create 2d submap of selected part of map, and then draw it when user wants to see photo. Like snapshot of mini-part of map. But thats probably too hard.
Second alternative is creating photo like in first person view, with pseudographics. This is even harder.
Additional context
I want to add:
bionicsthis one should be added in character description, and will not be part of this PRScreenshots (openable)
Selfie at forest trail:
Selfie in military bunker:
Selfie in campground tent:
Can't see robot and two items behind wall. Also monster is hallucination, so it is not captured in photo.
Blinding all monsters in photo when aim point is nearby, but only if player is not in photo (selfie). Reason is player not using a flash when making selfie, to not blind himself.
When downloading from camera to memory card, it also saves photos, which can be later viewed on e-ink, using new menu entry.

ledges:

from here all photos below do not include weather, location and time of day.
interaction of field effects with various objects. Note that there is more advanced affix now, like
covered in
,under
,on
,in %s cloud
,illuminated by
.not correct focus example:
npc/player statuses and field effects:
traps example:
items with volume < 0.5 are not captured, unless they are in aim point.