FastBurst Posted December 20, 2018 Share Posted December 20, 2018 (edited) This does not need electric to function. Great tool for to light up areas you wish or Street Lights in real time. What this does is allow you to Turn ON/OFF any POI lighting in game in real time without using the world editor. Works on SP and MP and works on Dedicated Servers. I use it all the time to turn on POI Lights in my Dedicated server. NOTE: If you decide to play on other peoples dedicated server, there is no guarantee you will not be banned. I personally have played on a few servers for a few hours with no issues. You must have EAC Disabled. Player uses at their own risk. Highly suggest only playing on your own dedicated server, or on SP. HOW TO USE: 1. Just go up to ANY POI Lighting even POI Lights you place and Press E to Turn ON/OFF 2. Hold E to Enable Editing of the POI Lighting Source itself. Here is the updated Stand Alone Assembly-CSharp.dll that removes the _world.IsEditor() check so you can use the menu in the normal game mode: Alpha 17 B231 Updated Alpha 17 B238 Updated Alpha 17 B240 Updated Alpha 17 B240 SDX COMPATIBLE VERSION A17 B240 Dedicated Server Version A17 B240 Dedicated Server SDX Compatible Version HOW TO INSTALL: Download and replace the original Assembly-CSharp.dll (be sure to create a backup of original first, just in case.) Originally Created by P_E_T_E updated and maintained by myself (because I love it so much) Edited January 1, 2019 by FastBurst (see edit history) 3 Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 (edited) FYI NOTE: This does work on any server you join as well that has EAC disabled. Just an FYI. NOTE: If you decide to play on other peoples dedicated server, there is no guarantee you will not be banned. I personally have played on a few servers for a few hours with no issues. You must have EAC Disabled. Player uses at their own risk. Highly suggest only playing on your own dedicated server, or on SP. Edited January 1, 2019 by FastBurst (see edit history) Link to comment Share on other sites More sharing options...
451443625 Posted December 20, 2018 Share Posted December 20, 2018 (edited) Search BlockLight Look in the window for _world.iseditor () and change it to true Did you modify it that way if (true) if (true) if (true && this.updateLightState(_world, _cIdx, _blockPos, _blockValue, true, false)) this.cmds[0].enabled = (true || this.bRuntimeSwitch); this.cmds[1].enabled = (true && flag); Edited December 20, 2018 by 451443625 (see edit history) Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 Correct - That's what is done is setting the _world.iseditor() to True as a value then compile it back Link to comment Share on other sites More sharing options...
451443625 Posted December 20, 2018 Share Posted December 20, 2018 Can you make something like mod.dll? This makes it compatible with any Assembly-CSharp. DLL 1 Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 Can you make something like mod.dll? This makes it compatible with any Assembly-CSharp. DLL I will have to look into that to see. 1 Link to comment Share on other sites More sharing options...
stallionsden Posted December 20, 2018 Share Posted December 20, 2018 Can you make something like mod.dll? This makes it compatible with any Assembly-CSharp. DLL Then you would need sdx yeh or not anymore Link to comment Share on other sites More sharing options...
451443625 Posted December 20, 2018 Share Posted December 20, 2018 Then you would need sdx yeh or not anymore P_E_T_E 的mod.dll直接放到 7 Days To Die\7DaysToDie_Data\Managed 里就生效了,不需要SDX Link to comment Share on other sites More sharing options...
stallionsden Posted December 20, 2018 Share Posted December 20, 2018 P_E_T_E 的mod.dll直接放到 7 Days To Die\7DaysToDie_Data\Managed 里就生效了,不需要SDX that be awesome if we can do it without having to exchange assemblies Link to comment Share on other sites More sharing options...
451443625 Posted December 20, 2018 Share Posted December 20, 2018 However, P_E_T_E's mode.dll cannot be directly turned on/off any POI lighting in the game in real time without using the world editor, as stated by FastBurst. POI lights can only be created to realize this. The world's own lights cannot be turned on/off in real time Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 However, P_E_T_E's mode.dll cannot be directly turned on/off any POI lighting in the game in real time without using the world editor, as stated by FastBurst. POI lights can only be created to realize this. The world's own lights cannot be turned on/off in real time I haven't had a chance to play around with P_E_T_E's mod.ll do you have link to it so I can see. There may be a way to hook into it. To make it function like the Assembly-CSharp.dll - - - Updated - - - that be awesome if we can do it without having to exchange assemblies As far as SDX or No, if it is done correctly it won't need it. Think about example Alloc's Server Fixes or Bad Company. They all have DLL's that can fire off. So with that in mind in theory we should be able to do the same. - - - Updated - - - It's also crazy to see that it works on the dedicated servers the way it does. I actually wasn't expecting it to work like that if you didn't own the server or an admin of the server. I literally Joined a few Random Servers that had EAC off, even protected by Bots and was still able to walk around and turned lights on. Kinda freaked out a player that saw me LOL Link to comment Share on other sites More sharing options...
StompyNZ Posted December 20, 2018 Share Posted December 20, 2018 If you want to do the lights on dedicated only then an api mod can do it without the dll hack. You just need to use world.setBlockRPC and change the meta1 value to 2 on any light blocks. it does require using a console command rather than the 'E' interface though Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 If you want to do the lights on dedicated only then an api mod can do it without the dll hack. You just need to use world.setBlockRPC and change the meta1 value to 2 on any light blocks. it does require using a console command rather than the 'E' interface though I have done that before in the past and it was very helpful. This was just a quick dirty hack to do it faster in certain areas with just walking up to them. Also I posted on your forum about the issue I found @StompyNZ not sure if its the BC Mod or if its a TFP Issue. Link to comment Share on other sites More sharing options...
CrypticGirl Posted December 20, 2018 Share Posted December 20, 2018 Wow, this is pretty cool! Is it possible to make those lights pick uppable, or craftable? Link to comment Share on other sites More sharing options...
FastBurst Posted December 20, 2018 Author Share Posted December 20, 2018 Wow, this is pretty cool! Is it possible to make those lights pick uppable, or craftable? You have to create a modlet for it. I have that way in the Mod I am working on already. To pick up an item or block just simply add this to the block <property name="CanPickup" value="true"/> To make it craftable just create a recipe for it. Link to comment Share on other sites More sharing options...
FastBurst Posted December 21, 2018 Author Share Posted December 21, 2018 Alpha 17 B238 Updated Newest version and in OP Link to comment Share on other sites More sharing options...
sawes05 Posted December 21, 2018 Share Posted December 21, 2018 B240 version mod please Link to comment Share on other sites More sharing options...
Buggi Posted December 21, 2018 Share Posted December 21, 2018 Use Harmony to edit the assembly in real time, thus eliminating the need for a new version for every update. Link to comment Share on other sites More sharing options...
FastBurst Posted December 21, 2018 Author Share Posted December 21, 2018 Use Harmony to edit the assembly in real time, thus eliminating the need for a new version for every update. Correct but for those that don't know how to do that, they still need the file. I will update in a few. Link to comment Share on other sites More sharing options...
Buggi Posted December 21, 2018 Share Posted December 21, 2018 Just include the harmony dll file and use it in your mod, where you inherit the mod object and make your changes at run-time. Link to comment Share on other sites More sharing options...
FastBurst Posted December 21, 2018 Author Share Posted December 21, 2018 B240 version mod please Updated to B240 in OP Link to comment Share on other sites More sharing options...
dutchplayers Posted December 22, 2018 Share Posted December 22, 2018 Updated to B240 in OP Can we use it in MP? Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 22, 2018 Share Posted December 22, 2018 Quoted from first post: "Works on SP and MP and works on Dedicated Servers." Link to comment Share on other sites More sharing options...
dutchplayers Posted December 22, 2018 Share Posted December 22, 2018 Quoted from first post: "Works on SP and MP and works on Dedicated Servers." Thanks! , but my server won't start when using the latest version (b240). The server stucks at 300mb RAM usage and control panel won't open Link to comment Share on other sites More sharing options...
Quasimiyao Posted December 22, 2018 Share Posted December 22, 2018 Did you put the dll on the server aswell? Only supposed to be on the client. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now