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 03-25-2006, 02:01 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
Particle effects on a gmap

I have a particle effect which is played in a gani.
The gani is placed at a random point around the player.

If I show the gani on a gmap, however, it shows in the top-left corner (first level) or the gmap. I have no idea why. Do you?

As I tend to screw around when things don't work, I've tried a lot of things. It won't work.
Reply With Quote
  #2  
Old 03-25-2006, 02:33 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
Particle effects in ganis on gmaps haven't acted up on me.

I am guessing that it has something to do with either:
x = foo;
y = bar;
__________________
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
  #3  
Old 03-25-2006, 02:37 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've played with the x/y variables in both the NPC weapon part and the gani part. :/

I've placed particles on the gmap before, it's just this one. z-z
Reply With Quote
  #4  
Old 03-25-2006, 02:44 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Do:

'x%64' instead of 'x'
'y%64' instead of 'y'
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #5  
Old 03-25-2006, 02:45 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
That was what I tried at first
Reply With Quote
  #6  
Old 03-25-2006, 03:52 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 xXziroXx
Do:

'x%64' instead of 'x'
'y%64' instead of 'y'
wouldn't that force it to the top left?
Reply With Quote
  #7  
Old 03-25-2006, 06:39 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Have you tried something like: x+(64*mapx(level.name)) or whatever?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #8  
Old 03-25-2006, 09:20 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
Quote:
Originally Posted by ApothiX
Have you tried something like: x+(64*mapx(level.name)) or whatever?
Now, there's a good idea.
Reply With Quote
  #9  
Old 03-26-2006, 06:09 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 ApothiX
Have you tried something like: x+(64*mapx(level.name)) or whatever?
1. Coordinates belonging to players, npcs, etc. on a gmap are accurate to the gmap.
2. mapx(level.name) is the worst I've seen from you. First of all, it's player.level. Second of all, mapx takes two parameters. Third of all, mapx is not for finding a level's coordinate on a map, but instead to convert screen coordinates to level coordinates.
3. There are functions for getting a level's coordinates on a map, but you shouldn't need it. Try outputting x,y vars in player.chat or npc.chat to verify #1.
Reply With Quote
  #10  
Old 03-26-2006, 09:12 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
2. mapx(level.name) is the worst I've seen from you.
Stil not worse than a nickname system taking up 60% of the CPU.

Quote:
Originally Posted by jake13jake
First of all, it's player.level.
Actually, it wouldn't be player.level. From what it sounds like he is using showani() or similiar to do it. If anything: it would be this.level.name (this.level also works, but only because .name is the default member, or whatever.) And you do not have to put this. to reference variables like that. (unless you are in a with() statement)

Quote:
Originally Posted by jake13jake
Second of all, mapx takes two parameters. Third of all, mapx is not for finding a level's coordinate on a map, but instead to convert screen coordinates to level coordinates.
I said 'or whatever', I know there is a function that gets the x position on the gmap with given the level name, but I couldn't remember what it was called off the top of my head.

Quote:
Originally Posted by jake13jake
3. There are functions for getting a level's coordinates on a map, but you shouldn't need it. Try outputting x,y vars in player.chat or npc.chat to verify #1.
See above.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #11  
Old 03-26-2006, 09:57 PM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by ApothiX
I said 'or whatever', I know there is a function that gets the x position on the gmap with given the level name, but I couldn't remember what it was called off the top of my head.
Perhaps you ment "getmapx", which takes 1 parameter.
Reply With Quote
  #12  
Old 03-27-2006, 02:59 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 ApothiX
Stil not worse than a nickname system taking up 60% of the CPU.
And that's called overexhaggerating. Stop being an ass.
getmapx is the correct function, I believe. I'm not sure though.
Reply With Quote
  #13  
Old 03-28-2006, 12:56 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
And that's called overexhaggerating.
Not exaggerating. It was clocking 50-60% in showscriptstats.

Quote:
Originally Posted by jake13jake
Stop being an ass.
But you can pick apart my post and try and tell me I'm wrong, when I'm not?

Quote:
Originally Posted by jake13jake
getmapx is the correct function, I believe. I'm not sure though.
So you can post if you think that's the function, but I can't?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #14  
Old 03-28-2006, 07:58 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
Not exaggerating. It was clocking 50-60% in showscriptstats.
nah, it was clocking 30% for me.
I still love you you know!
Reply With Quote
  #15  
Old 03-28-2006, 10:07 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
A nickname system taking up 30% >_> wow
Reply With Quote
  #16  
Old 03-29-2006, 12:57 AM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
mapx(), mapy()
Reply With Quote
  #17  
Old 03-29-2006, 04:06 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Eh, no its getmapx(levelname) getmapy(levelname)
Reply With Quote
  #18  
Old 03-30-2006, 03:59 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
nah, it was clocking 30% for me.
So that automatically means it wasn't taking 60% for me? I forgot your computer ruled them all.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #19  
Old 03-30-2006, 07:37 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
So that automatically means it wasn't taking 60% for me? I forgot your computer ruled them all.
A laptop on wireless rules them all? I wouldn't suspect that.
Reply With Quote
  #20  
Old 03-30-2006, 10:15 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
A laptop on wireless rules them all? I wouldn't suspect that.
Your connection has nothing to do with CPU usage, but alright.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #21  
Old 04-01-2006, 07:37 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
Your connection has nothing to do with CPU usage, but alright.
No, the wireless takes up a ton of CPU because of the university. Anyone could tell when I'm on wireless as opposed to a direct cable link. Anyways, this isn't the thread topic so let's stop arguing.
Reply With Quote
  #22  
Old 04-01-2006, 07:52 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by jake13jake
No, the wireless takes up a ton of CPU because of the university. Anyone could tell when I'm on wireless as opposed to a direct cable link. Anyways, this isn't the thread topic so let's stop arguing.
My wireless connection does not affect my CPU usage..?
__________________
Skyld
Reply With Quote
  #23  
Old 04-02-2006, 09:01 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake
No, the wireless takes up a ton of CPU because of the university. Anyone could tell when I'm on wireless as opposed to a direct cable link. Anyways, this isn't the thread topic so let's stop arguing.
I think you are confusing CPU Usage with something else. It doesn't matter how fast/slow your internet connection is, or where it is situated, it will not have any affect on your CPU.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #24  
Old 04-25-2006, 08:44 PM
Sage_Shadowbane Sage_Shadowbane is offline
Graal Developer
Sage_Shadowbane's Avatar
Join Date: Mar 2004
Posts: 585
Sage_Shadowbane will become famous soon enough
Ive found that on a gmap with the particle engine, if you use attachtoplayer = true; it tends to stick with the player (If you dont already have that in the script).
Reply With Quote
  #25  
Old 04-25-2006, 10:01 PM
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
Instead basing the light effects off of levels xy base it off the players xy. I had the same problem while back and that fixed it.
__________________
Deep into the Darkness peering...
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:41 PM.


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