Skip to content

Instantly share code, notes, and snippets.

@wapcaplet
Last active July 7, 2020 00:51
Show Gist options
  • Save wapcaplet/7ca7dccdd97d28d75b3462859d8750d8 to your computer and use it in GitHub Desktop.
Save wapcaplet/7ca7dccdd97d28d75b3462859d8750d8 to your computer and use it in GitHub Desktop.
The below list was generated by adding a failure-check with debugging output in the `item::put_in` function:
```
ret_val<bool> item::put_in( const item &payload, item_pocket::pocket_type pk_type )
{
ret_val<bool> result = contents.insert_item( payload, pk_type );
+ if( !result.success() ) {
+ std::cout << "put_in failed to put '" << payload.tname() << "' into '" << tname() << "'" <<
+ std::endl;
+ }
on_contents_changed();
return result;
}
```
Then building and running `./cataclysm-tiles > errors.txt`,
starting a new scenario in a new world, and
scrolling through the full list of starting professions.
Finally the list was passed through `sort | uniq` to remove duplicates.
List was generated from master branch c2492dda on July 6.
put_in failed to put 'ACOG scope' into 'HK416 A5'
put_in failed to put 'bipod' into 'M2010 ESR'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'crossbow'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'flintlock musket'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'HK416 A5'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'H&K MP5A2'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'Kel-Tec KSG'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'M2010 ESR'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'M4A1'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'Remington 700 .270 Win'
put_in failed to put '<color_c_light_green>|| </color>shoulder strap' into 'Remington 870 Wingmaster'
put_in failed to put 'holographic sight' into 'H&K MP5A2'
put_in failed to put 'holographic sight' into 'M4A1'
put_in failed to put 'light battery (high-capacity)' into 'cellphone'
put_in failed to put 'light battery (high-capacity)' into 'handheld game system'
put_in failed to put 'light battery (high-capacity)' into 'mp3 player (off)'
put_in failed to put 'light disposable battery' into 'flashlight (off)'
put_in failed to put 'light disposable battery' into 'professional camera'
put_in failed to put 'light disposable battery' into 'two-way radio'
put_in failed to put 'M24' into '<color_c_light_green>|| </color>back holster'
put_in failed to put 'medium battery (high-capacity)' into 'military mess kit'
put_in failed to put 'medium battery' into 'arc welder'
put_in failed to put 'medium battery' into 'chemistry set'
put_in failed to put 'medium battery' into 'mess kit'
put_in failed to put 'medium disposable battery' into '<color_c_light_green>|| </color>Foodperson mask'
put_in failed to put 'medium disposable battery' into 'tazer'
put_in failed to put 'rail laser sight' into 'H&K MP5A2'
put_in failed to put 'rifle scope' into 'M2010 ESR'
put_in failed to put 'suppressor' into 'H&K MP5A2'
put_in failed to put 'Uberti Cattleman' into '<color_c_light_green>|| </color>fast draw holster'
put_in failed to put 'ultra-light disposable battery' into '<color_c_light_green>|| </color>mining helmet'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment