Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upMemorial upgrades #6327
Conversation
This comment has been minimized.
This comment has been minimized.
|
Black road/classic mode should be marked. And definitely, uploading them in the future is a brilliant idea! |
This comment has been minimized.
This comment has been minimized.
|
Game versions... those should also be added to the files. Edit: im an idiot. Already in. The first line... duh. |
Soyweiser
added some commits
Feb 27, 2014
This comment has been minimized.
This comment has been minimized.
|
Hey, let us know when this gets out of WIP? (Should be an "Edit" button next to "New Issue" to modify the title.) |
This comment has been minimized.
This comment has been minimized.
|
Been busy irl. Have not had time to work on it. Will post updates when i implement them |
Soyweiser
added some commits
Mar 13, 2014
This comment has been minimized.
This comment has been minimized.
|
Hey, should this be considered for merge? Haven't heard from it in a While and I'd like to get it updated and in, or closed. |
KA101
force-pushed the
CleverRaven:master
branch
from
a342a64
to
0da0595
Oct 30, 2014
This comment has been minimized.
This comment has been minimized.
|
Have not looked at it in while. I ran into some problems defining new Json objects for the players. (I need to store some of the character creation values). I asked on irc but there was no reply. I'll see if I can discover what the problem was. |
This comment has been minimized.
This comment has been minimized.
|
Well this is my problem. I'm using parts of this code: I basically copied the code and changed these lines: I cannot find where the read json object is put into the std::map<Skill *, SkillLevel> _skills; object. (I made a std::map<Skill *, SkillLevel> _startSkills; object, but it gets written to the _skills object). |
This comment has been minimized.
This comment has been minimized.
There:
|
This comment has been minimized.
This comment has been minimized.
|
Thanks. That would indeed be the cause of the problem. Will fix it now. |
This comment has been minimized.
This comment has been minimized.
|
There, this one works. Now, I just need to update my master. And resolve any merge conflicts. (I already noticed the save version was bumped up a bit). |
Soyweiser
changed the title
[WIP] Memorial upgrades
Memorial upgrades
Dec 22, 2014
This comment has been minimized.
This comment has been minimized.
|
Should all work now. Fixed it. So no longer WIP |
BevapDin
reviewed
Dec 22, 2014
| @@ -4229,7 +4229,8 @@ void game::death_screen() | |||
| { | |||
| gamemode->game_over(); | |||
| Messages::display_messages(); | |||
| disp_kills(); | |||
| if( kills.size() > 0) //Only list the kills when there are kills. | |||
This comment has been minimized.
This comment has been minimized.
BevapDin
Dec 22, 2014
Contributor
Please, please add {} here and below where the skills get iterated.
This comment has been minimized.
This comment has been minimized.
KA101
Dec 22, 2014
Contributor
Not a "please" situation, project style requires bracing on new if-statements. We don't want the code collapsing in an earthquake.
BevapDin
reviewed
Dec 22, 2014
| if(has_trait(iter->first)) { | ||
| memorial_file << indent << traits[iter->first].name; | ||
| if(has_base_trait(iter->first)) { | ||
| memorial_file << " (Starting Trait)"; |
This comment has been minimized.
This comment has been minimized.
BevapDin
reviewed
Dec 22, 2014
| { | ||
| return _skills[_skill]; | ||
| } | ||
| */ |
This comment has been minimized.
This comment has been minimized.
BevapDin
Dec 22, 2014
Contributor
If it's not needed - throw it away. It can always be restored/viewed through git. Why is it here anyway?
BevapDin
reviewed
Dec 22, 2014
| } | ||
| //Starting Skills (check if there are starting skills first. | ||
| bool had_starting_skill = false; | ||
| for (std::vector<Skill*>::iterator aSkill = Skill::skills.begin(); |
This comment has been minimized.
This comment has been minimized.
BevapDin
Dec 22, 2014
Contributor
That will conflict with the const Skill* PR. I recommend using auto.
Edit: and of course using ranged based loops - we don't need no iterator.
BevapDin
reviewed
Dec 22, 2014
| memorial_file << _("Active Mods:") << "\n"; | ||
| std::vector<std::string> mods = world->active_mod_order; | ||
| for(size_t i = 0; i < mods.size(); ++i ) { | ||
| memorial_file << indent << mods[i] << "\n"; |
This comment has been minimized.
This comment has been minimized.
BevapDin
Dec 22, 2014
Contributor
That will only give you the mods ident, not the displayed name. You need to look that up in mod_manager::mod_map, which is private, so you need to add a function to that class that does the lookup.
BevapDin
reviewed
Dec 22, 2014
|
|
||
| //Load the starting skills. | ||
| if( savegame_loading_version <= 23 ) { //No startingSkills object. | ||
| debugmsg("Save version < 24, no starting skills object"); |
This comment has been minimized.
This comment has been minimized.
BevapDin
Dec 22, 2014
Contributor
Don't show message, this is an expected situation, no need to warn / inform the player, everything is fine as it is.
This comment has been minimized.
This comment has been minimized.
|
Will process your comments tomorrow. Thanks for reading it over. |
This comment has been minimized.
This comment has been minimized.
|
No progress for a year, closing. |
Soyweiser commentedFeb 26, 2014
Done so far:
https://www.dropbox.com/s/93503kdjepajaus/Nathan%20Cann-Sat%20Mar%2022%2001-50-30%202014.txt (example: could not find a way to get better mod file names).
Other stuff:
Also wanted to make it more clear what your starting chosen options were. (started with traits xyz, stats etc. If we also allow uploading of these files that could provide some interesting data). Calculate cash on hand + cash on debit cards.
And try to fix any other bugs. Like death damage not calculated in the damage taken value.
Any requests for changes to the memorial file?
Edit: #2860 this seems to be broken currently. Edit guess not. Could not reproduce it.
Edit: https://www.dropbox.com/s/edf3k33afxvoat3/Delila_London-Mon%20Dec%2022%2018-40-41%202014.txt?dl=0 updated newest version. (from 22-12-2014).