Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/05/24 in Posts

  1. Good afternoon everyone, the lull is over (hopefully) and we're back with lots of news and updates Since most probably aren't aware of it and the topic has been lying dead for a while now, Rage FW is a collection of various tools to make it easier to write Typescript servers for Rage:MP. Until recently, it included four libraries for writing server-side, client-side, and browser-side code, as well as a common library that distributes types across all environments; in addition to which came a CLI for quickly deploying such a project and a Rage:MP server file loader. Now let's talk about what has changed CLI Added a new template for the frontend - Svelte 5. Also added an option to deploy a project with a basic demo of using self-descriptive RPC (about which next). Read and poke here RPC Due to the lack of ability to type events in the much-loved rage-rpc and personal interest, it was decided to write a custom (which is now also used in the core libraries) RPC with desirable functionality and new, highly desired by developers, features. Additionally, it includes a built-in (optional) event logger, a more extensive and detailed error handler, and the ability to run frontend code in dev-mode from a browser, out of mp context with just one setting, without the lovely mp is not defined error and white screen. You can explore in more detail here (or here), poke around here, help with development there Core (Server/Client/Browser) In addition to moving to self-describing RPC, which made the code even more secure and easier to read in terms of types, new functionality was also added: added midllewares for Server and Client events. These can be hung at the moment of event registration to check incoming data and potentially cancel the callback if needed Along with the move to the new RPC, the browser also has the ability to run the frontend in dev-mode outside of mp context (described earlier). And edits/additions: improved and, in some places, corrected function typing type names now follow a common pattern and order code is now abundantly described by JSDoc for quick access to explanations and function examples. Github Follow updates here Adequate criticism and interesting ideas are extremely welcome. Thanks for your attention
    1 point
×
×
  • Create New...