Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation since 21/02/26 in Posts

  1. Amazing stuff! Thanks a lot. Will test it out and surely will share it accross racing. I think I know how to implement this.
    1 point
  2. Hi, We do not handle server bans. This is not a MTA ban. Please reach out to the admin team of the server that banned you in order to appeal your ban, or seek other servers to play on. Good luck!
    1 point
  3. Yeah. I've seen this documentation. So much to start with xD. But yesterday i checked it and downloaded server folder from github repo. I thought that there will be more code. But for my luck that code is acceptably short. Like i guess still month to understand all functions, and how to call them. But one month to start code something is not that wrong. Anyway. Thank you so much for your help. For now i decided to make my own buffer system as module. As im not having problems with understanding C/C++ it will be easier even for me to make whole server as C code lol. I can make that module as lua script. But i like to keep everything organized. When i'll get courage to make that module. Maybe also i'll get will to make my own documentation and publish it. So no one longer gonna strugle with modules. Anyway. Thank you for your help again and your recomendations. From me i can recommend you getting in to C languages. Getting point of how them work improve also skills in lua. As you are "closer" to machine. I think that this topic can be locked.
    1 point
  4. I have no experience with C++ myself nor with modules. But I do know that Lua is fast enough for a basic gamemode. The moment C++ might become important is when you want to implement something like pathfinding. There are other things that can save you more resources. For example using less timers. Most of the time getTickCount / getRealTime is more than enough. Or use as less as possible element data. Sort of : https://wiki.multitheftauto.com/wiki/Modules_Introduction
    1 point
  5. Ofc you are right. and this should always be good advice for everyone to not mess with critical data. i know it, and more programmers should know that. i like to organize everything in hierarchy of importance. like cars possitions can be lost if something happens wrong. as that's not so crucial to server working after shutdown. and in database are still hold relativeley "fresh" data, like vehicle possitions and so on. But money and housing systems for examples are 1st or 2nd importance. so it must be sure that after buying a house money amount is right and house owner is assigned afap in buffer and database. and ofc validate everything. yeah i know that i can do that this way. but i was thinking about directly working with server objects. like buffermodule takes objects how they real look like. and scan only for lets say vehicles. and all previous ideas of how it will be implemented in lua. and make them in Cpp instead of lua. oldtable newtable etc. direct calling from module to built in dbFunctions should be faster in theory. and if i use some coroutines i can prevent that way server from lagging. but still keeping the lua code just to drive module. but i can mistaken somewhere and what i think can be fast. can also be not fast. on one side i can then keep everything hardly bounded together. but on the other side it can be error generating nightmare. what i know from experience in Cpp xD. and my question is. do i'm right about it? and if so. are there good sources to start with it? cause personaly i didn't found anything more usefull on the internet than example module. and ofc mta blue repo. im having in mind some sort of documentation. cause looking at servers source code just to get an idea of how module should look like and work pushes me back even from trying. im doing it everyday, so getting point of my mates is my second nature. but mta blue server is a lot of code. so i guess my natural questions are. if there is a chance that server can save 5% to 10% of power and space. is there any code documentation? so i can short my working time on module. ofc if im right that it can save cycles. i never wrote mta module, and didn't heard opinions of people who did. maybe someone is reading this rn. please get in to discussion. you can help me and others just by getting in to discussion. EDIT also thanks for earlier replying @IIYAMA
    1 point
×
×
  • Create New...