Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Redneckerz

Boris's Lightning Mode plugin compiled for GZDoom Builder

Recommended Posts

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 Builder
2. you have to use the UDMF or Doom in Hexen format
3. your map must have void sectors which can throw shadows
4. set brightness of sector(s)
5. click the Lighting Plugin icon
6. insert a light, right click it to set brightness
7. drag the light for best effect
8. to fix the light (shadow) press the key bound to Do Lighting
9. repeat 6 to 8 for enhanced effect
10. 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?

 

h0FDT0Z.png


yNbXoN9.png


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 by Redneckerz : I geniunely do not like DW's editing system.

Share this post


Link to post

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].

 

Share this post


Link to post

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 by Kappes Buur

Share this post


Link to post
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.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×