ZuluTangoDelta Posted June 12, 2014 Posted June 12, 2014 Hello i try to store objects.The objectsinfos(position,model,rotation) are stored in a table.When i want to safe the table informations i create a txt file(looks like this["Chunk:44; model:3345; x:-3300.7; y:-3700.3; z:40; rx:0; ry:0; rz:0|"].If there are 30000 objects a error appears (not enough memory).How can i solve this?
Moderators IIYAMA Posted June 12, 2014 Moderators Posted June 12, 2014 by spread over more files. Or check this out: https://wiki.multitheftauto.com/wiki/SaveMapData Do you want to improve your Lua programming skills and make less mistakes? Start with Lua Language Server! Useful functions 3x Spoiler checkPassiveTimer getScreenStartPositionFromBox getPedGender Tutorials 4x Spoiler Scaling DX Events Attach an addEventHandler on a group of elements Debugging
ZuluTangoDelta Posted June 12, 2014 Author Posted June 12, 2014 Ok thanks.i had this idea too.I work with a kind of "chunks" like minecraft^^ because the map will be very very big(Objects >100.000) But i got problems with reading more than 500 files.(i want to create for each chunk a file [1600 chunks] ) Is there any other methode to store many objects?I work with tables and i dont know what the limit of tables are Probably i need to create more than one table to store the informations.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now