Jump to content

Pinda

Members
  • Posts

    51
  • Joined

  • Last visited

Everything posted by Pinda

  1. Texture modding for objects. This is a tutorial to change a billboard skin. This is a bit hard for peoples who have no texture modding skills. :sleepy: Click on the bold words for the pictures of it. First of all you need this. ===> MTA 1.0.3 or lower (MTA Site) ===> G-TXD ===> G-IMG ===> MTA Script Editor Quote: MTA Script Editor installation Download 0.2a Extract it in a folder. Download 0.2.9.3 Place the files of 0.2.9.3 into the folder of 0.2a Note: G-IMG will not work when you're using MTA or GTA. Note: G-TXD and G-IMG are not working well on Windows Vista/7, how to fix this is explained in the manual. ----------------------------------------------------------------- I will mod this object: billboard ID: 7910 The Billboard The ID of the billboard I(you) will use is 7910 The original name is vgwestbillbrd11 Remember, the skin of the object, the text is Strain hard. - Place the object into a map and save it. Remember the name of the map. Close your GTA SA or MTA. Open G-IMG (G-IMG.exe) - Windows Vista/7 fix + Windows rights needed Export all files in the G-IMG.rar into a folder. Click with the right mouse button on G-TXD.exe, click on Properties. Click Compatibility, check the Compatibilitymode. Choose Windows XP (Service pack 3) Click on OK. - Click above: File. Click Open. Search for your GTA SA textures file(X:Program Files/Rockstar Games/GTA San Andreas/models/gta3.img) This is the database of all textures in GTA SA, not MTA. Search your object: Type; vgwestbillbrd11 You'll see a vgwestbillbrd11.dff Scroll a bit down till the .txd files. You need to go threw all those .txd's + images inserted to find the same texture. This time you see it it vgnretail3.txd with the name prolaps02 Right click on vgnretail3.txd, click on extract. Choose your place to copy the file, recommend: Desktop Close G-IMG. Open G-TXD. - Windows Vista/7 fix + Windows rights needed Same way as G-IMG. - Start G-TXD Click above on File, click open, search for your saved .txd file, the vgnretail3.txd file. -Hold this window. Creating texture. The size of this texture image is 256x128, so you need to create an image of this size. I know.. It's small. Open a draw/art/image program, something like Paint.net,Paint,GIMP. Start an image of 256x128 pixels. Don't use images with invisibilities/alphas I've created this. Go back to G-TXD. You've already opened vgnretail3.txd. You see a long list with images. Remove all images except prolaps02, the image you're (maybe) trying to edit. Click with the right mouse button on prolaps02. Click on replace, click here. Search your own created image. Click on Done, click on Ok. Save the file. The texture is now replaced in the texture file. Now the hard part: Placing it in MTA. Place the texture file into the resource folder of your map. X:/Program Files/MTA San Andreas 1.0/server/mods/deathmatch/resources/ When you've placed it there; open meta.xml, you'll see this or something else: Quote: Add: Like: Quote: Start MTA Script Editor(Script Editor.exe) Open your map by clicking on your map with the billboard. You see a folder called "Server". With in side your .map file. Follow this little image. Copy and paste the quoted text into the Script Editor: Quote: addEventHandler( 'onClientResourceStart', getRootElement(), function() objectSkin = engineLoadTXD( '' ); engineImportTXD( objectSkin, ); end ); We know the ID and texture name. Quote: addEventHandler( 'onClientResourceStart', getRootElement(), function() objectSkin = engineLoadTXD( 'vgnretail3.txd' ); engineImportTXD( objectSkin, 7910 ); end ); Save the file. Now you can test your own billboard or this billboard. Open your map, test it and there you have it, your own new billboard. this is not my tut but i copy'd it from a tut from jockie
  2. Pinda

    moveObject

    LOL! i stupidly forgot! i do got the cordinates
  3. Pinda

    moveObject

    the object is not moving at all
  4. Pinda

    moveObject

    function resource_starts () object1 = createObject ( 4563, 3132.727539, -1812.778076, 35.675583, 0.045000, 0.000000, 4.710001 ) move1_1 () end addEventHandler ( "onResourceStart", getRootElement(), resource_starts ) function move1_1 () moveObject ( object1, 6000, 4563, 3132.727539, -1812.778076, 35.675583, 0.045000, 0.000000, 4.710001 ) setTimer ( move1_2, 4500, 1 ) end function move1_2 () moveObject ( object1, 6000, 4563, 3132.727539, -1812.778076, 35.675583, 0.045000, 0.000000, 4.710001 ) setTimer ( move1_1, 4500, 1 ) end what i did wrong ?
  5. Pinda

    local server

    yes i already did that but MTA automatic removes the line in the ACL.
  6. Pinda

    local server

    how to make myself admin in a local server i already edited the accounts.xml and acl.xml and that, i want to test a map i made in a local server but to /start_the_resource i need to be admin
  7. Pinda

    setWaterColor

    yes i refreshed, like 50 times
  8. Pinda

    setWaterColor

    ofc i know what a resource is but why doenst it load ?
  9. Pinda

    setWaterColor

    the resource is the zip file with the .map meta and .lua ?
  10. Pinda

    setWaterColor

    im not stupid so option 2 can go away ok, for the detail. i create a map, and because 1.0.0 editor has so many bugs, it crashes a lot of times. so i already edited the meta and added a client, (mods\deathmatch\resources). when i open the editor again, i open the map. no change of water color. and when i try to test it. it wouldnt load. Edit is it even possible to load a client.lua in the map editor ?
  11. Pinda

    setWaterColor

    I want to open it in map editor 1.0.0 but it wont work
  12. Pinda

    setWaterColor

    Meta <meta> <info gamemodes="race" type="map" name="Assassin's Bum Life" author="Assassin natuurlijk" version="1.0.0" /> <map src="Assassin-BumLife.map" dimension="0" /> <script src="client.lua" type="client" /> <settings> <setting name="#skins" value='[ "cj" ]' /> <setting name="#maxplayers" value="[ 128 ]" /> <setting name="#gamespeed" value="[ 1 ]" /> <setting name="#ghostmode" value='[ "false" ]' /> <setting name="#time" value="12:0" /> <setting name="#vehicleweapons" value='[ "false" ]' /> <setting name="#minplayers" value="[ 0 ]" /> <setting name="#weather" value="[ 0 ]" /> <setting name="#gravity" value="[ 0.008000 ]" /> <setting name="#waveheight" value="[ 0 ]" /> <setting name="#respawntime" value="[ 5 ]" /> <setting name="#locked_time" value="[ false ]" /> <setting name="#duration" value="[ 1800 ]" /> <setting name="#respawn" value='[ "timelimit" ]' /> settings> meta> and client.lua red,green,blue,alpha=0,255,0,0 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) end) what i did wrong ?
  13. Pinda

    replacing bullet

    yes it dont work, is it the edited bullet.txd ?
  14. Pinda

    replacing bullet

    ok, this is what i got client.lua function replaceTXD() txd = engineLoadTXD ( "bullet.txd" ) engineImportTXD ( txd, 541 ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) meta.xml <?xml version="1.0" encoding="utf-16"?> <meta> <info type="map" gamemodes="race" name="Assassin Promo" author="Assassin" description="ja de pinda is okée" /> <script src="client.lua" type="client" /> <map src="Assassin Promo.map" /> <file src="bullet.txd" /> <settings> <setting name="#time" value="0:0" /> <setting name="#respawn" value="timelimit" /> settings> meta> bullet.txd and the .map file with bullet spawnpoints
  15. ok thanks for helping me out !
  16. ok thanks! and the 587 is the code for the car ?
  17. so txd = engineLoadTXD ( "euros.txd" ) engineImportTXD ( txd, 587 ) in the client.lua and <file src="euros.txd" /> in the meta
  18. i dont get it, what and how to replace. it's not the same as replacing objects
  19. is it possible to change a vehicle txd in a map ? like with objects and teksture = engineLoadTXD("object") engineImportTXD(teksture)
  20. Pinda

    txd

    function Client () tekstura = engineLoadTXD("vgncarshade1.txd") engineImportTXD(tekstura, 7301 ) end addEventHandler( "onClientResourceStart", resourceRoot, Client ) should this work ?
  21. Pinda

    setSkyGradient

    red,green,blue,alpha=255,56,192,192 topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue=255,56,192,255,56,192 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) setSkyGradient(topRed,topGreen,topBlue,bottomRed,bottomGreen,bottomBlue) what i did wrong ?
  22. Pinda

    Water Color

    Thanks! You guys Really helped me out! (L)
  23. Pinda

    Water Color

    I have problems with starting the map in the server, this is what i have : The zip file Meta.xml <?xml version="1.0" encoding="utf-16"?> type="client" <meta> <info type="map" gamemodes="race" name="Promo" author="-" description="Have Fun" /> <map src="Promo.map" /> <settings> <setting name="#time" value="0:0" /> <setting name="#respawn" value="timelimit" /> settings> meta> Client.lua red,green,blue,alpha=0,0,0,0 addEventHandler("onClientResourceStart",getResourceRootElement(),function() setWaterColor(red,green,blue,alpha) end) and the .map file <?xml version="1.0" encoding="utf-16"?> <map mod="deathmatch"> A Few spawnpoints and opjects map> (does needs to be ?)
  24. Pinda

    Water Color

    To make it Clientside just change in the Meta.xml ?
×
×
  • Create New...