Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-10-2006, 03:45 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Setbackpal?

According to the wiki this has been removed.

This was an excellent feature.

Is there any way of doing this in Graal4?



Seteffect can't do what i'm trying to.
Reply With Quote
  #2  
Old 01-10-2006, 03:48 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
I can't even begin to fathom why anyone would want to use setbackpal.

However, I believe it still works. I'm pretty sure saw it used on Delteria a month or two ago.
You can probably obtain the same effect by using a showpoly to cover the whole level, put it on the bottom layer (0), and giving it a light effect.
Reply With Quote
  #3  
Old 01-10-2006, 03:50 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
I think backpals were horrible. They were mostly just used to created 'darker' levels for people that didn't have light effects enabled. It was probably removed since the light effect thing isn't a problem in v4.

What do you need setbackpal for?
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 01-10-2006, 03:52 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
I'm making a day/night script. I've made some pallettes that basically lower the saturation of the tileset progressivley. Then I can shade them however i want using seteffect.

How could I do that with showpoly?
Reply With Quote
  #5  
Old 01-10-2006, 03:54 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
PHP Code:
showpoly(300,{0,0,0,64,64,64,64,0});
with (findimg(300)) {
  
layer 0;
  
red .5;
  
blue .5;
  
green .5;
  
alpha .3;

Just like that.
Reply With Quote
  #6  
Old 01-10-2006, 03:56 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
But I can't lower the saturation of the tileset like that.

That will only let me do the same as seteffect() surley?
Reply With Quote
  #7  
Old 01-10-2006, 03:57 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
I guess. I thought that's what a backpal was.. It just tinted the tileset.
The difference between that and seteffect is that this only effects the tiles and it allows you to use a seteffect on top of it.
Reply With Quote
  #8  
Old 01-10-2006, 04:15 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
but I can't use different base colours. e.g. I cant make the entire tileset greyscale. Only darker,lighter or another colour.
Reply With Quote
  #9  
Old 01-10-2006, 04:21 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Did you try using setbackpal?
Reply With Quote
  #10  
Old 01-10-2006, 04:22 AM
Kronan Kronan is offline
yo
Kronan's Avatar
Join Date: May 2001
Location: Florida, USA
Posts: 682
Kronan is on a distinguished road
Send a message via ICQ to Kronan Send a message via AIM to Kronan Send a message via Yahoo to Kronan
BACKPAL? you better hope Skyld doesn't see this, or he'll eat you for it!
__________________
Reply With Quote
  #11  
Old 01-10-2006, 04:23 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Don't worry, he's asleep. :]
Reply With Quote
  #12  
Old 01-10-2006, 04:32 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Quote:
Originally Posted by Yen
Did you try using setbackpal?

Yeah, it diddn't seem to work.

Gives the following error in RC when saving the npc
error: missing semicolon at line 3: setbackpal c100.png;

Despite this being the script:
//#CLIENTSIDE
if(playerchats && strequals(/test,#c)) {
setbackpal c100.png;
}
Reply With Quote
  #13  
Old 01-10-2006, 04:38 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Well that just sucks.
You could use a new tileset image.
Reply With Quote
  #14  
Old 01-10-2006, 04:44 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Yeah, but my original plan was to have the saturation slowly coming back during dawn.

I had 20 different stages. I can't have 20 different tilesets, each one is a huge image.

I'll have to have a day tileset and a night tileset but i wont be able to have a smooth transition
Reply With Quote
  #15  
Old 01-11-2006, 12:00 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
I was kindof irritated with the deprecation because Classic used a lot of setbackpal in it's old levels. Fortunately, there are ways to get around it with seteffect and seteffect mode, but unfortunately it doesn't exclude any objects in the level.
Reply With Quote
  #16  
Old 01-11-2006, 04:45 PM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Quote:
Originally Posted by jake13jake
...but unfortunately it doesn't exclude any objects in the level.
drawaslight;
Reply With Quote
  #17  
Old 01-11-2006, 06:52 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
I didn't read the thread at all.

Though seeing "setbackpal" makes me gag.
Reply With Quote
  #18  
Old 01-11-2006, 07:51 PM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Ok let me put it this way, if you want to use setbackpal please save the world a whole lot of trouble and find a high... high building *shuts up before he starts spewing profanity*

Anyhow if you want... want to edit the basic colours of your tileset so badly simply recolour your tiles. Don't whine about download time or anything like that becuase you could just put your 100 (in each and every damn colour :P) or so effected/recoloured tilesets in a gupd (graal update packadge) and let people download them on login.

Anyhow I can't see why in gods name someone would like to use such a horrid command such as setbackpal >.>. (You made me use the G word.. and I'm an athiest... damn you =o!)
__________________
Reply With Quote
  #19  
Old 01-11-2006, 09:31 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by haunter
drawaslight;
omg no!! I didn't know that you could do player.drawaslight()!!!
Reply With Quote
  #20  
Old 01-11-2006, 09:48 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
omg no!! I didn't know that you could do player.drawaslight()!!!
Yen said to draw the poly on layer 0, that will not affect players.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #21  
Old 01-11-2006, 11:10 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by ApothiX
Yen said to draw the poly on layer 0, that will not affect players.
I'm so confused... seteffect? or do polys have alpha now? and uhh... does that have mode like seteffect mode? I'm so confused!!
Reply With Quote
  #22  
Old 01-11-2006, 11:18 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Polygons can use alpha now.

PHP Code:
with (findimg(300)) {
  
polygon = {0,00,6464,6464,0};
  
red green blue alpha .5;

Reply With Quote
  #23  
Old 01-13-2006, 12:28 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Yen
Polygons can use alpha now.

PHP Code:
with (findimg(300)) {
  
polygon = {0,00,6464,6464,0};
  
red green blue alpha .5;

Yea, i figured that out when stefan finally fixed updateboard and showpoly on Classic. Apparently my self-scripted tile editor used that.
Reply With Quote
  #24  
Old 01-13-2006, 03:00 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Quote:
Originally Posted by petro1212

Anyhow if you want... want to edit the basic colours of your tileset so badly simply recolour your tiles. Don't whine about download time or anything like that becuase you could just put your 100 (in each and every damn colour :P) or so effected/recoloured tilesets in a gupd (graal update packadge) and let people download them on login.
That's all well and good but it seems like a huge step backwards when there used to be a function which did exactly that using a tiny png.
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 08:20 PM.


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