Jump to content
Mr. Green Gaming

AfuSensi

Greens
  • Posts

    1162
  • Joined

  • Last visited

  • Days Won

    36

Posts posted by AfuSensi

  1. Add an option in the /mm window where we can check the maps wich are cooling down and the cooldowntime.

    P.S. When will we get an answer from the adminteam about suggestions?

    You will when one of us finds it a good idea and implements it.

    If we had more scripters i guess it would be faster.

  2. I gotta say, i find it pretty sad that you screen some silly insults when i have seen you two jokingly insult eachother alot of times, and also have seen you two messing around in nts/ctf when not playing. I think all admins have done this. 

    Ofcourse there are things that shouldnt happen (joking about turks, excessive slapping etc), but most of your pics show harmless messing around.

  3. If its true what Nitro said that the ping is now 260 24h a day that means most of the south americans are out anyways. so thanks a lot to greedy europeans like morocanjob and reese...

     

    wasnt it enough to allow them a bit of space at night? no of course not... pfff....

    I have no idea whats going on, been away for 2 days. But if it is like you say it is i agree with you. It was a brilliant idea to raise ping limit in the night.

  4. It worked!

     

    attachicon.gifmta-screen_2015-12-25_00-13-03.png

     

    I needed to change the "replacetexture.lua" right in these lines:

    	engineApplyShaderToWorldTexture( shader, "cos_hiwaymid_256" )	engineApplyShaderToWorldTexture( shader, "metal1_128" ) 	engineApplyShaderToWorldTexture( shader, "metalox64" )

    Some questions that i think It can help other mappers:

     

    Here is where I have to paste the name that I copied right?

     

    The resource SHADER_TEX_NAMES It is used only to find the correct name of the objects? Right?

     

    What is a .FX file? 

     

    Are shaders LOCAL or SERVER?

     

    Thanks Kali

    1. Yes, it's only used to find the right texture names.

    2. Yes

    3. 4.

     

    Correct, correct, FX is a shader file (not Lua) and shaders are completely local

     

     

     

     

     

    So what's the benefit of using shaders rather than .txd? I don't think the .txd way is hard at all but will use shaders if positives are good enough to switch to it.

    It's more dynamic, and works on any texture (as far as i know), without needing to find the txd file and replace it.

    The same method is used for custom paintjobs.

  5. On request of vinii, i'll try to post some tutorials here.

    Here it goes.

     

     

    Replace textures without using .txd (by using normal shaders with .jpg/.png etc)

     

    You can use shaders to replace textures, this way you have no need to mess with .txd files, and can easilly change the texture by editing a few lines of code.

    In this tutorial we will go over how i add it to maps.

     

    Once you have made your map and found a texture you want to replace, jump to step 1. 

     

     

    Step 1: Getting the texture's name

     

    First of all, you need a way to get texture names. You can achieve this by using the resource "shader_tex_names", wich you can download here. (direct link)

     

    Once you have downloaded it, unzip it, put it in your resource folder and while ingame  /refresh and /start shader_tex_names.

     

    After that, press num_8 to view the list of visible textures, it should look something like this: post-10262-0-97265000-1450999238_thumb.p

     

    If your list is very long, try to position your screen so that there are as least as possible objects in your view.

     

     

    To find your texture, navigate the list with num_7 and num_9, the texture you selected will light up in different colors.

    I have found the texture for my roads:

    post-10262-0-20133200-1450999570_thumb.p

     

     

    Now that you've got your texture name, press K to copy it to clipboard, and save it for later.

     

     

    Step 2: Adding the script and image to your map

     

    I have made a zip file with all the files needed to replace.

    replacetexture.zip

     

    Unzip the file, within it you will see the example texture, the script and the fx file.

    Add these to the root of your map folder.

     

    Once you've done that, open your meta.xml and add these lines one line under <meta>

    If you have changed your texture image, replace it with "texture.jpg"

        <script src="replacetexture.lua" type="client"></script>    <file src="texture.jpg"/>    <file src="texture.fx" />

    If youre using another image, replace it with "texture.jpg".

     

    Save your meta.xml file, and open replacetexture.lua.

    I have added comments to the script to make it more understandable, but the script is pretty simple.

     

    If you are using another image, replace "texture.jpg" with your own image file path, so if your image is called myImage.jpg, replace "texture.jpg" with "myImage.jpg". Don't forget to add the proper path.

     

    When you have done these things, restart your map. If you did everything correct the textures should be replaced with your image.

    Texture end result:

    post-10262-0-89127900-1451002613_thumb.p

     

     

    Tips

    • .bmp, .dds, .jpg, .png, and .tga images are supported
    • Take a look here if you want more options on how the texture looks
    • When choosing your image, keep the file size low!
    • You can search online for "seamless textures" to find textures that will look nice
    • If something is not working, try to look for errors with the command /debugscript 3

     

    If you have any questions, feel free to ask or PM me.

     

  6. Seems to be caused by the admin resource, it has put a lot of (200+) vehicles near xyz 0,0,-200. I think admins have been giving alot of vehicles and it hasnt cleaned up.

     

    runscript for other devs: 

    crun for _,v in ipairs(getElementsByType("vehicle")) do		x,y,z = getElementPosition(v)		if x == 0 and y == 0 and z == -200 then		parent = getElementParent(getElementParent(v))		outputDebugString(tostring(getElementID(parent)))	endend

    I restarted admin resource, and i will look later why admin res isnt cleaning up its own elements.

  7. We dont actually know either way if bigger playercount means "nothing". 

    As far as i know we dont have stats.

    Also its rarely most players (on european play times)

     

    @ vini, mrgreen has lost alot of players ever since anti mods were on the server, and after the crash ofcourse.

×
×
  • Create New...