Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Night Vision Revised

Author
Message
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 17th Aug 2008 05:36 Edited at: 17th Aug 2008 06:05
It's Done. I rewrote the script, and it now allows for battery life, which regenerates. I put legal info right in the script, to avoid confusion. F to turn it on, f1-f4 to change mode. You can set the mode when it is on or off, like having a slider switch to choose the mode. This script is my baby, I spent at least on hour on it, please do not claim it as your own.



I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
360236
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 17th Aug 2008 05:40
Nice Job
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 17th Aug 2008 05:45
Thanks, it's nice to have positive feedback. Dont get me wrong, negative feedback is nice too, because it tells me how to better my work, but right now a good job feels extra nice. Oh, by the way, I realize the script is VERY unorganized, but I don't feel like organizing it, because it took me an hour of trial error and revisions. This is my longest script yet, and it's good to be done with it.

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
360236
16
Years of Service
User Offline
Joined: 8th Jul 2008
Location:
Posted: 17th Aug 2008 05:50
Ye I get what you mean. I think you should Organize it when you are bored. It is very boring when you just do it. But this is a very cool script.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 17th Aug 2008 06:03 Edited at: 17th Aug 2008 06:10
Ah yes, I've just been testing it some more, the initial tests went fine, but there seems to be a bug allowing unlimited battery life, but I dont quite get it...

-edit-

on the plus side, I did squish a different bug involving nothing happening when you push "f" without choosing a mode

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 17th Aug 2008 14:59
very nice meteorite it reminds me of my looping alarm script(took an hour to do and had more than 30 states

I know not what WWIII will be fought but I do know that WWIV will be fought with sticks and stones-Albert Einstein
MadChicken Games
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 17th Aug 2008 15:41
Now maybe Ive miss read somthing but were do I put the script to make it work could you write some instructions for it please

Very good tho and what do you mean by changing modes?

Thanks to all FPSC forumers and the staff from The Game Creators for making the software!
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 17th Aug 2008 21:00
Nice script. I like it, but why make en entire new thread?

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 17th Aug 2008 23:38
The other thread kinda got a little... off topic :p

Apply the script to a dynamic light, f to turn on, f1-f4 to pick the mode

f1-low power
f2-med power
f3-high power
f4-red eye

I still need to fix this script

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 18th Aug 2008 00:54
Do you think that you could change the key locations. I know that it would beeasy (just change the scancodes) but that is a far reach.

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 18th Aug 2008 01:12
would hjkl be fine?

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
MadChicken Games
16
Years of Service
User Offline
Joined: 27th Jun 2008
Location:
Posted: 18th Aug 2008 01:23
cool then just put the light as green nice

Thanks to all FPSC forumers and the staff from The Game Creators for making the software!
Hybrid
17
Years of Service
User Offline
Joined: 21st Nov 2007
Location: In the p-block, group 7.
Posted: 19th Aug 2008 17:43
Whatever suits your game, but I like aving my hands always on W,A,S,D,

meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 19th Aug 2008 21:51
I dunno, there being four dif modes, ittle be hard to select four keys to map them to and have each key be easily memorizable

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 20th Aug 2008 06:33
Why not do as I did in my version of the script and have a single key alternate between modes and another key turn them off?


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 20th Aug 2008 22:28
because what if you are on red eye, and you want high power, that would take 3 keystrokes, or with my method it takes 1

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 21st Aug 2008 03:11
Then you'll have to decide between either less keystrokes or less keys to map.

I personally prefer less keys to map. But that's just me.


The one and only,


Whosoever says, "Don't sweat the small stuff," is obviously not a programmer.
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 21st Aug 2008 16:28
well I already spent an hour rewriting this script, I dont feel like spending another one. I still have to squish this last bug

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.
Gunn3r
18
Years of Service
User Offline
Joined: 12th Jun 2006
Location: Portland, OR
Posted: 27th Aug 2008 03:50
I have to agree with Ply on this one... Why not just make it one key that cycles through all of the modes, and then shuts off?

Gunn3r Games
meteorite
18
Years of Service
User Offline
Joined: 19th Nov 2006
Location: The Capital Wasteland
Posted: 27th Aug 2008 18:42
Gah, oh well, I need scripting practice. I'll try to do a mass rewrite sometime.

I love Jenkins forever :p
There is nothing to fear except fear itself... and FPSC bugs.

Login to post a reply

Server time is: 2024-11-24 14:04:57
Your offset time is: 2024-11-24 14:04:57