![]() |
Object List
Since GS2 is primarily object based I think it would be useful to have a list of all objects that exist on the server, something like the DBNPC list, where you could find out their attributes, location, flags, etc. or Edit them if possible.
|
findNPCs(x, y, w, h)
|
He's looking for something added to the RC I think.
|
Quote:
Quote:
|
What's wrong with level dump for reading the attrs?
|
Quote:
|
Quote:
Quote:
|
Quote:
(Please note, I did not say this method is practical or even efficient) |
Oh, in that case add "rw npcs/*.txt" to your level rights.
|
Quote:
|
Quote:
You don't seem to understand what i'm asking -.- I want a list of ALL objects on the server: npcs, weapons, players, everything. Where you can view attributes of any of them. And what they're connected to. Hmm, I think I would like it better if GS2 and Graal were more java based, Classes and Objects that is. I've been learning some Java and I find it interesting. Also would like some kind of display for the global strings, ones without a leader. |
Why?
|
Quote:
|
I have to agree with Invern on this.
|
Quote:
It seems like what you want is comparible to 'datablocks' on Graal3D servers? |
With the complexity of newer servers appearing on Graal you need a better system to manage them.
Quote:
Could you describe the 'datablocks' on Graal3D? |
How exactly would you "manage" them?
All objects except for TStaticVars are within levels, findNPCs should work fine. |
Well, Invern has a good point and idea. It should be added to GS2 ASAP!
|
Quote:
|
Quote:
Since GS2 is more object based the NPCServer should be too, stuff should be recognized as Objects or Classes before their type. A Weapon should be a type of Object where its interactions are defined in the script. Maybe when a weapon is created it makes the weapon Object from a Class, like in Java? I would like to be able to define how 'Weapons' work on the server, so if I want to change the system I can. I certainly don't want to have to put a negative before the weapon name just to make it hidden, i'd rather that be read in a flag inside the script. This is all just some speculation or something but I still think there should be a list of server objects with their ID, Name, and Type (DBNPC, Weapon, etc.). I want to know where everything is, and be able to find any info in them without downloading everything to my comp. btw, I don't think I would want a scripted RC, hardcoded works faster usually. |
| All times are GMT +2. The time now is 05:44 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.