>
> > I'm making a big MMORPG online game
> > many many npc chat word need to store about 10000line
> > i tried Dictionary&listbox
> > but its very slow!
> > about 10sec
> >
> > please may i ask any good idea about store 10000+line text?
> > the best way i wish to store the file in RAM
> > but i don't know how to
> >
> > thankyou
> >
>
> Use project files as guys say. And just instead of one massive file make smaller ones per area,location or city. Once in the area, just load it in to array. And you don't need to do it all at once ( since player still has some time to get to location with npc's I assume ), just several lines of code every x seconds (ms). Be gentle
>
guess no one Understand my suck english
my all of NPC chat text == local project file
not read from server
if you wanna to know what i'm talking about
You should try to write your own 10,000*100-word at array/Dictionary
and read it
I think we do. I'm telling you, you got to make more but smaller files. Instead of "all of NPC chat text == local project file" make many files for "only current area NPCs chat text == current area local project file"
And you make files: area1, area2, area3, area 4 etc. If area have loads of npc's then make zones within it. For example: City Zone1 txt, City Zone 2 txt, etc. Load them on entering area/zone replacing the old data. You only need one small array. You can go even further and keep each npc's dialog in separate array within the text file. Just separate those arrays with tokens, and give you npc numerical variable that will be used to call the appropriate array trough tokenat. And this will make array that holds that data even smaller.