Michael Bayne
afabea71ad
Big fat Bernie javadoc cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3310 542714f4-19e9-0310-aa3c-eee0fc999fb1
2005-01-24 23:08:21 +00:00
Michael Bayne
a70efc3ffb
NoLongerAnySuchNoSuchTileException. Instead we just log a warning and
...
return a tile with an error image so that the caller doesn't freak out and
we achieve maximal "continue to work as much as possible."
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3177 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-28 17:49:02 +00:00
Michael Bayne
dcea064ecb
Allow the BundledComponentRepository to be configured to wipe out its
...
bundle cache if it fails to locate the data for a character action. Also
updated wipeBundle() signature.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3147 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-10-18 21:39:18 +00:00
Michael Bayne
1f8c4578b7
LGPLed the library. Hello world.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3098 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-08-27 02:12:55 +00:00
Michael Bayne
1da753e14d
Brought things up to date with the latest Jakarta Commons world order.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3058 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-13 16:34:49 +00:00
Michael Bayne
0be671cd09
We aught to be usin' this here too.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3044 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-03 03:41:21 +00:00
Michael Bayne
e021264d52
If we encounter an error with a bundle while initializing the bundled
...
component repository, instruct the bundle to delete itself so that we will
redownload it next time the application is initialized.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3043 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-07-03 03:25:48 +00:00
Michael Bayne
61d46f2768
Import cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2968 542714f4-19e9-0310-aa3c-eee0fc999fb1
2004-02-25 14:39:34 +00:00
Michael Bayne
42b84f894f
Made setActionSequence() more robust.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2731 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-28 04:06:38 +00:00
Michael Bayne
5c34de0283
Cache tilesets loaded out of component bundles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2691 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-02 00:01:17 +00:00
Michael Bayne
4862311e28
Not to NPE if we get back no resource bundles. This would be a
...
catastrophic fuckola, but we can wait until later to freak out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2690 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-07-01 21:56:10 +00:00
Ray Greenwell
3fb9a4272d
Maximally compress jar files that we create.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2661 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-06-17 23:29:33 +00:00
Ray Greenwell
e44f7c243a
Close streams immediately after using them.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2575 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-14 21:34:01 +00:00
Michael Bayne
a26d42549f
Enhanced error logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:43:51 +00:00
Michael Bayne
57c805d929
Component bundles are all fast.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:35:28 +00:00
Michael Bayne
b281725f29
Characters must be oriented with a valid direction code.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2324 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 20:53:16 +00:00
Michael Bayne
6c59201b5c
Try to freak out less if we can't get our action frames.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2280 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-02-14 21:24:13 +00:00
Michael Bayne
205f2dad79
We can't use setActionSequence(_action) to force our frames to be reloaded
...
because it's smart about that now. So we break out the reloading where
necessary.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2198 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-20 20:28:51 +00:00
Michael Bayne
8a43bd0e23
Restructured action cache to cache composited action frames for a
...
particular orientation; additionally, all frames for a particular
orientation are generated immediately which is not much overhead once the
source tileset images are available and is an arguably better approach for
everything except walking where you might change orientations without
actually using all of the frames in a particular orientations animation
sequence; lowered action cache size to 1 meg now that it actually reflects
reality.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2195 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-20 19:37:58 +00:00
Michael Bayne
1d4d5be6ed
We now automatically handle lazy action sequence compositing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2180 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-18 03:13:08 +00:00
Michael Bayne
380762962b
Cast manager now caches based on memory usage of the cached action frame
...
images, except that this is all fucked because the action frames get
generated on the fly which means that we'd need to update the LRU cache
with info on our new size which would hugely complicated things, so
instead we're going to rework the whole business in the future to cache
individually composited images rather than the whole goddamned action
frame kit and kaboodle.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2172 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-17 02:28:32 +00:00
Michael Bayne
6ab0215ea3
Created a prefs repository for the cast stuff; use a runtime adjustment to
...
obtain our cache size.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2151 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-15 02:36:59 +00:00
Michael Bayne
4e796ad5b1
Go back to having BundleUtil return null rather than throwing FNF.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2132 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-14 00:36:14 +00:00
Michael Bayne
d88a358f39
We need to composite our action frames because it's possible that during
...
our tick we'll do something that invalidates our existing frames and we
need to composite the new ones in paint().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2127 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:54:19 +00:00
Michael Bayne
a34a0eb1a5
Use bitmask transparency for composited character sprites.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2125 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 23:53:04 +00:00
Michael Bayne
5c055d21a6
Revamped to support new media architecture. Added tunability to in-memory
...
action cache.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2118 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-13 22:53:04 +00:00
Michael Bayne
1ce6951cb6
Repackaged a few things in media: sounds stuff went into media.sound and
...
image stuff went into media.image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2100 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-08 04:09:03 +00:00
Michael Bayne
ab915c9633
Close our input stream when we're done with it.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2099 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-07 07:55:58 +00:00
Michael Bayne
6bde1765d1
Don't rebuild our component bundles if they're not out of date.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2097 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-01-07 00:59:21 +00:00
Michael Bayne
a8fc75ca27
Freak out in an orderly and informative manner rather than NPEing if we go
...
to composite a set of action frames and one of the character components
has no individual action frames for the requested action.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2090 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-23 20:33:19 +00:00
Michael Bayne
2fe2311e06
We override serialVersionUID in ComponentClass so we may as well do it in
...
PriorityOverride as well.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2074 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-19 21:44:12 +00:00
Michael Bayne
6b273dbf0a
Finished up custom render order support.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2070 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-16 03:08:39 +00:00
Walter Korman
acaf39b070
Estimate memory usage in bytes rather than pixel area, assuming an int per
...
pixel for now.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2034 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-07 02:04:32 +00:00
Walter Korman
ea545bcb66
Log the size of the cache along with its efficiency.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2033 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-07 01:10:25 +00:00
Michael Bayne
1558a6ec57
Throttle our action cache performance reports to once every 30 seconds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2030 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-07 00:49:36 +00:00
Walter Korman
6552b5bd8b
Include the timestamp associated with sprite events in the event.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2020 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-04 02:45:09 +00:00
Michael Bayne
b7b3e02260
Beginnings of support for render order overrides. I'll get back to working
...
on this some day.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1969 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-20 02:21:10 +00:00
Michael Bayne
7f71748537
Added support for "decorations" which are painted in addition to the
...
character image when painting a character sprite.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1961 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-11-19 00:23:46 +00:00
Walter Korman
5d7123caab
Deal gracefully with having no component classes or actions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1817 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-18 23:47:27 +00:00
Ray Greenwell
c69bfc2ca3
use our LRU cache, report stats in debug.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1815 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-18 01:32:23 +00:00
Ray Greenwell
be2bc4205b
Anally removed Comparator.equals() implementations that overrode
...
Object.equals() with equivalent functionality.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1799 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-15 21:01:39 +00:00
Michael Bayne
6fe29a85af
Allow colorizations to be modified in a character descriptor.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1785 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-10-07 23:58:29 +00:00
Michael Bayne
59c522aae5
Updated deprecated references to project.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1759 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-27 19:02:15 +00:00
Michael Bayne
3ed25c9bce
Sort the damned component map prior to writing it out so that additions
...
are easy to see in a CVS diff.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1755 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-26 02:05:59 +00:00
Michael Bayne
82cd152a6f
Modified map file serialization to store things in text so that we can
...
easily see what the mappings are and properly diff mappings that are
checked into CVS.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1739 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-23 18:53:01 +00:00
Michael Bayne
7f64ab9007
Report Java serialization leg-not-feely business.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1700 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 21:05:35 +00:00
Michael Bayne
380fa50610
Moved MultiFrameImage and friends from media.sprite into media.util
...
because they'll be used for both sprites and animations.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1692 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-17 19:11:13 +00:00
Michael Bayne
84cc48b2a0
Report the bundle we're generating (still not excellent progress
...
reporting, but better than none at all).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1674 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-12 21:11:16 +00:00
Michael Bayne
442e9b26bd
Not to freak out completely if we encounter an error trimming a tileset
...
image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1671 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-09-11 19:31:40 +00:00
Michael Bayne
11d84452bb
Whoops. Need the right modifiers.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1651 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-08-19 22:58:15 +00:00