3 Commits
0.7.0 ... 0.7.1

Author SHA1 Message Date
f61049daf7 better manifest 2025-07-28 15:45:19 -05:00
aea3ecdb39 Slash command "hotfix" 2025-07-28 15:19:02 -05:00
a7d40d8d00 Slash command "hotfix" 2025-07-28 15:11:31 -05:00
5 changed files with 38 additions and 14 deletions

View File

@@ -55,3 +55,7 @@ initial release
- bbcode stuff only to lucystools users, color bug was patched - bbcode stuff only to lucystools users, color bug was patched
- LucysLib 0.1.0 dependency - LucysLib 0.1.0 dependency
- custom lobby code - custom lobby code
0.7.1
----
- slash command "hotfix"

View File

@@ -81,17 +81,22 @@ func process_message(text: String, local: bool, player, playerhud):
LucysLib.send_message(msg, Color.aqua, false, null, "peers") LucysLib.send_message(msg, Color.aqua, false, null, "peers")
return return
var colon: bool = true
# i don't know why the wag stuff toggles multiple times # i don't know why the wag stuff toggles multiple times
# and applies anywhere in string # and applies anywhere in string
# i'm doing it once. # i'm doing it once.
if "/wag" in text: if "/wag" in text:
PlayerData.emit_signal("_wag_toggle") PlayerData.emit_signal("_wag_toggle")
text.replace("/wag","") text = text.replace("/wag","")
# /me has to be at beginning because i say so # /me has to be at beginning because i say so
var colon: bool = true elif text.begins_with("/me "):
if text.begins_with("/me "):
colon = false colon = false
text = text.trim_prefix("/me ") text = text.trim_prefix("/me ")
# return other slash command control to the original function
# for other mods to play with
elif text.begins_with("/"):
playerhud._lucy_original_send_message(text)
return
# process message into bbcode nodes # process message into bbcode nodes
var msg := LucysLib.BBCode.parse_bbcode_text(text) var msg := LucysLib.BBCode.parse_bbcode_text(text)

View File

@@ -215,20 +215,20 @@ public class LucysChatChanges : IScriptMod
CodeChange[] changes = { CodeChange[] changes = {
new CodeChange { new CodeChange {
name = "chat process intercept", name = "chat process intercept",
// color.to_html() // func _send_message(text):
//
// END // END
multitoken_prefix = new Func<Token, bool>[] { multitoken_prefix = new Func<Token, bool>[] {
t => t is IdentifierToken {Name: "color"}, t => t.Type == TokenType.PrFunction,
t => t.Type == TokenType.Period, t => t is IdentifierToken {Name: "_send_message"},
t => t is IdentifierToken {Name: "to_html"},
t => t.Type == TokenType.ParenthesisOpen, t => t.Type == TokenType.ParenthesisOpen,
t => t is IdentifierToken {Name: "text"},
t => t.Type == TokenType.ParenthesisClose, t => t.Type == TokenType.ParenthesisClose,
t => t.Type == TokenType.Newline, t => t.Type == TokenType.Colon,
t => t.Type == TokenType.Newline, t => t.Type == TokenType.Newline,
}, },
// $"/root/LucyLucysTools".process_message(text, chat_local, player, self) // $"/root/LucyLucysTools".process_message(text, chat_local, player, self)
// return // return
// func _lucy_original_send_message(text):
code_to_add = new Token[] { code_to_add = new Token[] {
new Token(TokenType.Dollar), new Token(TokenType.Dollar),
new ConstantToken(new StringVariant("/root/LucyLucysTools")), new ConstantToken(new StringVariant("/root/LucyLucysTools")),
@@ -246,6 +246,14 @@ public class LucysChatChanges : IScriptMod
new Token(TokenType.Newline, 1), new Token(TokenType.Newline, 1),
new Token(TokenType.CfReturn), new Token(TokenType.CfReturn),
new Token(TokenType.Newline, 0),
new Token(TokenType.PrFunction),
new IdentifierToken("_lucy_original_send_message"),
new Token(TokenType.ParenthesisOpen),
new IdentifierToken("text"),
new Token(TokenType.ParenthesisClose),
new Token(TokenType.Colon),
new Token(TokenType.Newline, 1), new Token(TokenType.Newline, 1),
} }
}, },

View File

@@ -2,5 +2,12 @@
"Id": "Lucy.LucysTools", "Id": "Lucy.LucysTools",
"AssemblyPath": "LucysTools.dll", "AssemblyPath": "LucysTools.dll",
"PackPath": "LucysTools.pck", "PackPath": "LucysTools.pck",
"Dependencies": [ "LucysLib" ] "Dependencies": [ "LucysLib" ],
"Metadata": {
"Name": "LucysTools",
"Author": "team_sea_slug",
"Version": "0.7.1",
"Description": "Fixes & Tools for WEBFISHING",
"Homepage": "https://git.ceionia.com/lucia/LucysTools"
}
} }

View File

@@ -26,7 +26,7 @@ More coming soon!
Probably certainly full of bugs. Probably certainly full of bugs.
Compatibility: Compatibility:
- Works *only* with WEBFISHING 1.10 - Works with WEBFISHING 1.10, some features work on WEBFISHING 1.12
- I haven't tested any other mods with this, but I'm happy to try to make things compatible, submit a bug report with the incompatible mod! (Only mods that have source available) - I haven't tested any other mods with this, but I'm happy to try to make things compatible, submit a bug report with the incompatible mod! (Only mods that have source available)
Bugs: Bugs: