View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002226SphereServernew feature requestpublic19-10-13 11:0610-11-13 00:14
ReporterXuN 
Assigned ToBen 
PrioritynormalSeverityfeatureReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformWindowsOS8 x64OS Versionpro
Product Version16-06-2013, 0.56b Prerelease 
Target VersionFixed in Version0.56c Nightly 
Summary0002226: Item categorization
DescriptionWe've talked a bit about this in IRC and it would be nice to have a way to make use of 'category, subsection and description' already applied on items/chars so we can make a new and better .add, and few more things.

I think it could be good to add a new function to sphere_serv_Triggers, something like f_onobj_load, wich would fire on server startup when writing items/chars in memory, that gives us that information and we can make use of it creating lists, writing html content, sql, or whatever.

Or just a way to access to EVERY item and char created as for now we can access with loops via script only to numerically defined objs [itemdef 0aed] but not named ones [itemdef i_whatever].
TagsNo tags attached.
Nightly VersionAutomated (specify build number)
Experimental FlagsNone
Option FlagsNone
Internal Build Number1651
Attached Files

- Relationships

-  Notes
(0001744)
Coruja (developer)
22-10-13 17:27

I never tried this, but maybe you can use a function to access all objects based on the UID list.
But I think it will be too heavy, just imagine how long it will take to loop through 1.000.000 objs. And even make it worse when using WRITELINE, since sphere takes a huge time to write on files (write on RAM is much faster than write on the physical HD)

[FUNCTION lol]
FOR 0 <NEW> //0 to latest created UID
 REF1=<UID.<LOCAL._FOR>>
 IF (<REF1>) //proceed only if REF1 exists, since the UID list has many gaps caused by deleted objs
  REF1.something
 ENDIF
ENDFOR
(0001745)
XuN (developer)
23-10-13 13:07

The problem for this to work propperly is that you must have every item created ingame so the FOR will check for every item scripted (or npcs) and doing it manually doesn't worth.
(0001748)
xwerswoodx (reporter)
23-10-13 14:35

If you want to get CATEGORY with <serv.item.ID.category> I agree with you, It's very important in sometimes.
(0001751)
Ben (manager)
27-10-13 19:12

Added Something that should help with this... See changelog
(0001757)
XuN (developer)
03-11-13 23:59

Is it possible to make also DupeItem readable? is a pain in the ass to work with dupelists, i had to make a list of 'banned_items' and add items inside it so in each input i check if the itemdef is not there to add it to real lists, but since some items are loaded before... i have to do a check after finishing reading all the lists created to remove items inside this list.
(0001765)
Ben (manager)
10-11-13 00:14

Adding dupeitem as a readable variable.

- Issue History
Date Modified Username Field Change
19-10-13 11:06 XuN New Issue
22-10-13 17:27 Coruja Note Added: 0001744
23-10-13 13:07 XuN Note Added: 0001745
23-10-13 14:35 xwerswoodx Note Added: 0001748
27-10-13 18:20 Ben Assigned To => Ben
27-10-13 18:20 Ben Status new => assigned
27-10-13 19:12 Ben Note Added: 0001751
27-10-13 19:12 Ben Status assigned => resolved
27-10-13 19:12 Ben Fixed in Version => 0.56c Nightly
27-10-13 19:12 Ben Resolution open => fixed
03-11-13 23:59 XuN Note Added: 0001757
03-11-13 23:59 XuN Status resolved => feedback
03-11-13 23:59 XuN Resolution fixed => reopened
10-11-13 00:14 Ben Note Added: 0001765
10-11-13 00:14 Ben Status feedback => resolved
10-11-13 00:14 Ben Resolution reopened => fixed


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker