Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2018-04-30 12:04:14

RavaTroll
Member
From: France
Joined: 2015-02-16
Posts: 820

Limit warning + World data size

Hey !

So from what I understood, EE can't store big worlds with lots of stuff in them - so a world with lots of NPC will not be saved.
I think it'd be nice to have a popup show up when you reach the max data size of your world. And some info somewhere like " /datasize" to know what you can still add. And info about blocks size memory wise in their info popup.
This way, when we will reach the point in a few months when we'll have lots of NPC, we'll be able to understand how many we can place and how much space we have left.
You could also prevent player from placing blocks when size is too big and can't be saved.


SNTDcGF.png Trolls be in da place, mon ! SNTDcGF.png

Offline

#2 2018-04-30 13:32:08, last edited by XxAtillaxX (2018-04-30 13:34:01)

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: Limit warning + World data size

RavaTroll wrote:

I think it'd be nice to have a popup show up when you reach the max data size of your world. And some info somewhere like " /datasize" to know what you can still add.

I believe they could use the BigDB Save() onerror callback in the server gamecode whenever they try to save the world to BigDB, and give them an alert if it fails, which would likely happen if the world is too large in size.
You can't really give them an idea of the actual space used though, at least not with the game server. You would need to calculate the size of the protocol buffer output converted to Player.IO's JSON or raw protocol buffer messages, we don't know in which format they store database objects, could even be JSON or BSON.


signature.png
*u stinky*

Offline

Wooted by: (3)

#3 2018-04-30 14:15:39

Gosha
Member
From: Russia
Joined: 2015-03-15
Posts: 6,211

Re: Limit warning + World data size

XxAtillaxX wrote:

I believe they could use the BigDB Save() onerror callback in the server gamecode whenever they try to save the world to BigDB, and give them an alert if it fails, which would likely happen if the world is too large in size.

IIRC i tried doing it, but i didn't get errors, but thread aborts instead. But i'll look into that again

Offline

#4 2018-04-30 17:03:12, last edited by Enurp (2018-04-30 17:06:22)

Enurp
Formerly ThuggishPrune
From: Ohio
Joined: 2015-06-20
Posts: 459

Re: Limit warning + World data size

XxAtillaxX wrote:
RavaTroll wrote:

I think it'd be nice to have a popup show up when you reach the max data size of your world. And some info somewhere like " /datasize" to know what you can still add.

I believe they could use the BigDB Save() onerror callback in the server gamecode whenever they try to save the world to BigDB, and give them an alert if it fails, which would likely happen if the world is too large in size.
You can't really give them an idea of the actual space used though, at least not with the game server. You would need to calculate the size of the protocol buffer output converted to Player.IO's JSON or raw protocol buffer messages, we don't know in which format they store database objects, could even be JSON or BSON.

ZD8xrNX.gif

Would be nice, however there most likely would be issues.

Offline

Enurp1525104192704651

Board footer

Powered by FluxBB

[ Started around 1733340915.439 - Generated in 0.378 seconds, 12 queries executed - Memory usage: 1.45 MiB (Peak: 1.57 MiB) ]