Coder Social home page Coder Social logo

Add client scripting API about melia HOT 4 CLOSED

exectails avatar exectails commented on June 7, 2024 1
Add client scripting API

from melia.

Comments (4)

exectails avatar exectails commented on June 7, 2024 1

That's an interesting idea, though also an ambitious one, and I have to wonder whether this would actually require an API. You could put all that into the client and then instruct the server to make the changes, but I don't quite see what the client is contributing in this equation. Wouldn't it be much easier to write a control panel outside of the client, using a windows or web interface for example? That way you're cutting out the server as the middleman, you don't have to use the game's UI system, and you remove any potential limitations an API brings, such as only being able to change what was actually made changeable.

from melia.

exectails avatar exectails commented on June 7, 2024

Moved to the next milestone because this needs more time in the oven as we learn more about what the API needs to do for us. For the time being it now provides several functions that make it easier to customize the client's behavior, log messages, or communicate large amounts of data to the client.

One planned feature is a system menu modder that will make it easier to both add and remove options from the hopefully overloaded array of icons on the bottom right.

from melia.

Voudi avatar Voudi commented on June 7, 2024

Using this, I am envisioning the design of an ingame 'admin ui panel', in which you could customize your server from inside your client, using no code at all, easing the process of actually designing the game world for 'creative' players significantly.

This would, however, require an easy way to invoke custom server commands from client side LUA, because we need to access the database in some unique ways.

Some ideas would be:

  • Adjusting basic server settings ('meta settings' like droprate or exp modification)
  • GM settings (player list and commands as buttons like warp, mute, freeze, kill)
  • Map settings (setting up spawn points, spawn zones/waymarks/surprise attacks, warps)
  • Mob settings (altering mobs hp, skills, respawn time)
  • Exporting/Importing settings to other clients

You could also go full-double-circle: on top of custom server commands, you could inject LUA code back into the server database, allowing the creation of 'behaviour scripts' for each entity, be it an item, mob, or skill. This would also enable the creation of a 'cinematic designer' using LUA.

All of this is taking into account the authority level of its user, of course.

from melia.

exectails avatar exectails commented on June 7, 2024

After improving the communication API slightly and adding a simple way to modify the system menu at the bottom right of the screen I will consider this issue to be completed for the moment. The API is there and can be improved upon as we progress.

from melia.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.