Dear forum users! In compliance with the new European GDPR regulations, we'd just like to inform you that if you have an account, your email address is stored in our database. We do not share your information with third parties, and your email address and password are encrypted for security reasons.

New to the forum? Say hello in this topic! Also make sure to read the rules.

SFD world size.

Share questions and tutorials related to the map editor. Share you maps in the Superfighters Deluxe Custom Maps section.
Forum rules
By using the forum you agree to the following rules.
Post Reply
User avatar
Astolfo
Fighter
Fighter
Posts: 13
Joined: Tue Jan 21, 2020 9:00 pm
Started SFD: I forgot

SFD world size.

Post by Astolfo » Sun Jan 10, 2021 12:01 am

How large can be world in SFD?
0 x
Hello world

User avatar
Shock
Superfighter
Superfighter
Posts: 312
Joined: Sun Mar 20, 2016 7:17 am
Title: Content-maker
SFD Account: Shock
Started SFD: Pre-Alpha 1.2.0.
Location: Belarus
Gender:
Age: 25
Contact:

Post by Shock » Sun Jan 10, 2021 9:42 am

Astolfo wrote:
Sun Jan 10, 2021 12:01 am
How large can be world in SFD?
I think this can be really large, but too much details can ruin it, i have many RP-sized maps, they look like cities
0 x
-Content-maker.

User avatar
Odex64
Superfighter
Superfighter
Posts: 173
Joined: Sat Jul 29, 2017 12:39 pm
Title: Content Creator
SFD Account: Odex64
Started SFD: PreAlpha
Location: Italy
Gender:
Age: 22

Post by Odex64 » Sun Jan 10, 2021 4:22 pm

Astolfo wrote:
Sun Jan 10, 2021 12:01 am
How large can be world in SFD?
That's a good question.. at first I'd say they're infinite since there's not a real "limit" to make maps, but the Vector2(used to calculate the world position) takes two Float as parameter. Floats' max value is: 3.402823E+38 (around 340282347000000000000000000000000000000), so that means the farthest tile can be placed 42535293375000000000000000000000000000 blocks away from the center of the map (8x grid); I'm not sure tho, since the world size itself may be a different type (such as a double).
1 x
Image

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1885
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Thu Jan 14, 2021 5:34 pm

Of course there's a practical limit on how big a world can be without consequences like fps drops. Try to limit it to about what our campaigns are in size and number of tiles. Go bigger if your computer allowes it.
0 x
Gurt

User avatar
Kawabanga
Superfighter
Superfighter
Posts: 69
Joined: Sat Mar 19, 2016 10:36 pm
Title: Epic fails amateur.
SFD Alias: My name is Kawa-bbanggza!!
Started SFD: Late 2015
Location: Poland
Gender:

Post by Kawabanga » Fri Jan 29, 2021 9:01 pm

Is the reasonable limit of file size in MB known? (how many MB can the map file weigh, to be playable?)
0 x

User avatar
Gurt
Lead Programmer
Lead Programmer
Posts: 1885
Joined: Sun Feb 28, 2016 3:22 pm
Title: Lead programmer
Started SFD: Made it!
Location: Sweden
Gender:
Age: 34

Post by Gurt » Sat Jan 30, 2021 10:23 am

You will probably reach a lot of other practical problems and other out-of-memory exceptions before you reach the limit of (I think) 2 GB file-size for maps in SFD. But you wouldn't want such big files anyway.
2 x
Gurt

Post Reply