"MrTS_Quicksand (version 1.3)" is the plugin that make problems.
if i use the first update from 1.2.8 , it works, but slowly.
thanks for help
Terrax Lighting system
● ARCHIVED · READ-ONLY
-
-
"MrTS_Quicksand (version 1.3)" is the plugin that make problems.
if i use the first update from 1.2.8 , it works, but slowly.
thanks for help
Both scripts overwrite the same base-code, so that's what creates the problem.
I cannot detect if the quicksand plugin is loaded, so i cannot fix this in the code. If you want to use both scripts together you will have to alter the script yourself.
You will have to look in the lighting script for 'Game_CharacterBase.prototype.updateMove' (line 1739 to 1782) and change that into the code below and make sure the lighting plugin is loaded after the quicksand plugin (put the lighting plugin lower on the list). That's the only way to fix it at this point.
I hope you can figure it out, Terrax
Code:Game_CharacterBase.prototype.updateMove = function() { var evid = this._eventId; // Capture the realX and realY of moving events. if (evid) { var note = $dataMap.events[evid].note; var note_args = note.split(" "); var note_command = note_args.shift().toLowerCase(); if (note_command == "light" || note_command == "fire" || note_command == "flashlight") { //Graphics.printError('test',evid + ' ' + this._realX + ' '+ this._realY); var idfound = false; for (var i = 0; i < move_event_id.length; i++) { if (move_event_id[i] == evid) { idfound = true; move_event_x[i] = this._realX; move_event_y[i] = this._realY; move_event_dir[i] = this._direction; } } if (idfound == false) { move_event_id.push(evid); move_event_x.push(this._realX); move_event_y.push(this._realY); move_event_dir.push(this._direction); } } } var slowdown = this.distancePerFrame() * Math.max(this.maxSlowDown(), (1 - this._sunk * this.slowDown())); if (this._x < this._realX) { this._realX = Math.max(this._realX - slowdown, this._x); } if (this._x > this._realX) { this._realX = Math.min(this._realX + slowdown, this._x); } if (this._y < this._realY) { this._realY = Math.max(this._realY - slowdown, this._y); } if (this._y > this._realY) { this._realY = Math.min(this._realY + slowdown, this._y); } if (!this.isMoving()) { this.refreshBushDepth(); } } -
works fine. you are a god of plugins.
thank you
what if a new update is released from your plugin?
must i change the same text again? -
Yes, i'm afraid so, coders of plugins can put in some code, so other plugins can detect if it has been loaded. For my plugin it's in the first few lines.
var Imported = Imported || {};
Imported.TerraxLighting = true;
If the coder of the quicksand plugin would start his code with something simular, like
var Imported = Imported || {};
Imported.MrTS_Quicksand = true;
i would be able to detect it being loaded and could change the code to do it automaticly. You would have to ask him :) -
Terrax, thanks a lot.
Now I can continue my project :) -
The website has trojan viruses on it... might want to find a more secure domain....
-
I'm still around.. My main job is in agriculture, so the spring is a very very buzy time of the year. I should be able to put some new work and requests in soon when things settle down a bit. Whats the command to shake the screen?
Terrax
Hello is there any other Link I can follow to get your plugin :) the link you had given works but I can not download the plugin D:. My computer keeps blocking the file, I have tried to get around the issue but I still can not download the file download D: do you have an other Link for example a wordpress document or a Text file. Please it would be vary helpful.
Thank you in advanced
Sincerely: Sakurahan -
Hello is there any other Link I can follow to get your plugin :) the link you had given works but I can not download the plugin D:. My computer keeps blocking the file, I have tried to get around the issue but I still can not download the file download D: do you have an other Link for example a wordpress document or a Text file. Please it would be vary helpful.
Thank you in advanced
Sincerely: Sakurahan
I have attached the latest version of the plugin enjoy :)
Keep up the great work Terrax!
View attachment 16-06-28-10-32-53-74848.zip -
I have attached the latest version of the plugin enjoy :)
Keep up the great work Terrax!
View attachment 41757
Thank you So much :D ^_^, I downloaded it and tested it out how do I fix this dark screen I keep getting D: I am using MogHunter Time system Plugin, the plugin comes with screen tints as the clock moves ahead in time. There are switches and Variables the measure how much time has pass. I want the lighting to turn on at Night shift hours and off during the day shift hours Kind of light street lights but when I start the game I just get this Big black screen with only my player light. I have an other event on the Map that is supposed to light up but it dose not D:. Do you know how I can turn off the black screen and just have the orbs of light. Image 1 is the lighting Plugin, Image 1.1 is the tint screen for Dusk using Moghunter time system and Image 1.2 is the Darkest tint for Night.
-
@Sakurahan01 I use the two systems combined. You need to disable Mog's tinting and modify Terrax's to work in sync with mogs timer. It wasn't particularly easy and I don't remember exactly how I did it, it was a while ago.
-
Thank you So much :D ^_^, I downloaded it and tested it out how do I fix this dark screen I keep getting D: I am using MogHunter Time system Plugin, the plugin comes with screen tints as the clock moves ahead in time. There are switches and Variables the measure how much time has pass. I want the lighting to turn on at Night shift hours and off during the day shift hours Kind of light street lights but when I start the game I just get this Big black screen with only my player light. I have an other event on the Map that is supposed to light up but it dose not D:. Do you know how I can turn off the black screen and just have the orbs of light. Image 1 is the lighting Plugin, Image 1.1 is the tint screen for Dusk using Moghunter time system and Image 1.2 is the Darkest tint for Night.
You got it working right? -
Can you change the shape of the light source that isn't attached to a wall? It's a bit too perfectly round for stand alone light posts.
-
Thank you So much :D ^_^, I downloaded it and tested it out how do I fix this dark screen I keep getting D: I am using MogHunter Time system Plugin, the plugin comes with screen tints as the clock moves ahead in time. There are switches and Variables the measure how much time has pass. I want the lighting to turn on at Night shift hours and off during the day shift hours Kind of light street lights but when I start the game I just get this Big black screen with only my player light. I have an other event on the Map that is supposed to light up but it dose not D:. Do you know how I can turn off the black screen and just have the orbs of light. Image 1 is the lighting Plugin, Image 1.1 is the tint screen for Dusk using Moghunter time system and Image 1.2 is the Darkest tint for Night.
I cannot tell you how to do it exactly but i can give some hints.
1) You will have to disable the tint system in the MOG plugin
2) In the Mog plugin you can setup events that happens when the time reaches a certain value
3) Then at certain times call :
Day to Evening -> Plugin command : Tint fade #666666 5
Evening to Night -> Plugin command : Tint fade #111111 5
Night to dawn -> Plugin command : Tint fade #666666 5
Dawn to day -> Plugin command : Tint fade #FFFFFF 5
I hope this helps
Can you change the shape of the light source that isn't attached to a wall? It's a bit too perfectly round for stand alone light posts.
I don't think javascript has an option to draw irregular circles, so that's probably a no. -
I cannot tell you how to do it exactly but i can give some hints.
1) You will have to disable the tint system in the MOG plugin
2) In the Mog plugin you can setup events that happens when the time reaches a certain value
3) Then at certain times call :
Day to Evening -> Plugin command : Tint fade #666666 5
Evening to Night -> Plugin command : Tint fade #111111 5
Night to dawn -> Plugin command : Tint fade #666666 5
Dawn to day -> Plugin command : Tint fade #FFFFFF 5
I hope this helps
I don't think javascript has an option to draw irregular circles, so that's probably a no.
http://jsbin.com/ovuret/722/edit?html,output -
Can you change the shape of the light source that isn't attached to a wall? It's a bit too perfectly round for stand alone light posts.
Ovals can be done, they will still be perfectly shaped ovals.. but if you want i can implement those. -
Hey Terrax,
A week ago or so, we discussed the npcs moving around and the light turning in their direction and you fixed it so it would work that way. Suddenly today my file stopped doing it, and furthermore the same happened with my week old backup that hasn't been modified in that amount of time.
I tried replacing it with your current version and that didn't fix anything.
SOLVED -
It was a me issue, not a you issue. xD -
Uhm hey guys i was wondering if this script worked on your android phones as i tried to make it work on my android devices and still did not work at all.
im using the Intel XDK and i might think thats the problem.
ty in advance. -
@Sakurahan01 I use the two systems combined. You need to disable Mog's tinting and modify Terrax's to work in sync with mogs timer. It wasn't particularly easy and I don't remember exactly how I did it, it was a while ago.
Alright thank you, Do you happen to still have your modified plugins maybe I can use them :) I will thank and credit you for your help. -
You got it working right?
No not yet still trying, I am not sure what I am doing wrong, trying to mod some events around maybe its causing the problem D: but I cant seem to find anything yet. I was told I mite have to tweak around some code in the plugins but I dont know much Java script. -
Hi
I noticed an incompatibility with Orange Custom Events.
With the 1.2.8 version of your script I always get an error when using this command: $gameMap.copyEventFromMapToRegion(35, $gameVariables.value(197), 255, true);
It's a scriptcall used by Orange Custom Events.
Version 1.2.7 is working perfectly.
I have attached the error code and my abnormal big plugin.js.
View attachment plugins.js