Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Clientside Classes Cached (https://forums.graalonline.com/forums/showthread.php?t=69823)

Novo 11-03-2006 03:57 PM

Clientside Classes Cached
 
A serveroption with a list of classes should be downloaded on clientside... Preferably before any weapon is executed.

Joey_P2P 11-03-2006 04:08 PM

Quote:

Originally Posted by Novo (Post 1238835)
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);
  }


?

Twinny 11-03-2006 04:13 PM

I think the keyword was "cached".

Yen 11-03-2006 10:05 PM

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.

Tyhm 11-03-2006 10:29 PM

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...)

Admins 11-03-2006 10:59 PM

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.


All times are GMT +2. The time now is 08:08 PM.

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