Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-30-2007, 04:33 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
"Light effects" in 2K2's spells

I always assumed that the lights in 2K2's spells were achieved using normal light/particle effects (I'm talking about things like the trail of light behind bullets, not the projectile GFX). However, I recently found that they're (mostly) still displayed even with lights/particles turned off (and thus must be something else or the disabling of lights/particles is being overridden somehow). I was wondering how these effects are achieved if not with lights/particles.
__________________
Reply With Quote
  #2  
Old 09-30-2007, 06:54 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It was a change with the new Graal. Disabling light effects/particles/weather doesn't actually disable it. Only gives a check for if it's disabled. So they only get disabled if the person wrote in the check as well. I posted about this before because hardly anyone scripts in checks, so disabling lights and such doesn't actually help those who need them turned off to get better speed.
Reply With Quote
  #3  
Old 09-30-2007, 07:20 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
what are the commands/functions if they are checked?
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 09-30-2007, 08:11 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
I dunno, something like
if (lighteffectsenabled) {}
You'd have to look them up to see, they're booleans.
Reply With Quote
  #5  
Old 09-30-2007, 09:38 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
new options: lighteffectsenabled, weathereffectsenabled, particleeffectsenabled - those options don't change the engine itself though, they are only a help for scripters so they can enable/disable effects if possible; those variables are also accesible by the old scripting engine
There you go >:]
Reply With Quote
  #6  
Old 09-30-2007, 06:26 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Well, I've been scripting those checks into things on Val Dev.
__________________
Reply With Quote
  #7  
Old 09-30-2007, 06:36 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ya, it's just really annoying when you're on a computer that can't handle that much lighting effect, and even though Graal will run full speed when no lights/particles are being displayed, there's that one pesky smoke effect or such that slows you down.
And you hope to just turn it off but find out that the scripter did put any checks in so it doesn't make a difference. This happens everywhere and it defeats the purpose of the options... especially if someone new to Graal tries to use them and wonders why they don't make a difference.
Reply With Quote
  #8  
Old 10-01-2007, 12:19 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I scripted the weather check for weather on GK. I think people do but you need to remind them because most scripters have fairly decent computers.
__________________
Do it with a DON!
Reply With Quote
  #9  
Old 10-01-2007, 02:14 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ya. That was one thing I always liked about Graal. It was accessible.
Fairly small download, the requirements weren't too high(used to be), a fast internet wasn't really needed.
Reply With Quote
  #10  
Old 10-01-2007, 02:18 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by DustyPorViva View Post
It was a change with the new Graal. Disabling light effects/particles/weather doesn't actually disable it. Only gives a check for if it's disabled. So they only get disabled if the person wrote in the check as well. I posted about this before because hardly anyone scripts in checks, so disabling lights and such doesn't actually help those who need them turned off to get better speed.
Any reason it was done this way rather than (at most) adding an optional parameter for overriding disabling on the light/particle commands?
__________________
Reply With Quote
  #11  
Old 10-01-2007, 03:38 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Googi View Post
Any reason it was done this way rather than (at most) adding an optional parameter for overriding disabling on the light/particle commands?
Well, its possible that some feature/quest/event in the playerworld needs some type of light or particle effect working for it to be displayed correctly, to get the full effect of it, like if having lights or particles disabled gave you some unfair advantage or disadvantage. Though at the moment nothing comes to mind so I can't really be clear on that.

For the weather thing, thats completely scripted so Graal itself wouldn't know how to disable it.
__________________
Reply With Quote
  #12  
Old 10-01-2007, 04:19 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally Posted by Inverness View Post
Well, its possible that some feature/quest/event in the playerworld needs some type of light or particle effect working for it to be displayed correctly, to get the full effect of it, like if having lights or particles disabled gave you some unfair advantage or disadvantage. Though at the moment nothing comes to mind so I can't really be clear on that.
Yeah, but that could be solved with an extra parameter and wouldn't require every server to go and modify any scripts that use lights/particles to make it so that they can be disabled.
__________________
Reply With Quote
  #13  
Old 10-01-2007, 05:03 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
I think I might have a solution, two new variables could be added to TShowImg: forcelight and forceparticles. These would be false by default and it would basically mean you could disable lights or particles in the F3 menu and it would be shut off for all scripts automatically unless forcelight or forceparticles is true in the TShowImg object, since that is what is used for controlling the displaying of both.

Meaning if scripters need a certain effect enabled against the user's wishes they would be to specify it themselves.
__________________
Reply With Quote
  #14  
Old 10-01-2007, 11:29 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Googi View Post
Any reason it was done this way rather than (at most) adding an optional parameter for overriding disabling on the light/particle commands?
Dunno, all I know is I made a post about it and asked nearly the same thing. All I kept getting was because new Graal uses light effects for fonts and similar things. That's all they would say, no comment on why the options couldn't just be hard-coded to ignore the necessary things like fonts, and only apply to script.
Reply With Quote
  #15  
Old 10-01-2007, 03:18 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by Inverness View Post
I think I might have a solution, two new variables could be added to TShowImg: forcelight and forceparticles. These would be false by default and it would basically mean you could disable lights or particles in the F3 menu and it would be shut off for all scripts automatically unless forcelight or forceparticles is true in the TShowImg object, since that is what is used for controlling the displaying of both.

Meaning if scripters need a certain effect enabled against the user's wishes they would be to specify it themselves.
::high five:: That's exactly how it should work. Luckily I have a good computer so for my gameplay it doesn't matter, but I know plenty of people with ****ty computers that could use this.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:51 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.