Anime-Game-Servers / Grasscutter-Quests

A server software implementation, ineroperable with a certain anime game client. The code in this repository is fully custom made for edyoucational purposes and future preservation, no copyrighted code is allowed in this repository.
https://grasscutters.xyz/grasscutter
GNU Affero General Public License v3.0
133 stars 31 forks source link

Find a way to select which script groups to load, and which to replace #4

Closed Hartie95 closed 8 months ago

Hartie95 commented 2 years ago

Currently the server just loads most scripts and spawns in them, and ignores things like replacements or business. This leads to many monsters being spawned at some places. We need to find out how we should propperly manage these groups.

millet6 commented 2 years ago

Open the big world script, and the monsters will disappear in batches 开启大世界脚本批量怪物将会消失

Hartie95 commented 2 years ago

Open the big world script, and the monsters will disappear in batches 开启大世界脚本批量怪物将会消失

That has its own problems, since disabling scripts in big word will break more quests and everything else that's dynamic and needs scripts. So either way the script loading system needs to be reworked

millet6 commented 2 years ago

Yeah, you're right

StartForKiller commented 1 year ago

I'm working on this

StartForKiller commented 1 year ago

Anyways, the current lua backend it's broken on a lot of parts

Hartie95 commented 1 year ago

A good chunck of this is now done thanks to @StartForKiller . Loading of activity groups and loading of common scriipts is still missing.

I'm currently working on handling including common lluas properly in luaj, which is kinda a pain xD

Might also be good to split it apart into smaller issues for the missing stuff.

Hartie95 commented 8 months ago

General activity group loading and common group loading is now implemented in AnimeGamesLua and just needs to be used on demand. For ways of loading required scripts without the workaround, a ticket in AnimeGamesLua will be opened.