XFawkes Posted July 23, 2010 Share Posted July 23, 2010 Hi i am ~[EPG]~Puma. I am scripter, but i stucked. Is there any way to put special code to server script which will replace DATA file from San Andreas folder? onPlayerConnect -> download carcols.dat file -> replace smth like replacing models and textures x:\GTA San Andreas\data\carcols.dat (carcols.dat - changes vehicle colors, i would like to change all vehicles IDs for all players, i don't want from players to download it manually from forum ) Link to comment
m4rsje Posted July 23, 2010 Share Posted July 23, 2010 thats not posible, then they wont be able to play any other server. so keep it in a client/server script Link to comment
AeroXbird Posted July 23, 2010 Share Posted July 23, 2010 You cant replace the collisons on vehicles yet, this is supposed to be implented in future versions. Link to comment
50p Posted July 23, 2010 Share Posted July 23, 2010 You cant replace the collisons on vehicles yet, this is supposed to be implented in future versions. Who is talking about collision? @ XFawkes You can't change data files and won't be able to. What do you need it for anyway? You can change vehicle colours with scripts. Link to comment
AeroXbird Posted July 23, 2010 Share Posted July 23, 2010 @50p Because the file was carcols.dat i thought he wanted to replace collisions. Link to comment
50p Posted July 23, 2010 Share Posted July 23, 2010 @50pBecause the file was carcols.dat i thought he wanted to replace collisions. Well, then you 1-don't read posts carefully and/or 2-have no idea what the file is for and/or 3-are too lazy to check the file yourself. Link to comment
Moo-Mapper Posted July 23, 2010 Share Posted July 23, 2010 carcols = car colors not car collisions Link to comment
MaddDogg Posted July 24, 2010 Share Posted July 24, 2010 If you want to change the colors of a car, which it can have upon spawn, you could make use of the vehiclecolors.conf, I guess. I actually never worked with the file before, but AFAIK it has the same purpose as the carcols.dat file. It can be found within the deathmatch mod folder of the server files. Link to comment
Xierra Posted July 24, 2010 Share Posted July 24, 2010 Actually, I really want something like car color pallet. So I could choose custom colors by RGB colours. My solution to this was only carcols.dat, but I can't edit it cause It'll be said as modified. I really want custom color! So yeah, maybe I could submit this as a new great feature. And yes, Carcol is not car collision, but car colours data, better check before you reply. Here, I'll tell you what carcols.dat do: # This file contains all the info about the car colours. There are two# sections, col which contains the colour table and car which contains # the possible indices into the colour table for each car.## The end column of the col section is the radio chat version of the car colour.## Press START on controller to reload this file while the game is running.###### 1-10 service colours - careful with these# 126 hot pink - do not use###street, 9,73 col0,0,0 # 0 black black245,245,245 # 1 white white42,119,161 # 2 police car blue blue132,4,16 # 3 cherry red red38,55,57 # 4 midnight blue dark blue134,68,110 # 5 temple curtain purple purple215,142,16 # 6 taxi yellow yellow76,117,183 # 7 striking blue bright blue189,190,198 # 8 light blue grey light blue grey94,112,114 # 9 hoods light# maibatsu70,89,122 # 10 saxony blue poly blue101,106,121 # 11 concord blue poly grey93,126,141 # 12 jasper green poly blue88,89,90 # 13 pewter gray poly grey214,218,214 # 14 frost white light156,161,163 # 15 silver stone poly grey51,95,63 # 16 rio red green115,14,26 # 17 torino red pearl red123,10,42 # 18 formula red red159,157,148 # 19 honey beige poly light# shitsu and nioka59,78,120 # 20 mariner blue blue115,46,62 # 21 blaze red red105,30,59 # 22 classic red red150,145,140 # 23 winning silver poly grey81,84,89 # 24 steel gray poly grey63,62,69 # 25 shadow silver poly dark165,169,167 # 26 silver stone poly grey99,92,90 # 27 warm grey mica grey61,74,104 # 28 harbor blue poly blue151,149,146 # 29 porcelain silver poly grey66,31,33 # 30 mellow burgundy dark95,39,43 # 31 graceful red mica red132,148,171 # 32 currant blue poly blue# kunst118,123,124 # 33 gray poly grey100,100,100 # 34 arctic white light90,87,82 # 35 anthracite gray poly grey37,37,39 # 36 black poly dark45,58,53 # 37 dark green poly green147,163,150 # 38 seafoam poly light109,122,136 # 39 diamond blue poly blue34,25,24 # 40 biston brown poly dark111,103,95 # 41 desert taupe poly dark124,28,42 # 42 garnet red poly red95,10,21 # 43 desert red red25,56,38 # 44 green green93,27,32 # 45 cabernet red poly red157,152,114 # 46 light ivory light122,117,96 # 47 pueblo beige green152,149,134 # 48 smoke silver poly light173,176,176 # 49 astra silver poly grey132,137,136 # 50 ascot gray grey48,79,69 # 51 agate green green77,98,104 # 52 petrol blue green poly green22,34,72 # 53 surf blue blue39,47,75 # 54 nautical blue poly blue# stuff125,98,86 # 55 woodrose poly dark158,164,171 # 56 crystal blue poly blue156,141,113 # 57 bisque frost poly light109,24,34 # 58 currant red solid red78,104,129 # 59 lt.crystal blue poly blue156,156,152 # 60 lt.titanium poly light145,115,71 # 61 race yellow solid yellow102,28,38 # 62 brt.currant red poly red148,157,159 # 63 clear crystal blue frost poly grey164,167,165 # 64 silver poly grey142,140,70 # 65 pastel alabaster yellow52,26,30 # 66 mid currant red poly dark106,122,140 # 67 med regatta blue poly blue170,173,142 # 68 oxford white solid yellow171,152,143 # 69 alabaster solid light133,31,46 # 70 elec.currant red poly red111,130,151 # 71 spinnaker blue solid blue88,88,83 # 72 dk.titanium poly grey154,167,144 # 73 pastel alabaster solid light96,26,35 # 74 med.cabernet solid red32,32,44 # 75 twilight blue poly dark164,160,150 # 76 titanium frost poly grey170,157,132 # 77 sandalwood frost poly light120,34,43 # 78 wild strawberry poly red14,49,109 # 79 ultra blue poly blue114,42,63 # 80 vermilion solid red123,113,94 # 81 med.sandalwood poly light116,29,40 # 82 med.red solid red30,46,50 # 83 deep jewel green green77,50,47 # 84 med.woodrose poly dark124,27,68 # 85 vermillion solid red# more stuff46,91,32 # 86 green green57,90,131 # 87 bright blue poly blue109,40,55 # 88 bright red red167,162,143 # 89 lt.champagne poly light175,177,177 # 90 silver poly silver54,65,85 # 91 steel blue poly blue109,108,110 # 92 medium gray poly grey# generic15,106,137 # 93 arctic pearl light32,75,107 # 94 nassau blue poly blue43,62,87 # 95 med.sapphire blue poly blue155,159,157 # 96 silver poly silver108,132,149 # 97 lt.sapphire blue poly blue77.93,96 # 98 malachite poly blue174,155,127 # 99 flax yellow64,108,143 # 100 med.maui blue poly blue31,37,59 # 101 dk.sapphire blue poly dark171,146,118 # 102 copper beige light19,69,115 # 103 bright blue poly blue150,129,108 # 104 med.flax yellow100,104,106 # 105 med.gray poly grey16,80,130 # 106 bright blue poly blue161,153,131 # 107 lt.driftwood poly light56,86,148 # 108 blue blue82,86,97 # 109 steel gray poly grey127,105,86 # 110 lt.beechwood poly dark140,146,154 # 111 slate gray grey89,110,135 # 112 lt.sapphire blue poly blue71,53,50 # 113 dk.beechwood poly dark68,98,79 # 114 torch red green115,10,39 # 115 bright red red34,52,87 # 116 med.sapphire blue firemist blue100,13,27 # 117 med.garnet red poly red163,173,198 # 118 white diamond pearl light105,88,83 # 119 dk.sable poly dark155,139,128 # 120 antelope beige light98,11,28 # 121 brilliant red poly red91,93,94 # 122 gun metal poly grey98,68,40 # 123 med.beechwood poly dark115,24,39 # 124 brilliant red poly red27,55,109 # 125 bright blue poly blue236,106,174 # 126 pink light endcaradmiral, 34,34, 35,35, 37,37, 39,39, 41,41, 43,43, 45,45, 47,47alpha, 58,1, 69,1, 75,77, 18,1, 32,1, 45,45, 13,1, 34,1ambulan, 1,3androm, 1,1artict1, 1,1artict2, 1,1artict3, 1,1at400, 1,3, 8,7, 8,10, 8,16, 23,31, 40,44baggage, 1,73, 1,74, 1,75, 1,76, 1,77, 1,78, 1,79bandito, 2,39, 9,39, 17,1, 21,1, 33,0, 37,0, 41,29, 56,29banshee, 12,12, 13,13, 14,14, 1,2, 2,1, 1,3, 3,1, 10,10barracks, 43,0beagle, 3,90, 4,90, 7,68, 8,66, 12,60, 27,97, 34,51, 37,51benson, 109,25, 109,32, 112,32, 10,32, 30,44, 32,52, 84,66, 84,69bf400, 54,1, 58,1, 66,1, 72,1, 75,1, 87,1, 101,1, 36,1bfinject, 1,0, 2,2, 3,2, 3,6, 6,16, 15,30, 24,53, 35,61bike, 7,1, 74,1, 61,1, 16,1, 25,1, 30,1, 36,1, 53,1blade, 9,1, 12,1, 26,96, 30,96, 32,1, 37,1, 57,96, 71,96blistac, 74,72, 66,72, 53,56, 37,19, 22,22, 20,20, 9,14, 0,0bloodra, 51,39, 57,38, 45,29, 34,9, 65,9, 14,1, 12,9, 26,1bmx, 1,1, 3,3, 6,6, 46,46, 65,9, 14,1, 12,9, 26,1bobcat, 96,25, 97,25, 101,25, 111,31, 113,36, 83,57, 67,59boxburg, 36,36boxville, 11,123, 13,120, 20,117, 24,112, 27,107, 36,105, 37,107, 43,93bravura, 41,41, 47,47, 52,52, 66,66, 74,74, 87,87,91,91, 113,113broadway, 12,1, 19,96, 31,64, 25,96, 38,1, 51,96, 57,1, 66,96buccanee, 2,39, 9,39, 17,1, 21,1, 33,0, 37,0, 41,29, 56,29buffalo, 10,10, 13,13, 22,22, 30,30, 39,39, 90,90, 98,98, 110,110bullet, 51,1, 58,8, 60,1, 68,8, 2,1, 13,8, 22,1, 36,8burrito, 41,41, 48,48, 52,52, 64,64, 71,71, 85,85, 10,10, 62,62bus, 71,59, 75,59, 92,72, 47,74, 55,83, 59,83, 71,87, 82,87cabbie, 6,76caddy, 58,1, 2,1, 63,1, 18,1, 32,1, 45,1, 13,1, 34,1cadrona, 52,1, 53,1, 66,1, 75,1, 76,1, 81,1, 95,1, 109,1cargobob, 1,1cheetah, 20,1, 25,1, 36,1, 40,1 62,1, 75,1, 92,1, 0,1clover, 13,118, 24,118, 31,93, 32,92, 45,92, 113,92, 119,113, 122,113club, 37,37, 31,31, 23,23, 22,22, 7,7, 124,124, 114,114, 112,112coach, 54,7, 79,7, 87,7, 95,16, 98,20, 105,20, 123,20, 125,21coastg, 56,15, 56,53comet, 73,45, 12,12, 2,2, 6,6, 4,4, 46,46, 53,53copcarla, 0,1copcarsf, 0,1copcarvg, 0,1copcarru, 0,1cropdust, 17,39, 15,123, 32,112, 45,88, 52,71, 57,67, 61,96, 96,96dft30, 1,1dinghy, 56,15, 56,53dodo, 51,1, 58,8, 60,1, 68,8, 2,1, 13,8, 22,1, 36,8dozer, 1,1dumper, 1,1duneride, 91,38, 115,43, 85,6, 79,7, 78,8, 77,18, 79,18, 86,24elegant, 37,37, 42,42, 53,53, 62,62, 7,7, 10,10, 11,11, 15,15elegy, 36,1, 35,1, 17,1, 11,1, 116,1, 113,1, 101,1, 92,1emperor, 37,37, 42,42, 53,53, 62,62, 7,7, 10,10, 11,11, 15,15enforcer, 0,1esperant, 45,75, 47,76, 33,75, 13,76, 54,75, 69,76, 59,75, 87,76euros, 36,1, 40,1, 43,1, 53,1, 72,1, 75,1, 95,1, 101,1faggio, 12,12, 13,13, 14,14, 1,2, 2,1, 1,3, 3,1, 10,10fbiranch, 0,0fcr900, 74,74, 75,13, 87,118, 92,3, 115,118, 25,118, 36,0, 118,118feltzer, 73,1, 74,1, 75,1, 77,1, 79,1, 83,1, 84,1, 91,1firela, 3,1firetruk, 3,1flash, 37,37, 42,42, 53,53, 62,62, 7,7, 10,10, 11,11, 15,15flatbed, 84,15, 84,58, 84,31, 32,74, 43,31, 1,31, 77,31, 32,74forklift, 110,1, 111,1, 112,1, 114,1, 119,1, 122,1, 4,1, 13,1fortune, 2,39, 9,39, 17,1, 21,1, 33,0, 37,0, 41,29, 56,29freeway, 79,79, 84,84, 7,7, 11,11, 19,19, 22,22, 36,36, 53,53freight, 1,1glendale, 67,76, 68,76, 78,76, 2,76, 16,76, 18,76, 25,76, 45,88glenshit, 67,76, 68,76, 78,76, 2,76, 16,76, 18,76, 25,76, 45,88greenwoo, 30,26, 77,26, 81,27, 24,55, 28,56, 49,59, 52,69, 71,107hermes, 97,1, 81,1, 105,1, 110,1, 91,1, 74,1, 84,1, 83,1hotdog, 1,1hotknife, 1,1, 12,12, 2,2, 6,6, 4,4, 46,46, 53,53hotrina, 7,94, 36,88, 51,75, 53,75 ,58,67, 75,67, 75,61, 79,62hotrinb, 83,66, 87,74, 87,75, 98,83, 101,100, 103,101, 117,116, 123,36hotring, 36,117, 36,13, 42,30, 42,33, 54,36, 75,79, 92,101, 98,109hunter, 43,0huntley, 37,37, 42,42, 53,53, 62,62, 7,7, 10,10, 11,11, 15,15hustler, 50,1, 47,1, 44,96, 40,96, 39,1, 30,1, 28,96, 9,96infernus, 12,1, 64,1, 123,1, 116,1, 112,1, 106,1, 80,1, 75,1intruder, 62,37, 78,38, 2,62, 3,87, 2,78, 113,78, 119,62, 7,78jester, 51,1, 58,8, 60,1, 68,8, 2,1, 13,8, 22,1, 36,8jetmax, 36,13journey, 1,1kart, 2,35, 36,2, 51,53, 91,2, 11,22, 40,35landstal, 4,1, 123,1, 113,1, 101,1, 75,1, 62,1, 40,1, 36,1launch, 112,20linerun, 36,1, 37,1, 30,1, 28,1, 25,1, 40,1, 101,1, 113,1quad, 120,117, 103,111, 120,114, 74,91, 120,112, 74,83, 120,113, 66,71 Link to comment
MaddDogg Posted July 24, 2010 Share Posted July 24, 2010 It would be indeed a really great addition to MTA, if you would be able to choose custom colors. There are also colors missing like orange, so it would be just very helpful. Maybe someone should make a feature request about it, if it wasn't already done. I would just very much like to see it. Link to comment
50p Posted July 24, 2010 Share Posted July 24, 2010 It would be indeed a really great addition to MTA, if you would be able to choose custom colors.There are also colors missing like orange, so it would be just very helpful. Maybe someone should make a feature request about it, if it wasn't already done. I would just very much like to see it. Just because there are 126 colours doesn't mean you can't use higher values for colours. You can find loads of interesting colours above number 126 and I'm pretty sure there is orange. Link to comment
MaddDogg Posted July 24, 2010 Share Posted July 24, 2010 Just because there are 126 colours doesn't mean you can't use higher values for colours. You can find loads of interesting colours above number 126 and I'm pretty sure there is orange. The highest possible value is 255. And from 127-255 there are some cool colors, but most of the numbers just result in a black color. The others are tones of purple or dark green and no orange. So I still think that this would be a great feature, because it would give you the freedom to use your own colors. It would suffice, if you would be able to change the color of an existing color id by using RGB. Link to comment
XFawkes Posted July 25, 2010 Author Share Posted July 25, 2010 Yee, that file shows RGB palette and ID for example: 0,0,0 # ID 0 - black 255,255,255 # ID 1 - white I have changed it myself and now i have beautiful colors instead of stupid boring colors between ID 60 - 126. And i would like to change this values (rgb palette ) for all players. And is there any possibility to do it? Link to comment
50p Posted July 25, 2010 Share Posted July 25, 2010 ...And is there any possibility to do it? ...@ XFawkes You can't change data files and won't be able to. What do you need it for anyway? You can change vehicle colours with scripts. Is is so hard to understand? Link to comment
Xierra Posted July 25, 2010 Share Posted July 25, 2010 This was thanks to my modding past. Anyway, carcols.dat also has limits, maybe 135 IDs (as I know), so you can't easily add custom colours easily without limits... Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now