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-20-2001, 01:15 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
File Checking

//Non-P2P
if (fileexists(head#v(head).gif)) {
setplayerprop #3,head#v(head).gif;
}

//P2P
if (existsonserver(NewBomb.txt)) {
putnpc NewBomb.txt,Bomb.gif,x,y;
}

Might be useful for some of my scripts
Reply With Quote
  #2  
Old 08-20-2001, 11:02 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: File Checking

Quote:
Originally posted by General
//Non-P2P
if (fileexists(head#v(head).gif)) {
setplayerprop #3,head#v(head).gif;
}

//P2P
if (existsonserver(NewBomb.txt)) {
putnpc NewBomb.txt,Bomb.gif,x,y;
}

Might be useful for some of my scripts
gani has filechecking ..
or at least bomys do o.o
(the body on the gani)
but yeah i thought of that before it be neat
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 08-20-2001, 11:57 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
yes, because #3, has to be a valid filename, but what if a gani attribute (#P1, or the attribute in setani gani,attribute) needs to be a valid filename...then you are screwed
Reply With Quote
  #4  
Old 08-20-2001, 03:28 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Re: Re: File Checking

Quote:
Originally posted by LiquidIce00


gani has filechecking ..
or at least bomys do o.o
(the body on the gani)
but yeah i thought of that before it be neat
The bomy body changing things are built into Graal, that's why those work without problems.
__________________

Reply With Quote
  #5  
Old 08-21-2001, 06:16 AM
Iracious Iracious is offline
Undead Member
Join Date: Jun 2001
Posts: 1,038
Iracious is on a distinguished road
this would be handy, in one of my levels there are many many NPCs and they all do the same thing, except are set to diffrent sprites, whenever I set all of their heads at once to a file that does not exist, it'll freeze the graal client for a bit. this would be EXTREMELY helpful
__________________
Reply With Quote
  #6  
Old 08-21-2001, 07:29 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Quote:
Originally posted by Iracious
this would be handy, in one of my levels there are many many NPCs and they all do the same thing, except are set to diffrent sprites, whenever I set all of their heads at once to a file that does not exist, it'll freeze the graal client for a bit. this would be EXTREMELY helpful
graal freezing for file checking usually only does it offline
online graal is a bit less flexible so it doesnt go as far as to check ur folder for the files. it just uses the files you had when you opened graal and checks if the file is on the server
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #7  
Old 08-21-2001, 07:29 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
Re: Re: Re: File Checking

Quote:
Originally posted by grim_squeaker_x
The bomy body changing things are built into Graal, that's why those work without problems.
well its the gani body attribute that requires a valid file
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #8  
Old 08-22-2001, 12:47 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
Online, just the first person does the check against the online files. If it finds the file, it sets it to that, else it (at least used to) uses a default. When a player enters a level, the graphics have already been checked to exist on the server, if they're not in /levels it downloads it.
That's why you only get that unbearable "Where's aznbaby_chair.gif?" lag loading levels offline. It only happens on creation online.

I think
__________________
"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
  #9  
Old 08-24-2001, 05:55 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
hmm...but still, that doesnt address my other point, what about the fact that you can do

setani blah,notafilename;

and there is no way to check against that...

also, while I was sitting here, I was thinking about some oter things

maybe a command like "getfromserver(pics2.png)"...so you can have a tileset before you enter a level that requires you download that 500KB file (looks very tacky on a 56k)
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 04:48 AM.


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