Page 1 of 1

Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 12:01 am
by paprika
Can someone point me in the right direction to find the code causing servers to crash if maps are larger than 255 tiles?

I've tried to byond detective my way into finding it in ss13 code but I can't seem to. I'm sure it's multiple things but I'm having a hard time finding it.

Re: Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 12:32 am
by onleavedontatme
The TGM map format doesn't work with bigger maps.

Re: Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 1:09 am
by paprika
The game shouldn't be crashing with non-TGM maps being loaded though, where is that happening? Can't you just a) increase the dimensions of TGM or b) load the maps using a legacy system?

Please don't tell me this wasn't considered.

Re: Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 3:28 am
by onleavedontatme
https://github.com/tgstation/tgstation/pull/16026

You'd have to ask dunc who removed asteroid for longer working or

https://github.com/tgstation/tgstation/pull/17015

corruptcomputer who got asteroid working again by shrinking it

Re: Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 3:38 am
by paprika
Oh god, those horrible words, "BYOND BUG"

I'll look into this in the future if it's ever fixed, though I'm sure by then you'll have a huge lavaland map eh? Thanks for looking around kor.

Re: Maps over 255x255 tiles crash?

Posted: Sat Jun 04, 2016 2:16 pm
by Scott
I don't know about the cause being 255x255 map size, but compilation fails (read: crashes DM) with the original Asteroid Station in TGM format. It's not about TGM not supporting big maps, it's about DM runtiming due to a memory handling error triggered by the TGM format.

It's a byond bug that is not being fixed any time soon, it was already reported and the report is gathering dust and cobwebs. Go bump it.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 8:23 am
by oranges
I'm pretty sure the max z level size being 255x255 is something else, maybe ask vg as they're running bigger maps now, so they might have insights on the limitations they hit.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 8:51 am
by Remie Richards
oranges it only triggers for TGM maps (for us atleast), because they bloat the size of the file (due to spacing things out per line to help git along with merging conflicts) and DM was just apparently never built to handle map files that are that big.

/vg/'s maps work over 255x255 because they don't use TGM.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 9:04 am
by oranges
Well the last I heard it wasn't map size causing the compile crash but just asteroid for some reason.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 9:30 am
by MisterPerson
It is map size, it's just only asteroid winds up being big enough in TGM.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 9:41 am
by Remie Richards
asteroid by default is 300x300 (or some numbers around that, but definitely our BIGGEST map) so having a bigger starting size, PLUS TGM is what triggered it here.
that's all that's special about Asteroid in terms of the crash, it's bigger before you apply TGM and it only gets BIGGER after you do, enough to reach this crash every (almost?) time.

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 3:25 pm
by paprika
Why does the filesize of a file get larger the more lines it has when it's essentially the same amount of information anyway, what a meme

Re: Maps over 255x255 tiles crash?

Posted: Tue Jun 07, 2016 4:22 pm
by Bawhoppennn
MSO made a Byond bug report looking for answers, maybe you could spam Lummox to help your quest

http://www.byond.com/forum/?post=2044362

Re: Maps over 255x255 tiles crash?

Posted: Wed Jun 08, 2016 2:23 am
by paprika
I did, I used my two year subscriber influence to put it on his to-do list, soon we will have 1000x1000 lavastation.

Re: Maps over 255x255 tiles crash?

Posted: Wed Jun 08, 2016 4:10 am
by Jordie0608
paprika wrote:Why does the filesize of a file get larger the more lines it has when it's essentially the same amount of information anyway, what a meme
More lines means more metadata like line break characters.

Re: Maps over 255x255 tiles crash?

Posted: Wed Jun 08, 2016 4:13 am
by paprika
thanks for coding 101 i'm retarded