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

550 commits

Author SHA1 Message Date
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
88d1ee0c4c Clarify intended goals a bit more
Make it clear that Kawari isn't supposed to be (nor can) be a suitable
replacement for the real game, it's not a goal. And now that you can
explore inaccessible areas, explicitly don't support spoiling unreleased
or new content.
2025-06-21 19:04:28 -04:00
thedax
a2661ead9e
Hook up ARR aetherytes, with some caveats (see comments in Global.lua) (#45) 2025-06-21 19:02:54 -04:00
0cdd20fb50 Allow loading invalid zone IDs 2025-06-21 19:01:56 -04:00
The Dax
37cdde3703 Hook up Heavensward and Stormblood aetheryte events 2025-06-21 17:35:53 -04:00
The Dax
77621fbaf7 Remove unused aetheryte events 2025-06-21 17:35:53 -04:00
The Dax
0a7ee8d27e Hook up Shadowbringers aetherytes 2025-06-21 17:35:53 -04:00
thedax
185ea84bd2
Hook up Endwalker aetheryte events (#42) 2025-06-21 16:08:52 -04:00
thedax
5b1023f94f
Hook up Dawntrail aetheryte events (#41) 2025-06-21 15:13:57 -04:00
53a3d5d6a4 Load the actual weather rates for zones instead of using Sunny
This doesn't match up with retail yet (I don't know why.) But this
fixes the appearance of lots of dungeons and other instanced
content that have their own special weather.
2025-06-21 14:55:17 -04:00
4146261c40 Script the Mothercrystal exit, stop panicking if warp isn't found
I guess this might be because a planevent fails to load, but I'm not
confident about that.
2025-06-21 14:23:56 -04:00
bdd98820e7 Stop panicking when receiving None segments from the client
This apparently happens when you send chat messages super quick, and
they seem harmless to ignore.

Fixes #40
2025-06-21 14:04:09 -04:00
0d37dd7b6e Fix the size of None segments
It should be 0, not 16 bytes.

See #40
2025-06-21 13:59:58 -04:00
thedax
61616df842
Reimplement several commands in Lua (#37)
* Reimplement !unlockaction in Lua
Rebased on upstream master

* Unlockaction: display the action id that was unlocked

* Reimplement GM speed in Lua

* Fix warnings and errors

* Run cargo fmt

* Reimplement GM wireframe in Lua

* Reimplement GM invis command, with a caveat
It can't toggle the invis state yet, and I'm not sure where to update it.

* Lua invis: add the gm_invisible toggle, but it still doesn't revert back to false...

* Reimplement GM aetheryte in Lua, with a caveat
It's seemingly not working right now though: it doesn't add any new aetherytes to the teleport menu.
But I can't get the command `//gm aetheryte on X` to do it either, so it's possible Kawari isn't responding correctly?
Either way this needs further testing.

* Lua invis: add the forgotten Lua file

* Reimplement GM teri in Lua
Also add a TODO for UnlockAetheryte

* Make comment in lua.rs more useful

* Run cargo fmt again

* Teri: range check the territory ID

* Update USAGE.md to reflect the new commands
Rebased on upstream master

* Clarify unlockaetheryte USAGE and in-script usage

* Refactor UnlockAetheryte.lua, and make ToggleInvisibility actually work properly.
I opted to create a Task for this, because sticking it in kawari-world.rs felt like a hack to me.

* Run cargo fmt for hopefully the last time today

* Move lua.ra:toggle_invisibility down with the other queued tasks

* Fix spaces in USAGE.md, remove stray rebase message
2025-06-21 13:30:52 -04:00
6561e63fd4 Send a message in-game when trying to start a non-scripted event
This should make it more obvious than in the usually spammy server log.
2025-06-21 12:26:58 -04:00
bb2cc9e0ec Log in-game and in the server when encountering an unknown command
Instead of printing nothing and you're just left scratching your head.
2025-06-21 12:23:25 -04:00
f07d16b949 Allow reloading Global.lua with the new !reload debug command
Scripts are normally loaded when they are needed, with the exception of
Global.lua that's only loaded once at start-up. But now you can reload
it in-game with the !reload command, which should make event and command
scripting way less of a hassle.
2025-06-21 12:16:27 -04:00
0c967f8a56 Add generic Aetheryte event script, document the interesting scenes
This also scripts the Central Meadows Aetheryte.
2025-06-21 12:01:11 -04:00
183555b858 Remove old workaround for Aether data center in USAGE
This should no longer be true anymore.
2025-06-21 11:52:59 -04:00
d821c838cb Send your character's actual levels during setup
This fixes their display in the Character window. Sometimes the display
is a bit bugged, but there's not much I can do about that right now.
2025-06-21 11:50:09 -04:00
d04a2cb9c1 Add dummy event script for Central Shroud's Chocobokeep
We send the client scene 0, which displays the menu. I guess some unlock
is checked for actually being able to hire porters, which works for us.

Fixes #29
2025-06-21 11:34:56 -04:00
b593d87ef7 Only execute actions at the end of their cast timer, if any
This makes actions like teleport not turn you into a zombie, because now
the action *somewhat* matches up with your client's animation. Note that
teleporting specifically still looks wrong, because I think on retail
the client is informed to preload the zone you're going to and we don't
do that.

Fixes #36
2025-06-21 11:20:21 -04:00
39beefbef3 Send action requests to global server state
This is to lay the groundwork for keeping track of cast spell timings,
and eventually networking actions to other players.

See #36
2025-06-21 10:36:44 -04:00
01508fd506 Add function to get an action's cast time
For future spell-related stuff.
2025-06-21 10:36:21 -04:00
6ecea26646 Update Physis to fix several issues with loading LGBs
This fixes loading LGBs from expansions, which means some zones are now
semi-functional. It should also stop panicking when loading certain
LGBs.

Fixes #35
2025-06-21 09:47:49 -04:00
9405714e56 Emit better warnings when loading LGB files
Now the "Loading XYZ.lgb" message only shows up *if* we find the file,
and if it fails to parse then we tell people to report it to us.

See #35
2025-06-21 09:28:27 -04:00
347a12a1b5 Update dependencies 2025-06-21 09:23:00 -04:00
The Dax
45d67c4b1c Forgot Gridania's inn name 2025-06-21 09:12:28 -04:00
The Dax
db5a81528f Consolidate exit-to-inn scripts into a generic one.
-Also comment what most generic warps are for
-Might move the loose/magic event IDs into their own file in the future...
2025-06-21 09:12:28 -04:00