-
Posts
1,031 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Bonsai
-
I think the "..." is already a table containing all the arguments seperated by space. So you don't need an addional parameter for the amount.
-
Hi, here are some Red maps: https://easyupload.io/zayn96 Bonsai
-
Hey, I have also replied to your PM about this. The ccs_database resource is not needed for the gamemode to work and not supposed to be there (it was wrongfully included in the meta.xml still). I did not include this resource as it contained mostly DDC community specific stuff only working with their database structure. So if you want to save top times etc. you need to create such a resource and database yourself, depending on what you need. There should be all the events you need, e.g. when a player wins a map or gets a new top time. Bonsai
-
Thanks for replying! I think that makes it much easier than to just remove a post without any reason why. In my opinion it does pertain to the project in the way that a questionable new team member might affect its quality or direction. That was basically my concern, not trying to start any drama. Not sure how I worded my original post, maybe it came across the wrong way.
-
So I guess my reply was censored? It was perfectly valid.
-
When you work for a company, everything you do at work while being employed belongs to the company. Just because you quit the company, you cannot tell them to remove everything you created. This is pretty much the case here. Imagine some former MTA dev decides he doesn't want MTA to use his parts of the code anymore. Its not his code, it belongs to MTA. Best case for him, he may also use it for his own projects. But he can certainly not make people stop using it after he gave it to them.
-
Well as I said, maybe you can use some code of it or something. You don't have the database with all its tables etc. so that obviously the userpanel won't just work just like that. Where should it get the data from? If you want to use it you need to make it work with your own database structure.
-
Oh, I forgot to remove them from the main resource meta file. They are not there on purpose.
-
Hey, so I had some updates and changes that were only on DDC server so far, which I also uploaded to this repository now. New or improved: - Scoreboard - Userpanel - Battle Royale added - Podium added - Register/Login to local database - and more I haven't done any testing after changing how login and register works, so there might some problems which you will have to fix on your own. Probably Userpanel might need some editting to work this way. Maybe someone can use these updates for their own server or some of the code at least. https://github.com/Bonsai11/Multigamemode (The screenshots on Github are not necessarily accurate anymore.) Bonsai
-
You only need to create the renderTarget once, e.g. on resource start. Not exactly sure whats wrong, but after you fixed that, you could simply call drawTopTime() in your render function before drawing the renderTarget on screen.
-
Merry Christmas!
-
Good job!
-
Sorry, I cannot edit anymore. I installed the latest nightly build and that seems to have fixed the crashes. But obviously normal players won't have that version.
-
Hey, our server is still on 1.5.4. The min required version is set to 1.4. When trying to join the server, it asks you to update to the latest version anyway for some reason. Afterwards, it randomly crashes pretty fast once you joined the server. Version = 1.5.6-release-16535.0.000 Time = Fri Feb 22 19:03:30 2019 Module = C:\Program Files (x86)\MTA San Andreas 1.5\mta\netc.dll Code = 0xC0000005 Offset = 0x001B9227 EAX=11AF1924 EBX=FFFFFFFF ECX=DE16F9FB EDX=00000000 ESI=00002745 EDI=00000000 EBP=2187FD44 ESP=2187FC38 EIP=68299227 FLG=00010206 CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B Nothing on the server has changed recently, therefore there must be a problem with the update as it seems. Bonsai EDIT: Updated the server to the latest version, did not help.
-
Some really nice new functions. But why does GetElementsWithinRange use a box and not a circle or sphere? Wouldn't that be much further away from the center when an element is near the corners?
-
[Poll?]What would you like to see in a new map editor?
Bonsai replied to Captain Cody's topic in Resources
Basically the same features as there are now just that the map editor doesn't have to run on a server for all players, but can be loaded and unloaded and used by certain players only. Basically like a gamemode such as race etc. on a Multigamemode server. Maybe this is possible already with the current map editor, but I guess that requires some changes as I assume it was designed to run on the whole server, same as the default gamemodes. -
Hi, I would have reported this on the bug page, but I lost my password and restoring somehow doesn't work at the moment. The problem is, when using the queueName argument of the callRemote function, it just times out. Without using a queueName, it works fine. Bonsai
-
That's indeed a little confusing, but it's because of the "sendTo" argument being optional (notice the [ ] brackets). You don't need to provide it, then root will be used.
-
I'm a little ashamed of that first version I released. I never planned to release it, I just started working on it some day for fun and didn't spend much time on planning it or writing good code, therefore it was kinda dirty. But then it got bigger and I felt like it would be a waste of time if I didn't release it, so it's good to hear that despite of the problems of the that version, it was useful to some people.
-
triggered serverside event, but event is not added serverside
Bonsai replied to Tomek12345's topic in Scripting
This is not how this forum works. Explain whats wrong, what you have tried to fix, show debug log. Why would anyone go through that code and fix it for you if you? -
https://wiki.multitheftauto.com/wiki/DbConnect Check the options parameters: share which can be set to 0 or 1. (Default value for SQLite is "share=1", for MySQL is "share=0"). When set to 1, the connection is shared and will be used by other calls to dbConnect with the same host string. This is usually a good thing for SQLite connections, but not so good for MySQL unless care is taken. Maybe this helps.
-
I might have found a reason for this. There is another resource using fetchRemote, it seems to work smooth when that resource is not running. I wonder if that new "queueName" argument can help to fix this. https://wiki.multitheftauto.com/wiki/CallRemote I will try that. Thanks! Bonsai
-
Hi, I have a problem with the callremote function. When I use the URL of my API that I made in the browser, I get an instant result. When I call this URL in MTA using callremote, it takes ages until I get a response, or it will just time out. Does anyone know what could be causing this? The URL works perfectly fine in a browser, but in MTA it just takes soooo long. I'm not using the MTA php sdk. Bonsai
-
Hey, Thank you! I will try this out! The main reason why I decided to use the default MTA Gui in my Multigamemode is because of the editboxes. If this works good then I can change it so it will probably look much better!
-
Hey, after a long time I am releasing a newer version of this Multigamemode. You can find it on Github. Some Features: - Create as many arenas as you like by just calling a simple function providing a name and other properties. - Allow players to create their own arenas, in which they are automatically added as an admin for their arena. These custom arenas are destroyed the moment everyone has left them. - Use the Training button to train every map available on the server. - Common features like respawn, rewind, cp/tp etc. to help practising maps. - Custom ACL system: Each arena has their own acl file, yet you still can define global admins in the usual server acl. - A few maps have been included to make it easier to test and show the way how maps have to be organized. A little screenshot of the Lobby: More Screenshots can be found on Github for now. In order to use this Multigamemode, you will have to follow a quick instruction: Some of you might have seen this Multigamemode on the DDC server. This is a slightly different version from what we use on DDC. It excludes a few resource such as Userpanel or Stats, as they rely on our MySQL database and therefore cannot be shared so easy. Also, you will have to change the way Login works, if you want to login using an account of the mta server or remotely by using a website. Right now you can only login with an account on the ddc forum, as most people are gonna change the login to what they need anyway. Not everything is done in the best way and I would probably do some things differently now, but it works quite good and might be a good base for people to start their own project. If you want to contribute, you can create a pull request on Github. Bonsai