Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #31  
Old 10-11-2002, 06:22 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
It would still take longer if a few excellent lats converted the levels, than a few hundred mediocre lats converted them.

It wont be that hard to make a batch converter, program a list of npc server actions into the converter, and if a script needs to change the players money say, it could change:

if (playerrupees>=50) playerrupees-=50;

to

if (playerrupees>=50) {
with(getplayer(#a)) {
playerrupees-=50;
}
}
Reply With Quote
  #32  
Old 10-11-2002, 06:48 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 R0bin
It would still take longer if a few excellent lats converted the levels, than a few hundred mediocre lats converted them.

It wont be that hard to make a batch converter, program a list of npc server actions into the converter, and if a script needs to change the players money say, it could change:

if (playerrupees>=50) playerrupees-=50;

to

if (playerrupees>=50) {
with(getplayer(#a)) {
playerrupees-=50;
}
}
Dude, clearly you don't know how the NPC Server works. If you can read playerrupees then you can change playerrupees but simple stuff like this is not the problem. The problem is in other, more complicated things that would need to be divided into serverside and clientside sections.
__________________
Reply With Quote
  #33  
Old 10-11-2002, 07:17 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by R0bin

if (playerrupees>=50) playerrupees-=50;

to

if (playerrupees>=50) {
with(getplayer(#a)) {
playerrupees-=50;
}
}
I'm guessing shifter told you that? He seemed to have the same misunderstanding (I noticed it when he posted that log on-off thing), getting #a is meaningless and inefficent, since the script already knows it is editing your attributes
__________________
GONE, BAI
Reply With Quote
  #34  
Old 10-11-2002, 07:47 AM
R0bin R0bin is offline
Banned
R0bin's Avatar
Join Date: Oct 2002
Location: Wales, UK
Posts: 828
R0bin is on a distinguished road
Send a message via AIM to R0bin
i wouldnt want to "discredit" him by saying he did.
Reply With Quote
  #35  
Old 10-11-2002, 08:16 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
G2K2 uses GMaps, and they still do weird things when you go beyond the southern peninsula's boundaries.

You would prefer that we not ask for some pretty damn simple security features until the technology is available? Just passively let Classic get hacked to death by any ***** with a trainer? Tough.
__________________
"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
  #36  
Old 10-11-2002, 10:31 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
G2K2 uses GMaps, and they still do weird things when you go beyond the southern peninsula's boundaries.
*shrugs*

And it'll be fixed. But the fix won't benefit Classic in any way so the point is moot.

Quote:
You would prefer that we not ask for some pretty damn simple security features until the technology is available? Just passively let Classic get hacked to death by any ***** with a trainer? Tough.
I think it's fair to ask. I don't think it's fair to continually whine about it like an attention-deprived child, insinuating that Stefan has some binding obligation to spend time on your problems.
__________________
Reply With Quote
  #37  
Old 10-11-2002, 01:20 PM
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
Well I only worked full time for no pay on something that profits him. Surely that's no reason to expect support. =_=
__________________
"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
  #38  
Old 10-11-2002, 03:26 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
Well I only worked full time for no pay on something that profits him. Surely that's no reason to expect support. =_=
Indeed.
__________________
Reply With Quote
  #39  
Old 10-13-2002, 04:27 AM
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
Arg somehow i miss the topic, but i just wanted to say that the <0 thing will be fixed in the next exe.
Reply With Quote
  #40  
Old 10-14-2002, 01:18 AM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Yes, this thread ran completly off-topic.

setfocus is clientside anyway.

And Tyhm, I can't perform magic...the NPC Converter will only do simple stuff...I reviewed the scripts of some player houses now and I got afraid...they used complex stuff for things that don't really matter. "Complex" means that I couldn't convert them automatically.

Partially NPC Server isn't good/possible. The flags are completly different for security reasons.
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #41  
Old 10-14-2002, 03:18 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
Anything's algorythmically possible. Just layers of complexity.

I don't expect you to be able to write a magic converter that does everything automatically, just a batcher such that you could have it replace hitplayer (etc) with triggeraction (etc), then do the rest manually. That should be possible, no? There are a lot of commands to remove, but one at a time...
__________________
"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
  #42  
Old 10-14-2002, 06:49 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 Com013
Yes, this thread ran completly off-topic.

setfocus is clientside anyway.
I don't see how that makes it any simpler to implement what you requested.

Quote:
Originally posted by Tyhm
Anything's algorythmically possible. Just layers of complexity.

I don't expect you to be able to write a magic converter that does everything automatically, just a batcher such that you could have it replace hitplayer (etc) with triggeraction (etc), then do the rest manually. That should be possible, no? There are a lot of commands to remove, but one at a time...
Even when you do that, you need to add serverside parts to react to the trigger. And it's not simple to write a heuristic that would recognise all the different permutations of the player-searching algorithms needed to use hitplayer effectively.
__________________
Reply With Quote
  #43  
Old 10-14-2002, 08:18 PM
Com013 Com013 is offline
Registered User
Join Date: Aug 2002
Location: GMT+1
Posts: 381
Com013 is on a distinguished road
Yes, everything is possible.
I remember when I tried to write my first version of the converter. It should parse the script and then it should try to move whole blocks to client-/serverside depending what commands they used. The problem was parsing the script. It isn't easy and I don't have the time for it. So it will be my simple converter which I hope to finish in a week, but which won't be able to convert 100-600 levels.
Replacing hitobjects with triggeraction? Why?
__________________
Com013
Former Admin of the LAT on Graal The Adventure

e-mail: [email protected]
Reply With Quote
  #44  
Old 10-15-2002, 12:49 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
...*shrugs* I recall hearing hitobjects doesn't work in NPCServ is all.
__________________
"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
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 05:54 AM.


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