Romhacking.net

Romhacking => Newcomer's Board => Topic started by: looks png on January 26, 2022, 03:30:39 am

Title: Questions about background pictures of mesen's activities
Post by: looks png on January 26, 2022, 03:30:39 am
What is the background of mesen and the whole process of programming?

I only see it in the help document, saying:

<background>myBackground. png,1.0,0,0,N,0,0

Then there is the content explanation behind the instruction

 Here it is pointed out:

<background> tags meant to be used alongside conditions to add a background image under certain conditions (e.g on a specific screen, for example).

But how should this "under certain conditions" be formulated?

For example, this is the script of contract:

<condition>DestroyedBuildingI,tileAtPosition,248,192,286A4CBA6BDD6E770000000000000000,0F013010

[DestroyedBuildingI&BaseDoorFix1&BaseDoorFix2]<background>Stage1BaseBlowUp9. png,1,0,0,10,0,0


here:

<condition>DestroyedBuildingI,tileAtPosition,248,192,286A4CBA6BDD6E770000000000000000,0F013010

[DestroyedBuildingI&BaseDoorFix1&BaseDoorFix2]

Why is it written like this?

Where can I find learning materials to define the premise of < background >?

.................

Oh, yes, I may be really boring, because I always ask some simple questions in the eyes of experts, so that's it

I'd better learn the programming knowledge of 6502 from scratch
Title: Re: Questions about background pictures of mesen's activities
Post by: mkwong98 on January 26, 2022, 11:03:13 pm
This is explained here:
这里有解释:
https://www.mesen.ca/docs/hdpacks.html#using-conditions (https://www.mesen.ca/docs/hdpacks.html#using-conditions)

You can use multiple conditions by joining the condition names with "&". So "[DestroyedBuildingI&BaseDoorFix1&BaseDoorFix2]" is actually 3 conditions: "DestroyedBuilding", "BaseDoorFix1" and "BaseDoorFix2".
你可以用“&“将多个条件结合起来用。所以“[DestroyedBuildingI&BaseDoorFix1&BaseDoorFix2]“实际上是3个条件:“DestroyedBuilding“、“BaseDoorFix1“和“BaseDoorFix2“。