Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2002, 11:10 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Pausing the player with Graalscript!

I think it would be useful if a command was added that literally pauses the player as if he or she pushed "p". That way I and others can make custom message displays; using freezeplayer doesn't protect the player from attacks of any kind.
__________________
Reply With Quote
  #2  
Old 08-11-2002, 11:21 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
lol, use disablepause
then script your own pause system

and use disabledefmovement =)
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 08-11-2002, 11:36 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by screen_name
lol, use disablepause
then script your own pause system

and use disabledefmovement =)
You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.
__________________
Reply With Quote
  #4  
Old 08-11-2002, 11:53 AM
Cybnext Cybnext is offline
Registered User
Join Date: Jun 2002
Posts: 100
Cybnext is on a distinguished road
Quote:
Originally posted by G_yoshi


You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.
Do the damage and such serverside and check for 'playerpaused'.
Reply With Quote
  #5  
Old 08-11-2002, 11:55 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
use keypressed, strequals(#p(1),p)) and have a var keep track of the pause/unpaused and do what you want to the player while the var is true or somethin
Reply With Quote
  #6  
Old 08-11-2002, 10:01 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Like Cybnext said, you just need to script your own damage system.
__________________
Reply With Quote
  #7  
Old 08-11-2002, 10:37 PM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Quote:
Originally posted by Kaimetsu
Like Cybnext said, you just need to script your own damage system.
Having to rescript a damage system just for the purpose of pausing a player is lame.

I have an idea....that should be in a new topic...
hhmmm.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #8  
Old 08-11-2002, 10:45 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by mikepg


Having to rescript a damage system just for the purpose of pausing a player is lame.

I have an idea....that should be in a new topic...
hhmmm.
You don't need to; you could always use the built-in pause. But if you want to customise your server and suchlike then you need to learn to script.
__________________
Reply With Quote
  #9  
Old 08-11-2002, 11:27 PM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


You don't need to; you could always use the built-in pause. But if you want to customise your server and suchlike then you need to learn to script.
actually, I just want something like 'pauseplayer' I already have somewhat of a custom damage system...the only problem is, getting around the engine's built-in animation checking. Every time the player swings their sword, the engine checks for that animation and then does whatever it needs to after that. Other than that, I already have it sending out triggeraction because I do a few things when 'S' is pushed
__________________
Reply With Quote
  #10  
Old 08-12-2002, 12:06 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by G_yoshi


actually, I just want something like 'pauseplayer' I already have somewhat of a custom damage system...the only problem is, getting around the engine's built-in animation checking. Every time the player swings their sword, the engine checks for that animation and then does whatever it needs to after that. Other than that, I already have it sending out triggeraction because I do a few things when 'S' is pushed
There must be some way to get around that. Use a different gani for sword striking if necessary.
__________________
Reply With Quote
  #11  
Old 08-12-2002, 11:56 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


There must be some way to get around that. Use a different gani for sword striking if necessary.
nada...doing replaceani sword,<newgani> doesn't change anything. Graal still reads it as sword
__________________
Reply With Quote
  #12  
Old 08-12-2002, 01:31 PM
Cybnext Cybnext is offline
Registered User
Join Date: Jun 2002
Posts: 100
Cybnext is on a distinguished road
Quote:
Originally posted by G_yoshi


nada...doing replaceani sword,<newgani> doesn't change anything. Graal still reads it as sword
Then rescript the swinging of the sword.
Reply With Quote
  #13  
Old 08-12-2002, 01:45 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by G_yoshi


You missed entirely what I said didn't you? I already knew about disablepause, etc. I want a command that will pause the player as if they pushed "p". I know how to lock the player, most people that can script NPCs do To actually make them invincible is another thing and doing playerhearts=playerfullhearts or whatever doesn't do what I want...they still get hurt and move.
o, lol, i just figured that you wasn't using regular damage system

lol,
__________________
[signature]insert here[/signature]
Reply With Quote
  #14  
Old 08-12-2002, 08:22 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Cybnext


Then rescript the swinging of the sword.
Indeed. Aren't you even using disabledefmovement, Yoshi?
__________________
Reply With Quote
  #15  
Old 08-12-2002, 08:32 PM
SingleChance SingleChance is offline
Kill Pirates
Join Date: Apr 2002
Location: Canada
Posts: 1,296
SingleChance is on a distinguished road
Talking


G...
Reply With Quote
  #16  
Old 08-13-2002, 12:29 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
I the only one who sees it as a tragic waste that the only way we can do what we need to is to add a whole new layer of player-scripted code on top of Stefan's original code? I mean, in order to make a truly good world, you have to script custom movement, custom damage, custom inventory, custom map, custom baddies, custom arrows....if you want something to work right, you have to replace it yourself. Seems wasteful.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #17  
Old 08-13-2002, 12:47 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Tyhm
I the only one who sees it as a tragic waste that the only way we can do what we need to is to add a whole new layer of player-scripted code on top of Stefan's original code? I mean, in order to make a truly good world, you have to script custom movement, custom damage, custom inventory, custom map, custom baddies, custom arrows....if you want something to work right, you have to replace it yourself. Seems wasteful.
Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.
__________________
Reply With Quote
  #18  
Old 08-13-2002, 02:15 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


Indeed. Aren't you even using disabledefmovement, Yoshi?
Heh, no I don't need or want to do that. While yes, I do have custom player graphics and animation, I don't see or feel the need to create custom player movement controls. I already have a basic replacement for Graal's default message windows. I suppose any that are in areas where I will allow weapons to be used won't lock the player until the message is finished.

It shouldn't be too hard to spot...right there in the bottom-right corner
Attached Thumbnails
Click image for larger version

Name:	graal.png
Views:	130
Size:	208.9 KB
ID:	19627  
__________________
Reply With Quote
  #19  
Old 08-13-2002, 02:16 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.
I second that!
__________________
Reply With Quote
  #20  
Old 08-13-2002, 05:27 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by G_yoshi


Heh, no I don't need or want to do that. While yes, I do have custom player graphics and animation, I don't see or feel the need to create custom player movement controls. I already have a basic replacement for Graal's default message windows. I suppose any that are in areas where I will allow weapons to be used won't lock the player until the message is finished.

It shouldn't be too hard to spot...right there in the bottom-right corner
The box is very nice. It reminds me of FF7.

But really, you should think about rescripting movement. It's essential if you wanna customise your world to any great degree.
__________________
Reply With Quote
  #21  
Old 08-13-2002, 07:20 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Kaimetsu


The box is very nice. It reminds me of FF7.

But really, you should think about rescripting movement. It's essential if you wanna customise your world to any great degree.
Again, that depends upon whether or not I truly need to do that :/

Oh, and thank you for your comment on the dialogue box I'll probably change it so that it matches the rest of the status display
__________________
Reply With Quote
  #22  
Old 08-13-2002, 07:47 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Yo, that screenshot is cool. I like the feel of the GUI and stuff. Although I think you should make some way to hide or minimize it, because that is taking up a WHOLE lot of room.
__________________

subliminal message: 1+1=3
Reply With Quote
  #23  
Old 08-13-2002, 08:09 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Quote:
Originally posted by Kaimetsu


Graal's more of a toolkit to me now, a foundation for making game stuff. Personally, I want more of Graal's features to be overridable.
Seems that in such situations, Graal's gonna waste a lot of cycles on default behaviour that never takes place. It reads in a keypress, stops the default movement, runs your custom movement, and looks for the next key...hardly ideal.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #24  
Old 08-13-2002, 08:19 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Falcor
Yo, that screenshot is cool. I like the feel of the GUI and stuff. Although I think you should make some way to hide or minimize it, because that is taking up a WHOLE lot of room.
heh, I know...I plan to do a little something to take care of it but otherwise, I like it how it is now If you have a good computer, fullscreen is best
__________________
Reply With Quote
  #25  
Old 08-13-2002, 10:23 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Tyhm


Seems that in such situations, Graal's gonna waste a lot of cycles on default behaviour that never takes place. It reads in a keypress, stops the default movement, runs your custom movement, and looks for the next key...hardly ideal.
However: Modern computers are more than fast enough to handle it.
__________________
Reply With Quote
  #26  
Old 08-13-2002, 10:27 PM
brock128 brock128 is offline
oldbie
Join Date: Dec 2001
Posts: 2,861
brock128 is on a distinguished road
Wasn't the Yoshi head removed?
Reply With Quote
  #27  
Old 08-14-2002, 07:02 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Quote:
Originally posted by Kaimetsu


However: Modern computers are more than fast enough to handle it.
Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.

If Graal won't allow direct overriding of the underlying code, the underlying code should be removable, not just patchable...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #28  
Old 08-14-2002, 07:52 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by brock128
Wasn't the Yoshi head removed?
That doesn't mean I can't have it for personal use
__________________
Reply With Quote
  #29  
Old 08-14-2002, 07:56 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Tyhm


Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.

If Graal won't allow direct overriding of the underlying code, the underlying code should be removable, not just patchable...
That might make Graal more vulnerable to hacks and what not...but that would be dependant upon how well Stefan can code it to work and be safe for use online....it would be a shame if someone had overidden the defaults only for it to be hacked around with a lame trainer or something similar.
__________________
Reply With Quote
  #30  
Old 08-14-2002, 09:15 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by G_yoshi


That doesn't mean I can't have it for personal use
yes it does.
When it's removed, it's removed.
Reply With Quote
  #31  
Old 08-14-2002, 03:50 PM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Torankusu
yes it does.
When it's removed, it's removed.
lol, true, but what is it hurting??
__________________
[signature]insert here[/signature]
Reply With Quote
  #32  
Old 08-14-2002, 07:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Tyhm


Bleh. By that rationalle it's perfectly reasonable to code a pathfinder that operates in n^4 time, because ram's cheap and it's only a matter of time before computers become fast enough that the difference is undetectable.
If the pathfinder causes no noticable slowdown on modern systems then what's the problem? Obviously there would be potential problems if the thing took 50% of the computer's processing time, but a simple movement script could hardly take more than a percentile.
__________________
Reply With Quote
  #33  
Old 08-15-2002, 12:00 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by screen_name


lol, true, but what is it hurting??
you're aware of trademarks and copyrights, right?
Reply With Quote
  #34  
Old 08-15-2002, 12:10 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
It depends. If he means personal use in that it replaces a head on his own computer but is not found on the server, then fair enough. If he means personal use in that he uploaded it to DK for his use only, then bad.
__________________
Reply With Quote
  #35  
Old 08-15-2002, 12:15 AM
screen_name screen_name is offline
is watching you
Join Date: Mar 2002
Location: The 3rd Dimension
Posts: 2,160
screen_name is on a distinguished road
Send a message via AIM to screen_name Send a message via MSN to screen_name
Quote:
Originally posted by Kaimetsu
It depends. If he means personal use in that it replaces a head on his own computer but is not found on the server, then fair enough. If he means personal use in that he uploaded it to DK for his use only, then bad.
I meant for personal use on home PC, not online
__________________
[signature]insert here[/signature]
Reply With Quote
  #36  
Old 08-15-2002, 12:36 AM
Torankusu Torankusu is offline
Elite Member
Torankusu's Avatar
Join Date: Jun 2001
Posts: 10,065
Torankusu is a jewel in the roughTorankusu is a jewel in the rough
Quote:
Originally posted by screen_name


I meant for personal use on home PC, not online
But he's on Doragon Koden.
Reply With Quote
  #37  
Old 08-15-2002, 12:40 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
As I said, it's possible that he's merely substituted a graphic on his computer for the yoshi head so that it shows on his screen only. Possible, but unlikely.
__________________
Reply With Quote
  #38  
Old 08-15-2002, 04:30 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Wouldn't it be EASIER to hack something with a substructure of forgotten code?

For example, if I recode bombs to use putnpc instead of putbomb - putbomb still exists, it can still be used by hackers, but it's not doing any GOOD....
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #39  
Old 08-15-2002, 10:49 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Yes, fair point. But then most stuff like that is disabled on the NPC Server now anyway - everything works through triggeraction and putnpc2. It's pretty darned hard to hack anything on there.
__________________
Reply With Quote
  #40  
Old 08-16-2002, 10:40 AM
G_yoshi G_yoshi is offline
Forbidden
G_yoshi's Avatar
Join Date: Mar 2001
Posts: 7,206
G_yoshi will become famous soon enough
Send a message via AIM to G_yoshi
Quote:
Originally posted by Torankusu
But he's on Doragon Koden.
Hmm....*scans PW FTP* Nope, not there Anything I posted that is from the new overworld is not online
__________________
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:58 PM.


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