WIP - Libya BETA for BMS
-
4096/16 happens to be 256.
I see popping random tiles in terrain when number of sets crosses above 256. However, I just looked at number of tiles and indeed it looks like problem starts above 4096th tile slot (in my case some of the slots are empty, but this does not matter).Edit:what is the effect when you exceed set limit 1024?
Monster topic :
Effect , 257 set…
Unfortunately, although I could enter more than 256 sets in TerrainEditor without any problem, when I tried to fly in Falcon above the area of the new tiles I entered (these that belong to sets above 255), I got a CTD (in OF).
Variable wise, there shouldn’t be any problems, because the variable that is used to store the number of sets, is long integer (4 bytes, 32 bits) with a theoretical maximum of 4.294.967.295 sets (or 68.719.476.720 tiles). What I believe is, that this value is limited in the code because of the L0 and L1 tile values.
The L1 tile values are calculated by adding 4.096 to the corresponding L2 tile value. For L0 the value to add is 8.192. I believe, the code checks if the value that is called to display is between the following ranges, to get the tile from the corresponding source:
Code: Select all 0 <= Tile < 4096 –> Gets the Tile from L2 (L*.dds)
4096 <= Tile < 8192 --> Gets the Tile from L1 (M*.dds)
8192 <= Tile < 12288 --> Gets the Tile from L0 (H*.dds)So, as you can see, if you have a tile number bigger than 4095 (so it belongs to a set bigger than 255), Falcon assumes that it is a L1 tile, will subtract 4096 from the value, and try to load the corresponding M*.dds.
As an example, lets say we have tile 4099 (Set 256, fourth tile). When Falcon gets this number (when you enter the L2 radius), assumes L1 and tries to load the corresponding tile 4099-4096=3. If tile #3 is defined in theater.bin, you will see the M version of tile #3, otherwise a CTD. When you enter the L1 or L0 radius, you’ll probably get a CTD.
I tested the above and actually saw tile #1 instead of #4097 and when I got closer I had a CTD. To conclude, of course this is an exe edit fix and has nothing to do with TerrainEditor.
-
I sit around picking my nose and eating BOOGERS.
Ohhh, i think i have seen you before
No, seriously. What have you done in the past. I heart from Demer, that you “hack” too, but actually never could refer to you.
FreeFalcon modder? OF modder? …and what? -
Thank you Free Falcon. This was good reminder, I forgot about that post of Monster. It makes perfect sense and that is what is happening.
-
Nope, I’m NOT a hacker. Wouldn’t even want to be associated with being one.
I don’t have time to list the stuff I’ve done in the past or here at BMS.
Crawl out of your universe and look for yourself.;)
RAM22
-
Meeeh ……
-
Don’t know if you are doing a little trolling or asking a serious question.
Ram22 is everwhere…… Mahwaaaaa
-
Ram22 is everwhere…… Mahwaaaaa
I dunno…he seems kind of lazy to me. All I’ve seen him do is code, campaigns, tiles, and serve as a 23.5 hour help desk. I mean there are 24 hours in a day.
-
Don’t know if you are doing a little trolling
Ding Ding Ding.;)
Did you get my Happy Birthday message?? Damn it, you didn’t respond.
Nice to see you running around. Even if you are getting old. Oh, did I mention I’m almost 50???:shock: My oldest daughter in the AF turned 30 two days ago. I can remember walking here to 1st grade in Berlin like it was yesterday.:
RAM22
-
I dunno…he seems kind of lazy to me. All I’ve seen him do is code, campaigns, tiles, and serve as a 23.5 hour help desk. I mean there are 24 hours in a day.
That’s true! What a slacker!
-
@RAM22:
Ding Ding Ding.;)
Did you get my Happy Birthday message?? Damn it, you didn’t respond.
Nice to see you running around. Even if you are getting old. Oh, did I mention I’m almost 50???:shock: My oldest daughter in the AF turned 30 two days ago. I can remember walking here to 1st grade in Berlin like it was yesterday.:
RAM22
Yup! I got it, Thanks!
I have never felt this old my whole life…. oh I guess that’s how it’s suppose to be.
Speaking of guys that are slackers and haven’t done anything (I’m talking about me, so I’m being truthful) Do you have any project I can help with?
-
Do you have any project I can help with?
Sure, can you speak Swahili??
LOL, PM inbound.
RAM22
-
@RAM22:
Sure, can you speak Swahili??
LOL, PM inbound.
RAM22
sawa -yakini PM juu yu njia lol
-
Oh-tay at-they Ud-gay, Uk-fay.:uham:
Am-Ray U-tay U-tay
-
No, i was asking serious questions. I was just interested. Was he AF-Team, BMS-Team, Freelancer -so to speak- , what actually did he do…just curious.
We had not much chance on TS to talk before.I dont think i need your help RAM22, but thanks the offer.
Btw, i have been told that RAM22 was troll-approved …is thaat rigth ?
-
Yes, Oden bestowed Knighthood unto me into the Kingdom of Trolls.
RAM22
-
It shows :mrgreen:
-
Ramster started with cptmtge and me as FF campaign testdude in the FF campaign deving group. Being invited there alone was an honor for us. Than one magical day Ramsty decided to bioshock his brain and started to learn about all the FF related campaign deving shit-one year later or so he was the camp deving source there and went on learning other shit. Sure gents like Hustler and Khronik helped bigtime-but this ‘sucka’ could have managed a university grade with that learning courve:rolleyes::-o. So much to talktime, no show some screens, buster! Cheerio… T-man
-
A.S.:
PS in other words RAM was the core camp dev at FF before he left. I wonder if there’s any region you haven’t worked yet in in Falcon lol.Cheers
Tom
-
Ramster started with cptmtge and me as FF campaign testdude in the FF campaign deving group. Being invited there alone was an honor for us.
Your Welcome……BugHunter…:mrgreen:
Mother Dave
-
Sit rep please.