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 05-04-2002, 09:39 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Side-programs for Graal

For servers that switch to the NPC Server thing, I have heard that most of their NPCs will not work any more. I think that Graal needs some side-programs (like the level generator) that will run through a folder of levels, searching for NPCs, and add // #CLIENTSIDE or whatever command makes it act like a normal server, so that the NPCs will work until everyone can properly update the server. Suggestions or ideas?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #2  
Old 05-05-2002, 12:50 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
wouldn't work

all scripters have different styles, and a program couldn't determine (in some cases) what the NPC is supposed to do
__________________
[signature]insert here[/signature]
Reply With Quote
  #3  
Old 05-05-2002, 01:05 AM
darkriders_p2p darkriders_p2p is offline
Registered User
Join Date: Jan 2002
Location: Canada
Posts: 690
darkriders_p2p is on a distinguished road
:)

couldn't they do it so, it would correct the ones it knew how too, and the ones it didn't go into a list, and the owner/operater cound fix manually? That would help Mr.Tyhm a whole lot, that is if Kai shows Mr.Tyhm how to make p2p scripts
__________________
maximus_asinus
Reply With Quote
  #4  
Old 05-05-2002, 01:13 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Assimilators will have great difficulty with such things. I'd be surprised if anybody ever made one. If you could do it by just specifying everything as clientside, then what's the point of havng serverside script functionality?
__________________
Reply With Quote
  #5  
Old 05-05-2002, 11:48 PM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
This isn't supposed to determine what the NPC is supposed to do and replace code accordingly. This is just for servers switching to P2P, so that their NPCs will work like they did before. At least things will still work, unlike a heck of a lot of NPCs when the server makes the switch.
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #6  
Old 05-06-2002, 12:05 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 BBflat
This isn't supposed to determine what the NPC is supposed to do and replace code accordingly. This is just for servers switching to P2P, so that their NPCs will work like they did before. At least things will still work, unlike a heck of a lot of NPCs when the server makes the switch.
But putting //#CLIENTSIDE in front of them will not make them work.
__________________
Reply With Quote
  #7  
Old 05-06-2002, 01:05 AM
BBflat BBflat is offline
Registered User
BBflat's Avatar
Join Date: Apr 2002
Location: United States of America
Posts: 573
BBflat is on a distinguished road
Quote:
Originally posted by Kaimetsu


But putting //#CLIENTSIDE in front of them will not make them work.
I'm not sure what DOES make them work, but whatever it is, can it be added at the beginning of a NPC and it will work? How exactly DO you make a NPC act like they used to on regular non-P2P servers?
__________________
I am a .sig virus. Please put me in your .sig so I can continue to replicate.
Reply With Quote
  #8  
Old 05-06-2002, 01:40 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 BBflat

I'm not sure what DOES make them work, but whatever it is, can it be added at the beginning of a NPC and it will work? How exactly DO you make a NPC act like they used to on regular non-P2P servers?
You can't. There is no magic little piece of text you can add to make them work. They must be converted in a fairly complicated manner.
__________________
Reply With Quote
  #9  
Old 05-07-2002, 06:51 AM
Skatche Skatche is offline
Registered User
Join Date: Aug 2001
Location: Gehennom
Posts: 353
Skatche is on a distinguished road
Send a message via AIM to Skatche
If you want a tool, make it yourself. The NW level format is in human language and can be parsed easily. You could do the //#CLIENTSIDE thing with a (relatively) simple perl script.
__________________
Skatche, head priest of the Cult of Duckduck.
Praise Duckduck!
Reply With Quote
  #10  
Old 05-07-2002, 07:51 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 Skatche
If you want a tool, make it yourself. The NW level format is in human language and can be parsed easily. You could do the //#CLIENTSIDE thing with a (relatively) simple perl script.
Yet it wouldn't work, as I have explained.

Plus you could do it damn near any language.
__________________
Reply With Quote
  #11  
Old 05-07-2002, 09:51 AM
Skatche Skatche is offline
Registered User
Join Date: Aug 2001
Location: Gehennom
Posts: 353
Skatche is on a distinguished road
Send a message via AIM to Skatche
But a Perl script would be the best solution, probably, because of its powerful pattern matching tools.

And I think the idea was that it would just put the //#CLIENTSIDE at the very beginning of each script; then they would function just the way the did before the switch to P2P. The server admin could then take his time in updating each script himself.
__________________
Skatche, head priest of the Cult of Duckduck.
Praise Duckduck!
Reply With Quote
  #12  
Old 05-07-2002, 10:19 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 Skatche
But a Perl script would be the best solution, probably, because of its powerful pattern matching tools.
*shrugs*

I'm very careful in using words like "best" when I haven't seen all the languages out there.

Quote:
And I think the idea was that it would just put the //#CLIENTSIDE at the very beginning of each script; then they would function just the way the did before the switch to P2P. The server admin could then take his time in updating each script himself.
But that wouldn't work! I've already explained it in this thread!
__________________
Reply With Quote
  #13  
Old 05-07-2002, 10:26 AM
Skatche Skatche is offline
Registered User
Join Date: Aug 2001
Location: Gehennom
Posts: 353
Skatche is on a distinguished road
Send a message via AIM to Skatche
Okay, let's look at this. You write a script designed to be entirely clientside, because you don't have an NPC server. All of a sudden you get one, because of the new prices and account system and whatnot. Now all your clientside scripts are executed serverside, and that causes problems. So you put a line in each script which makes the entire script clientside, and therefore they all act exactly as they did before.

Where is the problem here? I certainly don't see one. Yes, you'd have to go back and fix all the scripts, but in the meantime it's better to have scripts which don't use the NPC server than scripts which simply don't work.
__________________
Skatche, head priest of the Cult of Duckduck.
Praise Duckduck!
Reply With Quote
  #14  
Old 05-07-2002, 10:50 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
I've explained this a million times. Bottom line: Scripts that worked on non-P2P servers usually won't work with the NPC Server just because you added //#CLIENTSIDE. There's more to it.
__________________
Reply With Quote
  #15  
Old 05-07-2002, 07:21 PM
Skatche Skatche is offline
Registered User
Join Date: Aug 2001
Location: Gehennom
Posts: 353
Skatche is on a distinguished road
Send a message via AIM to Skatche
Such as?
Examples?
__________________
Skatche, head priest of the Cult of Duckduck.
Praise Duckduck!
Reply With Quote
  #16  
Old 05-07-2002, 08:27 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Bottom line. Line at the bottom. Just trust me on it, okay?
__________________
Reply With Quote
  #17  
Old 05-07-2002, 10:20 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
NPC weapon scripts cannot begin with //#CLIENTSIDE...the server thinks you are trying to hack by adding illegal weapons

You cannot warp players clientside on p2p...you can use clientside npcs for warping, but it must be done through triggeraction...same thing with money, all done serverside to prevent the use of memory editors to change vulnerable variables and strings
__________________
Reply With Quote
  #18  
Old 05-17-2002, 12:44 AM
Jaguar__5 Jaguar__5 is offline
Legendary Script0r
Join Date: Aug 2001
Location: Florida
Posts: 17
Jaguar__5 is on a distinguished road
Send a message via AIM to Jaguar__5
You can convert all the .graals to .nw's, then do a search through them all for toweapons, then just have a good scripter switch em to P2P serverside. Easy enuf =)
Reply With Quote
  #19  
Old 05-17-2002, 01: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 Jaguar__5
You can convert all the .graals to .nw's, then do a search through them all for toweapons, then just have a good scripter switch em to P2P serverside. Easy enuf =)
NO, it's far more complicated.
__________________
Reply With Quote
  #20  
Old 05-17-2002, 02:55 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
Kai: No one knows anything. Let them spit out their ignorance becasue obviosly truthfull information is unimportant.

Let me just say this, if you don't know how to script serverside, then don't make suggestions on how to make an assimilator to do the work for you. Only humans can make logical decisions such as the ones you have to make when converting non-p2p to p2p. I have yet to see an assimilator with artificial intelegence, hell i have yet to see TRUE artificial intelegence!!
__________________

subliminal message: 1+1=3
Reply With Quote
  #21  
Old 05-17-2002, 07:06 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
That's because the core tenet of Artificial Intelligence is that everything can be expressed or at least aproximated algorythmically. It runs counter to the human ego - imagine a scientist telling you he could predict your every action with a complex mathematical formula! - and so once we see how an AI works, we insist it's cheating and that it is not, in fact, AI. The only way to make an AI is to throw everything in a Box of Mystery, add some component that nobody understands. Key example, Short Circuit. Johnny Five was only an AI because he was struck by lightning. Up to that point, he was running a complicated formula. After that point, nobody understood the formula anymore.
Another example, Elisa. You know, that "AI" psychologist. It seems to be an AI until you realize it's just a sentance diagrammer with a few keyword recognition routines. Then it's just another stupid program that cheats to make you think it's smart.

Point being, as long as there are rules for converting Classic script to NPCServ, there is an algorythm for it and, consequently, a way to make an assimilator do it for you.
__________________
"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
  #22  
Old 05-17-2002, 07:12 AM
Dustey4Ever Dustey4Ever is offline
Registered User
Join Date: Apr 2002
Posts: 348
Dustey4Ever is on a distinguished road
Send a message via AIM to Dustey4Ever
Quote:
Originally posted by Kaimetsu


NO, it's far more complicated.
you guys should listen to Kai, *hmm, wonders why he is the NPC moderator of this forum* Kai you should just say it wont work and leave, it'll never get added because stefan knows this
__________________
Dustey, Rob Getashu, Van?
Van- I use this acct because mine dun work.....
Rob- Same
Reply With Quote
  #23  
Old 05-17-2002, 07:23 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
The program would have to know whats serverside, whats clientside, and move the lines around and then put clientside in the right place.
There are people that have trouble doing that don't push computers power...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #24  
Old 05-17-2002, 10: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
Next you'll know someone will want a program that can write scripts from scratch on just about anything
__________________
Reply With Quote
  #25  
Old 05-17-2002, 03:03 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

Point being, as long as there are rules for converting Classic script to NPCServ, there is an algorythm for it and, consequently, a way to make an assimilator do it for you.
I don't deny that it could be done. I just doubt that it could be done in any small amount of time, or with any measure of ease.
__________________
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:08 AM.


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