Jump to content


  • Posts

  • Joined

  • Last visited

  • Days Won


Mr_Moose last won the day on November 5 2016

Mr_Moose had the most liked content!


About Mr_Moose

  • Birthday 26/10/1993


  • Gang
    RageQuit community
  • Location
    RageQuit office
  • Occupation
    Software developer
  • Interests
    Programming, Web design, building and running servers using lightweight Linux distrubutions.

Recent Profile Visitors

2,995 profile views

Mr_Moose's Achievements

Road Dawg

Road Dawg (33/54)



  1. Seller protection is always a good thing to check. If you don't have that, Paypal could charge you $20 if you lose a chargeback case. "item not received" is indeed a strange claim for donations but it might also be just a stupid way to request a refund. If you use an IPN callback script you could also validate some of the information Paypal send back to you such as the country code. A mismatching country code (compared to the client IP) could be a sign of unauthorized access (stolen CC/PP). Paypal is a good payment processor for customers/donators but terrible for merchants and service providers. As a final controversial solution, I'd suggest you throw away Paypal (or hide it deeply somewhere) then add Coinbase or Cryptonator instead. With cryptocurrencies, you're in charge of your own money which is brilliant for merchants.
  2. https://community.multitheftauto.com/index.php?p=resources&s=details&id=13405 Stolen from GTW-RPG (v1 which is not open source and full of vulnerabilities, memory leaks and outdated code). DONE
  3. Shared plans may return sooner than expected. I can't reveal to much information about when or how it will work but it will be different from traditional shared solutions. High security and privacy will be the main goal so expect a solution without accounts and passwords that can be forgotten or hacked. Thanks to simplicity and the usage of our own cloud infrastructure, prices will start from as little as $0.5/month.
  4. This was originally created 5 years ago, back then it was literally impossible to get or set which track the train should spawn in other than actually spawn at a hardcoded position and then check if it's on the right track. First version used 200 hardcoded locations. 4.5 years ago I've released the full code of this as open source and today it's fully dynamic. It still doesn't check which track to spawn on but it does check when it'll reach the end of a track and stop the train before it goes off track. v-40 has been even further improved and optimized for perfection including the sync issues regarding trailers in MTA.
  5. Due to increased BTC prices this offer has now expired and new requests will not be granted. Any work already in progress will be paid according to previous terms described in the main post.
  6. About the project GTW-RPG is one of the oldest open source RPG game modes for MTA, initially launched in year 2012 and currently at version 3.0. Right now we're building v4.0 which provides a lot of new features, including a project wide system for language translations. Now this job is easy script wise but requires a high amount of time to make sure everything is correct which is why we've decided to spend 0.1 BTC (~$115) to finally fix the translations. About the job The job includes, not only the actual translations but most important the conversation from the current system in where all text is hard coded into the files to a table with a strict structure holding ID's and corresponding text in multiple languages (organized by language) which is then dynamically collected from the files itself. GTW-RPG has 45 resources in the affected folder and on average 40 static strings in each resource that needs to be converted. Due to the open source nature of the project we'll pay per resource (even at string level) so that multiple users can contribute and still get their fair share of the money listed above. How to participate Simply fork the GTW-RPG v4.0 development branch, implement the new language system (or add translations to already existing implementations) then do a push to the project, if approved (yes there are some conditions, see below for more details) we'll ask for a BTC address via Github to where we can send your payment within 48 hours. How o implement the new language system: This is a detailed description of the job, step by step: Add the file lang.lua to the resource if it's not there, it should have the same structure as this example: Add an entry for lang.lua in meta.xml right below the info line, like this: <info author="GTWGames" version="98" name="GTWaccounts" decription="Account system with GTW GUI" type="script" /> <!-- Language support: must be located at the top --> <script src="lang.lua" type="shared" /> Localize all static string outputs in each file of the resource you're dealing with, GUI elements(), outputChatBox(), exports.GTWtopbar:dm() etc and replace them with this line: lang_txt[getElementData(source, "GTWcore.language") or r_lang]["msg_CHANGE_THIS_TO_IDENTIFIER"] * GTWcore.language holds a language value like: en_US in standard ISO format, this is used to identify the language in the file lang.lua. r_lang holds the default server language set in GTWcore and last but not least, the value msg_CHANGE_THIS_TO_IDENTIFIER must be an identifier for the string to load at the specific position in the code, change this to a non conflicting relevant value and make sure it's the same for all languages, i.e: -- Language text storage for this resource lang_txt = { -- English/Simplified English ["en_US"] = { ["msg_welcome"] = "This is a welcome message in English", }, -- English/English ["en_UK"] = { ["msg_welcome"] = "This is a welcome message in Brittish English", }, } Test with /debugscript 3 and look for error in server log. Any syntax errors or issues with the structure will lead to a rejection of your pull request. Please note that we do accept not fully accurate translations, minor spelling errors etc but issues with the code structure or introduced errors is strictly forbidden. The job is available from this exact moment and forth as long there is money left, I'll keep this topic updated after each approved contribution. Payouts are made with Bitcoins only and will be listed here for maximum transparency and lowest possible fees. Requirements Your work will be open source and a part of the GTW-RPG project on Github Your push must be to the v4.0-development branch The code structure must be strictly according to specification, tested and working, see GTWantispam for an example of a finished conversation The job must be 100% finished for a resource in order for a push to be approved, and for you to be paid A finished conversation of a resource with static strings must contain all current English translations You should have decent knowledge in Lua and Github and have a working BTC wallet The commit message should be: misc: language update for NAME_OF_RESOURCE The commit must not contain anything outside of specification If you're interested, start a topic in the issues page: https://github.com/404rq/GTW-RPG/issues and let me know which resources you plan to work on so that we don't get any duplicates.
  7. It's probably best to ask the devs how objects actually are loaded internally, but I'm guessing it's all based on the already existing systems in GTA sa. No matter if you're using custom objects or built in objects the loading time should be equal. So to figure out why .lua maps would be slower than .map maps (which does seems to be the case when loading maps with over 1000 objects or so). I've had a deeper look on the code itself to see what's differ. This line here: <object id="object (a51_jetdoor) (1)" breakable="true" interior="0" collisions="true" alpha="255" model="3095" doublesided="true" scale="1" dimension="0" posX="2522.3999" posY="-1273.19995" posZ="32.9" rotX="0" rotY="270" rotZ="359.75"></object> Corresponds to this line in Lua code: {3095,2522.3999,-1273.19995,32.9,0,270,359.75,1,0,0,255,true,true,true} Note that the first line in the Lua code is the model number and not the ID from the map file saying "object (a51_jetdoor) (1)". Now that wouldn't be there if it wasn't used for something right? It's possible that MTA when loading a .map file into memory process the data within by sorting, hashing or indexing in a way that makes it faster to find and load a specific object during stream in. While in the converted Lua code you need to loop through the whole table in order to find the specific object you want to load. Obviously that will have a negative impact on the CPU. Luckily since we're dealing with Lua it wouldn't be that hard to process the data differently, like only loading the 1000 objects that is close to a player instead of say 50´000 objects at once, a timer could also be used to load blocks of objects with a few seconds delay between each block. In any case there need to be an index so I'll guess I'll add a few different versions, one with index from 1 to N and one with a hash sum of the ID as index so that all of you with big maps can test the difference in performance, it might even be possible to make the .lua maps load faster than .map maps. The plan is to make all additional features optional and select able, for now I've disabled that line.
  8. Any ideas why .lua maps would be more laggy than regular .map maps? I think that depends on which properties are included in the conversation. This tool tries to detect as many properties as possible unlike the other converters. Thanks to xeon17 I found some more properties that I don't have in my own maps which I initially tested with such as LOD objects, collisions, and radius. Anyway, if the conversation is 100% accurate and the same mechanism is used to render the maps no matter if the source is .lua or .map it shouldn't be any difference. If .lua maps does get more laggy than .map maps then I might as well create a map minimize tools which compress and removes default values.
  9. Download the v4.0-beta branch instead: https://github.com/404rq/GTW-RPG/tree/v4.0-development GTWgui is not used in v3.0 so the function causing that error can safely be removed, mod-shop is a compiled resource which also appears to be abandoned. It's easy to decompile but it it wouldn't be right to do that, which leaves us with no other option than including a different mod system or skip the mod system resource completely.
  10. Back in the past there was a website that could convert maps created with the official in game map editor to a corresponding Lua script. Unfortunately tho that website appears to be down by now, so I've created my own converter using some regular expressions to find properties in a map file and generate a corresponding Lua script. Here's how it looks: So why would you convert your maps to Lua then? well there are many reasons, for instance: Reduce file size, converted Lua files is around 20% the size of it's corresponding map file. Ability to use the local cache, obviously a good thing since players won't have to download your maps every time they connect. Easy to customize, only one line needs to be changed to make all objects double sided, breakable etc.. (optional) Attach a discrete blip to each map object so that players can see where custom mappings exist. Since it uses regular expressions it will try to convert any input, no matter if the syntax is right or wrong. All properties from your map files are supported including, position (x,y,z), rotation (x,y,z), interior, dimension, breakable objects, double sided objects, blips and removal of world objects. The site is encrypted with SSL/TLS and nothing is logged or saved to prevent anyone from stealing your valuable maps. Here's the link to the site: https://lua.wuss.pw/
  11. Alright, the easiest way then would be to use default options and create a new user, make sure you mark the checkbox "create a database with the same name and grant all privileges".
  12. The file db.sql contains all database tables and structures required. Currently these won't be created automatically when using MySQL so you'll have to import that file into your database. What management software are you using? PhpMyAdmin, MySQL workbench, command line or anything else. Methods to setup a database properly varies between these.
  13. Error 10061 is a database error, see this thread for more details: http://stackoverflow.com/questions/119008/cant-connect-to-mysql-server-on-localhost-10061
  14. trailerSyncTimers needs to be initialized, add this: trailerSyncTimers = { } between line 2 and 3 in the first Lua block right before it's being used.
  15. Thanks to lower operational costs we are now lowering our prices, especially on our big plans. Here's some examples: Compute VPS (squirrel) 25 GB SSD, M.2 storage 1 vCore at @2.4GHz (Intel) 1,024 MB RAM Backup & live snapshots (from $0.002/hour) Dedicated low latency DDoS protection (from $0.015/hour) For reasonable $0.009 per hour Compute VPS (hedgehog) 40 GB SSD, M.2 storage 1 vCore at @2.4GHz (Intel) 2,048 MB RAM Backup & live snapshots (from $0.0034/hour) Dedicated low latency DDoS protection (from $0.015/hour) For reasonable $0.017 per hour (save $0.001 per hour compared to squirrel) Compute VPS (rabbit) 60 GB SSD, M.2 storage 2 vCore at @2.4GHz (Intel) 4,096 MB RAM Backup & live snapshots (from $0.0064/hour) Dedicated low latency DDoS protection (from $0.015/hour) For reasonable $0.032 per hour (save $0.004 per hour compared to squirrel) Compute VPS (beaver) 100 GB SSD, M.2 storage 4 vCore at @2.4GHz (Intel) 8,192 MB RAM Backup & live snapshots (from $0.0124/hour) Dedicated low latency DDoS protection (from $0.015/hour) For reasonable $0.062 per hour (save $0.010 per hour compared to squirrel) www.99stack.com
  • Create New...