Page 1 of 1

object limit ?

Posted: Sat Aug 04, 2018 6:56 am
by wsa30h
is there an object limit that limits how many objects you can have ingame or does it depend on your pc

Re: object limit ?

Posted: Sat Aug 04, 2018 9:10 am
by Cattermelon
I'm pretty sure the object limit is 1024.

Re: object limit ?

Posted: Sat Aug 04, 2018 9:38 am
by wsa30h
so does this mean that when I get my gaming pc I can have a huge mega city map ? also is there a way to count all the objects currently ingame ?

Re: object limit ?

Posted: Sat Aug 04, 2018 1:33 pm
by Marth8880
Cattermelon is correct - see here: http://www.gametoast.com/viewtopic.php?f=27&t=13034
wsa30h wrote:also is there a way to count all the objects currently ingame ?
Not directly, AFAIK.

One thing you can do is press Alt+F in ZE to display various scene stats including the number of objects being rendered on-screen, but this isn't a great way to get the total count since it only counts what's currently visible.

However, you can use Notepad++'s "Find in Files" function to search for all instances of Object(" in all LYR files in your map's world1 directory. For the WLD file, you can open the file and use the "Count" button in the "Find" tab to count the instances of Object(". Finally, add the two numbers together and presto! You've got your object count. It is worth noting that any unused layers in your world will also be counted.

Image

---

Also congrats you've inspired me to make a tool that does all of that for you with the click of a button. Thanks. :u

Re: object limit ?

Posted: Sat Aug 04, 2018 1:44 pm
by wsa30h
no probs when you have a tool made please post it here on gametoast and send a link would love to try it> :)

Re: object limit ?

Posted: Sun Aug 05, 2018 12:52 pm
by Marth8880
Certainly. I've started it and you can follow its progress here: https://github.com/marth8880/ZeroWorldStats

Re: object limit ?

Posted: Sun Aug 05, 2018 3:32 pm
by wsa30h
I have been looking forward to this fantastic keep up the great work :D

Re: object limit ?

Posted: Wed Aug 08, 2018 3:49 am
by Marth8880
wsa30h wrote:I have been looking forward to this fantastic keep up the great work :D
Here you go! viewtopic.php?f=64&t=33772

Re: object limit ?

Posted: Wed Aug 08, 2018 4:46 am
by wsa30h
thanks