As of Feb. 11th, i have released an improved version of Dynamic Lights that should yield you a lot more FPS, particularly with Optifine installed. I can't even remember the last time i had 100+ FPS with a handheld torchlight.
Other videos
Spoiler
Dynamic Lights has been ported to mcpatcher and thus will keep working for new versions of Minecraft without me needing to update it (thats the plan anyway). Enjoy!
This modification makes 'shining' items (default: Torch, Glowstone, Glowdust, Lit Pumpkin, Redstone, Lava Bucket, powered Minecart) illuminate everything around them if
1) the player has them equipped (in hand/armor)
2) they are dropped on the ground
3) another player has them equipped in Multiplayer
On top of that, burning Entities (Creatures, Items) shine light.
You may add any Item ID you wish as shiny item, via the settings file. Also supports armor items!
You may also configure whether an item still shines if in water, and how long it shines once you hold or drop it.
Toggle button ingame:
The key is "L". You can turn all dynamic Lights on/off with it.
There is no limit to the number of lights you can create, note however they are fairly FPS-costly, and the mod will attempt to reduce lighting render updates frequency if you overdo it.
I recommend using Optifine for replacing Notch's funky render code with slightly less funky rendering code. Optifine should maintain full Dynamic Lights compatibility unless i break it.
This is a continuation/wraparound of the great mod Handheld Torchlights made by cryect, and credit for the light calculation class and performance optimization (such as the 1.4 lag fix) is entirely his.
The mod works in Multiplayer [ unless it doesn't ], yet is clientside, it cannot lag servers. Note however 'dropped' light sources will not necessarily prevent Mobs from Spawning, and neither will your handheld light.
Instructions mcpatcher-version:
Spoiler
1) Locate your .minecraft folder. On Windows, it's at %APPDATA%/.minecraft
2) Unzip the downloaded archive into that folder
3) Run the latest mcpatcher, select Dynamic Lights from the List, click 'patch'
3b) For Optifine install Optifine first, then select Dynamic Lights Optifine from the list and patch. Install tutorial with pictures in case you can't follow the written instructions.
Some kind souls even made video tutorials ... not necessarily following my instructions. HUEHUEHUE
Spoiler
Instructions non-mcpatcher-versions:
Spoiler
1) Locate your minecraft.jar file. On Windows, it's in %APPDATA%/.minecraft/bin
2) Create a backup of minecraft.jar
3) Open minecraft.jar in an archive editor (WinRar/7-Zip/etc) 4) Delete the META-INF folder.
5) Copy everything your find in the zip's "compiled..." folder into your JAR, replacing files and folders
6) Copy the settings file into your /.minecraft folder, edit it if you please
7) Run Minecraft and test!
Problem fixes:
Spoiler
4) Delete the META-INF folder. 4) Delete the META-INF folder. 4) Delete the META-INF folder.
Troubleshooting
If you're having problems, download this (windows only) and run it to see the error. mcpatcher has a 'test minecraft' button that does just that. If you post a problem that's related to an error without an error report, it will be ignored.
Apply the non-mcpatch version BEFORE you use any patching program like mcpatcher.
If you use other mods, and a non mcpatcher version, make sure they dont use the same .class files. If they do, you must stop using one or the other, or ask for a merged file. (See below)
On Merged classes/mods and sourcecode:
mcpatcher removes the need for merged files.
Includes a "diff only" source, so other modders can merge this easily into their own.
To other modders:
Spoiler
I provide full sources, just look around in them as you please.
I have also updated Dynamic Lights with functions specific for foreign PlayerTorch objects.
The functions are in PlayerTorch.class as follows:
public void FlagTorchAsCustom()
{
IsCustomTorch = true;
}
public void UnFlagTorchAsCustom()
{
IsCustomTorch = false;
}
Once you have executed PlayerTorch.FlagTorchAsCustom() on a custom PlayerTorch you created (do this immediatly!) the automatic "dead entity" pruner will not remove it anymore. On the other hand, that means you will have to keep track of your object yourself and execute PlayerTorch.UnFlagTorchAsCustom() once it is no longer needed, so the cleanup loop will dispose of it.
Sorry to be a pain in the ass mate, but it's not working for some reason still.
Attached is my error report screenshot. As a side note, I'm running this version clean, ie, - Modloader, More Block ID's and Optimine only, and your mod of course.
Seriously, I never use mods. Never. (I enjoy browsing mods to look for cheaters to alarm my admin about, however that's about it) But this one.. WOW! *tests*
Sadly, I can not get it to work. Basically it gets stuck on, "Done Loading" (the bar never finishes)
Procedures I took;
Redownloaded .jar from Mojang. (No Mod-Loader, no nothing.)
Deleted Meta-INf File
Pasted the downloaded contents into the jar
Ran minecraft
Common sense is no longer common. Take for granted that every one you meet is an idiot; Every now and then you will be surprised.
this looks nice. not downloaded yet, but i've used your update of cryects handheld torch mod. will be downlaoding this and using it very soon. though can anyone say if there will be problems with a 256x pack patched with mcpatcher?
Having the same problems. I have no other mods on, and I can still run the game fine, but when I try to even equip a torch, the game crashes (without even giving me the error report). I'd REALLY like to use this mod, so if you could figure this out, that would be awesome!
can i just say that installation instructions slightly better than the current ones should be used so that the newbies who aren't akin to installing mods can make sure they've done everything right. (basically i mean the extra folders - as if you dont need the merged files, don't bother)
Would you kindly post the steps you took to make it work?
Specifically, are you using any texture packs/mods besides this one, and if so, what versions?
Thanks :]
I just went through the instructions in the first post. I didn't need any of the 'merged' .class files. I am using this texture pack, and the following mods (in the order that I installed them):
Having the same problems. I have no other mods on, and I can still run the game fine, but when I try to even equip a torch, the game crashes (without even giving me the error report). I'd REALLY like to use this mod, so if you could figure this out, that would be awesome!
I figured it out, you failed at following the instructions. A good bet would be step 4.
Quote
Procedures I took;
Redownloaded .jar from Mojang. (No Mod-Loader, no nothing.)
Deleted Meta-INf File
Pasted the downloaded contents into the jar
Ran minecraft
I'm not aware of any Mac specific problems. Be assured the files i provide were tested ... see if you can get a debug log or something.
Public service announcement to improve forum culture: Dumb questions require dumb answers.