Closed Elgh-github closed 4 years ago
Well, after looking at files from the mod, i found this in the file: CLLamp.java
If i put that in the config for one of the lamps, i think it would just give me errors, since eln wouldn't know what to do with that. Maybe the build would even fail, anyway, is that the right way to add color to light.
First off, what is ELN? And what does "lock's textures don't show up correctly" mean? Screenshots are always helpful.
Currently the API for setting light color is disabled, since I'm still working on it. Especially for super bright lights I'm not sure how to best handle that. Also refer to https://github.com/DarkShadow44/CptsModdingLight/issues/30 and https://github.com/DarkShadow44/CptsModdingLight/issues/2. I'll probably add a JSON into this mod to apply colors to lamps of other mods. Then it's easy for everyone to add their own colored lights, and I could add sane defaults for all mods that have custom lamps.
Oh sorry, ELN is Electrical age. For what the textures are like, it's just some gray-ish color. I cannot provide a screenshot today, but if you need it, i'll get you one tomorrow. You can find the problem in the original mod compatability list. Lock's is a typo, it was meant to say block's. Again, sorry for the unclear and kinda bad post. I can wait for the JSON method of adding color. It's easier for everyone.
Here's the screenshot. If you look at the hotbar, you can see how they should actually look like. This is only with the latest version of light overhaul and electrical age. No other mods.
Mind testing with 2.1.2, once it's approved by curse? The hand held blocks should work then, the placed blocks probably not.
Interestingly enough, for me the placed blocks are invisible. Is this too the case for you with 2.1.2?
I downloaded and installed 2.1.2. After loading up the world from the previous screenshot, handheld items do work. The blocks i placed before, looked the same. I placed some new ones too to test it.
Made a new world, placed some blocks. Some of them are invisible, but it kinda depends on which way I look at them. The only difference between these images is, that it is viewed from a different angle.
Also, some of the invisible one's in the middle picture flash in and out of existence, even when i'm not moving. Pretty weird.
Thanks for testing, will take a look at it soon.
No problem, happy to help. Good work on the mod. 👍
Update 2.1.4 is released, could you retest once it's approved on curse? The blocks should now render properly.
FWIW, if you're curious, the problem was that the mod uses immediate rendering. When it tries to set the textures, my shaders don't notice and just draw... something. Solved the issue by rerouting all texture-setting through my mod.
Yeah, i'll re-test in the morning. It's really late now where i live.
Ok, everything that i had time to test seems to work fine now. Thanks. I'll continue testing after school ends.
After further testing, i have yet to find problems. I'll close this issue now. Keep up the good work.
Hi! I'm currently developing my own version of ELN, with edits, new blocks, balance changes etc. Is it known why eln's block's textures don't show up correctly? I myself, don't really know how to code, more of just ctrl+c & edit. I was hoping i could make the different types of lights (incandescent, fluorescent, led) slightly different colors, like they are in real life. Also, i want to make the HPS (high pressure sodium) streetlamps, you know, the yellow, orange-ish ones. Is there something like setLightColor() or something like that in the colored light mod, that i can use to set it in the lamps config? Also, you don't have to if you can't/don't want to do it, but if you know what is wrong, can you please try and fix compatibility with eln. Thank you in advance!