Map size related bug for BZFlag

NOTE: this is an informal bug post place ONLY. Real bugs should be posted on GitHub
Post Reply
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Map size related bug for BZFlag

Post by Dervish »

****** THIS MESSAGE ALSO POSTED IN OTHER FORUMS ******

I know that this topic has been floating around the forums on sourceforge, but not to this exact detail...

I've recently been working on a map that is crossing the 32KB file size. I've noticed that some (not all) teleporter links stop working when the map is larger than 32KB.

I've also tried moving teleporter and link statements to the top of the map file, making sure to keep them in the original order. Nothing helps except making the file size smaller.

My map currently has 30 teleporters, and 60 links to account for both sides of each teleporter. Yes, this is a large map.

I'm working in BZEdit, but after my work is complete, I edit the file manually and delete all BZEdit comment lines to save space. The world is currently 38KB with only two comment lines at the very top. I've temporarily taken the file size down to 31KB to test, and sure enough, the teleporters start to work again at this file size.

Any suggestions for developers? Thanks in advance.

Platform: Windows XP Pro to test map locally
BZFlag: BZFS 1.7g1 (CVS build)
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
User avatar
Dutchrai
Private First Class
Private First Class
Posts: 394
Joined: Sat Dec 07, 2002 3:12 am
Location: Singapore
Contact:

Post by Dutchrai »

Interesting. Never experienced it I guess since all my maps are below 32KB.

I did use up to 36 teleporters once (Monster Lab), but appearently due to its file size (24KB) there were no problems.

Do you experience the 'missing link' problem on both Win and Lin platforms?
[img:82d1e9b9a0]http://shellshock.bzflag.bz/images/forum/bbbanner.png[/img:82d1e9b9a0]
[color=#405070:82d1e9b9a0]
Visit Shell Shock at [b:82d1e9b9a0]http://shellshock.bzflag.bz[/b:82d1e9b9a0] for news, maps, tactical guides, game servers and more
[/color:82d1e9b9a0]
User avatar
MrApathyCream
Dev Wizard
Dev Wizard
Posts: 66
Joined: Fri Dec 06, 2002 9:16 pm
Location: Warwick, MD
Contact:

Post by MrApathyCream »

Well, in theory the maximum size of a world needs to be slightly less than 64K. But this isn't the size of the bzw file, but the binary version, so there isn't a simple formula. Look in your cache directory to see the actual size of the binary version of your world. At one point there was a bug regarding the total number of teleporters, but this was supposedly fixed. Maybe you've stumbled on another variant.

If you want post the world on the bugs forum in Sourceforge.
User avatar
SGI
Private First Class
Private First Class
Posts: 513
Joined: Mon Dec 09, 2002 7:24 pm
Location: Motown, MI, USA

Post by SGI »

Arg me tooooo 64 TP's with links.........
I'm going to delete some TP's
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

maps with that many objects will aslo be rather slow on low end systems with bzflags current object culling system.

One way to check if it's a file size thing would be is get the map to a working size, then add a butt load of comments and see if it craps out.

Looks like there is no limit to the number of objects in the code, and link IDs are ints, just that 64k packet thing ( that realy should be changed ).

And yes definatly get it reported as a bug on the SF forums, that's what they are there for :).
ImageJeffM
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Thanks for everyone's help. :)
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

please post the map in a place we can get to it at. We can't do anything with out the map, since I don't think it's just the teleporters and links that do it.
ImageJeffM
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

I'm tryin to dupe it an It's going fine for me.

What specifc links in that map don't work? from what TP to what TP?

Packed your map is like 2k. so I don't see you hiting any limits. You sure you don't have a bad link or something?
ImageJeffM
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

can anyone get me a map and tell me what specific links don't work?
ImageJeffM
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Patlabor,

In a PM to you I gave you a link to my map. You replied and were going to enter a bug in the tracking system with sourceforge. Is there some other problem?
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

I said I would report it when I duped it.

The bug needs more info, and I have asked you for that info in my last 2 posts.

What links don't work? we need specifics here. I have gone thru allmost all your ports and they seem to work just as they show in the editor.

If I post it as a bug now, it will just get bummped to closed with not enough info.
ImageJeffM
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Ah, ok. I'm on the same page as you now. :)

Dutchrai recently PMed me with a really good idea I'm going to try. I'll let you know how it turns out. Thanks.
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

ok let me know, as soon as you can tell me what link dosn't work, I can pop in the debuger and see what the dillio is.
ImageJeffM
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Well, I got a new version of my map less than 32KB. When I continue adding structures to the map, I am going to try dutchrai's suggestion of keeping links close after the teleporters.

Just a wild guess in the blue, may be links located beyond the 32KB marker are loaded differently that links below, will not link to teleporters below the 32KB marker, and vice versa? Just a wild guess based upon speculation. :)
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

its all based on link IDs not size of the text file. BZFS just sucks up the text as a stream, dosn't even save it in text form.

If you have a specific link set that dosn't work, let me know what ones. I can pop into the debuger and see what is hapening. no need to speculate.
ImageJeffM
User avatar
MrApathyCream
Dev Wizard
Dev Wizard
Posts: 66
Joined: Fri Dec 06, 2002 9:16 pm
Location: Warwick, MD
Contact:

Post by MrApathyCream »

Patlabor221 wrote:If you have a specific link set that dosn't work, let me know what ones. I can pop into the debuger and see what is hapening. no need to speculate.
Yes Please! Rather than trying to massage the world file so that it works, break the dang thing, please!! Duk, Sounds like you have a handle on a version of your file that causes bz to puke... That's just the thing we want.
Post the world on sf bugs please.
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Apathy,

I make a new copy of each save for my maps, so I will locate the one with the problem and post it. Thanks. :)
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
User avatar
JeffM
Staff Sergeant
Staff Sergeant
Posts: 5196
Joined: Fri Dec 13, 2002 4:11 am

Post by JeffM »

and tell us what link too.
ImageJeffM
User avatar
larsl
Dev Monkey
Dev Monkey
Posts: 50
Joined: Tue May 20, 2003 2:35 pm
Location: Stockholm
Contact:

Post by larsl »

There was a bug in the teleporter parsing code which would reset some links in maps with many teleporters. That was fixed in 1.7g2, so if that was the problem it should work fine in that version.
User avatar
Dervish
Private First Class
Private First Class
Posts: 651
Joined: Thu Dec 05, 2002 12:39 am
Location: public void

Post by Dervish »

Thanks! :)
protected object myTank(){
foreach(noob in this.game){return frag(noob);}}
Image
Post Reply