Boulder Dash Forum Forum Index Boulder Dash Forum
The only Boulder Dash discussion board in English language!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BDCFF -> MAPS Converter v1.2 released

 
Post new topic   Reply to topic    Boulder Dash Forum Forum Index -> News
View previous topic :: View next topic  
Author Message
Arno
Site Admin


Joined: 17 Mar 2007
Posts: 2209
Location: netherlands

PostPosted: Sun Jul 29, 2007 4:12 pm    Post subject: BDCFF -> MAPS Converter v1.2 released Reply with quote

Get it here.

Most important changes of the new version are the following:
- It's now possible to compile all levels of BD1/2 engine games. (Example BD1 level 1 2 3 4 5)
- Color modifications are implemented in 4 variants. (Example BD2)
- Use of a default color set.
- Adjustable width of the border.
- Adjustable emptly lines in HTML file after title, caves and intermissions. (This is handy when you print the HTML file.)
- All parameters can now be set in a separate file preferences.txt.
- BD2 graphics file is updated. (Throw away the old one!)
- BDCFF file name is used for the output file names, instead of the game name. (This leads to shorter file names. Moreover, the forum seems to dislike names containing the ' character, so this is a way to remove it.)
- Name of the program has changed to "BDCFF-->MAPS Converter". (This time I did change the name, because I find the new name a better representation of what de converter does.)
- Some minor changes.
_________________
---- Boulder Dash Fansite ----


Last edited by Arno on Thu Aug 09, 2007 6:14 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Mon Jul 30, 2007 12:04 am    Post subject: Reply with quote

The process seems a lot cleaner now Smile , but how do I change the graphics set? It converts them as soon as I enter a name. Neutral

[EDIT] Nvm, I found the preferences file Very Happy. This is definitely handy! My only complaint (sorry Embarassed ) is that it's more cumbersome to have to change the graphics file in the preferences instead of just pressing a different number when necessary. But, everything else is great! I'm having fun playing with the color mods!
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
Arno
Site Admin


Joined: 17 Mar 2007
Posts: 2209
Location: netherlands

PostPosted: Mon Jul 30, 2007 4:50 pm    Post subject: Reply with quote

RTADash wrote:
Nvm, I found the preferences file Very Happy. This is definitely handy! My only complaint (sorry Embarassed ) is that it's more cumbersome to have to change the graphics file in the preferences instead of just pressing a different number when necessary. But, everything else is great! I'm having fun playing with the color mods!

Thank you very much! Very Happy

Concerning the graphics input, I just wanted to have as many settings as possible in the Preferences file, to have a minimal input from the user via keyboard. Also there's no distinction anymore between "standard" and "custom" graphics sets.
_________________
---- Boulder Dash Fansite ----
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Fri Oct 26, 2007 8:24 pm    Post subject: Reply with quote

I've just discovered a rather large bug, which isn't apparent initially because the function concerned is only in one of the standard games.
It's the "Add=" drawing instruction - it is drawn correctly in only one of 3 cases: adding something above/right/below a randomly placed object.

AFAIK, it won't work going to the left of an object, because the instruction is "Add=39 0 (or 38, 37, etc.)" (because negatives aren't permitted). My guess is that it doesn't properly wrap around to the next line.

The other problem is that the Add instruction should also work when adding items onto other items earlier in the set of drawing instructions.
Both of these problems can seen in Profi Boulder 72 (caves E and O).

I know it's not a very common instruction (in the most common games, at least), but a bug, nonetheless.
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
LogicDeLuxe
Member


Joined: 15 Jul 2007
Posts: 613

PostPosted: Sat Oct 27, 2007 9:49 am    Post subject: Reply with quote

RTADash wrote:
It's the "Add=" drawing instruction - it is drawn correctly in only one of 3 cases: adding something above/right/below a randomly placed object.
Where do you need to add something above anyways? BD2 doesn't support this, since it only takes one parameter which is the count to the right with lines wrapped around.
Back to top
View user's profile Send private message Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Sat Oct 27, 2007 3:00 pm    Post subject: Reply with quote

Oops, I guess it's just right and below... Embarassed

However the "Add=39 0" [I know "Add=-1 1" doesn't work] should place an object to the Lower-Left of the present one according to ProfiBoulder 72 (and some other games in that series.) and that's the a problem.

Maybe adding to an earlier drawing instruction does work after all, I'll check this...

[EDIT]
Whoops - it doesn't
Code:
RandSeed=10 11 12 13 14
RandomFill=SPACE 60 BOULDER 50 DIAMOND 9

[objects]
Line=1 7 30 7 WALL
Line=9 14 38 14 WALL
Point=3 2 INBOX
Point=38 16 OUTBOX
Add=1 0 FIREFLYl WALL
[/objects]

...produced the usual cave A without fireflies. Crying or Very sad
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
LogicDeLuxe
Member


Joined: 15 Jul 2007
Posts: 613

PostPosted: Sat Oct 27, 2007 4:58 pm    Post subject: Reply with quote

RTADash wrote:
I know "Add=-1 1" doesn't work
As the BDCFF doesn't restrict the parameters to positive numbers, it should work though. Crazy Dream PC will definately support both.

Furthermore "-1 1" isn't the same as "39 0" since BDCFF allows variable cave size, thus the result is different whenever the cave has any other width than 40.
Back to top
View user's profile Send private message Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Sat Oct 27, 2007 5:58 pm    Post subject: Reply with quote

LogicDeLuxe wrote:
As the BDCFF doesn't restrict the parameters to positive numbers

It does? That makes life easier. Smile If only the x2bdcff converter knew that...

LogicDeLuxe wrote:
BDCFF allows variable cave size

I should've realized this because of the intermissions, but has there ever been another cave size used? (other than 40x22 and 20x12) Just curious. Shocked
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
LogicDeLuxe
Member


Joined: 15 Jul 2007
Posts: 613

PostPosted: Sat Oct 27, 2007 6:39 pm    Post subject: Reply with quote

RTADash wrote:
but has there ever been another cave size used? (other than 40x22 and 20x12) Just curious. Shocked
As all BDCFF files are converted from C64 so far, afaIk, which only supports 40x22, there isn't yet. But since BDCFF is supposed to be a universal file format, it makes sense to do this. My The New Dash Dimension has a few caves with other dimensions, and since I plan to do a converter supporting DAS->BDCFF...

Btw. that wraparound behavior should be implemented for all drawing instructions, not only for "add". It is the way the C64 engines work, and there are some dirty constructed caves in existence.
Back to top
View user's profile Send private message Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Sun Oct 28, 2007 4:43 pm    Post subject: Reply with quote

Well - I did a little more testing, and adding an object below or right of one which was drawn in an earlier instruction.
I don't know why it didn't work before, maybe I did something stupid with the coordinates - which is very likely Very Happy .
However, using negative numbers didn't work so the cave-wraparound values have to be used, afterall.

@Arno, sorry for contradicting myself several times as to what I thought needed to be fixed - this post is the one to go by. Does the BDCFF > MAPS program numerically store the dimensions of a cave when it creates the pics? If so, how easy/hard would it be to just use the dimension figures to assist the various drawing instructions in properly placing the objects? Confused
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
Arno
Site Admin


Joined: 17 Mar 2007
Posts: 2209
Location: netherlands

PostPosted: Sun Oct 28, 2007 7:20 pm    Post subject: Reply with quote

I uploaded another version of the converter. The use of negatives is supported now. RTADash, could you test if ProfiBoulder 72 works correctly when putting "Add=-1 1" in the BDCFF?

For the wraparound effect I'll have to take a closer look. This is harder to implement, as the converter internally stores the maps in 2-dimensional arrays instead of "one line". But it must be possible anyway.

To be honest, I've never spent much attention to the "Add=" instruction, since I didn't realize it was used in any game besides BD2. Also a few things about the behavior of this instruction aren't yet clear to me:

1. Is adding items to the border allowed?
2. Looping over the map to search for Item x, and adding Item y, is that seperately done, or both at the same time?
_________________
---- Boulder Dash Fansite ----
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LogicDeLuxe
Member


Joined: 15 Jul 2007
Posts: 613

PostPosted: Sun Oct 28, 2007 9:09 pm    Post subject: Reply with quote

Arno wrote:
1. Is adding items to the border allowed?
Of course it is, as the engine does the drawing in this order: Random elements with Dirt at the remaining spots, the Titanium border, the drawing instructions. Thus, the border is handled like any element in the cave (whether random, border or set with a previous drawing instruction, it's all handled the same).

The status bar is stored right after the cave in RAM and can be messed up with add instructions (which is a mere cosmetic issue). Rockford improved the add instruction with a boundary check to prevent this glitch.
Quote:
2. Looping over the map to search for Item x, and adding Item y, is that seperately done, or both at the same time?
At the same time, from top to bottom, each line from left to right.
In fact, the add instruction adds to its own placed elements if the source and target element is the same. Rockford deployed this effect in some Profi Boulders, iIrc.
Some examples to test: "add=1 0 STEELWALL STEELWALL" should fill up the entire cave (unless the border is replace before that instruction). "add=1 0 DIRT DIRT" should fill the entire cave from the first Dirt appearance on, including the side and bottom borders (or the entire cave if it is preceeded by a "point=0 0 DIRT")
Back to top
View user's profile Send private message Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Sun Oct 28, 2007 11:05 pm    Post subject: Reply with quote

In addition to that, I noticed an interesting phenomena. [this is according to the Prof72 caves in BRemake] Using "Add=-1 1" in cave O, once the fireflies hit the left edge (the space adjacent to the border), the line continues on the opposite edge, starting 2 squares lower than where it hit the left edge. Is this intentional, or did BR mess up here?
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
LogicDeLuxe
Member


Joined: 15 Jul 2007
Posts: 613

PostPosted: Mon Oct 29, 2007 12:18 am    Post subject: Reply with quote

RTADash wrote:
In addition to that, I noticed an interesting phenomena. [this is according to the Prof72 caves in BRemake] Using "Add=-1 1" in cave O, once the fireflies hit the left edge (the space adjacent to the border), the line continues on the opposite edge, starting 2 squares lower than where it hit the left edge. Is this intentional, or did BR mess up here?
You're thinking much to complicated. A C64 cave is allocated in a continuous array, thus those drawing instruction don't really know anything about a left or right border. They merely get a coordinate by the formular X+Y*40. For instance, "point=10 10 DIRT" sets the same piece of Dirt as "point=50 9 DIRT".

In this particular cave, the add instruction just sets a Firefly 39 units away from the source Firefly. Once reached the left border, it adds a Firefly on the right border in the same line, since it is 39 units away too. To get rid of the Fireflies on the border, it is redrawn after the add instruction in this cave.
Back to top
View user's profile Send private message Visit poster's website
RTADash
Member


Joined: 26 May 2007
Posts: 414
Location: USA (in Ohio)

PostPosted: Mon Oct 29, 2007 1:39 am    Post subject: Reply with quote

Ohhhhhh. Mr. Green
_________________
Boulders are round.
Fireflies are square.
I need to find
a'way out of here.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    Boulder Dash Forum Forum Index -> News All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group