Redneckerz Posted January 11, 2020 (edited) Note: This is just a rehosting of a compiled build i came across in an earlier DW thread. It is a compiled build of a lighting plugin for GZDoom Builder. Because the compiled build is hosted at Google Drive, it is subject to deletion in the future if the uploader so warrants it. This has the best chance of success in the 32 bit UDMF versions of GZDoomBuilder and GZDoomBuilder-Bugfix. Fortunately, it was still available for download, so i took it and i am now rehosting it as an attachment so it has a permanent record here. I am also putting it up because it might be useful for Ultimate Doom Builder. Do note it has his limitations. Boris posted about this in the past over at ZDoom, see here. So what does it do? It creates sector lighting for maps in GZDoomBuilder. How does it work? Kappes Buur did an excellent write up: ''1. this plugin is for GZDoom Builder2. you have to use the UDMF or Doom in Hexen format3. your map must have void sectors which can throw shadows4. set brightness of sector(s)5. click the Lighting Plugin icon6. insert a light, right click it to set brightness7. drag the light for best effect8. to fix the light (shadow) press the key bound to Do Lighting9. repeat 6 to 8 for enhanced effect10. test and save For example:'' Limitations: According to Aliotroph: ''This has some uses even if it never changes from its current state. A couple things worth mentioning for people who play with it before Boris posts again (because it really is just a prototype: Lights ignore vertices farther than 1024 units away. The number is hardcoded for now. Can make for some weird effects in large spaces. The "light type" dropdown box has no function yet. The light things themselves aren't subject to undo/redo right now. You can undo the changes the lights make to the map. Changing modes reverts the settings on the lights. (eg. You set a light's brightness to 32, light the map and look at it in 3D mode. When you right-click the light again it will be set to 16.) You can select multiple lights to move them, but editing the brightness will only work on one of the selected lights.'' How does it look? Credits: Boris for making this Aliotroph for the compiled build Kappes Buur for the snapshots and explanations that i generously borrowed to aid in this thread Links: Lightning Mode github source, of which the compiled build is derived from.DW Thread where i found this. lighting plugin.zip Edited January 21, 2020 by Redneckerz : I geniunely do not like DW's editing system. 8 Share this post Link to post
Gradius Posted January 21, 2020 (edited) This gives an error when run with the latest version of GZB Bugfix (2.3.0.3107 (3f8da3f)), does this only work with the original GZ Doom Builder branch? Could not load plugin "Lighting.dll", the DLL file could not be read. This file is not supposed to be in the Plugins subdirectory. Exception details: System.BadImageFormatException: Could not load file or assembly 'file:///G:\GZDoom_Builder_Bugfix-r3041-x64\Plugins\Lighting.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. File name: 'file:///G:\GZDoom_Builder_Bugfix-r3041-x64\Plugins\Lighting.dll' at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) at System.Reflection.RuntimeAssembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, Boolean suppressSecurityChecks, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile) at CodeImp.DoomBuilder.Plugins.Plugin..ctor(String filename) WRN: Assembly binding logging is turned OFF. To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1. Note: There is some performance penalty associated with assembly bind failure logging. To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog]. 0 Share this post Link to post
Kappes Buur Posted January 21, 2020 (edited) Unfortunately boris never finished the Lighting plugin. It will only work, to some extent, with GZDB/GZDBBF in the 32 bit UDMF versions. In 32bit UDB it will crash the editor. Edited January 21, 2020 by Kappes Buur 0 Share this post Link to post
Redneckerz Posted January 21, 2020 4 hours ago, Kappes Buur said: Unfortunately boris never finished the Lighting plugin. It will only work, to some extent, with GZDB/GZDBBF in the 32 bit UDMF versions. In 32bit UDB it will crash the editor. How's that for the 64 bit versions, if there are any? Ive edited the thread to reflect that it only works in GZDB/BBF in 32 bit UDMF to some extent. 0 Share this post Link to post