Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> AutoLight Reborn, Draw lights, shadows, spots and eventlights!!
SojaBird
post May 19 2008, 01:58 PM
Post #1


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




AutoLight Reborn

Version v4.1
Author SojaBird
Release Date
v2.0 > 19-05-08
v3.0 > 21-05-08
v3.1 > 22-05-08
v3.2 > 22-05-08
v3.5 > 11-06-08
v3.7 > 07-08-08
v4.0 Reborn > 18-07-'09
v4.1 Reborn > 30-08-'09


Introduction
Draw lights, shadows, spots and eventlights when using this script!
It'll add more atmosphere to your maps and events.


Features
v1.0 (pre-release)
  • Draw lightmaps and track them by the movement of the player.
v2.0
  • Draw shadowmaps and track them by movement of the player.
v3.0
  • Use light/shadow- or spotmode with personal customization.
v3.1
  • Flicker the spot and improved tracking of the spot (offset bug fixed).
v3.2
  • Smooth and totaly working spotmode.
v3.5
  • Exclude sertain maps that don't need AutoLight-effects;
  • A buch of call-script explanations;
  • Some extra customization options.
v3.7
  • Cleaner code
  • Pictures shall only be drawn if there is a file avalible.
v4.0 Reborn
  • Reborn version!! Build again from scratch;
  • Better handeling of values;
  • EventLight to show lights on events;
  • More awsome features from the old version!!
v4.1 Reborn
  • Zoom function for eventlights added.


To come features
On request.


Script
Attached File  AutoLight.txt ( 18.45K ) Number of downloads: 858



Compatibility
VX only.
All methodes are aliased so perfect compatibility!


Screenshot
Without AutoLight


With AutoLight



DEMO


Video Tutorial on how to use and make lights, shadows and spots for AutoLight!



Installation
Put the script above main.
Change the values to your own wish.
Make pictures of your maps that needs AutoLight's light- and/or shadowmaps.
Make a spot picture or get it from the demo.
Make eventlights or get one from the demo.
Credit me pls.


FAQ
Q: How can I create light- and/or shadowmaps easily?
A:
To create your maps, snap your map (Use Alt+PrintScreen) and put it into Photoshop. Next thing is to resize the picture. Cut off all the unnesasery items from the picture (Use only the WHOLE MAP (inc. the black area)) by drawing a square around the view. Cut the selected area out and create a new composition with the size corrosponding with your map (width=32*X_tiles, height=32*Y_tiles). Paste the cut-out map in this new composition. Now it's up to you where you want your light/shadow. Create the light and/or shadow with the use of the selecting tools. When you're done selecting rightclick in one of the selected area's and choose NewLayer (or feather first). Then rightclick and fill White (also the shadowmaps). Go to save-as and select in the tab fileformat PNG. Set the correct name (Your in the script choosen name+mapID, EG Light1 for map 1) and click save. Go to the script and make sure you have UseLight and/or UseShadow = true so that when you get in to the game a picture is able to be shown when the by you choosen switch is on.



Terms and Conditions
Credit me with site, and the script is free for use in NONCOMERCIAL projects.
If anyone want some changes, please pm me or post it here, I'll track the topic.


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
SojaBird
post May 20 2008, 12:50 AM
Post #2


Level 51
Group Icon

Group: Revolutionary
Posts: 1,573
Type: Scripter
RM Skill: Advanced




Mmm allright this stinks hard...I did make a video-tut but I accedently overwrite the videofile o_O'' Just my luck...

Should a normal demo be allright? Like ingame?
What do you ppl want? Know how to make maps (video) or how to use the script?

Pls comment...


__________________________
Art from the highest shelf?

Scriptology, scripting podcast



HUD's Request Lobby (multiple hud-scripts)


------------------------------------------------------------------

Random Stuff
OMG, it's Hab!!


This is a crazy drawing application! (by me)

How did I learned to script
QUOTE
Hey pim! I'm the Law G14!

For the past couple of months I've been learning RGSS and I've got the basic stuff down such windows, variables, conditional statements, ect. But, I can't see myself making big scripts such as a jumping system or a side view battle system. I was wondering how you learned to script because I really want to know how to script really well.

Thanks in advance.


Hey there,

Well I don't make battle neither though I can still teach you some things :)...
The way I've learned to script is by reading other scripts for the most part.
I've allways been interested in other peoples work but this time I though I had to try to make something myself...and it worked!!
The most importand thing when you go scripting is (at least in my case) that you want to make something to help an other wich can't script.
You also need to feel the competition that's around in the scripting-community.
Cause, I have to say, if you get pushed to get a sertain request done before an other scripter does, you feel POWERFULL!! :P
So that's an other thing...
You also don't need to be afraid to learn from others or helpfiles.
When I write my scripts, I actualy always have the helpfiles open to look things up I don't know or remember.
Then, you must be calm, cause you need to try the script a lot of times.
When I write a script, I test it after almost every changes.
First I set up the major structure.
Like when I make a window-script or part of a script I start with something like this:
CODE
class Window_Name < Window_Base
def initialize(x,y,width,height)
super(x,y,width,height)
refresh
end

def refresh
self.contents.clear
draw_contents
end

def draw_contents
draw_something(with, some, parameters)
end

def update
refresh if @something != @what_it_should_be
end
end
So that's also very important.
Then, the biggest thing I learned scripting from is TRIAL AND ERROR.
That's the most irritating way to learn something, cause it's more ERROR than TRIAL, but it does the trick realy good.

So that's it how I did it.
Now it's up to you.
Do some requests (if I didn't do it allready :P) and learn from them.

Hope that helped you out a little.
If not, keep your eye on the Scriptology-topic (see my sig) where I'll be updating for my scripting(video)tutorials.
Perhaps they're going to be usefull for you one day ;)


Greatzz,
SojaBird.
Go to the top of the page
 
+Quote Post
   

Posts in this topic
- pim321   AutoLight Reborn   May 19 2008, 01:58 PM
- - woratana   Screenshot looks nice. Btw, you may want to prov...   May 19 2008, 03:02 PM
- - woratana   Normal demo will be fine to me.   May 20 2008, 12:57 AM
- - pim321   Allright! Let's do that then shall I. I...   May 20 2008, 01:42 AM
|- - Ilikepie123   QUOTE (pim321 @ May 20 2008, 04:56 AM) Al...   May 20 2008, 02:41 AM
- - pim321   Well I'll post the demo tonight, my time (+1 h...   May 20 2008, 09:05 AM
- - pim321   Allright update to v3.0 with demo included!...   May 21 2008, 09:16 AM
- - woratana   Pretty nice You may want to teach how to make th...   May 21 2008, 10:34 AM
- - pim321   allright I'll make a vid on that   May 21 2008, 03:29 PM
- - Kira   This would be really good for a cave or something ...   May 21 2008, 05:59 PM
- - pim321   yea well it's just awsome for everything it...   May 22 2008, 01:42 AM
- - ERZENGEL   The screenshot looks very nice and the script is v...   May 22 2008, 04:28 AM
- - pim321   thanks...though I'm still improving it...almos...   May 22 2008, 04:58 AM
- - pim321   Oke update to v3.1 AND A vid.tut. on how to make...   May 22 2008, 06:41 AM
- - woratana   Nice video However, in update part for spot. I t...   May 22 2008, 07:39 AM
- - pim321   a nice thanks m8, i didnt know that there was some...   May 22 2008, 08:45 AM
- - pim321   Update to v3.2 Smooth spot now thanks to little ad...   May 22 2008, 09:40 AM
- - SephithoR   Nice script , i will try it ! I hope i can mak...   May 22 2008, 08:24 PM
- - pim321   sure u can, just run the tutorial if yár not sure ...   May 22 2008, 10:18 PM
- - pim321   UPDATE TO v3.5!! Some realy cool new feat...   Jun 11 2008, 07:13 AM
- - Lettuce   ! This is SOOO GOOD! Thank you for such w...   Jun 18 2008, 09:12 AM
- - pim321   @Lettuce Well here ya go. Hope you like it as much...   Jun 18 2008, 03:05 PM
- - pim321   bump I want to work on this again...though what s...   Jun 23 2008, 04:26 PM
- - pim321   Bump any one need some extra's?   Jul 8 2008, 03:12 AM
- - Supergodjesus   I plan on using this. I was fiddling aroun with i...   Jul 8 2008, 07:05 AM
- - pim321   yea cool ill work that out as soon as i can   Jul 8 2008, 04:22 PM
- - davedani   How do I make a light/ Shadow map for big maps. I ...   Jul 17 2008, 10:24 AM
- - pim321   well you could put pieces together in photoshop, i...   Jul 30 2008, 06:33 AM
- - Loki333   This is a great script and the video tutorial help...   Aug 3 2008, 06:55 PM
- - brawler12   I can't use this script because it says I need...   Aug 4 2008, 04:44 PM
- - pim321   To make the script work, you'll have to make y...   Aug 5 2008, 08:07 AM
- - brawler12   I don't understand the tutorial because my CPU...   Aug 5 2008, 10:45 AM
- - pim321   Mmmm in that case; Make sure you have the script ...   Aug 5 2008, 03:01 PM
- - pim321   Update to v3.7 - A more clean code. - Only draw l...   Aug 7 2008, 09:44 AM
- - brawler12   I still can't do it because I don't have t...   Aug 7 2008, 06:38 PM
- - pim321   Well...you don't realy need to use Photoshop, ...   Aug 8 2008, 02:23 AM
- - brawler12   The tool that you use to draw the lights   Aug 8 2008, 05:54 AM
- - pim321   That's just a simple circular selectiontool. I...   Aug 8 2008, 06:33 AM
- - brawler12   I don't have that either... well I don't t...   Aug 8 2008, 08:30 AM
- - Vivi   Hey, I just 'Tweaked' this alittle so that...   Aug 26 2008, 07:45 AM
- - pim321   can you post a picture of your photoshop interface...   Aug 27 2008, 11:57 AM
- - Vivi   yeah, Sorry, I was just looking at the version I...   Aug 27 2008, 02:47 PM
- - pim321   yea thats ok ... if you only use it for yar's...   Aug 28 2008, 12:22 AM
- - Shadonn   It would be possible to make lights and shadows wi...   Aug 30 2008, 08:01 PM
- - pim321   Ya, sure it can. Though, one major problem of the...   Aug 31 2008, 08:19 AM
|- - Benjamin Ficus   it will take me some time to get into it... but si...   Jan 29 2009, 05:41 AM
- - pim321   Your welcome Let's hope it'll PimP your g...   Jan 29 2009, 06:41 AM
- - Tails41347   I think i can se someting wrong here... When you a...   Feb 19 2009, 06:03 PM
- - pim321   Hey Talis, Actualy I haven't worked quite a w...   Feb 19 2009, 11:08 PM
- - Tails41347   Sound great! I'll watch this site till a n...   Feb 20 2009, 08:34 AM
- - Sakura_Martinez   I have a problem whenever I try to download the de...   Mar 1 2009, 08:12 PM
- - pim321   Mmm, fun. When I try to download it I don't ge...   Mar 1 2009, 10:31 PM
- - Sakura_Martinez   Got to download it now. Thanks   Mar 3 2009, 02:50 AM
- - pim321   Welcome, Tell me if you have any suggestions or f...   Mar 3 2009, 04:35 AM
- - Sakura_Martinez   A question. Tested it and made my first light and ...   Mar 3 2009, 05:00 AM
- - pim321   Nope, Just make the maps you wanna use with the c...   Mar 3 2009, 05:29 AM
- - Sakura_Martinez   It gives me an error: Unable to find file Graphics...   Mar 3 2009, 05:43 AM
- - pim321   Heya, Dam! Really? Did ya used the textscript...   Mar 3 2009, 08:26 AM
- - Sakura_Martinez   Oh, I was using the one in the demo. Will try it w...   Mar 3 2009, 06:38 PM
- - pim321   Hey, Perhaps you want to have a look at the video...   Mar 4 2009, 01:14 AM
- - Sakura_Martinez   I'm liking it a lot too, pim321. And also I wa...   Mar 4 2009, 01:34 AM
- - pim321   Heya, Well that's acutaly a realy nice idear ...   Mar 4 2009, 02:48 AM
- - Sakura_Martinez   That would be great, pim321. I'll be sure to w...   Mar 4 2009, 03:35 AM
|- - Benjamin Ficus   QUOTE I just noticed a PROBLEM: I'm using the ...   Mar 12 2009, 08:39 AM
- - pim321   Heya, Nice ya fixed it. Perhaps you were running ...   Mar 12 2009, 02:41 PM
|- - Benjamin Ficus   QUOTE (pim321 @ Mar 12 2009, 11:41 PM) He...   Mar 12 2009, 02:50 PM
- - pim321   So...now it doesn't work anymore? Or does it? ...   Mar 12 2009, 11:24 PM
|- - Benjamin Ficus   QUOTE (pim321 @ Mar 13 2009, 08:24 AM) So...   Mar 13 2009, 12:43 AM
- - pim321   So you still got a problem...Also with the newer v...   Mar 13 2009, 01:03 AM
|- - Benjamin Ficus   QUOTE (pim321 @ Mar 13 2009, 10:03 AM) So...   Mar 13 2009, 02:57 AM
- - pim321   Oke well nice you don't have errors Though wh...   Mar 13 2009, 03:24 AM
- - drebenk   Is there a new version of this script with fixed b...   Mar 24 2009, 02:25 AM
- - pim321   Sorry old pal, but not yet. Hope to fix some soon....   Mar 24 2009, 08:53 AM
- - drebenk   @pim321 OK I'll wait then. I'm asking sinc...   Mar 24 2009, 09:48 AM
- - pim321   Oke that's cool Hope to have some time to wo...   Mar 24 2009, 11:14 AM
- - UltiHaker   I like the light, very shiny. It good for a candle...   Mar 28 2009, 03:31 AM
- - pim321   Well thank you, I apriciate that Damm still need...   Mar 28 2009, 05:22 AM
- - pim321   Update's almost comming!!   Jul 2 2009, 02:27 PM
- - Contium   I really LOVED this script,but im with a problem,m...   Jul 12 2009, 12:24 PM
- - pim321   Hey there, So that picture looks pretty odd. The ...   Jul 12 2009, 02:45 PM
- - Contium   I used the last version of the script,i realize th...   Jul 13 2009, 05:03 AM
- - pim321   Oke cool I'll be releasing a new demo with th...   Jul 13 2009, 08:04 AM
- - pim321   Update to version 4.0 REBORN!! Check the ...   Jul 18 2009, 08:12 AM
- - miget man12   I keep getting an end of archive error when I try ...   Jul 18 2009, 09:04 AM
- - pim321   Mmm could you try again.... It seems to work with ...   Jul 18 2009, 09:35 AM
|- - Speed@   QUOTE (pim321 @ Jul 18 2009, 10:35 AM) Mm...   Jul 18 2009, 10:15 AM
- - miget man12   okay, weird, I tried it multiple times, and it did...   Jul 18 2009, 09:54 AM
- - pim321   Mmm well I think it's just working. When I dow...   Jul 18 2009, 10:26 AM
- - pim321   Oke so sorry for the dubble post but I have to mak...   Jul 18 2009, 02:33 PM
- - FauxMask   Hey SojaBird, gotta say, I love the script! It...   Aug 1 2009, 02:05 PM
- - elfyelf   Bam! Random Color! Bam! Random Color...   Aug 1 2009, 02:23 PM
- - FauxMask   Is there a way to turn a spot light on/off during ...   Aug 1 2009, 03:32 PM
- - pim321   Hey hey, I'm back Oke so let's help some...   Aug 4 2009, 11:28 AM
- - miget man12   Okay, so I've got a little modification that a...   Aug 29 2009, 01:46 PM
- - SojaBird   Thanks miget. I'll be taking this in my next v...   Aug 29 2009, 03:45 PM
- - xeyla   when is the next version due to come out?   Aug 30 2009, 04:16 AM
- - SojaBird   Well... It depends on what functions I need to add...   Aug 30 2009, 07:18 AM
- - exiost   wow thank you... I like this and i need this...   Mar 19 2010, 04:45 PM
- - SojaBird   Thanks and you're most welcome Greatzz, Soja...   Apr 18 2010, 02:03 AM
2 Pages V   1 2 >


Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 08:47 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker