ixjf
Members-
Posts
647 -
Joined
-
Last visited
Everything posted by ixjf
-
Use interpolateBetween with onClientRender or use the dt parameter from the onClientPreRender to calculate the step.
-
The page in the second link was created by me, probably outdated by now. You can find the whole MTA source code here: https://code.google.com/p/mtasa-blue/so ... vn%2Ftrunk
-
There are a few in the OOP introduction articles, and you can find the whole Matrix class members in the MTA's source code (MTA10/mods/shared_logic/lua/CLuaMain.cpp).
-
addEventHandler ( "onPlayerChat", root, function ( message, messageType ) if messageType == 2 then cancelEvent () outputChatBox ( getPlayerName ( source ) .. ": " .. message:gsub ( "^%l", string.upper ), root, 255, 255, 255, true ) end end ) This only works for normal messages, though.
-
You can probably simplify that code a lot with the Matrix class introduced in MTA 1.4.
-
The processor is listed at the Intel website, like all other Intel CPUs, but that doesn't mean it's not overclocked. Overclocking is increasing the clock speed of the processor cores. These are not compatible because they use a different socket. The 4th (Haswell) and 5th (Broadwell) generations use the LGA1150 socket, while the Intel Pentium G620 uses the LGA1155 socket. What I didn't understand yet is what is the guy selling? The whole tower or just the processor (which are very different things)?
-
You do realize what you've done is more of a wrapper around someone else's AES implementation library rather than a port, and that MTA already supports base64, right? Also, honestly, what's the real point of the GUI?
-
Simply replace "myTable[index] = player" with "table.insert ( myTable, player )" in your original code and get rid of all the crap you've been told to do.
-
Please use the search feature before creating a new topic. There are probably dozens of topics about custom animation support on MTA.
-
There's a very simple way to do it, and it can be achieved with just MTA, in Lua - the functions used were intended to behave that way, but that allows one to decrypt any Lua file in seconds. All you have to do then is decompile the code with a normal Lua decompiler. It's not very difficult. In the end, you're the one responsible for keeping your code safe. MTA's encryption system is not bullet-proof, none is. But more importantly, it was not meant to secure your files, it was introduced as the alternative to loading Lua bytecode directly, which was disabled due to its security flaws.
-
The class library can be used in both client and server, logically. If I remember correctly, adding a member variable to any MTA class is as simple as adding one to a "normal" table: Player.foo = 3 function Player:bar () print ( self, "bar" ) end
-
You cannot do what you're trying to. You cannot export functions within tables. You must define the functions in every resource you need them in. No Lua data is ever shared between Lua virtual machines. Also, I would stop right now and use an intermediate library for classes (like sbx320's classlib) instead of writing that mess in multiple files. This, however (and obviously), does not make it possible to share methods from classes across resources.
-
What's the point of an ID within a table as the value? Why not just: local playerData = { 20, -- [1] = 20 40, -- [2] = 40 60, -- [3] = 60 80, -- [4] = 80 100 -- [5] = 100 } And then remove the loop and simply use playerData[id]. Or if that data is static, you can just multiply the id by 20 (20 * 1 = 20, 20 * 2 = 40, 20 * 3 = 60, 20 * 4 = 80, 20 * 5 = 100).
-
Massive Cash Reward (200 gbp) MTA Dev's read please.
ixjf replied to codeluaeveryday's topic in Suggestions
That's exactly what they have been saying all the time, and it's clear why. There are barely any active developers on MTA, and the people who want it on mobiles don't have enough programming knowledge, if any at all, to know how much effort it would take to achieve that. -
MTA already uses multiple threads for core logic, network and (on the server) database.
-
4+GB of RAM is only supported in x64 operating systems. You'll have to acquire the x64 version and reinstall it (must be a clean install, upgrade won't work due to the difference of architectures). [quote name=..&G:..]I tried to make my own PC, but I had to spend like £800 on it, and it wasn't even in the middle what I wanted. I have a laptop which has an AMD C-50 1.0GHz processor, and AMD Raderon 6000 HD 2GB (or something like that), and games run ok on low or medium. I want to get this PC at least a bit better than my laptop. Btw, in the first post, I specified a link to a GPU that I found on dell's website and said it will be compatible with my PC, should I buy that GPU? And also, what CPU you recommend me? If you want to build a new PC, I can see what I can do. I'll need the maximum budget, your location (I assume UK?), whether you need peripherals and operating system. However, if you just want to upgrade, your best bet is, indeed, upgrading the GPU to something like you've mentioned. It will have an impact on performance, but it's not going to run the games you want to play maxed out or anything even remotely close.
-
[quote name=..&G:..]I don't think I can change the CPU to a quad, as my motherboard will not support it. Yes, it will support it. Core 2 Quads use the socket 775, the same you have. [quote name=..&G:..]Also, I don't want to change the motherboard, as this will be like buying another PC... So, what should I do? Buy another PC, or get a better PSU and see if I can find a GPU that can fit with my CPU? Because I can just simply find another PC than just changing the motherboard.. You can find an used video card that your CPU can keep up with, like the GT 630, but it's no good either. I would rather get some money and build my own computer. You could save some money by keeping the case and hard disk (if it's SATA), for example. It all depends on what you're going to use it for. Is the PC only for gaming? What kind of games will you play?
-
You definitely need a new power supply if you want to upgrade the graphics card. OEM power supplies are low quality and they most likely won't be able to power much else. Regarding the graphics card choice, I'm sure you can find an AMD Radeon HD 7770/R7 260(x) for £80. Both are much better choices than any NVIDIA GT series-card, which are not designed for gaming. If you live in the UK, check this out: http://www.amazon.co.uk/gp/product/B00G ... 354&sr=8-1. Amazon has it on sale for £79.99. EDIT: I just looked at the specifications of the Dell Inspiron 530, and the CPU will bottleneck a lot any of the two GPUs I mentioned. If you want to upgrade the graphics card to a more modern one, you'll have to upgrade the CPU as well to keep up with the GPU. Since the CPU uses the old socket 775, you have two choices: Either upgrade to a Core 2 Quad (used), which still does fairly well in gaming taking into account how old it is, or upgrade both the motherboard and the CPU. Don't forget to change the PSU first, though.
-
SSDs have nothing to do with RAM, so that certainly won't be a problem. Now, PCI Express has always been backwards and forward-compatible, so as long as PCI-E is not discontinued and compatibility is not broken, graphics card incompatibilities shouldn't be a problem. Being forced to upgrade hardware to be able to use new technologies is something everyone has to do once in a while. You can be smart and choose technologies that you know will stay in the market (e.g. Intel announces that there will be a new CPU generation using the same socket) or you can be dumb, but with $600 and with everything you want, you don't have many choices. In fact, you can't even fit the requirements in your budget, which to me seem like just random choices.
-
You don't have to do anything, dt is a parameter passed to the handler function of the onClientPreRender event.
-
The dt parameter represents the time taken between the last frame and the current. You can use this value to calculate the step accordingly to the player's FPS. E.g. say you want to move your image on the screen to the right. Instead of doing the usual "posX = posX + 1" where posX would be the current image position X and 1 the step, you would multiply 1 by dt, as in "posX = posX + 1 * dt", therefore achieving a smooth movement independently of the player's frame rate. This is called variable timestep.
-
http://ca.pcpartpicker.com/p/QBYvsY The case, keyboard and mouse (and even monitor) are more of a personal choice, you may change it if you want. This includes peripherals, but it does not include operating system and storage. If you really need those things, you're gonna have to stretch that a lot. If you already have an hard disk and wanted a SSD, you may temporarily use the hard disk for the OS and later buy an SSD (or were you thinking in using an SSD to store all your files too? SSDs with 120GB are already as expensive as an 1TB hard disk - that's not a lot of space). Can't you get the operating system from a friend? Also, don't you have any components or peripherals laying around you might be able to reuse? Like an hard disk from another computer that isn't being used, a monitor, or even a keyboard would already make a difference.
-
Yeah, you're asking way too much for $600. If you want peripherals, operating system and an SSD with $600 you'll have to buy low-end components.
-
Use the dt parameter value from onClientPreRender to calculate the step. E.g. addEventHandler ( "onClientPreRender", root, function ( dt ) posX = posX + 1 * dt -- instead of posX = posX + 1 end )
-
Do you need an hard disk or SSD or do you already have storage? Also, do you need an operating system too?
