Commit Graph

39 Commits

Author SHA1 Message Date
Morilli 4dc0ec5b87 fix bundled input display script's controller detection
surely this breaks nothing
2024-12-20 20:24:35 +01:00
Morilli 18ef28ccef Improve bundled input display script's handling of unsupported systems 2024-12-20 20:23:51 +01:00
feos 40dae6e8ae new function 2024-10-11 22:42:19 +03:00
feos 8e9e9b9218 update script 2024-07-27 14:54:02 +03:00
feos e214b7dc33 fix script 2024-07-16 20:29:29 +03:00
feos a5e7288a71 add batman-robin lua 2024-07-11 17:48:33 +03:00
CasualPokePlayer e0b44a5582 fixup crosshair lua display to account for recent changes, it should work in all cases now, no more stupid requiring specific settings 2023-09-25 22:29:41 -07:00
CasualPokePlayer 5f0683c1ae Fix #3616
This had two issues. One, relative pathing with dlls is a no-go. Our hackery with changing cwd seems to confuse lua, and while it can find the dll, it fails to load as Windows (at least) does not consider cwd for loading up dlls it appears. Secondly, people using luasockets never actually loaded up the luasockets dll, rather we were bundling it ourselves. From history it seems this was due to our lua being compiled with CLR/.NET and that didn't play nice with exceptions? Doesn't seem to be an issue anymore, but we should probably still bundle luasockets for the time being given it used in many different projects which use the same script with multiple different emulators (thus our own sockets are simply not usable).
2023-04-08 16:01:36 -07:00
Morilli 576ab3174b best-effort fix bundled smw lua script 2022-12-20 18:21:44 +01:00
YoshiRulz c7781d1c17
Add Lua migration helper library for bitwise ops
see 49cd836e1, #3485
put `bit = (require "migration_helpers").EmuHawk_pre_2_9_bit();` at top of file
can now easily add helpers for migrating from other emulators
2022-12-11 13:19:19 +10:00
feos dc774ed8be update EWJ2 script too 2022-12-09 13:06:41 +03:00
feos 7b7cea8bcf update gargoyles script to work with new lua 2022-12-09 12:27:48 +03:00
CasualPokePlayer 2eb6f83314
fix vb when not recording a movie in input display lua 2022-05-31 22:38:27 -07:00
CasualPokePlayer 583f0f61cc biz side vb nyma 2022-05-29 19:46:38 -07:00
CasualPokePlayer 421c12f081 fix some other oopsies here 2021-11-03 18:12:05 -07:00
CasualPokePlayer 4c9d359a49 fix oopsies in nds stylus input display script 2021-11-03 18:04:07 -07:00
CasualPokePlayer 70cd0eab16 NDS Stylus Input Display script improvements and warnings 2021-11-03 17:59:25 -07:00
CasualPokePlayer 1ddbada5e4 NDS Lua Functions; update style input display to use them 2021-11-03 17:20:23 -07:00
CasualPokePlayer 41128abc37
[melonDS] Redo porting, waterbox style now (#2945)
Co-authored-by: nattthebear <goyuken@gmail.com>
2021-10-24 21:40:23 +03:00
YoshiRulz 7c1b40df1f Revert "The next time I look at this I want to see waterbox builds actually fucking working again. This means copying to dll as they are now, and not silently being overridden by stale files stored in another folder. This is not my problem to fix because I did not fucking break it."
This reverts commit d8d42b9f81.
2021-04-28 15:35:11 +10:00
nattthebear d8d42b9f81 The next time I look at this I want to see waterbox builds actually fucking working again. This means copying to dll as they are now, and not silently being overridden by stale files stored in another folder. This is not my problem to fix because I did not fucking break it. 2021-04-27 19:37:53 -04:00
CasualPokePlayer 1fe2a12b67
[MovieClock.lua] use cycle based time for Gambatte/SubGBHawk (#2708)
* use cycle based time for Gambatte/SubGBHawk

* non-functional cleanup
2021-04-18 10:05:53 -05:00
YoshiRulz d524da3530
s/null/nil/ in all included Lua scripts 2021-03-07 22:19:40 +10:00
adelikat bd64530ce5 fix MovieClock ui, bad gui.text() usage, also use current frame count instead of movie length 2020-10-17 13:33:13 -05:00
adelikat 369b7830a5 add Cyorter's Input display lua script, that gives a graphic based (FCEUX style) input display for most non-analog peripherals 2020-08-01 16:46:49 -05:00
zeromus 8084fce648 rename 2020-04-01 18:00:57 -04:00
zeromus d60b83791c fix StyleusInputDisplay 2020-04-01 18:00:42 -04:00
adelikat 2fbbe01347 DS - fix sylus lua script to use client.transformPoint, still doesn't work since it scales down to 1x 2020-04-01 11:55:23 -05:00
adelikat cea0e80637 DS cross hair display script - account for movie playback 2020-03-28 17:27:51 -05:00
adelikat d1032f38f8 DS - add a DS lua library with a touchScreenStart() method, add a cross hair stylus input display script 2020-03-28 15:43:31 -05:00
feos 5ca08b6c29
Camhack support (#1725)
for the camhack to work we have to save a state, hack memory, advance twice to see the changes, then load the state to prevent desync. since we can omit the framebuffer in savestates, loading them can happen without updating the screen, so the hacked camera remains visible.

advancing 2 frames automatically is done like tastudio does it when it seeks to a frame, only from lua now.

and the most questionable part is "invisible emulation", which is how Gens calls this IIRC, when everything that can distract or slow us down is skipped: sound, video, tools updates.

new lua functions:
- client.invisibleemulation()
- client.seekframe()

* for a test, mGBA core uses fake video and audio buffers and renders to them when we want to "skip" rendering. proper setup would involve actually skipping rendering those inside the core.
* allow disabling video and audio updates for gpgx too (proper approach, no fake buffers involved)
* add the script for Sonic Advance
2019-11-23 12:27:14 +03:00
feos dfd80d23fc update gargoyles script (with a 2yo version) 2019-06-15 19:06:49 +03:00
Simon 0a82411c21
Create JoypadIntersection.lua
Adds a small script which, when run, only allows input to P1's controller if both P1 and P2 holds down the specific button simultaneously. Also useful since it demonstrates joypad manipulation.
2018-10-22 21:52:07 +02:00
Ashafix 07da0170fa unified camelCase for Lua functions, changed Lua test script 2017-12-24 11:42:51 +01:00
Ashafix 4d063f6061 new library for communicating with other programs via Lua 2017-12-24 00:24:22 +01:00
feos d2642eaf59 Gargoyles.lua: fix last frame comparisons 2017-01-19 14:50:15 +03:00
feos 7a6c4ca986 Gargoyles.lua: heavy refactoring for the sake of speed (by caching map entries) 2017-01-08 15:25:50 +03:00
feos 9884d47a07 update Gargoyles.lua:
- use M64K Bus properly
- input display
- fceux font
- map and screen borders when camhack is on
- refactor out some functions
- manual lagtount tweaks
- use r24 alias instead of rl for reading addresses from RAM
2017-01-04 15:58:34 +03:00
zeromus d8554ee536 move assorting junk from the Output directory to Assets; add build step to copy them from Assets to the appropriate 32/64 output directory 2016-02-28 21:59:17 -06:00