1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-06-30 11:47:45 +00:00
Commit graph

578 commits

Author SHA1 Message Date
69e8e4055e Finish implementing currency
I made various mistakes in the initial implementation, which
are now fixed.
2025-06-25 17:02:19 -04:00
thedax
75993bf933
Update to Lua 5.4, adjust scripts accordingly (#64) 2025-06-25 15:21:09 -04:00
thedax
6d99bef66c
Refactor and reorganize numerous Lua systems: (#63)
-Global.lua is no longer a catch-all dumping ground for registering actions and events
Instead, Global.lua will actually contain useful global constants and functions

-Init.lua will take over the role of being the initial script run when doing reloads or booting the servers
-Actions.lua will take over registering all actions
-Items.lua will take over registering all items
-Commands.lua will take over registering all text commands

-Events.lua will take over registering all warps, openings/quests, aetherytes, etc.
To this end, event ids now live in organized tables to reduce error-prone copy paste clutter

If we get enough actions, items or commands, we can move those to tables too.
2025-06-25 13:25:48 -04:00
3c9eeec7b1
Fix another broken GitHub link 2025-06-25 13:06:40 -04:00
thedax
d73ab383e8
Document the previously unknown parameter for the ServerChatMessage opcode (#62)
Document the previously unknown parameter for the ServerChatMessage opcode
Credit goes to Sapphire as usual (see comments)
2025-06-25 10:05:34 -04:00
The Dax
c926ceb17b Implement a generic lift operator in Eulmore 2025-06-24 19:17:18 -04:00
The Dax
feb0ffb869 Implement the aethernet for aetherytes and ensure both aetherytes and aethernet shards
do better about not yeeting you into invalid zones, crashing the client, or softlocking
2025-06-24 19:17:18 -04:00
01697c8f62 Begin implementing currency, add //gm gil command and more
This doesn't work yet though , and I'm not sure why. I also fixed a bug
where new characters doesn't get their inventories initialized properly.
2025-06-24 19:16:32 -04:00
03609fb8c1 Add a comment to rename EventHandlerReturn 2025-06-24 18:31:19 -04:00
cc5d9ae7bc Return both parameters in EventHandlerReturn
This allows scripting things like Aetherytes in the future.
2025-06-24 18:30:22 -04:00
thedax
9d01a5d595
Update opcodes for 7.25h2 (#60)
* Attempt to update opcodes for 7.25h2, but it's possible I missed some

* Disconnect might be 370

* Edit README.md to reflect the new update
2025-06-24 16:21:25 -04:00
thedax
1a5f80482f
Partially implement more actors (#59)
- Summoning bell now tells you you're not authorized
- Armoire shows prompt but "remove items" option softlocks
- Crystal Bell cutscenes work slightly better but still default to not authorized
- Bed now plays cutscenes with proper fade to black, and dreamfitting works when forced in onTalk
2025-06-24 14:38:16 -04:00
d612a95be9 Move restoring character backup to it's own page 2025-06-23 21:42:30 -04:00
ddb67383af Fix more easy Clippy warnings 2025-06-23 21:14:38 -04:00
a76de282c9
Add Matrix channel to README
For quicker/informal discussion outside of GitHub.
2025-06-23 20:53:50 -04:00
The Dax
86310c7c22 Address warnings:
warning: usage of `contains_key` followed by `insert` on a `HashMap`
warning: you seem to want to iterate on the values of a map
2025-06-23 15:28:24 -04:00
The Dax
5b5e998286 Address warning: "deref which would be done by auto-deref" 2025-06-23 15:28:24 -04:00
The Dax
efb7a7e126 Address warning: "empty line after outer attribute" 2025-06-23 15:28:24 -04:00
The Dax
ab3bcfc365 Address warning: "name NPC contains a capitalized acronym" 2025-06-23 15:28:24 -04:00
The Dax
75b34cb959 Address warning: "struct update has no effect, all the fields in the struct have already been specified" 2025-06-23 15:28:24 -04:00
The Dax
32d978d82b Address warning: "unneeded return statement" 2025-06-23 15:28:24 -04:00
The Dax
89aee8e5d8 Address warning: "warning: casting to the same type is unnecessary (u16 -> u16)" 2025-06-23 15:28:24 -04:00
thedax
82e5021979
Implement the //gm teri_info command, and fix a typo (#56)
Implement the `//gm teri_info` command, and fix a typo. Said typo was in gamedata.rs, confusing the FingerL column for the SoulCrystal column.
2025-06-23 13:39:37 -04:00
50530e31e4
Fix another link in CONTRIBUTING 2025-06-23 13:31:11 -04:00
77a3ec64f1
Fix link to some projects that moved to Codeberg 2025-06-23 13:29:53 -04:00
thedax
6ca828bb38
Add a placeholder script for the market board and a couple more gatekeepers (#55) 2025-06-22 18:22:44 -04:00
thedax
4a234e08d1
Add the missing Azim Steppe aetherytes (#54) 2025-06-22 17:32:47 -04:00
The Dax
17823ae30e Fix name of actor 2025-06-22 16:19:29 -04:00
The Dax
063ad78a84 Don't need tonumber for results 2025-06-22 16:19:29 -04:00
The Dax
2abb44b6d9 Bring up the aethernet
-Implemented all aethernet shards
-Implemented more lift/ferry skipper NPCs that don't require special handling
-Commented the mysterious GenericWarps at the beginning of the list
2025-06-22 16:19:29 -04:00
33893ff460 Fix compile error 2025-06-22 11:24:45 -04:00
fd249a2342 Rename !unlockaction to !unlock
When learning how to unlock emotes, apparently FFXIV just has one
kind of ID for all kinds of stuff. So I picked a number, stuck it
as the max (this is unconfirmed) and you can now unlock everything.
2025-06-22 11:18:07 -04:00
a8dd106041 Update Physis to make several zones functional
See #44
2025-06-22 10:29:16 -04:00
4acf0c4fc8 Remove "Registered XYZ" messages from the World server
Now that we have a ton of events registered, this just becomes
log spam. I initially added it while testing the Lua API, but
I don't think it's necessary anymore.
2025-06-22 10:15:58 -04:00
b41cb478e7 Display unsheathed weapon to other players
It doesn't play the animation correctly, yet.
2025-06-22 10:08:29 -04:00
e1b01299c9 Show emotes from other players
If you move it doesn't cancel them yet, but still cool to see them play.
2025-06-22 09:45:24 -04:00
77b6fbad7f Fix the "unknown command" message for real, now
Now it takes into account if the command exists on the Rust side,
and the message should now *only* display if no one truly handles
this command.
2025-06-22 09:28:50 -04:00
fbe6862c7b Begin implementing EXP
This doesn't actually do things like level you up, but if you use the
GM EXP command then it will update the UI.
2025-06-22 09:19:06 -04:00
b38b347c15 Add scripting for the Delivery Moogle NPC
See #48
2025-06-22 09:06:09 -04:00
d35e0830d3 Don't panic when the event file doesn't exist 2025-06-22 09:05:54 -04:00
4ba444be1f Mention Lua in the README more 2025-06-22 08:56:04 -04:00
198a8a3e2c Make !reload command always available, add !finishevent
The reload command was previously implemented in Lua, but this
is a little dangerous as it could itself have an error and is
unable to work in the first place. I moved this to Rust to
ensure it's always available. I left the reload_scripts() API
in Lua as someone could still find that useful!

Additionally, I added a !finishevent debug command to forcefully
end the current event you're in. This can be useful if your script
is incomplete or has an error, as your client gets stuck very
easily.
2025-06-22 08:49:06 -04:00
thedax
e1b261c7d8
Implement several actors/entities (#49)
* Implement the following actors/entities:
-Inn Toy Chest actor, which simply says you haven't unlocked mini-games
-Inn Glamour Dresser actor, which simply says you haven't unlocked the GD yet
-Orchestrion, which is fully functional as long as you have songs unlocked

Accompanying the orchestrion is the GM orchestrion command, with a caveat:
-It allows you to learn one song at a time, but id 0 (aka "all) doesn't learn a single
song for some unknown reason, so I've disabled it for now.

* Run cargo fmt

* Update USAGE.md
How many times will I forget...
2025-06-22 08:46:11 -04:00
a6e270d5e3 Log, don't panic for syntax errors in event scripting
Fixes #39
2025-06-22 08:35:25 -04:00
6b0487f30f Log, don't panic for Lua commands
It will also try to fallback to a Rust command - if available.

See #39
2025-06-22 08:35:25 -04:00
cdcce88c5f Log, don't panic for syntax errors in Global.lua
See #39
2025-06-22 08:35:25 -04:00
thedax
92a5cc48eb
Apply a temporary-ish fix so that not all chat messages appear as unknown commands. (#46) 2025-06-21 21:16:31 -04:00
thedax
12d381e25d
"Implement" generic menders (#47)
...in the sense that they bring up the repair menu, but that menu isn't implemented yet.
2025-06-21 21:14:30 -04:00
fa2158bd22 Oops, reorder Wineport Aetheryte
I misread a 9 as an 8.
2025-06-21 19:06:52 -04:00
fa8e28893e Add missing Wineport Aetheryte
Thanks to @thedax, I merged the last PR so fast it wasn't included.
2025-06-21 19:06:12 -04:00