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.
woratana
May 19 2008, 03:02 PM
Screenshot looks nice.
Btw, you may want to provide demo, so people will know how to make the light/shadow image.
SojaBird
May 20 2008, 12:50 AM
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...
woratana
May 20 2008, 12:57 AM
Normal demo will be fine to me.
SojaBird
May 20 2008, 01:42 AM
Allright! Let's do that then shall I. I'll update when it's done.
Ilikepie123
May 20 2008, 02:41 AM
QUOTE (pim321 @ May 20 2008, 04:56 AM)
Allright! Let's do that then shall I. I'll update when it's done.
Sweet! This looks like a great script. A VERY great script. Im going to wait for the demo so I dont give your topic noobosis (A.K.A. When someone asks how to do something involving a script at least twice x])
SojaBird
May 20 2008, 09:05 AM
Well I'll post the demo tonight, my time (+1 hour time that is)...Though I'm not that good at demo's (hehe check my other scripts and you'll only find one realy crappy one), but I'll try.
Perhaps I do a video-tut on how to draw the lights in Photoshop as well (some time )
SojaBird
May 21 2008, 09:16 AM
Allright update to v3.0 with demo included!!
woratana
May 21 2008, 10:34 AM
Pretty nice
You may want to teach how to make the light map picture too
SojaBird
May 21 2008, 03:29 PM
allright I'll make a vid on that
Puppet Of Fate
May 21 2008, 05:59 PM
This would be really good for a cave or something like that where you have to avoid holes in the floor.
SojaBird
May 22 2008, 01:42 AM
yea well it's just awsome for everything it's very diverse so ya can do all kind of things with it next version will be awsome as well where I'll ad more and more options avalible for all of u
thanks for comment, keep tracked of the topic if ya like the script since I'll do updating a lot on this since I realy like it myself
ERZENGEL
May 22 2008, 04:28 AM
The screenshot looks very nice and the script is very useful for creating more beautiful maps without using many Parallel Process-Events which control the pics. Good work!
SojaBird
May 22 2008, 04:58 AM
thanks...though I'm still improving it...almost have the video tut done...as well v3.1 though I'm still strugling with the tracking of the spot, it's just not right jet, it's offset for some reason additional, it's also not realy smooth at all
SojaBird
May 22 2008, 06:41 AM
Oke update to v3.1
AND
A vid.tut. on how to make the pics. for AL
woratana
May 22 2008, 07:39 AM
Nice video
However, in update part for spot. I think using $game_player.real_x / screen_x will work smoother than x.
SojaBird
May 22 2008, 08:45 AM
a nice thanks m8, i didnt know that there was some thing as real.x
well thanks that will smooth it a lot
though, what is the screen_x precies?
mmm actualy i cant get it working... grmf
SojaBird
May 22 2008, 09:40 AM
Update to v3.2 Smooth spot now thanks to little advice from wora
SephithoR
May 22 2008, 08:24 PM
Nice script , i will try it ! I hope i can make it looking so nice like you!
SojaBird
May 22 2008, 10:18 PM
sure u can, just run the tutorial if yár not sure if you do it right hope you enjoy
SojaBird
Jun 11 2008, 07:13 AM
UPDATE TO v3.5!!
Some realy cool new features: - Exclude sertain maps that don't need AutoLight-effects. - A buch of call-script explanations. - Some extra customization options.
Lettuce
Jun 18 2008, 09:12 AM
! This is SOOO GOOD!
Thank you for such wonderful script
SojaBird
Jun 18 2008, 03:05 PM
@Lettuce Well here ya go. Hope you like it as much as I do .
If anyone have some suggestions for next version, just post it.
SojaBird
Jun 23 2008, 04:26 PM
bump
I want to work on this again...though what should be added/improved?
SojaBird
Jul 8 2008, 03:12 AM
Bump any one need some extra's?
Supergodjesus
Jul 8 2008, 07:05 AM
I plan on using this. I was fiddling aroun with it and it was kind of a pain to implement, but eventually got it. I know next to nothing about scripting. However, I can tell you what -I- think would make it more user-friendly and easier to implement. What I found annoyingly frustrating was the fact that either you have to have a light and shadow map for every map, or define the map to exclude in the script itself. Normally not a problem, but when you have literally hundreds of maps, some needing the autolight and some not needing it, this became ultra annoying. Is there some way to make it so by default all maps are set to no autolight unless the light/shadow pictures exist? Or at least some way of getting rid of the constant crashes when a light/shadow map is not detected for a map that is not defined in the script to exclude?
SojaBird
Jul 8 2008, 04:22 PM
yea cool ill work that out as soon as i can
davedani
Jul 17 2008, 10:24 AM
How do I make a light/ Shadow map for big maps. I can't use Screen capture to capture the whole map unless I make the view smaller. Would that work ? I'm using a map that's 100 x 100 - 3200 x 3200 pixels.
SojaBird
Jul 30 2008, 06:33 AM
well you could put pieces together in photoshop, if you know the size, though you can also use the autoscaling (or is that from an other script of mine) so you can just make for example just a simple 32*32 map and it will autoscale (if it's in this script, ells i'll put it in it)
so just do it in pieces and bring them togheter at the end
Loki333
Aug 3 2008, 06:55 PM
This is a great script and the video tutorial helped me out tons. The script was plug and play and with the tutorial on making light and shadow maps I didn't have any problems implementing it into my game. You've definately added a special touch to my game
brawler12
Aug 4 2008, 04:44 PM
I can't use this script because it says I need Light1, but the demo didn't have it.
SojaBird
Aug 5 2008, 08:07 AM
To make the script work, you'll have to make your own light- and/or shadowmaps (mode1&3) or spotmap (mode2&3). If the script says you need Light1, you have to make a lightmap for map nr1.
The script isn't plug and play as most scripts are. This script realy need some care, as well graphics that are made by you, for your own maps.
Take a look at the videotutorial on how to use the script, it'll help you fix the error and make the script work for you.
brawler12
Aug 5 2008, 10:45 AM
I don't understand the tutorial because my CPU doesn't have any sound.
SojaBird
Aug 5 2008, 03:01 PM
Mmmm in that case;
Make sure you have the script setup as you like it. To make the light appear, there must be a picture of that light. You can use photoshop or any other picture-editprogram make those (perhaps you'll see how I do it in the tutorial).
Hope this helps. Good luck, keep me up with your progress.
SojaBird
Aug 7 2008, 09:44 AM
Update to v3.7
- A more clean code. - Only draw lights and/or shadows when there is a file avalible.
brawler12
Aug 7 2008, 06:38 PM
I still can't do it because I don't have the right tools for my Photoshop... and I really want to use this script for my game...
SojaBird
Aug 8 2008, 02:23 AM
Well...you don't realy need to use Photoshop, you can use all kinds of picture-programs. It can even be done with paint (though it does look not as good as it could be done with other programs) but it's allways posible.
Wich tools are you missing in Photoshop then?
brawler12
Aug 8 2008, 05:54 AM
The tool that you use to draw the lights
SojaBird
Aug 8 2008, 06:33 AM
That's just a simple circular selectiontool. It should be there as a standard somewhere...Beneath an other rectenqular selectiontool...?
Greatz
brawler12
Aug 8 2008, 08:30 AM
I don't have that either... well I don't think I have that, but definitly not the circle one...
Neku
Aug 26 2008, 07:45 AM
Hey, I just 'Tweaked' this alittle so that instead of using the Exclude Maps Feature you simply put a tag (such as "{L}" ) in the Name of the map that you want The autolight to work on..
Example: "House 1" Would NOT use Autolight but "House 1 {L}" Would...
Well i really just wanted to check if anyone is interested in this 'Tweak' (as I seem to be calling it) and also to make sure Its OK with PIM :\
<(:|x ~Vivi
SojaBird
Aug 27 2008, 11:57 AM
can you post a picture of your photoshop interface?
and @vivi
well that's realy nice...though the script now has the function to only draw a lightmap if there is a picture for it
Neku
Aug 27 2008, 02:47 PM
yeah, Sorry, I was just looking at the version I'm using and trying to make it fit better for me really...
SojaBird
Aug 28 2008, 12:22 AM
yea thats ok ... if you only use it for yar'self
but if ya want to show it to me, that's oke...i'll see if i include it
Shadonn
Aug 30 2008, 08:01 PM
It would be possible to make lights and shadows with gimp wouldn't it?
SojaBird
Aug 31 2008, 08:19 AM
Ya, sure it can.
Though, one major problem of the script is that you need to input the file-format yourself...cause I can't fix that now. Though ya, every program to make pictures is useable with AutoLight (yes, even paint). With better programs though, you'll get better results (gradients are very usefull).
Greatzz, SojaBird.
Benjamin Ficus
Jan 29 2009, 05:41 AM
it will take me some time to get into it... but since i only needed the spot feature, i used the demo script... Thanks man!!!
SojaBird
Jan 29 2009, 06:41 AM
Your welcome Let's hope it'll PimP your game up
Greatzz, SojaBird.
Tails41347
Feb 19 2009, 06:03 PM
I think i can se someting wrong here... When you are use mode 3... then in a bigger map with light and shadows will follow you. I have the light and shadow swithed with 1 and spot with 2. I did just started swith 1. But anyway so is it like the spot is on too, but it is off in the swith window. And in the bigger map with just spot on and light and shadow off... then is the spot gone. It's working better with just mode 1 and 2. Mode 1 will shadow and light show with swith 1. And mode 2 will the spot show with swith 2.
Light and Shadow's name is what it is with a map ID. Spot is just named as Spot. (I did tested it with number but it did not work) And spot is 1088*832.
It's like mode 3 is someting wrong... I hope you can fix it... cuz i want mode 3(Both) for my game. I have a big mapp, and it is a city. There is i big map in a house and there will i have my spot. And the city is dark cuz it is night.
PS: My english sux, i know.
SojaBird
Feb 19 2009, 11:08 PM
Hey Talis,
Actualy I haven't worked quite a while on AutoLight (wich is too bad), but now, since you're laying your finger on the weak spot, I've a reason to go back in it again Thanks for that.
Mode 3 is actualy not realy the one I've did much reasearch on. I think I'll be looking at the problems that occure to you today You see, AutoLight is like one of my favorite scripts, the one I adore the most of the ones I've made. So it must be perfect!!
To solve your problem for now, I though I had included a funcion to switch between the mode's (if I'm not mistaking). So that you can use mode 2 when you want a spot (in the house of yours for example), and switch to mode 1 when you get on the streets again (if that's what you want).
Oke so that's all...Hope to see you back soon when the update wich some new features is released
Greatzz, SojaBird.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.