5 Commits
Author SHA1 Message Date
kuba 1d4cf16399 update ecc 2026-01-06 14:02:18 +01:00
KubaandGitHub 38ae640f97 add a6 2026-01-06 11:20:02 +01:00
KubaandGitHub 6245cdc66d Greenland is danish, not whatever that clown thinks 2026-01-06 10:40:43 +01:00
KubaandGitHub b2130441cf Replace 'Libya' with 'Republic of Cyprus' in e1
copilot lol
2026-01-05 22:28:54 +01:00
kuba 7bd8970434 large pi and better readme 2026-01-03 12:29:48 +01:00
4 changed files with 75 additions and 12 deletions
+14 -7
View File
@@ -1,19 +1,26 @@
# Lua host # Lua host
This is an WIP lua host for rds spy, a plugin This is an WIP lua host for rds spy, a plugin
Compile this under MINGW32, not 64, RDS Spy lives in the past where men who couldn't count to 4294967295 still walked the planet Compile this under MINGW32, not 64, RDS Spy lives in the past where men who couldn't count to 4294967296 in a CPU word still walked the planet
Project stared 1st of January, 2026 (or 7 haha) Project started 1st of January, 2026
Aside from all that, this it loads and executes the script at "%LOCALAPPDATA%\RDS Spy\script.lua", with the api in the `plugin.lua` meta-file Aside from all that, this loads and executes the script at "%LOCALAPPDATA%\RDS Spy\script.lua", with the api in the `plugin.lua` meta-file
## Why? ## Why?
Ask Jan Kolar why his funny little rds decoder doesn't have Enchanced RT (excluding the 0x6552 to ERT mapping of course) Ask Jan Kolar why his funny little rds decoder doesn't have Enchanced RT (excluding the 0x6552 to ERT mapping of course). Yes, no eRT decoding is really why is this, because why decode RDS in C (or even delphi ughhh) when you can just do it in lua!
Also RDS Surveyor doesn't take line-in MPX input
# Scripts # Scripts
Inside of the examples folder you have `basic.lua` which mostly replaced the `basic.dll` plugin in RDS Spy
Note that you can double click on the buttons, if you try it Inside of the examples folder you have `basic.lua` which mostly replaces the `basic.dll` plugin in RDS Spy
Another note is that on menu 0 you have the PI and PS in a large font, why? democracy? or something like that ([forum post](https://pira.cz/forum/index.php?topic=1124.0)) I have also included `large_pi.lua`, while `basic.lua` already shows the PS and PI on a large font, this does only the large PI and PS but in a even larger font. event 1 toggles stickyness
# Console
You have a console window generated by this plugin which has as of now 8 buttons where the first if you double-click the "Reload" button, I don't know what it does but maybe it reloads the script?
The other 7 send events to the Lua script, you can use this with the console mode:true to display diffrent "menus" on the console, double clicking also sends a unique event
+39 -3
View File
@@ -93,7 +93,7 @@ local pi_ecc_to_country = {
e1 = { e1 = {
"Encoder fault", -- 0 "Encoder fault", -- 0
"Hellenic Republic (Greece)", -- 1 "Hellenic Republic (Greece)", -- 1
"Libya", -- 2 "Republic of Cyprus", -- 2
"Republic of San Marino", -- 3 "Republic of San Marino", -- 3
"Swiss Confederation", -- 4 "Swiss Confederation", -- 4
"Hashemite Kingdom of Jordan", -- 5 "Hashemite Kingdom of Jordan", -- 5
@@ -104,7 +104,7 @@ local pi_ecc_to_country = {
"United Kingdom of Great Britain and Northern Ireland (Gibraltar)", -- 10 A "United Kingdom of Great Britain and Northern Ireland (Gibraltar)", -- 10 A
"Republic of Iraq", -- 11 B "Republic of Iraq", -- 11 B
"United Kingdom of Great Britain and Northern Ireland", -- 12 C "United Kingdom of Great Britain and Northern Ireland", -- 12 C
"Unknown", -- 13 D "Libya", -- 13 D
"Romania", -- 14 E "Romania", -- 14 E
"Republic of France", -- 15 F wish i could nuke this "Republic of France", -- 15 F wish i could nuke this
}, },
@@ -180,6 +180,24 @@ local pi_ecc_to_country = {
"Unknown", -- 14 E "Unknown", -- 14 E
"Unknown", -- 15 F "Unknown", -- 15 F
}, },
e6 = {
"Encoder fault", -- 0
"Unknown", -- 1
"Unknown", -- 2
"Republic of West Poland", -- 3 coming soon
"Unknown", -- 4
"Unknown", -- 5
"Unknown", -- 6
"Unknown", -- 7
"Unknown", -- 8
"Unknown", -- 9
"Unknown", -- 10 A
"Unknown", -- 11 B
"Unknown", -- 12 C
"Unknown", -- 13 D
"Unknown", -- 14 E
"Unknown", -- 15 F
},
a0 = { a0 = {
"Encoder fault", -- 0 "Encoder fault", -- 0
"United States of America", -- 1 "United States of America", -- 1
@@ -215,7 +233,7 @@ local pi_ecc_to_country = {
"Canada", -- 12 C "Canada", -- 12 C
"Canada", -- 13 D "Canada", -- 13 D
"Cananda", -- 14 E "Cananda", -- 14 E
"Greenland", -- 15 F "Kingdom of Denmark (Greenland)", -- 15 F
}, },
a2 = { a2 = {
"Encoder fault", -- 0 "Encoder fault", -- 0
@@ -289,6 +307,24 @@ local pi_ecc_to_country = {
"United Mexican States", -- 14 E "United Mexican States", -- 14 E
"United Mexican States", -- 15 F "United Mexican States", -- 15 F
}, },
a6 = {
"Encoder fault", -- 0
"Unknown", -- 1
"Unknown", -- 2
"Unknown", -- 3
"Unknown", -- 4
"Unknown", -- 5
"Unknown", -- 6
"Unknown", -- 7
"Unknown", -- 8
"Unknown", -- 9
"Unknown", -- 10 A
"Unknown", -- 11 B
"Unknown", -- 12 C
"Unknown", -- 13 D
"Unknown", -- 14 E
"Republic of France (Saint Pierre and Miquelon)", -- 15 F
},
d0 = { d0 = {
"Encoder fault", -- 0 "Encoder fault", -- 0
"Republic of Cameroon", -- 1 "Republic of Cameroon", -- 1
+20
View File
@@ -0,0 +1,20 @@
set_console_mode(true)
set_font_size(148)
local last_pi = "----"
local last_ps = "--------"
function group(...)
local pi = db.read_value("PI") or "----"
local ps = db.read_value("PS") or "--------"
if last_pi ~= pi or last_ps ~= ps then
set_console(string.format("%s\r\n%s", pi, ps))
last_pi = pi
last_ps = ps
end
end
function event(event)
if event == 1 then
set_window_stick(not get_window_stick())
end
end
+1 -1
View File
@@ -71,7 +71,7 @@ function db.read_record(index) end
---@param value string ---@param value string
function db.add_value(key, value) end function db.add_value(key, value) end
function db.reset_values(key, value) end function db.reset_values() end
---@return integer ---@return integer
function db.count_records(key, value) end function db.count_records(key, value) end