Jump to content

Ransom

MTA Team
  • Posts

    4,892
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Ransom

  1. Ransom

    1 Questino!

    https://wiki.multitheftauto.com/wiki/OnClientResourceStart
  2. |-------------------------------| |-------------------------------| | by | | [RL]Lug | | (c)| |-------------------------------| |-------------------------------| function Chatsauber(thePlayer) if ( hasObjectPermissionTo ( thePlayer, "command.ban", true ) ) then outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") else outputChatBox ("Du bist kein Admin!", thePlayer, 193, 13, 13) end end addCommandHandler("sauber", Chatsauber) Groan... gone.
  3. We don't backdoor police peoples servers. If your stuff got stolen that is your business. There is little to nothing we can do about that and we will not be responsible for such things. We WILL police the community center when given necessary proof. I have dealt with this guy as far as resources go. Although your link does not work I found him with the aforementioned loginv2 ... he will be nuked. Edit: this user was already banned by me but now ALL his resources are nuked. Late but your previous post taken care of volksy. done.
  4. This thread is now part of my HIGHLY recommended section of Scripting and Mapping Tools post, so keep it up! I will edit my additions into the first post as long as I remember to. Mar 6 2011 http://www.filesonic.com/file/167684531 ... 6-2011.zip
  5. I'm not sure what you're referring to, but you'd upload to www.multiupload.com and provide the resource link on the community. You do know the MTA 1.0.4/1.1 map editor has a fully functional object selector/previewer right?
  6. Wow I would have never thought of this (or tried it thinking it would work)... I tested and you are right. Thanks for mentioning, although, it is kind of a PITA to keep switching users. Switch user means much better frame rate but virtual machine means no switching users (and straying from Lua script program and debug errors). Seems odd you don't even have to double-install GTA or MTA. Anyways I'll edit that into my post. edit: it seems to run into network trouble as you switch back to your actual username, but still good for testing as 2nd person with full framerate.
  7. What do you mean? switching users?
  8. EDIT: Note that this information was written years ago. As development progressed, both on MTA and the virtual softwares, the outcome of these methods have changed. As recently as Oct 2014 CCW updated VMWare text here for VMWare 6.0 ... and as of Dec 2014 qaisjp claims VirtualBox works again. Run multiple clients There are times you need more than 1 person to test your script. An example would be team game menus that react differently once another person has joined. It is a luxury to get someone to hang around and test while you debug even part of the time. What you can do is use a virtual machine... Switch user (Tested on Win7 Ultimate / nvidia 9800 GTX / MTA 1.0.4 only!) You can run GTASA/MTASA from multiple Windows accounts and log them into the same server using 127.0.0.1 ... just setup another user account and use switch user, DO NOT use log off. This seems to lead to network trouble in my testing, but you can still use it for script testing with full frame rate. Switch user no longer works as of 1.0.5 for exploit reasons. Virtual Machines The Short Answer: You need to use VMWare Player (free software) You need to use VirtualBox (free software) and follow the instructions HERE. p.s. You cannot connect locally to 127.0.0.1 as your virtual machine has its own virtual loopback for that address referring to itself. On your actual machine do start>run>ipconfig and use your router address in the virtual machine. Ex: 192.168.0.102 22003 ... alternatively if this does not work you can try your ISP IP. Goto whatismyip and use that address in the virtual machine. Ex: 73.114.81.112 22003 p.p.s. People with nVidia cards using 260.xx drivers: Do not enable 2D and 3D acceleration at the same time or you will run into THIS BUG ... for MTA you only need 3D acceleration. If you really want both, revert to 259.xx nVidia drivers. p.p.p.s. Make sure you turn the GFX settings to minimal, especially draw distance. Note very low frame rate can mess up shooting sync. The Long Answer: The two big virtual machine softwares are vmware (most popular and not free) and virtualbox (open source and free). VMWare (Tested on VMware Workstation 7.1.2 build-301548 / Host Machine: Win7 Ultimate / Virtual: WINXP SP3 / nvidia 9800 GTX / MTA 1.0.4) From my testing, vmware will flicker and freeze on 1 frame of the MTA menu and black screen ingame. It works with GTASA but not MTASA. From my VMWare research this problem is related to refresh rates and emulating vsync (a physical monitor property). If you do start>run>dxdiag, display tab, "Test Direct3D" the spinning DirectX cube will be going insanely fast. This should not happen. VirtualBox (Tested on 4.0.4 r70112 / Host Machine: Win7 Ultimate / Virtual: WINXP SP3 / nvidia 9800 GTX / MTA 1.0.4) I tested it in the same manner as above. The dxdiag "Test Direct3D" will show a DirectX cube spinning at normal speed. A drawback I have noticed is that VMWare was running GTASA at a better framerate than VirtualBox could. However, VMWare will not work for MTA as explained above. VirtualBox will work fine.
  9. getScreenFromWorldPosition makes the illusion of 3D drawn images possible. All the rest is up to your specifications. Of course you can have a trigger to only draw for admin. I don't see why you can't test that... put it some temp setElementData and comment it as debug.
  10. Some ancients patched up and uploaded: sinkingship disco maze generator
  11. Nice video, I forgot about the old interstate69 GUI. Lucifer has moved on permanently from MTA I'm pretty sure. Many of our brilliant scripters have been whimsical and move on after a year or two... must be some mad scientist boredom disease as they rarely like actually playing the game. Yes, I was tired and it was getting too late so I held off last night. I was going to upload your versions to the other but if you just want the most recent then fine. Comments are accessible still (in a manner of speaking) through the new comment section. edit: Note I have also modified your thread name [REL] mabako-services (Patching by XX3) I'm not sure where this is? Why do you want it? This is basically a precursor to deathmessages (comes with MTA).
  12. Hmm.. anyone tried this on latest nightly? It seems to be broken. Exit marker isn't created and if you restart play to escape and go find the marker, when you teleport into the house its just blank (interior not set). Anyway cool resource.
  13. Excuse the double post but I wanted people to know that Slothman and I have repaired interstate69 to working status. All gameplay balancing was of my hand, so pitchforks at me for that if you don't like it. This is an exception to rule 1 as it is an MTAQA resource and we reserve the right to fix them as needed. This will be the only update to interstate69 unless a critical problem arises. It needs to be rethought "as an addon to race mode", in Talidan's words, which I agree with. Download: https://community.multitheftauto.com/ind ... ails&id=32 EDIT: Also patched RC-Battle https://community.multitheftauto.com/ind ... ails&id=40
  14. The fault lies with the current community center, which is being replaced sometime. It is not designed to handle patches by people other than the author or language translations. Also, the rules behind free-to-modify resources are sketchy. Say you have something like freeroam, which we have seen lots of spin-offs. Anyway, my point was that we CAN handle patching scripts instead of people trying to do _xtra-new-mabako_services(premium)-v2 and such. If you want to patch something up, let us know and we'll just patch the resource itself. Your case can be exceptioned, as there is no other update, it otherwise does not work, and mabako is pretty free spirited with building on his work. The feature additions sound fine. Edit: I will change rule 1 to add: (exceptions based on situation and author's usage terms)
  15. Some of it is unfactored code, meaning I have some parts that are unnecessarily spammed several times over instead of feeding everything into a function. Mostly this occured on my GUI logic, because I just lacked any experience with it. It was difficult to refactor as I overhauled the GUI design a few times after using the GUI generator, eg: http://img522.imageshack.us/img522/8299/uthudgui.jpg http://img710.imageshack.us/img710/4413/inputworks.png http://img441.imageshack.us/img441/2918/failedi.jpg http://img822.imageshack.us/img822/5163/capturege.png Anyway, that is why I don't want people to look at it as a good script to learn from, next time I can do better since I learned some things. As a general tip I have learned: try to plan your GUI as well as possible and script it minimally to try and find the final design. Always get a 2nd and 3rd opinion also. Proof of concept is important! The other thing I would say is if you find yourself repeating pieces of script over and over, you really need to stop and think about a better and easier way of doing things using tables and central functions.
  16. or just use https://wiki.multitheftauto.com/wiki/Md5
  17. Because I don't want someone to steal it or modify it? I may do further work on it and I don't want spin-offs. There is a lot of resource theft going on. There isn't much to be added onto it either so no reason not to. I know some people probably want to learn from my script, but its pretty confusing and about 1,500 lines.
  18. You've Heard of Adopt-a-Highway right? Well this is sorta like that. There are some great resources on the community center that continue to get downloaded and confuse people when they fail to work. You can't do anything about it even if you wanted to, because you can't upload the fixed version right? We see a lot of resource duplication but this is a big no-no. Example: "mabako-services" --> "new_mabako-services". If you want to fix anything and you link it here we will update the resource and credit you for upgrading it to be compatible with MTA. You will not be given authorship (which would give you resource control rights) but you will be mentioned in the description and the version comment. Rules: 1. PATCHES ARE CRITICAL FIXES ONLY (exceptions based on situation and author's usage terms). You may not alter the resource to add new features or do anything beyond what is necessary to make the script work like it should. 2. Only abandoned and outdated resources. Lets say anything that hasn't been updated for around a year and is currently spewing errors on MTA. 3. No updating of resources that cause conflict with project goals of MTA. A prime example would be unofficial map editors. Spend your energy helping us improve the editor and other MTA projects on Mantis instead. Patches: Interstate69 RC-Battle mabako-services (new_mabako-services merged) sinkingship disco maze generator Transformers rollercoaster Resources Menu (YAML) Tornado
  19. Ransom

    VBS '05

    Good luck... I think a more worthwhile and realistic goal is to youtube some tutorials if you have the knowledge of all the proper ways to do things, which a vast majority of people do not understand. If this is just the basics then I suppose. I think you'll have a hard time explaining for example why attaching all event handlers to root is bad, making an EDF for the map editor, teaching debugging, the most appropriate way to store and use options pulled from file, how the ACL works and using it with your resource when servers have function restricting ACLs etc. etc. Its easier to show someone how to fish then to tell them how to fish if you know what I mean.
  20. If someone wants to go the extra mile, we talked of pulling the model to its own custom model and making it placeable by file (or map editor EDF would be the truly appropriate way). The problem is the map model is attached to the computer screen stuff. Someone with custom model expertize is needed. I believe this is where it would start to find usefulness in that it could be a war room for each team or something. This is one of those scripts like transformers that is mostly just for demonstration purpose at the moment. Its not anyone's baby. We are open to adding extra authors.
  21. As counter offer I can bastardize the resource and then give you authorship, seeing how he wasn't nice enough to include you. Your choice.
  22. Creative commons is just an easy way to put on a license without having to write it yourself. It has a full licensing contract being the basics presented on that link. Its all my own code aside from the assistance I mentioned in special thanks. Talidan helped eliminate my bad scripting practices. I started designing this around Nov. 2010, its been a long WIP.
  23. DOWNLOAD ON COMMUNITY: https://community.multitheftauto.com/index.php?p= ... ls&id=1777
  24. Indeed, you question why its hard yet here you are lol... There are a lot of programs out there with undo and redo that PARTIALLY work. Its rare to get something like Photoshop that can log and undo almost every single action on the GUI. Especially in any given order. You will often run into a situation where certain actions can be undone but they make it impossible to do previous undos before it. Example would be like converting a file to a different format. Then there are times you run into a situation where a popup comes and tells you something cannot be undone once done. Some programs cheat... the cheating way? Keep logging EVERYTHING at a specific point in time for x steps. If the user has a problem retreat back to this state. Basically like a save state in an emulator. This is of course highly inefficient and not suitable for something like Photoshop. Maybe you could get away with it?
  25. The list is here in the scripting forum:
×
×
  • Create New...