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 04-15-2007, 12:24 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
The Cursor!

So, I searched around the Wiki about functions and vars that the cursor uses... and... I only found something in GS1 (http://wiki.graal.net/index.php/Crea...ev/Old_GScript, are these the same in GS2? Like does those commands works etc..?

Would love to hear if someone knew if there were some new ones too!



Edit
: The link only tells about 'setcursor' but I can't get that to work..
Is there any articles about the cursor?

Would be nice if there was one..
__________________

Last edited by Chompy; 04-15-2007 at 06:21 PM..
Reply With Quote
  #2  
Old 04-16-2007, 03:36 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I think it's something used by Stefan when he compiles the game.

I suppose it could be abused ...
__________________
Reply With Quote
  #3  
Old 04-16-2007, 02:30 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbkbud View Post
I think it's something used by Stefan when he compiles the game.

I suppose it could be abused ...

...? How can 'setcursor' and such be abused?

Well, I heard there was a hideCursor()? Anyone would know if there is?

But some cursor functions/vars would be nice..
__________________
Reply With Quote
  #4  
Old 06-14-2007, 02:50 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
bump?
__________________
Reply With Quote
  #5  
Old 06-14-2007, 10:20 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
God, I've tried setcursor a million times and I could never get it to work, it made me mad. Perhaps Stefan could enlighten us?
__________________

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
  #6  
Old 06-14-2007, 10:35 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
setcursor #;
I believe is what you use. 0-20 or something like that.
setcursor2 image; I think is how you change it to an image, I'm not sure though.
Reply With Quote
  #7  
Old 06-14-2007, 10:38 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 DustyPorViva View Post
setcursor #;
I believe is what you use. 0-20 or something like that.
setcursor2 image; I think is how you change it to an image, I'm not sure though.
Neither worked for me.
__________________

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
  #8  
Old 06-14-2007, 10:41 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
It might have been removed in newer versions(I remember when Graal3/4 or whatever first came out Stefan had a custom cursor for it), so I dunno if they work anymore.

EDIT: setcursor worked for me in the editor, via setcursor #1-25, but setcursor2 works by setcursor2 cursorfile, not image. Such as ones you'll find in your windows cursors directory. Again, not sure if this was removed from newer versions.
Reply With Quote
  #9  
Old 06-14-2007, 11:07 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 DustyPorViva View Post
It might have been removed in newer versions(I remember when Graal3/4 or whatever first came out Stefan had a custom cursor for it), so I dunno if they work anymore.

EDIT: setcursor worked for me in the editor, via setcursor #1-25, but setcursor2 works by setcursor2 cursorfile, not image. Such as ones you'll find in your windows cursors directory. Again, not sure if this was removed from newer versions.
Well, in the same folder the Gui Profiles are in (levels3d/gui/) theres two custom cursor images that I think have been used in some way. It would be awesome for Stefan it possible to use custom cursor images, if it isn't already and we just don't know how.
__________________

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
  #10  
Old 06-14-2007, 11:32 PM
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
Even if it was possible to hide the default cursor so we could make our own using a GUI type script would be great.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #11  
Old 06-15-2007, 12:21 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
setcursor and one of the numbers hides the cursor.
Reply With Quote
  #12  
Old 06-15-2007, 12:22 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
setcursor was usable with Graal v3 but removed in Graal v4 because Stefan either found there not to be enough functionality for it for him to waste time re-adding it to Graal or he just saw it could be abused like someone said.
__________________
Do it with a DON!
Reply With Quote
  #13  
Old 06-15-2007, 12:44 AM
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
I'm wondering whether you need to use cursoroff() first for it to work, however it might only work in Graal3D or OpenGL mode.
__________________
Skyld
Reply With Quote
  #14  
Old 06-15-2007, 12:50 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
Quote:
Originally Posted by Skyld View Post
I'm wondering whether you need to use cursoroff() first for it to work, however it might only work in Graal3D or OpenGL mode.
Never thought of that! Sadly, not many use OpenGL mode so it would probably be not worth it to make your own cursors and/or code them/some in.
__________________
Do it with a DON!
Reply With Quote
  #15  
Old 06-15-2007, 06:06 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Graal is trying to use the default hardware cursor. The scripted cursor (from v3) was lagging too much. In v2 there were scripting functions for replacing the cursor with another hardware cursor, but it was never really used.
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 09:21 PM.


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