Commit Graph

  • 412c7701c3 Modified image tracing not to depend on band format but to have the image convert whatever its internal format is into ARGB for our inspection. It's arguably a smidge slower (though we eliminated the multiple method calls per pixel to determine whether it is non-transparent), but will work with any source and destination image format. Michael Bayne 2003-01-24 22:54:08 +00:00
  • 347a070e6a Not to freak out if we get to a tileset image that we can't trim because its hosed. Instead write an error image/tileset to the bundle and keep on truckin'. Michael Bayne 2003-01-24 21:51:26 +00:00
  • 0a6dfcd703 Added createErrorImage(); modified createTracedImage() and createImageMask() not to freak out if the source image is not RGBA, Java automatically unpacks pixels appropriately for 8-bit colormapped images, so there's no need to be so picky. In createTracedImage() we were converting the image to a screen optimized image anyway and thus the source image format had absolutely no bearing on what we did with the image later. Michael Bayne 2003-01-24 21:48:14 +00:00
  • 14331982f8 Return our image path if we have no name. Michael Bayne 2003-01-24 21:42:15 +00:00
  • 7ff7ddc740 Not to freak out if we've lost our connection before we get around to sending the bootstrap. Michael Bayne 2003-01-24 21:36:04 +00:00
  • 75f06dfd78 Removed inadvertently checked in debug logging. Michael Bayne 2003-01-24 19:34:25 +00:00
  • 18d0266055 Throw a sensible error message if we choke trimming a tileset. Michael Bayne 2003-01-24 19:32:56 +00:00
  • cc680cbd17 Give the native keyboard library a chance to initialize itself and determine whether or not all is well. Use that opportunity in the Linux keyboard library to determine whether or not we can open a connection to the X server, and if not, disable the library rather than throwing a RuntimeException the first time we are called and generally sticking a fork in the whole program. Michael Bayne 2003-01-23 19:00:44 +00:00
  • ccb5eb4b92 Added provisions for registering a speak observer that will be notified of all speak and system speak messages. Walter Korman 2003-01-22 23:14:44 +00:00
  • 14081c752b Added string translations for the various chat modes. Walter Korman 2003-01-22 23:14:11 +00:00
  • 9bbe02c4cb Remove objects from the local object table when we remove their last subscriber so that we don't hand them out as happily proxied objects to subsequent subscribers that might come along before we receive our unsub ack. We do still maintain non-acked objects in a dead table so that we know when to warn about undispatchable events and when to ignore them. Michael Bayne 2003-01-22 02:02:04 +00:00
  • c21d757bfe Added support for float. Michael Bayne 2003-01-22 01:42:51 +00:00
  • 88f0555af7 Added support for float[]. Michael Bayne 2003-01-22 01:40:32 +00:00
  • 4ff68a037e Log the number of bands when tracing fails. Michael Bayne 2003-01-21 22:11:04 +00:00
  • 27197cae5b Log when receivers are added and cleared because we're seeing receiver registration funny business. Michael Bayne 2003-01-21 22:10:41 +00:00
  • c1638b9bf3 Brevify log message. Michael Bayne 2003-01-21 22:10:18 +00:00
  • 8bafb6fd32 Specifically ACK unsubscribe requests so that we don't see a bunch of warning messages saying that we couldn't deliver events on the client that come in after all client-side subscribers have been removed. Michael Bayne 2003-01-21 22:02:37 +00:00
  • ce85e2a157 Adjust should be static. Michael Bayne 2003-01-21 05:27:48 +00:00
  • 14780e6332 No need to go through handleSystemMessage(). It didn't do much. Michael Bayne 2003-01-21 01:08:36 +00:00
  • 74ebb4a21e Added toString(). Michael Bayne 2003-01-21 01:08:10 +00:00
  • b246384262 Enable toggling of network event logging. Michael Bayne 2003-01-21 00:17:16 +00:00
  • b94763bdbf A repository for preferences for the presents package. Michael Bayne 2003-01-21 00:16:36 +00:00
  • 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. Michael Bayne 2003-01-20 20:28:51 +00:00
  • 8515b2dd04 Use a RuntimeAdjust for the test sound directory pref. Ray Greenwell 2003-01-20 20:07:05 +00:00
  • 6a8bee2821 Activate tracking on the image LRU cache; lower the cache size to 1 meg. Michael Bayne 2003-01-20 19:38:37 +00:00
  • 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. Michael Bayne 2003-01-20 19:37:58 +00:00
  • e78c7fad81 Reinstated vessel tileset colorization hack. Michael Bayne 2003-01-18 23:09:37 +00:00
  • 48d04dc3ba Enhanced error reporting. Michael Bayne 2003-01-18 22:59:17 +00:00
  • 49e3e42b13 Enhanced error reporting. Michael Bayne 2003-01-18 22:52:38 +00:00
  • 01bd0d33e8 Added ZoneUtil.toString(qualifiedZoneId). Michael Bayne 2003-01-18 22:45:16 +00:00
  • bce70d5b43 Added isManaged(). Michael Bayne 2003-01-18 22:25:30 +00:00
  • 39cb6ad866 Report our class name in toString(). Michael Bayne 2003-01-18 22:25:21 +00:00
  • 1d67781bc5 Not to dispatch if we have no observers. Michael Bayne 2003-01-18 20:45:23 +00:00
  • fe2364e01a One step back, two steps forward. Fixed the media manager so that once again, things added on the current tick are ticked and painted on that tick, but cleaned things up so that we don't choke if things are added or removed from funny places. Michael Bayne 2003-01-18 20:14:03 +00:00
  • 99d66fe5c6 Report the type and id separately when reporting a zone move. Michael Bayne 2003-01-18 20:12:49 +00:00
  • 5414507e3a Don't allow the resource bundles to attempt to access their resource jar files until they are known to be safely updated and ready to go. Michael Bayne 2003-01-18 19:56:45 +00:00
  • bddca90c0d Try to cope if we were unable to load our tileset image and ended up with a placeholder image. Michael Bayne 2003-01-18 03:53:31 +00:00
  • 18c11e90a7 Sprites now dispatch their events immediately rather than queueing them up to be dispatched after tick() has been called on all sprites. Michael Bayne 2003-01-18 03:15:14 +00:00
  • 4d764ad42a We now copy abstract media objects to a separate array when ticking them so that we can ensure that only tick()ed media will be painted and so that we aren't affected by additions and removals that happen during tick(). Michael Bayne 2003-01-18 03:14:29 +00:00
  • 51017ec302 Have to tick() a sprite before painting it since we're using it outside its normal media panel happy place. Michael Bayne 2003-01-18 03:13:32 +00:00
  • 1d4d5be6ed We now automatically handle lazy action sequence compositing. Michael Bayne 2003-01-18 03:13:08 +00:00
  • 35f0954744 Restore the Pathable to its original position when we're removed. Ray Greenwell 2003-01-17 23:19:20 +00:00
  • 0dcb5d67d1 Added Path.wasRemoved(), call it in the Sprite code. Michael Bayne 2003-01-17 22:57:08 +00:00
  • dfe837a9d8 Jumped the gun. I suppose we want to allow hot swapping of paths and once the old path is replaced, it will go away quietly and cleanly. Michael Bayne 2003-01-17 03:50:10 +00:00
  • 08cfd0a9f7 Defensive programming rides again. Michael Bayne 2003-01-17 03:44:20 +00:00
  • f2c3211534 Added support for obtaining estimated memory usage of a tile; modified tile cache to be based on memory usage rather than tile count. Michael Bayne 2003-01-17 02:30:50 +00:00
  • 6f7ad6a09f Added support for obtaining the estimated memory usage of a Mirage. Michael Bayne 2003-01-17 02:30:21 +00:00
  • 34144c86de Configured our LRU image cache to flush images when we reach a certain number of bytes used rather than a certain image count. Michael Bayne 2003-01-17 02:29:32 +00:00
  • 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. Michael Bayne 2003-01-17 02:28:32 +00:00
  • 2640baf727 Made getEstimatedMemoryUsage() do more of the right thing. Michael Bayne 2003-01-17 02:27:02 +00:00
  • a5c348a775 Added support for specifying the delay in milliseconds before a pressed key begins to auto-repeat. Walter Korman 2003-01-17 01:33:34 +00:00
  • 91c173b6e5 added commented out method that caused me trouble, but we may want it or a varient someday. Ray Greenwell 2003-01-17 00:41:49 +00:00
  • 07b9dc3177 Changed sound manager not to use LockableLRUHashMap because intermixing locked items and non-locked items in the same cache will screw up an otherwise healthy cache by forcing it to flush otherwise frequently used items because there's no room left by locked items. Michael Bayne 2003-01-17 00:21:10 +00:00
  • 0ad5e615b7 Provide means by which resource resolution and download observers can be notified on the AWT thread rather than the download thread. Michael Bayne 2003-01-16 22:50:29 +00:00
  • 0e26fdcf18 BufferedImage has versions of getWidth() and getHeight() that don't need an ImageObserver. Ray Greenwell 2003-01-16 21:38:11 +00:00
  • fbb5fb841a Don't post the key press command when the repeat interval fires if the key has been released. Walter Korman 2003-01-16 21:18:02 +00:00
  • 2fc3e90773 Fixed typo. Walter Korman 2003-01-15 21:44:52 +00:00
  • 1032c513e6 We love to do it with logic! Michael Bayne 2003-01-15 21:43:33 +00:00
  • 26378d816f Fixed bug wherein we no longer considered off-screen coordinates to be traversable. Walter Korman 2003-01-15 21:27:41 +00:00
  • ec2664a5f3 Removed obsolete debug rendering configuration parameters. Walter Korman 2003-01-15 21:14:28 +00:00
  • 2314fa2059 Obsolete. Walter Korman 2003-01-15 21:13:01 +00:00
  • 90480544e1 Revised various iso scene view debug rendering options to be accessible via the runtime adjustments. Walter Korman 2003-01-15 21:12:45 +00:00
  • cb9daa9f41 More serialization fun! Happy happy joy joy! Michael Bayne 2003-01-15 09:28:43 +00:00
  • 8c831a0f9f Oh how I love to fiddle with the serialVersionUID. Michael Bayne 2003-01-15 09:11:37 +00:00
  • bafffbd6fd A repository for client side preferences for the miso package. Michael Bayne 2003-01-15 07:41:31 +00:00
  • e4ed924095 Added runtime adjustment to toggle debug rendering that highlights covered and non-traversable tiles. Walter Korman 2003-01-15 04:25:45 +00:00
  • c98f45e3a0 Let's get those nots in the right places. Michael Bayne 2003-01-15 02:50:36 +00:00
  • 0558830cff Had the beans above the frank. Michael Bayne 2003-01-15 02:48:45 +00:00
  • bd943707f3 Add debug toggles for running blank and disabling image preparation. Michael Bayne 2003-01-15 02:45:37 +00:00
  • 6ab0215ea3 Created a prefs repository for the cast stuff; use a runtime adjustment to obtain our cache size. Michael Bayne 2003-01-15 02:36:59 +00:00
  • 01a3630493 Use the adjustment directly rather than going through the prefs. Michael Bayne 2003-01-15 02:36:18 +00:00
  • 43bc29afd8 Static variables go above static constants. Michael Bayne 2003-01-15 02:31:50 +00:00
  • c9dc85cd0d Added a variety of test listeners for the frame so that we can observe events the frame receives, and a flag to toggle whether to add the listeners. Make sure to dispose of the frame graphics context if it becomes invalid. Removed code to prevent adding a frame participant more than once since the observer list now handles that for us. Walter Korman 2003-01-15 02:21:07 +00:00
  • 17298d5710 Revised to use image manager to create blank image. Walter Korman 2003-01-15 02:17:52 +00:00
  • 65af7a36e4 A preferences repository for narya.media preferences. Michael Bayne 2003-01-15 00:47:29 +00:00
  • 60a60d49ec Use runtime adjustments for our image and tile cache size. Michael Bayne 2003-01-15 00:47:09 +00:00
  • 4ba1fe57c3 Modified so that it will work if re-inited with a new Pathable. Ray Greenwell 2003-01-14 22:37:38 +00:00
  • a2867539bc Log interesting system information on server startup; logging at start of init() also provides immediate feedback re: the server starting up and a timestamp in the log against which subsequent action timeliness may be weighed. I suspect mdb will decide this is better off residing in the Yohoho-specific server and outputting to something like the server state audit log, but I like it here and so I've forged ahead. If this does get the axe, I still claim that logging "Server starting up..." as the first business in init() is useful and desirable. Walter Korman 2003-01-14 22:36:58 +00:00
  • 9587014664 A Path used to bobble a sprite... ..she's starting to shimmy! ..she's starting to shake! Ray Greenwell 2003-01-14 04:40:45 +00:00
  • 6c7b0b3836 Create our image through the image manager. Michael Bayne 2003-01-14 04:18:25 +00:00
  • f26cfb322d Temporary hack to make all images translucent since that works around strange slow rendering problems we see when we allow mixed BITMASK and TRANSLUCENT images to be rendered. Michael Bayne 2003-01-14 04:05:56 +00:00
  • e38c4aaf80 Allow tilesets to be loaded in the background. Michael Bayne 2003-01-14 02:52:04 +00:00
  • e1f4b19e37 Commented out debug logging. Michael Bayne 2003-01-14 02:51:40 +00:00
  • 5720be31a5 Have to pass in our friendly neighborhood image manager. Michael Bayne 2003-01-14 02:50:54 +00:00
  • 1512fdfa1f Begone ImageUtil.createImage(), all images are created through the image manager. Michael Bayne 2003-01-14 02:50:34 +00:00
  • 3c58a1ac26 Use the appropriate transparency when creating our prepared image. Michael Bayne 2003-01-14 00:59:55 +00:00
  • 88cc8303fa Update cached resource files when appropriate. Michael Bayne 2003-01-14 00:58:59 +00:00
  • 0a5104a70c Allow specifying the rate at which individual key presses are to be repeated. Walter Korman 2003-01-14 00:53:38 +00:00
  • 4e796ad5b1 Go back to having BundleUtil return null rather than throwing FNF. Michael Bayne 2003-01-14 00:36:14 +00:00
  • 5a51f58bdd Go ahead and support primitive mirage loading so that the editor test tile loader will work. Michael Bayne 2003-01-14 00:23:19 +00:00
  • a90b9a5bd1 Let's have those decoys back and remove the debug logging. Michael Bayne 2003-01-13 23:56:28 +00:00
  • ed847b964d Provide the appropriate transparency when requested. Michael Bayne 2003-01-13 23:56:01 +00:00
  • 98c2dd45db Deal with fucking stupid ass close() behavior from ImageInputStreamImpl. Michael Bayne 2003-01-13 23:55:05 +00:00
  • 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(). Michael Bayne 2003-01-13 23:54:19 +00:00
  • 0ae21770d0 Don't draw outside the lines. Michael Bayne 2003-01-13 23:53:34 +00:00
  • a34a0eb1a5 Use bitmask transparency for composited character sprites. Michael Bayne 2003-01-13 23:53:04 +00:00
  • a2e4c8816f Notes. Michael Bayne 2003-01-13 22:58:27 +00:00
  • 7f706aa063 Updates to reflect new media architecture. Michael Bayne 2003-01-13 22:57:46 +00:00
  • 988cd16528 Add view width and height info. Michael Bayne 2003-01-13 22:55:47 +00:00
  • 340bba9956 Add general components. Michael Bayne 2003-01-13 22:55:28 +00:00