Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Object List (https://forums.graalonline.com/forums/showthread.php?t=62578)

Inverness 11-30-2005 02:44 AM

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.

Rick 12-01-2005 12:29 AM

findNPCs(x, y, w, h)

napo_p2p 12-01-2005 12:31 AM

He's looking for something added to the RC I think.

Inverness 12-01-2005 08:18 AM

Quote:

Originally Posted by napo_p2p
He's looking for something added to the RC I think.

Exactly
Quote:

Originally Posted by Inverness
something like the DBNPC list

Obviously an addition to RC, not a function, Rick.

Skyld 12-01-2005 02:46 PM

What's wrong with level dump for reading the attrs?

ApothiX 12-01-2005 04:32 PM

Quote:

Originally Posted by Inverness
Exactly

Obviously an addition to RC, not a function, Rick.

Scripted RCs are a blessing. Use what Rick said, and add it yourself?

Inverness 12-02-2005 08:55 AM

Quote:

Originally Posted by ApothiX
Scripted RCs are a blessing. Use what Rick said, and add it yourself?

Then would you like to point out where I can find a description of requesttext() and sendtext() and all parameters used with it.
Quote:

Originally Posted by Skyld
What's wrong with level dump for reading the attrs?

Level dump is too specific, and it doesn't show static objects (TStaticVar) either. I want a complete object lists, weapons and static objects included, I do not know how to display that with requesttext() especially since there is no document on it obviously.

ApothiX 12-04-2005 01:55 AM

Quote:

Originally Posted by Inverness
Then would you like to point out where I can find a description of requesttext() and sendtext() and all parameters used with it.

get the level list using requesttext(), iterate through it and warp a DB NPC to the level, and iterate through the NPCs, and there you go, you have an object list.

(Please note, I did not say this method is practical or even efficient)

Rick 12-04-2005 02:28 AM

Oh, in that case add "rw npcs/*.txt" to your level rights.

ApothiX 12-04-2005 02:38 AM

Quote:

Originally Posted by Rick
Oh, in that case add "rw npcs/*.txt" to your level rights.

That wouldn't give you the attributes of them at the time of execution, though.

Inverness 12-04-2005 04:24 AM

Quote:

Originally Posted by ApothiX
That wouldn't give you the attributes of them at the time of execution, though.

It also wouldn't show any objects made with TStaticVar
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.

Rick 12-04-2005 10:46 AM

Why?

Inverness 12-04-2005 06:56 PM

Quote:

Originally Posted by Rick
Why?

Be more specific.

Angel_Light 12-06-2005 10:45 PM

I have to agree with Invern on this.

ApothiX 12-07-2005 05:07 AM

Quote:

Originally Posted by Angel_Light
I have to agree with Invern on this.

Agree with what? There is no debate going on.

It seems like what you want is comparible to 'datablocks' on Graal3D servers?

Inverness 12-09-2005 11:18 PM

With the complexity of newer servers appearing on Graal you need a better system to manage them.
Quote:

Originally Posted by ApothiX
Agree with what? There is no debate going on.

It seems like what you want is comparible to 'datablocks' on Graal3D servers?

Why do you need a debate to agree with someone?
Could you describe the 'datablocks' on Graal3D?

Rick 12-09-2005 11:51 PM

How exactly would you "manage" them?

All objects except for TStaticVars are within levels, findNPCs should work fine.

Angel_Light 12-10-2005 05:45 AM

Well, Invern has a good point and idea. It should be added to GS2 ASAP!

ApothiX 12-10-2005 07:48 AM

Quote:

Originally Posted by Angel_Light
Well, Invern has a good point and idea. It should be added to GS2 ASAP!

Added to GS2? He was saying it should be added to the RC.

Inverness 12-10-2005 07:45 PM

Quote:

Originally Posted by Rick
How exactly would you "manage" them?

All objects except for TStaticVars are within levels, findNPCs should work fine.

Would findNPCs work get all objects from every level at the same time?

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.