-
Posts
246 -
Joined
-
Last visited
-
Days Won
6
Everything posted by XaskeL
-
No, I just tried to read the whole file, the colors of the pixels (judging by the result.log, it seems to be successful). But I don’t know yet how the pixel positions inside the binary file go. Thanks for the links.
-
ahah. bs ultimate copy I also want to launch my version of DayZ Gamemode for sharing soon. I will try to implement what I have been thinking about for many years, in terms of optimization, additional cool features.
-
Does anyone have any idea how to make a pixel definition in a binary file to change it? That is, calculate its position in the file and then change the color using the function. I am writing a mini-game Pixel Battle to put in open access. And, for the script to work better, I will work with the image on the server and client side, transmit data about the changed pixels (which should positively affect the optimization and the network part). I am currently trying to read files without RLE compression from the server side. function CImageTGA:GetPixel(x,y) local Depth = self:GetDepth() local GetImageSize = self:GetImageSize(); local headerSize = self:SkipFirstBlock(); x = x <= GetImageSize.x and x or GetImageSize.x; y = y <= GetImageSize.y and y or GetImageSize.y; -- RGBA (1, 1, 1, 1) self.file:setPos(headerSize); -- COLOR local BytesPerPixel = Depth / 8; local BlockInfo = self.reader:ReadUInt8(); local RLE = bitAnd(BlockInfo, 128); local CountPixels = bitAnd(BlockInfo, 127) -- Read RAW First Byte self.file:setPos(headerSize + 1); -- GET ALL PIXELS. TEST local color = {} local h1, h2, h3 = debug.gethook() debug.sethook() for i = 0, (BytesPerPixel * GetImageSize.x * GetImageSize.y), BytesPerPixel do table.insert( color, self.reader:ReadUInt8() ) self.file:setPos(headerSize + i); end debug.sethook (_, h1, h2, h3) return color; end
-
it's some kind of madness. I want it in mta
-
Рисуйте их отдельно от радара (выше чем он сам)
-
The game becomes like an attempt to survive in a minefield.
-
Используй шейдер маски с примером от сюда: https://nightly.multitheftauto.com/files/shaders/shader_hud_mask.zip Если не получается, то кинь ответ сюда, я помогу
-
Using your own model. Which will be all the clothes you need. You can change it using the shader, hide what is not needed and show what is needed. I created this in 2015 for my DayZ server.
-
https://pastebin.com/GbyYxc7q for revision
-
when you declare functions inside something like that, they should not be given names (the exception is creation as a variable). addEventHandler("onClientRender", root, function() local vida = getElementHealth (localPlayer) local colete = getPedArmor (localPlayer) local dinheiro = getPlayerMoney (localPlayer) local vidatual = (screenW * 0.0932) * (vida/100) local coleteatual = (screenW * 0.0932) * (colete/100) local procurado = getPlayerWantedLevel(getLocalPlayer()) local bank = convertNumber(getElementData(localPlayer, "player:Banco") or "0") end) For questions about the code, there is a special section: https://forum.multitheftauto.com/forum/71-scripting/
- 1 reply
-
- 1
-
I stopped the resource with the model and at the same time the skin did not unload from any of my players. I disconnected and reconnected to the server. The model was gone. But the players (for whom it was not unloaded) looked like this for me Also, the "engineRestoreModel" function had no effect on this. resource: https://upload.mtasa.com/u/645466933/bear.zip_
-
ты с wine?
-
В F8 введи команду => connect 127.0.0.1 connect 5.3.167.243 (твой айпи с консоли, можешь взять его с 2ip)
-
addEventHandler("onClientGUIChanged", (PASTE YOUR EDIT = VARIABLE), function() local changedStr = (PASTE YOUR EDIT = VARIABLE):getText() local str = changedStr:gsub(" ","") if str ~= changedStr then (PASTE YOUR EDIT = VARIABLE):setText(str) end end,false) -- enable <oop>true</oop> in meta.xml test it
-
it is very userful! I calculated a little differently, but the result is definitely the same! Thank you for at least someone created a textbook on this topic.
-
I think the video card to server is not needed. But the Internet is very necessary, as well as the processor.
-
file weight, models of 1-2 gigabytes, slow drive, some resources can slow down the server (recursion?), waiting for a connection to the mysql database
-
Author removed extensions in sections link: https://dropmefiles.com/0pDOi but the file already opened normally
-
[SCRIPTER] It is important for me that I can trust you. You should also have good knowledge of working with MTA. You should know how to work with OOP as well as with RAM correctly. You must be able to use coroutines correctly and pointwise. Therefore, to discuss this work, I ask for private messages here. Pay on BitCoin or PayPal. (But I prefer Qiwi, WebMoney). [3D MODELLING] Am looking for a 3d modeler capable of modifying a 3d model and cutting it down to 150,000 polygons and using as few vertices as possible. save a square grid with the correct topology and model geometry.For gta:sa single, IVF, vehfuncs.I'll pay for it.
-
shell execute с протоколом mtasa://ip:port@password далее в реестре ищешь что тебе надо и конфиги мта, там и меняешь