Jump to content

[Release] Paint Vehicles


0verHeaT

Recommended Posts

ive noticed you need the key to your vehicle in your toolbelt to bring up the menu, Maybe this is your problem?

 

 

Loving the script Nice job OverHeaT, but still buggy for most of the vehicles. how wouldd i go about fixing these vehicles to retexture? i see some of the colouring when you are so far from the vehicle but part painted as you get closer the original skin pops back. coulkd this be to the vehicle being skinned in parts and will not show untill fully complete

 

Instead of irstrobe, increase the coin price? you will only end up buying it from trader anyways

 

Many Thanks

 

It's like Zupa and I said, not every vehicle can be retextured. For others the textures are buggy. Unfortunately, you can't change this.

 

You can change the coin price in your player_paint.sqf by setting the value of ColourPrice to anything you want. 

Link to comment
Share on other sites

some vehicle have multiple layers should i say from what i read of the vehicle retexture page you carnt do one layer without doing the others (become invisible) or it will stay the original skin and at a distance you will see the paint covering part of the vehicle and the grayish white vehicle underneath. 

Painting these missing bits may sort out the bugging out maybe? i tried with the vodnik armed one and painted the front end and the gun worked but not the backend. could see the original skin but at a distance i could see paint.

yeah i was saying to increase the price _instead_ of adding the irstrobe but goldbar sub would be cool for non SC

sorry for rambiling or any confision just finished 12 hour shift

many thanks

Link to comment
Share on other sites

Just attempted to install this and spawned in with broken legs and grey screen, was getting alot of RPT errors but I think this might be down to not having access to Infistar files as I host with GTX who provide a free version. Might try sending them a message with the fix needed and see if they can implement it there end. Looks a very cool script.

Link to comment
Share on other sites

Just attempted to install this and spawned in with broken legs and grey screen, was getting alot of RPT errors but I think this might be down to not having access to Infistar files as I host with GTX who provide a free version. Might try sending them a message with the fix needed and see if they can implement it there end. Looks a very cool script.

 

Check your cleint RPT sounds like an issue in your variables.sqf

Link to comment
Share on other sites

Check your cleint RPT sounds like an issue in your variables.sqf

 

These are the errors my RPT throws up

needUpdate_>
10:50:07   Error Undefined variable in expression: needupdate_objects
10:50:07 File z\addons\dayz_server\compile\server_updateObject.sqf, line 186
10:50:07 Error in expression <"));
_isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_>
10:50:07   Error position: <dayz_allowedObjects;
_isNotOk = false;
_>
10:50:07   Error Undefined variable in expression: dayz_allowedobjects
10:50:07 File z\addons\dayz_server\compile\server_updateObject.sqf, line 14
10:50:07 Error in expression <;
_dam = _x select 1;
if (_selection in dayZ_explosiveParts && _dam > 0.8) then >
10:50:07   Error position: <dayZ_explosiveParts && _dam > 0.8) then >
10:50:07   Error Undefined variable in expression: dayz_explosiveparts
10:50:07 File z\addons\dayz_server\compile\server_publishVehicle.sqf, line 107
10:50:07 Error in expression <bject_damage;
} else {
if (!(_object in needUpdate_objects)) then {
 
needUpdate_>
10:50:07   Error position: <needUpdate_objects)) then {

They only get shown when this was added
Link to comment
Share on other sites

Hey Zupa,

 

Would you be kind enough to show us how this would be done?

 

Thanks

 

QUickly converting this to overheat file structure/ variable names ( SINGLE CURRENCY)

 

i use maca's right click:

	class IRStrobe {
		class PaintCar1 {
			text = "Paint Vehicle";
			script = "call player_paint;";
		};		
	};

then change your vehicleColourPaint.sqf to

private ["_colour","_colour2","_playerWealth","_PUID"];
_PUID = (getPlayerUID player);
_playerWealth = player getVariable["cashMoney",0];

if (ColourPrice > _playerWealth) exitWith {titleText ["You do not have enough money to repaint your vehicle!","PLAIN DOWN"];};

_colour = ""+str((sliderPosition 5700) / 10)+","+str((sliderPosition 5701) / 10)+","+str((sliderPosition 5702) / 10)+",1";
_colour2 = ""+str((sliderPosition 6700) / 10)+","+str((sliderPosition 6701) / 10)+","+str((sliderPosition 6702) / 10)+",1";
_toPaint =  vehicle player;
if(_toPaint != player &&  driver _toPaint == player )then {
PVDZE_veh_Colour = [VehicleToPaint,_colour,_colour2,_PUID,dayz_playerName];
publicVariableServer "PVDZE_veh_Colour";
[player,"IRStrobe"] call BIS_fnc_invRemove;
titleText ["Vehicle has been repainted! Please wait a moment for the texture to update!","PLAIN DOWN"];

player setVariable["cashMoney",(_playerWealth - ColourPrice),true];
}else{
cutText ["You need to be the driver to change the color.","plain"];
};

put Colourprice to 0 if u want it to be free, since you probably pay for the item).

Link to comment
Share on other sites

QUickly converting this to overheat file structure/ variable names ( SINGLE CURRENCY)

 

i use maca's right click:

	class IRStrobe {
		class PaintCar1 {
			text = "Paint Vehicle";
			script = "call player_paint;";
		};		
	};

then change your vehicleColourPaint.sqf to

private ["_colour","_colour2","_playerWealth","_PUID"];
_PUID = (getPlayerUID player);
_playerWealth = player getVariable["cashMoney",0];

if (ColourPrice > _playerWealth) exitWith {titleText ["You do not have enough money to repaint your vehicle!","PLAIN DOWN"];};

_colour = ""+str((sliderPosition 5700) / 10)+","+str((sliderPosition 5701) / 10)+","+str((sliderPosition 5702) / 10)+",1";
_colour2 = ""+str((sliderPosition 6700) / 10)+","+str((sliderPosition 6701) / 10)+","+str((sliderPosition 6702) / 10)+",1";
_toPaint =  vehicle player;
if(_toPaint != player &&  driver _toPaint == player )then {
PVDZE_veh_Colour = [VehicleToPaint,_colour,_colour2,_PUID,dayz_playerName];
publicVariableServer "PVDZE_veh_Colour";
[player,"IRStrobe"] call BIS_fnc_invRemove;
titleText ["Vehicle has been repainted! Please wait a moment for the texture to update!","PLAIN DOWN"];

player setVariable["cashMoney",(_playerWealth - ColourPrice),true];
}else{
cutText ["You need to be the driver to change the color.","plain"];
};

put Colourprice to 0 if u want it to be free, since you probably pay for the item).

 

Thanks for this Zupa, one more thing I am using your single currency script and so should I change - _playerWealth = player getVariable["cashMoney",0];

 

to: _playerWealth = player getVariable["headShots",0];

 

and: player setVariable["cashMoney",(_playerWealth - ColourPrice),true];

 

to: player setVariable["headShots",(_playerWealth - ColourPrice),true];

Link to comment
Share on other sites

Thanks for this Zupa, one more thing I am using your single currency script and so should I change - _playerWealth = player getVariable["cashMoney",0];

 

to: _playerWealth = player getVariable["headShots",0];

 

and: player setVariable["cashMoney",(_playerWealth - ColourPrice),true];

 

to: player setVariable["headShots",(_playerWealth - ColourPrice),true];

 

yes mate, 

 

cashMoney is also my script you know, just slighly modified ^^

Link to comment
Share on other sites

These are the errors my RPT throws up

needUpdate_>

10:50:07 Error Undefined variable in expression: needupdate_objects

10:50:07 File z\addons\dayz_server\compile\server_updateObject.sqf, line 186

10:50:07 Error in expression <"));

_isbuildable = (typeOf _object) in dayz_allowedObjects;

_isNotOk = false;

_>

10:50:07 Error position: <dayz_allowedObjects;

_isNotOk = false;

_>

10:50:07 Error Undefined variable in expression: dayz_allowedobjects

10:50:07 File z\addons\dayz_server\compile\server_updateObject.sqf, line 14

10:50:07 Error in expression <;

_dam = _x select 1;

if (_selection in dayZ_explosiveParts && _dam > 0.8) then >

10:50:07 Error position: <dayZ_explosiveParts && _dam > 0.8) then >

10:50:07 Error Undefined variable in expression: dayz_explosiveparts

10:50:07 File z\addons\dayz_server\compile\server_publishVehicle.sqf, line 107

10:50:07 Error in expression <bject_damage;

} else {

if (!(_object in needUpdate_objects)) then {

needUpdate_>

10:50:07 Error position: <needUpdate_objects)) then {

They only get shown when this was added

Send me your variables. Sqf

Link to comment
Share on other sites

i got this error

 

 1:02:06   Error Nicht definierte Variable in Ausdruck: dayz_allowedobjects
 1:02:06 File z\addons\dayz_server\compile\server_updateObject.sqf, line 23
 1:02:06 Error in expression <;
_dam = _x select 1;
if (_selection in dayZ_explosiveParts and _dam > 0.8) then>
 1:02:06   Error position: <dayZ_explosiveParts and _dam > 0.8) then>
 1:02:06   Error Nicht definierte Variable in Ausdruck: dayz_explosiveparts
 1:02:06 File z\addons\dayz_server\compile\server_publishVehicle.sqf, line 103
 1:02:06 "LOAD OBJECT ID: \cache\objects\11942192043012.sqf"
 1:02:06 "OBJECT ID CACHE: ["PASS","10801"]"
 1:02:06 "CUSTOM: Selected "10801""
 1:02:06 Error in expression <bject_damage;
} else {
if (!(_object in needUpdate_objects)) then {

needUpdate_>
 1:02:06   Error position: <needUpdate_objects)) then {

needUpdate_>
 1:02:06   Error Nicht definierte Variable in Ausdruck: needupdate_objects
 1:02:06 File z\addons\dayz_server\compile\server_updateObject.sqf, line 313
 1:02:06 Error in expression <"));
_isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_>
 1:02:06   Error position: <dayz_allowedObjects;
_isNotOk = false;

 

 

 

After that error i change somethin in server_monitor and get this error

if >
 1:14:38   Error Nicht definierte Variable in Ausdruck: dayz_serverobjectmonitor
 1:14:38 File mpmissions\__cur_mp.chernarus\addons\SARGE\SAR_vehicle_fix.sqf, line 32
 1:14:43 Error in expression <yz_serverObjectMonitor;

sleep 5;
 

Link to comment
Share on other sites

agree with northypark, glad its finally available. big thanks to you guys for making it possible

 

my question is would it be ok and possible to change the requirements for respraying so that rather than cash it was the stencils and spray cans which were needed and if the items were there then it would respray the vehicle to a predefined skin? 

Link to comment
Share on other sites

I get the paint option in scrolling.. But once it says waiting for texture to update nothing happens.. I tried restarting the server (maybe it would update then but nothing) Am i just to impatient and have to wait longer..? Or did something go wrong here?

 

Only some vehicle can get textures, If you have the default vehicles then it don't work go over the install guide again 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...