not for me lol, for my players
1.x, completely turning off the light for creatures or groups this means players or staff is done through editing the source, now if you read the entire thread you would of realized this.not for me lol, for my players
ambient light
im reading over it just confused if it will do what i want, im trying to get the ambient light to not work anymore, i still want light and day system and still want light from items like torches etc.1.x, completely turning off the light for creatures or groups this means players or staff is done through editing the source, now if you read the entire thread you would of realized this.
You have to start somewhere when trying to find where or how things work, even if you are not sure what you are looking at... Do I know what I am looking at?I'll try to be more specific. I want to keep day and night system. I also want to keep light from torches and other items. I want to disable ambient light or make it always 0%. I want players light without day light and without item light to be 0%.
You have to start somewhere when trying to find where or how things work, even if you are not sure what you are looking at... Do I know what I am looking at?
Not all the time, but I try, I make an attempt to understand, this thread i linked to made such an attempt to find a solution to your issue...
Is it what you are trying to accomplish? maybe it is, maybe it isn't, but like i said it is a start.
Everyone here in support is looking for the definitive, an absolute answer to things they refuse to even make an attempt at understanding, developing anything requires some initiative on your own part and as someone in another thread suggested its almost like you guys need to be spoon fed everything.
If you consider this statement a negative attitude or response, it isn't, its a fact of life, those that strive to do better are rewarded while those that don't aren't, this is the very definition of "You get what you put into it".
Well maybe you are right, maybe I shouldn't of posted.. but doing some back tracking from the initial link I found the function which controls the player's light level, I was merely trying to give this person the benefit of the doubt & a starting point.C'mon Codex, you saw him talking about "light" and linked to a random thread talking about "light". Would be better not posting at all, not that you should do the whole job, but you missguided him while not even trying to understand what he asked for.
@OP
I don't see this being server side related at all. "Ambient light" is handled exclusively by the client since ever, they couldn't fight people editing tibia.pic in the old days and just gave up implementing the "ambient light" graphic settings thing. No idea how would you do it through client edit, but you won't find anything to help you in TFS.
What he wants is not that, you can set player to complete darkness through server, he will set ambient light in the client to 100% and keep seeing the map.Well maybe you are right, maybe I shouldn't of posted.. but doing some back tracking from the initial link I found the function which controls the player's light level, I was merely trying to give this person the benefit of the doubt & a starting point.
I know, the server can override the client, as the light factor is a flag so to speak in the client, if that flag can generate light then why can it not generate darkness, I like to think anything is possibleWhat he wants is not that, you can set player to complete darkness through server, he will set ambient light in the client to 100% and keep seeing the map.
Also even with all my knowledge and know how (being able to completely run and edit a server in almost every way possible), im still a novice compared to you as evident of your codes you release and help people and me with. This isnt going to change unless I spend years "getting on your level" hahaI know, the server can override the client, as the light factor is a flag so to speak in the client, if that flag can generate light then why can it not generate darkness, I like to think anything is possible
You will still be sending tiles data to the client. What you are assuming being possible would need a totally rewrite code to totally change how otserv/client handle things. As I said, try to set players to complete darkness (light factor 0 or whatever else it is), than go to your client, set ambient light to 100% and see what happens.I know, the server can override the client, as the light factor is a flag so to speak in the client, if that flag can generate light then why can it not generate darkness, I like to think anything is possible
void sendWorldLight(const LightInfo& lightInfo) {
if (client) {
client->sendWorldLight(lightInfo);
}
}