graphicsinfo.conf: how is it right?

Stuck at a level? Need help with R'n'D or anything R'n'D related? Post here!

Moderators: Flumminator, Zomis

Post Reply
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

graphicsinfo.conf: how is it right?

Post by Sascha »

Can anybody write down here when you have to writ "_" and when "." in graphicsinfo.conf?

Example:

Code: Select all

custom_1.moving_right
or
custom_1_moving.right
or
custom_1.moving.right
or
custom_1_moving_right
???
And so on.
And other options.
digging, collecting, moving, .....

Please?
Image
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan »

It's custom_1.moving.right:

The underscore is for a single object that has two parts (in this case a number)
The fullstop is the delimiter which seperates actions and directions, and you finish it off with a colon.

But, there are some commands that have directions in the element like: balloon_switch_down and conveyor_belt_1_right.

But the most confusing ones (for me anyway) are the "turning" commands.... I always have to sit and think about it for a while :)

bug.turning_from_left.down (arggg!)
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

You can extract the default graphicsinfo.conf file from rocks and diamonds by typing

Code: Select all

rocksndiamonds --execute "print graphicsinfo.conf"
at the command prompt. Or to save it to a file, type:

Code: Select all

rocksndiamonds --execute "print graphicsinfo.conf" >afile.txt
This is useful for seeing how the default graphics work. :)
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan »

You can extract the default graphicsinfo.conf file from rocks and diamonds by typing
Yeah I suppose you could....... but no custom info is dumped!
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

Hmm, that's true. But at least there is some info in there...
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan »

The best way to learn something is by looking at somebody else's work.
Before we had the forum it was pretty much the only way (or email Holger everytime)

I learned a lot by looking at Jue's graphicinfo (Jue1 was the only fully customized game at the time), experimenting with elements and eventually adding my own ideas (when it sunk in).

So how did Jue know about all the graphicinfo commands? Who knows! :)
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> So how did Jue know about all the graphicinfo commands? Who knows!

Because he helped inventing this new technique that wasn't there before R'n'D 3.0.0. :-)

The whole story goes more or less like this: There is another EM clone, Sapphire Yours, that also offered custom artwork (long before R'n'D supported this), and Jue already created a fully customised level set for this game. He wanted to do the same for a R'n'D set, and pointed me to some sort of "artwork elements" in Sapphire Yours, which were just walls which could be decorated with artworks or even animations. Jue wanted to have the same for R'n'D, and when adding this, I thought that it would be nice to also be able to set some properties of these "walls", like "destructible" or "indestructible". Or "slippery". Or "can be pushed". Or even "can fall". So, the first custom elements were born! :-)

About the "_" and "." thing: As Alan already said, think of the "." as a separator that groups together elements, actions and directions. The "_" is only used to separate words that describe elements or actions -- think of it as a normal character like A-Z, without any special meaning.

To better understand when to use "foo_left" or "foo.left", check if the direction is used on an element that could move in that direction. If it can, use the dot notation, like "bug.left". If it cannot, it's just part of the element name, like "sp_port_left" or "acid_splash_left" (which never move to any other tile).
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

One's more:
"_" is a seperator only.
And "." is a... dot... to
seperate the actions... or so.

Or you use ConfEdit!
Image
User avatar
Alan
Posts: 661
Joined: Fri Jun 18, 2004 7:48 pm

Post by Alan »

So Jue could be considered the forefather of custom elements? ;-)
Or you use ConfEdit!
I hate to say this, but ConfEdit would be absolutely perfect for you right now. It's just a shame it doesn't work for you! :-(
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

I'm afraid that I have to agree with Alan here! :cry:
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
User avatar
Holger
Site Admin
Posts: 4081
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Post by Holger »

> So Jue could be considered the forefather of custom elements?

Yep, definitely! (Although you added quite a lot of further ideas and features to implement during the development of BD2K3, if I remember correctly...)

> I hate to say this, but ConfEdit would be absolutely perfect for you right
> now. It's just a shame it doesn't work for you!

Alan's right here -- there's no better and faster way to handle such things than ConfEdit... :-/
User avatar
Sascha
Posts: 348
Joined: Fri May 12, 2006 6:17 pm
Location: Germany
Contact:

Post by Sascha »

>ConfEdit would be absolutely perfect for you right now. It's just a shame it >doesn't work for you! Sad

Alway I!
You're right, and I don't know why!!!
I use Linux Kubuntu and Windows XP
and it doesn't work at Windows!! :evil:
Image
Daniel H.
Posts: 535
Joined: Sun Apr 02, 2006 7:13 pm
Location: USA

Post by Daniel H. »

Sascha wrote:...and it doesn't work at Windows!! :evil:
Yes, we remember. We're sorry that it doesn't work! :(
The H. World levelset can be downloaded from http://www.bd-fans.com/RnD.html -- search The H. World on that page.
Post Reply