• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Suggestion] Updating a pawn script without "gmx"
#1
Maaaaaaan, it will be dope if you can update a pawn script without GMX or closing and opening omp server.

Maybe u confused bout this, but basically just look at this.



[Video: https://www.youtube.com/watch?v=WzE0yqwbdgU]



Well, it's hard to explain the concepts, but the basics is same like "html live server vscode" ?when you press CTRL S, the live server host will automatically reload your html file and give you results without pressing F5 or manually opening .html file
???? ???? ????? ?? ???????? ???? ?????, ?? ???? ???? ?? ?????? ?? ??? ???? ???? ???? ?? ??? ???? ??? ???? ??? ?? ?? ?????? ??????





  Reply
#2
Not possible without increasing alot of memory/cpu usage.
  Reply
#3
(2020-01-13, 12:53 AM)Tama Wrote: Maaaaaaan, it will be dope if you can update a pawn script without GMX or closing and opening omp server.

Maybe u confused bout this, but basically just look at this.



[Video: https://www.youtube.com/watch?v=WzE0yqwbdgU]



Well, it's hard to explain the concepts, but the basics is same like "html live server vscode" ?when you press CTRL S, the live server host will automatically reload your html file and give you results without pressing F5 or manually opening .html file



This can be done, with high cpu usage, yes but...



(2020-01-17, 11:39 AM)mouiz Wrote: Not possible without increasing alot of memory/cpu usage.



Some people wouldn't care about CPU usage and it can also be optimized... So maybe two types can be done for OMP a non-gmx and gmx type...



The only problem then would be the development phase would take longer and it won't be just me but everyone else would think that the longer development phase won't be worth it. When in the first place the developers wants to rebuild the glory of SA-MP to OMP
  Reply
#4
Why don't you use filterscripts for that? They are made and designed for that!

Remember to program the appropriate state logic and state retention, e.g. save all variables in database, on script load reload all variables and use sane default values for new variables.

It's no use if one reloads the scripts and all players need to login again - try to save and reload this state upon reloading the script.
  Reply
#5
If you use sampctl you can already do this by using 'sampctl package run --watch'
  Reply
#6
Y_Less just made modules possible with YSI, you can now hot reload modules (they are technically filterscripts, but they are altered to retain memory when reloaded)



https://github.com/pawn-lang/YSI-Include...eatures.md
Remember to always refer to J0sh as `J0sh...`



@ Networks/Servers

San Andreas Gaming Network (Owner/Founder)

San Andreas Gaming (Owner/Founder)

Grand Theft Cop's n Robber's (Owner)

Britannia Roleplay (Owner/Founder) [Retired]

Alpine RP (Owner/Founder)

Aluminium Network (Maintainer) [Disbanded]

AlphaDM (Tech Support) [Disbanded]



# Services

forum.open.mp (Forum Manager) (Formerly Burgershot.gg

open.mp (Member)



~ Languages/Frameworks

Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL,

Angular, React, Vue, Svelte, Laravel, Rocket
  Reply
#7
A Clean restart clears the junk in the memory as well. amx is the compiler binary which allow faster loading. If the code is compiled each time a change as done in realtime (like interpreters) it would use very high amount of memory and processor.. Lets just keep it as it is.
  Reply


Forum Jump: