How can i Read text faster

0 favourites
  • 7 posts
From the Asset Store
Change delay, create new lines, "backspace" the text
  • 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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Project files and XML and/or array probably can help.

    Nevertheless what exactly is slow ?

  • Project files and XML and/or array probably can help.

    Nevertheless what exactly is slow ?

    sorry tried

    slow Meaning when i read some text

    eg:browser.alert(array.x) or browser.alert(Dictionary.get("npc_1_31")

    when i run that

    game will stop about 3sec to read file

  • Have you thought about trying to split the text up a little?

    Also browser alerts for text probably aren't the best idea.

  • 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

  • > 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'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.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)