Jump to content

Maccer.

Members
  • Posts

    139
  • Joined

  • Last visited

Everything posted by Maccer.

  1. Does anyone know how to create outlines for those dxDrawText's? You know, to make it look like sa-mp's text draws? I've seen it on some servers, but I don't know how to make it. I'm sure there's some math involved though. This effect is also known as stroke I think.
  2. use my second suggestion then, that is how ive worked around this problem before. store whichever gui element you are hovering over in a global variable, then you can just use onClientClick and check your variable to see if you clicked on gui It's all in the works! Too bad I had to use a work-around though.
  3. Holy Cripes, I just skipped that for some reason. Why damn the flu, damn it.
  4. So, I was making a button that changes images when clicked on, so I tried different methods. The first method is basically a remote onClientClick, it's used for world purposes though. It updates, but clicking doesn't work anymore. The second method attempts to update from onClientGUIClick, but it doesn't, but still functions. The third method just fails to call because... well it doesn't matter. What are the best methods of changing a static image? Edit: Ah, forgot to mention I destroy the image-button element first and create a new one, assigning it to the same variable.
  5. I do use onClientGUIClick, the problem is, if I click on a gui button onClientClick triggers too, but without knowing it's a gui element. It thinks it's the world.
  6. Okay, I'm trying to use string.find, but I can't figure out how to use it because it lacks flipping documentation! So, the problem is that, onClientClick doesn't detect any gui elements as part of the world. Also since there is no element named gui, there's only elements named "gui-element." I'm trying to use string.find to check the element name and stop the click if it If there are better ways to fix my problem or better documentation of string.find, I'd appreciate it, because all I'm getting is this from debugscript: ERROR: Untitled 2.lua:17: bad argument #1 to 'find' (string expected, got boolean) Thanks.
  7. Say, I don't mean to be an ass, but the editor suddenly stopped saving or checking for edits on the script. This is painful since this is the only working editor with real-time checking with the mta syntax format. I have tried to remove the read-only settings but it still fails. What's the problem? Thanks.
  8. Maccer.

    Jax and His Rope?

    So I've been an active monitor of the MTA Google Code page, and I've noticed Jax is playing around with "rope phyiscs." But, er... can jax, or some here define rope physics? Because if it's the rope the S.W.A.T team uses to get down on to the ground from the heli, I can't imagine that being able to work for a player, since a ped has different properties. I know there's OP Code for rope, but I don't think it's meant for the player or to be controlled with the player any how. So what's the "rope phyiscs" jax is working on? Sounds intriguing.
  9. Maccer.

    Player Limit

    Well, I'm not really sure about this, but. When I was playing on sa-mp 0.3 with my SA-MP fanboyish friend. My send rate was about (down/up) 2kb/s/1kb/s when surfing on his car. Kye may have found (or learned to copy) proper sync (compared to MTA: ~600B/s/400B/s), but there's still a lot of things he's missing. Well, sorry for being such a jerk siding with the MTA team, but I actually know Kye, and when I brought up MTA, he tried to cover the fact that he had sand in his assburger and banned me after wards while the fanboys did far much worse things. Kye is a false-dmca'ng ass anyways.
  10. Hm, I just feel the need to comment this. Does this possibly happen in single player? My friend had the same graphics card as yours, only in vista. And found the same graphical bugs and even worse, but not in MTA though. I THINK, it could be in-part to MTA's custom sky rendering. https://wiki.multitheftauto.com/index.ph ... flickering
  11. There was a type attribute though. I wonder if my custom billboards still work... shit.
  12. It returns false. ): Not sure why. ^ The meta.xml, I see nothing wrong with it though. Edit: I fixed it! I removed the "type" attribute. Apparently it caused problems.
  13. I even tried it on spawn. It just won't play anywhere.
  14. Does it have to be? Because this client-script isn't triggered but does its job. (addEventHandler BTW) In-case anyone is interested. The server shows up as "Maccer's Test Server"
  15. I tried removing the gamespeed. It still doesn't work. Plus the libary is external, why should it not play during slow downs?
  16. Well, I tried to use a sound, but it fails. Obviously, I defined it in the meta.xml and it downloaded. Here's the code. addEventHandler("onClientPlayerDamage", getLocalPlayer(), function (attacker, weapon, bodypart, loss) if bodypart == 9 then local sound = playSound("fu_neck.mp3") setSoundVolume(sound, 0.75) setGameSpeed(0.3) end end ) Not sure why it won't play. Yes it's a client-side script.
  17. Actually, I find this pretty hard to believe. Let me show you something in your code... if player then -- As you can see, if statements end with a "then" in Lua if(iRandChance >= 2) -- That should include this one, but I don't see any. server.outputChatBox("You Have Failed To Rob The Player!", getRootElement(), 255, 255, 255, false) end else server.outputChatBox("You have robbed the player!", getRootElement(), 255, 255, 255, false) end The reason it "didn't show the error" is most likely that you forgot to restart the resource. These syntax errors report problems with the script at the time it's being started, like compilers do. If there's such an error, it only reports it as soon as the script is started, not later on anymore. Also, it might have been a problem this new script wasn't loaded yet, because you didn't refresh/restart. In this case, it of course didn't have the ability to report the problem at all. So just try "/restart freeroam" while in-game after you've edited something, it should solve the problem for as far as I can see. With the help of Vercetti1010, and the most sh*****st time wasting mistake ever... I've got it to work. Thanks, everyone. He mentioned some of those errors in my code.
  18. MTA just doesn't seem to work with any UDP ports I throw at it. The strange thing is, I am able to connect to GameServer immediately. My TCP port works, but I don't really use it so I turned it off. Any ideas? Here's my server config just in-case you find something wrong. All of my UDP ports get a connection refused notice. ): <config> <!-- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> <servername>Maccer's Server Of Self-Pleasure [upcoming Script]</servername> <!-- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> <serverip></serverip> <!-- This parameter specifies the Maximum Transmission Unit or maximum packet size that the server will use. This will depend on the nature of your clients, as well as the network medium your server is connected to. --> <mtusize>1264</mtusize> <!-- This parameter specifies the UDP port on which the server will be accepting incoming player connections; default value: 22003. It is a required parameter. --> <serverport>7778</serverport> <!-- This parameter specifies the number of maximum player slots available on the server; default value: 32. It is a required parameter. --> <maxplayers>8</maxplayers> <!-- This parameter specifies whether the builtin http server will be used. Values: 0 - disabled , 1 - enabled ; default value: 1. Optional parameter. --> <httpserver>0</httpserver> <!-- This parameter specifies the TCP port on which the server will be accepting incoming http connections. It can be set to the same value as <serverport>. It is a required parameter if <httpserver> is set to 1. --> <httpport>22005</httpport> <!-- If set, this parameter specifies the external URL from which clients will be able to download needed resources ingame. Otherwise they will download them directly from the server. --> <httpdownloadurl></httpdownloadurl> <!-- This parameter can be used to make the server report to Game-Monitor master servers, allowing it to be visible in the ingame server browser. An additional UDP port needs to be available for this to work (value from <serverport> + 123 , so on a default <serverport> value 22003 the right port will be 22126 ). Available values: 0 - disabled , 1 - enabled. Optional parameter, defaults to 0. --> <ase>0</ase> <!-- This parameter allows you to disable LAN broadcasting. --> <donotbroadcastlan>1</donotbroadcastlan> <!-- If set, players will have to provide a password specified below, before they can connect to the server. If left blank, server doesn't require a password from them. --> <password></password> <!-- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> <logfile>logs/server.log</logfile> <!-- This parameter specifies the location and name of the Access Control List settings file. If left blank, server will use acl.xml file, located in the same folder as this configuration file. --> <acl>acl.xml</acl> <!-- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> <scriptdebuglogfile>logs/scripts.log</scriptdebuglogfile> <!-- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <scriptdebugloglevel>3</scriptdebugloglevel> <!-- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> <htmldebuglevel>0</htmldebuglevel> <!-- Specifies the server frames limit. Minimum value: 25, default: 36. --> <fpslimit>45</fpslimit> <!-- Specifies the module(s) which are loaded with the server. To load several modules, add more <module> parameter(s). Optional parameter. --> <!-- <module src="sample_win32.dll"/> --> <!-- <module src="sample_linux.so"/> --> <!-- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more <resource> parameter(s). --> <resource src="freeroam" startup="1" protected="0"/> <resource src="joinquit" startup="1" protected="0"/> <resource src="deathmessages" startup="1" protected="0"/> <resource src="realdriveby" startup="1" protected="0"/> <resource src="parachute" startup="1" protected="0"/> <resource src="admin" startup="1" protected="1"/> <resource src="resourcebrowser" startup="1" protected="1" default="true"/> <resource src="resourcemanager" startup="1" protected="1"/> <resource src="scoreboard" startup="1" protected="0"/> <resource src="spawnmanager" startup="1" protected="0"/> <resource src="votemanager" startup="1" protected="0"/> <resource src="webadmin" startup="1" protected="0"/> </config>
  19. Alright, I've tried debugging, but no errors are returned. "server" was already defined. It's used to call a server function from the clientside script.
  20. I don't have ACL rights which I'm trying to set, but MTA doesn't provide the list of rights I can set. I also tried to use the admin script, but I can't understand how I set myself admin.
  21. I'm a lua starter, and I really suck at lua because the syntax is very unfamiliar for me. I usually code in more C-Style languages like C, PHP, and Pawn(sa-mp ftl.) Lua just turns my brain to mush. I do have coding experience, as a note. I used the freeroam script a temporary starter's template. So the problem is, the code generates no errors, but the command returns no messages as the title says. fr_client.lua: function robPlayerMoneyCommand ( cmd, player ) --server.outputChatBox("You Have Robbed" .. , getRootElement(), 255, 255, 255, true) --setElementPosition ( source, posX, posY, posZ ) iRandChance = math.random(0, 4) if player then player = getPlayerFromNick(player) if player then if(iRandChance >= 2) server.outputChatBox("You Have Failed To Rob The Player!", getRootElement(), 255, 255, 255, false) end else server.outputChatBox("You have robbed the player!", getRootElement(), 255, 255, 255, false) end else server.outputChatBox("Lolwut, an error occured.", getRootElement(), 255, 255, 255, false) end end ... addCommandHandler('rob', robPlayerMoneyCommand) Thanks, in advance.
  22. Quoted for truth! :D During the (somewhat short) time I did test that server, I noticed that some places on the map your FPS would just... drop. And I'm not talking about dropping like 5 FPS, I'm talking about dropping to like 5 FPS... :o I didn't really remember this until now for some reason, but.. maybe it's not about those mods of yours after all. Heh, yeah, that's what Valhalla gets. I often get FPS less than 1 FPS in Valhalla that it makes it unplayable. (ugh, do you know how incredibly, f***ing crappy it is to roleplay? It's like you need a working alter-ego because I can't roleplay like an "O.G" all the time) A revision fixed an mta lag spike which fixed it up for my friend's developer server. I had several theories to why these very sharp lag spikes were happening, in which I said it was most likely graphics->cpu pipelining, so I suggested multi-threading which was turned down. As I said, when these spikes happen, your video card/cpu fan speed do not change. The lag spikes have nothing to do with the mods, as I ran MTA with a heavy hard-coded mod along with scm changes. (By The Way. It's Me, Maccer. )
  23. I don't know about texture loss, but that can clearly be GTA trying to draw textures, or it just may be that you have a crappy graphics card, Valhalla has SO much spawned cars. As for the lag spikes, they are fairly common for all players, which is usually not the fault of video cards and processors. Roleplay servers are just over-glorified and polished paperwork, in my opinion.
  24. I'm really sleepy right now, but anywho, as the title said, the Map Editor doesn't load, and only shows a black screen.
  25. Hello, MTA:DM keeps hanging when I launch it, I've tried downloading the DM version some time ago and installed it on my fairly clean installation of San Andreas, and it worked! I've installed MTA Race on my clean directory, and it succeeded! I've decided to install MTA DM on my clean copy too, but it didn't work, now I can't access MTA race either or MTA:DM on the fairly clean copy! I've tried solutions 1.1.2, 1.1.3, 1.1.4, and they've all failed! I really miss both Race and DM versions. I want to know what could be the cause of this or what I should try. If you need to know some extra information, just ask. Edit: Also before I tried to install MTA DM on the clean copy, I've decided to go check out the fairly clean copy of MTA DM, and it launched MTA Race. Edit 2: Sometimes when I launch MTA Race or DM, it makes a Windows sound as if Windows asked me "Would you like to uninstall this application?" Edit 3: Okay, I tried creating a new directory, and a new MTA directory, but it still fails! I've tried cleaning up now I get this: I've tried re-installing GTASA, it still fails... *sigh* -Fedor
×
×
  • Create New...