Commit Graph
575 Commits
Author SHA1 Message Date
Andrew Miner 0652fdda09 Update designs to sketch out new header 2015-02-24 17:56:25 -08:00
Andrew Miner 963147104a Use placeholder images for item groups 2015-02-23 20:17:20 -08:00
Andrew Miner aa6bdacf90 Merge branch 'master' of github.com-andrewminer:andrewminer/crafting-guide 2015-02-23 19:25:51 -08:00
Andrew Miner 8f82072af3 Add links to tool names under crafting grids 2015-02-23 19:25:35 -08:00
Andrew Miner d131d09602 Add new forum post message 2015-02-23 10:29:16 -08:00
Andrew Miner aa42053c6e Optimize perf. of crafting algo. (55% savings) 2015-02-22 23:19:12 -08:00
Andrew Miner 0ec909a11e Don't re-build for a promote 2015-02-22 23:16:32 -08:00
Andrew Miner e89d7a87c7 Optimize perf. on name finding 2015-02-22 22:03:54 -08:00
Andrew Miner 9f0d19d9e4 Adjust animations, fix bugs, and tweak a few algos
* Adjust page change animations to slide the page closed and then
  open again.
* Add Railcraft to the standard set of mods
* Change every controller which uses an `ImageLoader` to only accept
  it from a parent controller (with the router creating the one
  shared instance).
* Fix several places where controllers need to refresh when the mod
  pack changes
* Fix a few places which should be using the `ImageLoader` but were
  not.
* Remove a number of animations which caused performance issues (esp.
  animating individual items in item group views).
* Fix a bug where changing the current version of a mod didn't cause
  the current crafting plan to be re-evaluated
* Simplify the name finder to allow regular expressions instead of
  the current algorithm
2015-02-22 21:31:48 -08:00
Andrew Miner 87d1868c81 Add missing image for Track from Railcraft 2015-02-22 21:30:27 -08:00
Andrew Miner 689129570d Fix images for MC1.7.10 2015-02-22 21:12:19 -08:00
Andrew Miner ec99d8a63f Add data files and images for Railcraft 9.5.0 2015-02-22 21:11:57 -08:00
Andrew Miner 0e89dab989 Bug: Show all on item detail when mod disabled
When the mod to which an item belongs is disabled, the item detail
page should continue to show all the relevant sections: including
those which rely on recipes which ordinarily would be hidden because
the mod is disabled.
2015-02-19 14:13:18 -08:00
Andrew Miner de9b323f3a Add groups to TE4 2015-02-19 13:39:18 -08:00
Andrew Miner 721f7d1aa2 Change deploy script to rebuild after deployment 2015-02-19 11:54:36 -08:00
Andrew Miner 238bfb8eca Update IC2 with recipes for vanilla items 2015-02-19 11:32:41 -08:00
Andrew Miner 2d330eedcd Fix various minor bugs
* Fix "update" recipes in IC2 classic to use the new "update" command
* Remove the crafting plan model from the item detail page as it isn't
  being used there right now and can be slow for complex items
* Update the `Recipe.compareFor` method to be able to work without an
  item slug as a reference
2015-02-19 10:51:52 -08:00
Andrew Miner 89247246bd Run all mod-version.cg files through reformat 2015-02-19 10:26:51 -08:00
Andrew Miner e3486540cb Fix bugs in reformat script from recent refactor 2015-02-19 10:19:10 -08:00
Andrew Miner 96bb226492 Don't use class names in comparisons 2015-02-19 08:45:36 -08:00
Andrew Miner d05167ca02 Fix recipe in AE2 2015-02-19 08:39:34 -08:00
Andrew Miner dc51dfa777 Fix errors in recipes 2015-02-18 23:03:50 -08:00
Andrew Miner cdf33f4b44 Bug: Allow 'update' recipes to be found properly
Fix a bug where `ModPack.findRecipes` would only look for recipes for
qualified slugs in the mod which added the item, thus missing any
recipes added in other mods.
2015-02-18 22:41:39 -08:00
Andrew Miner b1a6637005 Major updates to the crafting algo.
* Update crafting algo. to favor highest output recipes for making
  items, and to be more flexible about trying a variety of recipes if
  some one recipe doesn't work.
* Modify crafting algo. to allow crafting of "gatherable" items.
* Update logger to support indent/outdent for clearer formatting
* Convert IC2 Forge Hammer / Cutter recipes to treat them as tools
2015-02-18 21:29:21 -08:00
Andrew Miner aab3baec1a Fix misc. bugs caused by refactoring 2015-02-18 16:11:17 -08:00
Andrew Miner e88821d449 Convert codebase to using ItemSlug
* Flesh out the formerly incomplete ItemSlug class
* Convert all uses of text item slugs to use ItemSlug
* Move the ItemSlug class under models where it properly belongs
* Avoid the use of `slug` as a local variable or item attribute
  wherever possible to avoid confusion between various kinds of slugs
* Merge the InventoryParser class into the Inventory class as it is
  unlikely to need to support multiple versions
* Simplify the ModPack/Mod/ModVersion interfaces by replacing the use
  of various "helper" methods with equivalent use of more generic
  methods
* Update the various methods of ModPack/Mod/ModVersion to be able to
  work with qualified or unqualified ItemSlugs
* Remove the unused BaseCollection class
* Add tests for ItemSlug and update all other tests to reflect
  all the other changes
2015-02-18 10:30:53 -08:00
Andrew Miner 100ce1bc70 Don't use # notation in sitemap 2015-02-18 10:29:36 -08:00
Andrew Miner 8236d82ec8 wip 2015-02-16 11:03:59 -08:00
Andrew Miner 8804605d99 Make Recipe a child of ModVersion, not Item 2015-02-15 19:01:16 -08:00
Andrew Miner a3be372e17 Don't show qualifed slugs in URL unnecessarily #94 2015-02-12 16:53:29 -08:00
Andrew Miner 0be1df9eb5 Add full recipe for IC2 Coolant Cell #93 2015-02-12 15:51:00 -08:00
Andrew Miner 1af61398f8 Add missing AE2 images 2015-02-12 15:29:27 -08:00
Andrew Miner 7a33181d1b Fix inventory remove button to appear again $92 2015-02-12 15:13:05 -08:00
Andrew Miner 151c18126a Fix ItemPage to recognize qualified slugs
When finding the other items the current item can be used to make,
the algorithm now looks for a match with either the qualified or
unqualified slug.
2015-02-10 18:05:31 -08:00
Andrew Miner 380a78ef61 Qualify all item slugs to the mod which adds them #53
* Change default item URL to fall under /mod/<mod slug>/<item slug>
  but kept the old URL pattern around with the old behavior (i.e.,
  find the first item with that slug)
* Update Item to have a `qualifiedSlug` property which combines the
  item's own slug with its Mod's slug.  Updated a lot of code all
  over to use this in preference to the plain slug.
* Add a `localizeTo` method to Inventory to allow non-qualified slugs
  to be converted into qualified slugs within the inventory's stacks
* Update ModPack to work with either qualified or unqualified slugs
  for relevant methods
* Fix model state changes to happen before related events are
  triggered
* Add a debounce to the CraftingPlan object when triggering a recraft
  due to changes in related objects (esp. its inventories)
* Update the Inventory's sort to keep items sorted by mod before name
  with the Minecraft items sorted to the top
* Fix `ModPack.findItemByName` to actually recursively use the Mod's
  method instead of slugifying the given name and looking for the
  slug (since this won't necessarily work anymore).
* Ensure each Mod is assigned a reference to its containing ModPack
* Fix NameFinder to only consider an item non-gatherable if it is
  also craftable
* Update ModVersionParserV1 to assign qualified slugs to recipes
  for any items which are in the same mod (leaving any other slugs
  unqualified)
* Add Underscore mixins for composing and decomposing slugs
* Update old tests for the use of qualified slugs, and some new tests
  for the new methods added
2015-02-10 17:56:02 -08:00
Andrew Miner 246dbcafa9 Fix some minor errors in IC2 and TE data files 2015-02-10 17:08:20 -08:00
Andrew Miner 52559e70b6 Update sitemap to avoid redirects 2015-02-09 22:21:05 -08:00
Andrew Miner 7da757bec8 Remove temp. redirect avoiding item detail page 2015-02-09 21:21:41 -08:00
Andrew Miner dc03fd3689 Merge branch 'release-2.0' of github.com-andrewminer:andrewminer/crafting-guide into release-2.0 2015-02-09 21:15:23 -08:00
Andrew Miner 0cea767f47 Fine tune animation timings 2015-02-09 21:15:10 -08:00
Andrew Miner 97659af22f Fix new links to route internally 2015-02-09 21:15:10 -08:00
Andrew Miner 816908f82a Add missing recipe for Advanced Alloy in IC2 2015-02-09 21:15:10 -08:00
Andrew Miner 0a52d16eb1 Improve logging performance by using functions
Improve logging performance by using functions to delay when complex
strings are created until after the current logging level has been
checked to ensure that log statement is actually going to be printed.
There are many places where very complex objects are printed at lower
logging levels which this avoids.
2015-02-09 21:15:10 -08:00
Andrew Miner cf6d6fdbed Add link to crafting plan from item detail #83 2015-02-09 21:15:10 -08:00
Andrew Miner 383bc5a904 Fix crafting algo. to avoid cycles #47
* Adjust recipes in Thermal Expansion to likewise avoid cycles
2015-02-09 21:15:10 -08:00
Andrew Miner e94b5b3d8d Add item declarations for non-craftable MC items
* Update the `convert-nei-dump` script to avoid overwriting an
  `mod-version.cg` file and to only add those items which are missing
2015-02-09 21:15:09 -08:00
Andrew Miner 100fb5834a Allow stack views to link to the items they show 2015-02-09 21:15:09 -08:00
Andrew Miner 618cbd7aea Set page title for item detail pages 2015-02-09 21:15:09 -08:00
Andrew Miner 4a3fd65848 Show all recipes for an item on its detail page 2015-02-09 21:15:09 -08:00
Andrew Miner 46427a70f6 First real version of item detail page
* Split the InventoryTable view/controller out from the existing
  inventory view/controller. This is a simpler component which only
  includes the table itself, and not the scrollbox, panel or header
  used on the crafting page.
* Create the FullRecipe view/controller to represent the expanded
  version of a recipe shown on the item page (as compared to the
  terser version on the crafting page).
* Rename the existing Recipe view/controller to MinimalRecipe to
  avoid confusing the two.
* Refactor the CSS for the Stack view/controller so that it can be
  shared between the Inventory and InventoryTable views.
* Incorporate all these new controllers into the item page and hook
  up the necessary model logic to drive them.
2015-02-09 21:15:09 -08:00