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 11-03-2006, 03:57 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
Clientside Classes Cached

A serveroption with a list of classes should be downloaded on clientside... Preferably before any weapon is executed.
Reply With Quote
  #2  
Old 11-03-2006, 04:08 PM
Joey_P2P Joey_P2P is offline
Banned
Join Date: Oct 2006
Posts: 36
Joey_P2P is on a distinguished road
Quote:
Originally Posted by Novo View Post
A serveroption with a list of classes should be downloaded on clientside... Preferably before any weapon is executed.
Directly to the player?

PHP Code:
//#CLIENTSIDE
function onCreated()
{
  
temp.classes = {"player""wow""yes"};
  for (
temp.var: temp.classes)
  {
    
player.join(temp.var);
  }

?
Reply With Quote
  #3  
Old 11-03-2006, 04:13 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I think the keyword was "cached".
Reply With Quote
  #4  
Old 11-03-2006, 10:05 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Right now, when you join a class it takes a portion of a second to be joined; if you join a class and then call a function in the class in the 'onCreated' block, the function won't call because the class needs a bit of time to be loaded.
You'd have to call a function when the class finishes joining, then go from there.

He wants the classes to be automatically loaded, before the weapons, when you log on.
Reply With Quote
  #5  
Old 11-03-2006, 10:29 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
Maybe some scripting control over preloads?
I mean, I like how Blizzard does things: You download a patch with everything you're gonna need to play, and you can't start until it's done. (Ironically they seem to be drifting towards the Graal method of Load-On-Demand graphics, given the Loading Phantoms I've seen on other peoples' computers...)
__________________
"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
  #6  
Old 11-03-2006, 10:59 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 loading things in the background though. Caching the class scripts would be good, currently only gani scripts and weapon scripts are cached. On Graal3D it is the same, but when the class is loaded it checks all objects if they have joined the class and calls their onCreated+onPlayerEnters-function. On Graal2D it could at least check all weapons, npcs in the current level and TStaticVar.
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 07:39 AM.


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