Skip to content

Resync with master#54

Merged
Desdaemon merged 591 commits intoynoproject:masterfrom
Desdaemon:master-jan-25
Mar 27, 2025
Merged

Resync with master#54
Desdaemon merged 591 commits intoynoproject:masterfrom
Desdaemon:master-jan-25

Conversation

@Desdaemon
Copy link
Copy Markdown
Contributor

No description provided.

fdelapena and others added 30 commits November 29, 2024 17:21
Currently added the following:
0: Get Map size
2: Window Size
5: Tileset ID
6: Face ID (partial) only for actors, not messages
…pPartial

Partially implement Maniacs Command 3015: RewriteMap
Added new functions for the following:
6: Get player/message portrait
7: Get player/event sprite
8: Get Screen position
9: Get Screen shake offset
10: Get Current BGM
String Variables: Operate on Codepoints
Co-authored-by: MackValentine <mackvalentine@gmail.com>
Co-authored-by: Mauro Junior <jetrotau@gmail.com>
…ure)

Another smaller update:
Events can be disabled and enabled again through maniacs patch.
It also allows targeting event by ID instead of only erasing the caller itself.

```js
//TPC SYNTAX

@ev[2].erase
@wait .input
v[1] = 2
@ev[ v[1] ].return
```
ATB is e.g. not supported as 2k does not use a ATB system.
Tiny update based on @MackValentine's code.

In MP, Move Route supports using variables as the target event ID:

```js
//TPC SYNTAX:

v[1] = 2
@ev[v[1]].setAction .freq 8 .unskippable .act {
    .moveDown
}
```

Co-Authored-By: MackValentine <7922705+MackValentine@users.noreply.github.com>
… title (the new behaviour) or by folder name (the old behaviour)
Added an option to get the old behaviour back.

Fix #3311
Implement Maniacs Command 3009: ControlBattle
…riable

MoveRoute - Support Variables as Event ID (Maniac patch feature)
…pdates

Erase Event - Erase By ID + Recreate Event Option (Maniac Patch Feature)
Maniac Patch is now detected when the new exe is used.

The difference between 32bit PE and 64 bit PE is actually not that huge when you only care about the resources.

The differences:

- The machine type is 0x8664
- In the optional header the magic at the beginning is 0x20b instead of 0x10b (0x20b is a "PE32+" header, 0x10b is a "PE32" header)
- The data direction offset is different because the PE32+ image file header is larger

The offset calculation was the major change:

Before the resource offset was hardcoded to 0x88 (136) which is actually "size_of_optional_header (24) + size_of_image_file_header (96/112 [PE+]) + 16".
ExeReader: Support 64 Bit executables
Is a built-in symbol on Android and breaks the build
core.h is just a forwarder to format.h in recent version.
Ghabry and others added 28 commits March 12, 2025 00:13
Otherwise this logs twice (once via RetroArch, once via our logfile)
Libretro related buildfixes and new presets
Implement undocumented mouse binding for the Ineluki patch
Otherwise this breaks games using MP because != 0 is detected as "Wait for Movement".
Add Header required for liblcf#499
Migrate to std::string_view, liblcf #495
MovePicture: Stub Maniac Patch option flags
The return values are not used by our code so this was actually harmless.
Return for ExPatch fixed to return a valid string_view.
Return type for ToFile changed to bool as string_view made no sense here in signalling an error.

Reported by clang on macOS.
@Desdaemon Desdaemon merged commit 31eeff7 into ynoproject:master Mar 27, 2025
0 of 4 checks passed
@Desdaemon Desdaemon deleted the master-jan-25 branch March 27, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.