Author Topic: [XP] Dynamic Lights by Fabien  (Read 7688 times)

Offline finalholylight

  • Awakened Visionist
  • **
  • Posts: 77
  • LV: 0
    • View Profile
[XP] Dynamic Lights by Fabien
« on: April 08, 2014, 01:59:38 PM »
Dynamic Lights
Authors: Fabien
Version: 3.0
Type: Custom Lights
Key Term: Custom Environment System

Introduction

I don't own this script, all info in script is French language, I just use Google translate.
Cause of my bad English, please see pictures -,-


Features

  • Manage lights are not just white on black night but the darkness to hunt truly reveal the true colors. This is what we call light in this script: a hole in a layer hiding the map.
  • Fixed lights is easy without script.
  • One moving light is easy without script.
  • By several lights against relative movement with opportunities colision is impossible without a script like this.
  • The purpose of this code is to facilitate multiple lights "simultaneously".

Screenshots
(click to show/hide)


Script

In demo




Demo

https://www.mediafire.com/?4dh836e78tbc7mz



Instructions

Create an event that call script: "ecran_nuit" to initialize then call a parallel script "lum (name , id)" as many times as you want lights, with "name" the file name of the image of light and "id" is id of the event wearing light.

Ex:
Code: [Select]
ecran_nuit(240) or
Code: [Select]
ecran_nuit(240,0,0,0) init the dark, only call once (opacity of the dark, red, green, blue)
then call
Code: [Select]
lum("lampe2",0,255-rand(50))  (image of light, event id, opacity) (event id = 0 means player)
by using this script call, light like a torch.
or
Code: [Select]
lumF("lampe2",0,80) if $game_player.moving?by using this script call, map will be reveal like picture 1


Compatibility

No problems so far!


Credits and Thanks

  • Fabien

« Last Edit: April 08, 2014, 03:48:53 PM by finalholylight »

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #1 on: April 08, 2014, 03:52:33 PM »
Did you get permission of the author to post the script here?
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Offline finalholylight

  • Awakened Visionist
  • **
  • Posts: 77
  • LV: 0
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #2 on: April 08, 2014, 04:27:24 PM »
Hmm, I have this demo 4 years ago, now I don't remember where I download this, I think it's no problem to upload it, and in the introduction of the script, I don't see author mentions anything about rule of posting his script, hmm, I think he will be okay.

Online Heretic86

  • Astral Trancist
  • *****
  • Posts: 740
  • LV: 29
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #3 on: April 08, 2014, 11:50:33 PM »
Note: Start the demo from New Game, not the save game.

The script itself is pulling off some very cool things.  Its extremely impressive.  It may need to be translated better...
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Ranquil

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 9
  • I like turtles
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #4 on: April 12, 2014, 03:51:19 PM »
Regarding the demo:
The guy with the lamp often blocks me from moving, like trapping me into a corner, forcing me to restart the game. Also, if I try to go to the town without the flashlight, the demo will just endlessly show me the message telling me to get the flashlight. The thing is, every time I get the message out of the way, it comes immediately back, so I can't go and get the flashlight.

Regarding the instructions:
Pardon, but I don't understand it at all. This may or may not have something to do with the fact I don't speak English natively. Please don't use Google Translate when publishing something; oftentimes it's just not comprehensible. This definitely needs a better translation.

Regarding the script:
Awesome! C'est magnifique! :3
Quote from: Some guy on Facebook
Life is like a penis. It's short but it feels so long when it gets hard.

Quote from: Steven Winterburn
Before you diagnose yourself with depression or low self-esteem, first make sure that you are not, in fact, just surrounded by assholes.

Online Heretic86

  • Astral Trancist
  • *****
  • Posts: 740
  • LV: 29
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #5 on: April 12, 2014, 11:46:31 PM »
If you happen to speak the same language as the original version of the script was created in, perhaps you'd be interested in assisting in translating the script?  Also, you might be able to get in contact with the original author to get that permission to both translate and distribute on CP.  Sometimes, getting ahold of the original author is challenging, but getting ahold of the original author when we speak different languages is much more difficult.

Agree, the mapping had some issues, getting stuck and what not.  Just hold down CTRL and walk through everyone.

Now, just looking at the way the code itself works, I havent figured any of it out yet, but it looks like it could be made to be much much easier.  And translation can provide a means of doing this with a knowledgable scripter.
Current Scripts:
Heretic's Moving Platforms

Current Demos:
Collection of Art and 100% Compatible Scripts

(Script Demos are all still available in the Collection link above.  I lost some individual demos due to a server crash.)

Offline Ranquil

  • Transcended Spirit
  • ***
  • Posts: 194
  • LV: 9
  • I like turtles
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #6 on: April 13, 2014, 02:19:52 AM »
If you happen to speak the same language as the original version of the script was created in, perhaps you'd be interested in assisting in translating the script?

Sorry, my French skills are very minimal; I last studied - and used - French four years ago and I don't remember pretty much anything about the language anymore. I understood just a bit of the game and I mostly just used Google Translate to get a rough idea on what different things meant. It wasn't very easy though.

Just hold down CTRL and walk through everyone.

@___ò
Why has no one told me this before!?
Quote from: Some guy on Facebook
Life is like a penis. It's short but it feels so long when it gets hard.

Quote from: Steven Winterburn
Before you diagnose yourself with depression or low self-esteem, first make sure that you are not, in fact, just surrounded by assholes.

Offline finalholylight

  • Awakened Visionist
  • **
  • Posts: 77
  • LV: 0
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #7 on: April 13, 2014, 05:54:01 PM »
Okay, finally, I asked author and had his permission of posting his script.

(click to show/hide)

Now, the only thing is translate it better. Cause of my bad English and I don't know French, I can not do that :D. So that please someone do it and post a new topic.

Offline Spaceman McConaughey

  • Legit Poo Poo Man
  • Lexima Warrior
  • *******
  • Posts: 2002
  • LV: 46
  • Gender: Male
  • muh murph
    • View Profile
    • Titties, titties, and more titties!
Re: [XP] Dynamic Lights by Fabien
« Reply #8 on: May 29, 2014, 06:44:36 AM »
Alright, this is confusing as all fuck.

Even looking at the demo, I cannot for the life of me figure it out. :|
How do I mimic the lighting in screenshot #2?

Also, I literally cannot have more than one light source visible at a time.
Need help.

EDIT:
Plenty of anger later, and I figured it out. :|
« Last Edit: May 29, 2014, 07:30:55 AM by Colonel Blinx »

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #9 on: June 25, 2014, 03:17:13 AM »
Okay so I edited this with tutorials to help out those in need that are as confused as I once was!

TUTORIALS BELOW

HERE ARE STEPS TO GET IT WORKING PARTIALLY
(click to show/hide)

HOW TO ILLUMINATE A TILE TYPE AND REPEAT WITHOUT ADDITIONAL SCRIPTING(like in example 2 in demo)
Please use the provided demo here to make this easy for the both of us.


This one really confused me for a bit but I figured it out and man I'm so freaking excited!  :D
(click to show/hide)


« Last Edit: June 25, 2014, 09:38:09 AM by ArcaneAlchemy »
"Wait? Do I look like a waiter?" -Kefka

Offline Sylphe

  • Transcended Spirit
  • ***
  • Posts: 119
  • LV: 3
  • Gender: Male
  • Huunngrryyyy *o*
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #10 on: July 03, 2014, 02:31:28 PM »
wow, so you learned french just for this script o_O
Tu es vraiment fort ! XD anyway  very good explanation I lvl up you
blindly follow his heart can lead to the loss
(click to show/hide)
Sylphe, descendant of Zoldik Family.
Quote from: TedBear
TRY KEEP UP

Offline PhoenixFire

  • Moderator
  • Astral Trancist
  • ***
  • Posts: 918
  • LV: 6
  • Gender: Female
  • ~That's an interesting notion, in it's own way~
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #11 on: July 03, 2014, 02:44:30 PM »
nifty! see, now with this translation and instructions, I might actually use this. I've always wondered why it was so hard to find a radius lighting script...
Next off, how to create a first person shooter using microsoft excel.

<Remember when computers had turbo buttons?

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: [XP] Dynamic Lights by Fabien
« Reply #12 on: July 03, 2014, 03:30:44 PM »
Yeah, I actually added more instructions and completely translated the scripts and the demo. http://forum.chaos-project.com/index.php/topic,14284.msg186222.html#msg186222

I'm just wondering when they'll add it to the database...
"Wait? Do I look like a waiter?" -Kefka