Game Development Community

Array

by Tim Wiese · in Technical Issues · 04/11/2006 (9:35 am) · 2 replies

Okay heres what i want to do:

have a server side whatever.cfg file, once the server boots up, load the cfg file and populate the data stored in it inside of a global array. This array's data will need to be accessiable by the scripts. and this array will be a large array of arrays. for example the syntax would be roughly....


GlobalArray[0x12244]->LocalArray[arraydata] (however many strings are in local array)

where would i start, i know how to do the simpler things, like populate a local array with data loaded from a cfg file, but how would i load a cfg for one and how would i get it to do it on server startup, and how do i make it global/and or accessible in the scripts??


ANY help would be great.


thanx guys, im planning on doing a full resource on this once i get it operational.


EDIT:

this will eventually be a full backpack/inventory system...and object property system, a player property system, and many other systems for people who need to access/use/edit/save/delete data very easly on a game.

#1
04/11/2006 (10:13 am)
XML parser, To scripts... uh,,,,,,TDN.

2c
#2
04/11/2006 (10:18 am)
What? please be more clear?