Remove "LARGE AMOUNT OF ITEMS!"

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

Remove "LARGE AMOUNT OF ITEMS!"

by jordan4ibanez » Sun Dec 23, 2012 07:51

Please remove this in line 1607 environment.cpp:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
    bool large_amount = (block->m_static_objects.m_stored.size() > 49);
    if(large_amount){
        errorstream<<"suspiciously large amount of objects detected: "
                <<block->m_static_objects.m_stored.size()<<" in "
                <<PP(block->getPos())
                <<"; removing all of them."<<std::endl;
        // Clear stored list
        block->m_static_objects.m_stored.clear();
        block->raiseModified(MOD_STATE_WRITE_NEEDED,
                "stored list cleared in activateObjects due to "
                "large amount of objects");
        return;
    }

Or at least raise the number to 500 or so so that mods that use entities don't have to constantly deal with this.
Last edited by jordan4ibanez on Sun Dec 23, 2012 07:52, edited 1 time in total.
If you can think it, you can make it.
 

User avatar
0gb.us
Member
 
Posts: 841
Joined: Sun Sep 16, 2012 01:55

by 0gb.us » Tue Dec 25, 2012 06:20

On my machine, having anywhere close to 49 objects in the same place causes severe lag. Removing the limit or setting it too high could cause problems.

If the limit must be removed or raised, what about having some sort of setting in minetest.conf? That way, weaker machines aren't taxed by the raise, but more powerful machines can do whatever they please.

Then again, that means weaker machines connecting to a world that allows massive amounts of objects could have issues .....
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Wed Dec 26, 2012 12:19

 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Wed Dec 26, 2012 15:09

Is quite annoying after firing just a few rounds lol couldn't the message be moved off the chat interface and into the logs?
"Fuck the hat." - Paulie Gualtieri
 

rarkenin
Member
 
Posts: 668
Joined: Tue Nov 20, 2012 20:48

by rarkenin » Wed Dec 26, 2012 15:24

mauvebic wrote:Is quite annoying after firing just a few rounds lol couldn't the message be moved off the chat interface and into the logs?

This behavior shouldn't just be for this, but every recurribg server message. Maybe like:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Blahblahblah issue
blahblahblah issue
blahblahblah issue

blahblahblah happened 100 times

blahblahblah happened 100 times

blahblahblah happened 100 times

Admin pro tempore on 0gb.us:30000. Ask me if you have a problem, or just want help.
This is a signature virus. Add me to your signature so that I can multiply.
Now working on my own clone, Mosstest.
I guess I'm back for some time.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

by 4aiman » Sat Jan 05, 2013 00:09

+100
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 5 guests

cron