HosteD Posted October 12, 2014 Report Share Posted October 12, 2014 i have this working perfectly thx Link to comment Share on other sites More sharing options...
HosteD Posted October 12, 2014 Report Share Posted October 12, 2014 I have this working on my coin server but on my normal gold server I get this error Error in expression <Paint\player_paint_init.sqf" _this call player_paint; > Error position: <player_paint; > Error Undefined variable in expression: player_paint File mpmissions\__CUR_MP.Tavi\Paint\player_paint_init.sqf, line 1 player_paint is defined in compiles correct ??? if (!isDedicated) then { VehicleColourPaint = compile preprocessFileLineNumbers "Paint\vehicleColourPaint.sqf"; VehicleColourUpdate = compile preprocessFileLineNumbers "Paint\VehicleColourUpdate.sqf"; VehicleColourUpdate2 = compile preprocessFileLineNumbers "Paint\VehicleColourUpdate2.sqf"; player_paint = compile preprocessFileLineNumbers "Paint\player_paint.sqf"; "filmic" setToneMappingParams [0.07, 0.31, 0.23, 0.37, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; yes Link to comment Share on other sites More sharing options...
calamity Posted October 12, 2014 Report Share Posted October 12, 2014 I have this working on my coin server but on my normal gold server I get this error Error in expression <Paint\player_paint_init.sqf" _this call player_paint; > Error position: <player_paint; > Error Undefined variable in expression: player_paint File mpmissions\__CUR_MP.Tavi\Paint\player_paint_init.sqf, line 1 player_paint is defined in compiles correct ??? if (!isDedicated) then { VehicleColourPaint = compile preprocessFileLineNumbers "Paint\vehicleColourPaint.sqf"; VehicleColourUpdate = compile preprocessFileLineNumbers "Paint\VehicleColourUpdate.sqf"; VehicleColourUpdate2 = compile preprocessFileLineNumbers "Paint\VehicleColourUpdate2.sqf"; player_paint = compile preprocessFileLineNumbers "Paint\player_paint.sqf"; "filmic" setToneMappingParams [0.07, 0.31, 0.23, 0.37, 0.011, 3.750, 6, 4]; setToneMapping "Filmic"; so can anyone help me overcome this error im gettting Error Undefined variable in expression: player_paint Link to comment Share on other sites More sharing options...
F507DMT Posted October 12, 2014 Report Share Posted October 12, 2014 i add Defalt color for money Preview by Kimzer 1 Link to comment Share on other sites More sharing options...
lostandcrazy34 Posted October 17, 2014 Report Share Posted October 17, 2014 great script works awesome.. However one issue I am having.. The pain doesnt stay after reset.. is this normal? or is my database not publishing them correctly? Link to comment Share on other sites More sharing options...
0verHeaT Posted October 17, 2014 Author Report Share Posted October 17, 2014 great script works awesome.. However one issue I am having.. The pain doesnt stay after reset.. is this normal? or is my database not publishing them correctly? Check if your database stores the colour codes correctly. Link to comment Share on other sites More sharing options...
Defent Posted October 18, 2014 Report Share Posted October 18, 2014 I had to remove the script. It kept crashing my servers on restart: Error in expression <lrinit","_clrinit2"]; { _selection = _x select 0; _dam = _x select 1; if (_selec> 5:04:51 Error position: <select 0; _dam = _x select 1; if (_selec> I suppose there is a painted vehicle that was bugged or something. Edit: was not related at all. Link to comment Share on other sites More sharing options...
auzgamer Posted October 18, 2014 Report Share Posted October 18, 2014 is there a key to bring the menu up or scroll Link to comment Share on other sites More sharing options...
lostandcrazy34 Posted October 18, 2014 Report Share Posted October 18, 2014 its supposed to store the color code in the worldspace correct? cause if so then i see the new numbers.. [119,[6652.46,2616.87,2.365e-04],"0.208548,0,0,1","0,0,0,1"] im not sure what the last numbers on the back mean. this is what it looked like after painting.. [119,[6652.49,2616.82,-1.764e-05],"0.165612,0,0,1","0,0,0,1"] Link to comment Share on other sites More sharing options...
DaBi Posted October 18, 2014 Report Share Posted October 18, 2014 Help please, I have this installed and everything seems to be working great, I can paint and the colours stay after restart but the problem I have is it seems other players get the option but it closes within seconds of opening the option to paint. I am down as admin but I can not see in the script where that may affect others not being able to paint. I know its not just the cars they are choosing as I went and painted one for a player who got the issue of the menu vanishing. Any ideas? Thanks in advance Link to comment Share on other sites More sharing options...
THEbookie Posted October 18, 2014 Report Share Posted October 18, 2014 Help please, I have this installed and everything seems to be working great, I can paint and the colours stay after restart but the problem I have is it seems other players get the option but it closes within seconds of opening the option to paint. I am down as admin but I can not see in the script where that may affect others not being able to paint. I know its not just the cars they are choosing as I went and painted one for a player who got the issue of the menu vanishing. Any ideas? Thanks in advance If your able to paint and your players are not that should be a clear sign of your antihack blocking the menu. Did you do step 3? You can use something like this in your fn_selfActions if (_isMan and !_isPZombie and (_typeOfCursorTarget == "RU_Citizen2") and _canDo) then { // <-- Change the trader guy here. if (s_player_paint < 0) then { s_player_paint = player addAction ["Paint", "Paint\player_paint_init.sqf", _cursorTarget, 5, false]; }; } else { player removeAction s_player_paint; s_player_paint = -1; }; Thanks for that haven't got around to trying it yet Link to comment Share on other sites More sharing options...
0verHeaT Posted October 18, 2014 Author Report Share Posted October 18, 2014 its supposed to store the color code in the worldspace correct? cause if so then i see the new numbers.. [119,[6652.46,2616.87,2.365e-04],"0.208548,0,0,1","0,0,0,1"] im not sure what the last numbers on the back mean. this is what it looked like after painting.. [119,[6652.49,2616.82,-1.764e-05],"0.165612,0,0,1","0,0,0,1"] Yes, thats the way it has to look like. [119,[6652.49,2616.82,-1.764e-05],"0.165612,0,0,1","0,0,0,1] first colour second colour If the colour is still disapearing after server restart, you have to check your server_monitor.sqf Link to comment Share on other sites More sharing options...
0verHeaT Posted October 18, 2014 Author Report Share Posted October 18, 2014 Help please, I have this installed and everything seems to be working great, I can paint and the colours stay after restart but the problem I have is it seems other players get the option but it closes within seconds of opening the option to paint. I am down as admin but I can not see in the script where that may affect others not being able to paint. I know its not just the cars they are choosing as I went and painted one for a player who got the issue of the menu vanishing. Any ideas? Thanks in advance Your infistar is closing the dialog for every non admin. Just add the paint dialog number to the allowed dialog array in your AHConfig.sqf Link to comment Share on other sites More sharing options...
0verHeaT Posted October 18, 2014 Author Report Share Posted October 18, 2014 I had to remove the script. It kept crashing my servers on restart: Error in expression <lrinit","_clrinit2"]; { _selection = _x select 0; _dam = _x select 1; if (_selec> 5:04:51 Error position: <select 0; _dam = _x select 1; if (_selec> I suppose there is a painted vehicle that was bugged or something. Your error refers to this part: { _selection = _x select 0; _dam = _x select 1; if (_selection in dayZ_explosiveParts and _dam > 0.8) then {_dam = 0.8}; [_object,_selection,_dam] call object_setFixServer; } forEach _hitpoints; As you can see here, the server is getting the hitpoints for every vehicle from the database. I do not think that your error has something to do with this script. Link to comment Share on other sites More sharing options...
Defent Posted October 18, 2014 Report Share Posted October 18, 2014 Your error refers to this part: { _selection = _x select 0; _dam = _x select 1; if (_selection in dayZ_explosiveParts and _dam > 0.8) then {_dam = 0.8}; [_object,_selection,_dam] call object_setFixServer; } forEach _hitpoints; As you can see here, the server is getting the hitpoints for every vehicle from the database. I do not think that your error has something to do with this script. Yea I noticed that. It was not related to this script. My bad. Database got fucked due to a prior hacker attack. Link to comment Share on other sites More sharing options...
lostandcrazy34 Posted October 19, 2014 Report Share Posted October 19, 2014 thanks.. i forgot that i called my server_monitor.sqf in my mission file now instead of the server file and i changed the things in the server file and not the one in the mission file. thanks for making me realize my mistake. Link to comment Share on other sites More sharing options...
auzgamer Posted October 19, 2014 Report Share Posted October 19, 2014 is it possible to do it for weapons? Link to comment Share on other sites More sharing options...
ThePurificationProject Posted October 19, 2014 Report Share Posted October 19, 2014 Sorry I am struggling to get this to properly work. The issue is i can get to the stage where i pick the colour and I press paint and nothing happens no text, no colour change nothing. Any help with this I've now followed the install instructions 3 times and I have everything exactly the same as the instructions. thanks. *EDIT* I am using Single currency 1.0 is this the issue? because i notice when i press paint no money is taken from my character nor is the vehicle painted. Link to comment Share on other sites More sharing options...
theunhappyteddybear Posted October 20, 2014 Report Share Posted October 20, 2014 this is a great script but my players got bored of using it so i unistalled it and now my players can lock and unlock vehicle,remove plot pole or unlock there safes is there somethig i removed that i shouldnt have. PLEASE HELP i dont want to lose any players over this any help will be much appricated. cheers in advance Link to comment Share on other sites More sharing options...
Zupa Posted October 20, 2014 Report Share Posted October 20, 2014 this is a great script but my players got bored of using it so i unistalled it and now my players can lock and unlock vehicle,remove plot pole or unlock there safes is there somethig i removed that i shouldnt have. PLEASE HELP i dont want to lose any players over this any help will be much appricated. cheers in advancethat means your selfactions is broken. Check your client rpt log,You prob forgot a ; or a type or deleted wrong sections. Link to comment Share on other sites More sharing options...
0verHeaT Posted October 20, 2014 Author Report Share Posted October 20, 2014 Sorry I am struggling to get this to properly work. The issue is i can get to the stage where i pick the colour and I press paint and nothing happens no text, no colour change nothing. Any help with this I've now followed the install instructions 3 times and I have everything exactly the same as the instructions. thanks. *EDIT* I am using Single currency 1.0 is this the issue? because i notice when i press paint no money is taken from my character nor is the vehicle painted. If you use SC v1.0 use this in your vehicleColourPaint.sqf private ["_colour","_colour2","_playerWealth","_PUID"]; _PUID = (getPlayerUID player); _playerWealth = [player,ColourPrice] call SC_fnc_removeCoins; if (_playerWealth) then { _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"; PVDZE_veh_Colour = [VehicleToPaint,_colour,_colour2,_PUID,dayz_playerName]; publicVariableServer "PVDZE_veh_Colour"; titleText ["Vehicle has been repainted! Please wait a moment for the texture to update!","PLAIN DOWN"]; } else { titleText ["You do not have enough money to repaint your vehicle!","PLAIN DOWN"]; }; For SC v1.0 you also need the following Link to comment Share on other sites More sharing options...
emwilsh Posted October 21, 2014 Report Share Posted October 21, 2014 For Anyone who wants to know when they paint half the vehicel is painted here is a fix or what ever you want to call it e.g the btrHQ still used the main testure on the top but other bits are painted this will fill the missing painted bit on vehiclees server_monitor.sqf if(count _worldspace >= 4) then{ if (((typeName(_worldspace select 2)) == "STRING") and ((typeName(_worldspace select 3)) == "STRING")) then { _colour = _worldspace select 2; _colour2 = _worldspace select 3; if (_colour != "0") then { _object setVariable ["Colour",_colour,true]; _clrinit = format ["#(argb,8,8,3)color(%1)",_colour]; _object setVehicleInit "this setObjectTexture [0,"+str _clrinit+"];"; }; if (_colour2 != "0") then { _object setVariable ["Colour2",_colour2,true]; _clrinit2 = format ["#(argb,8,8,3)color(%1)",_colour2]; _object setVehicleInit "this setObjectTexture [1,"+str _clrinit2+"];"; _object setVehicleInit "this setObjectTexture [2,"+str _clrinit2+];"; _object setVehicleInit "this setObjectTexture [3,"+str _clrinit2+"];"; _object setVehicleInit "this setObjectTexture [4,"+str _clrinit2+"];"; }; }; }; Link to comment Share on other sites More sharing options...
Nekuan Posted November 3, 2014 Report Share Posted November 3, 2014 Can't get it to work either. No errors in my .rpt, menu works just fine, gold is being removed and the database shows the colors being saved but no texture change what so ever. Really out of ideas.. Link to comment Share on other sites More sharing options...
boomdead123 Posted November 10, 2014 Report Share Posted November 10, 2014 File mpmissions\__cur_mp.Chernarus\custom\Paint\vehiclecolour.hpp, line 8: /VehicleColourDialog/Controls.RscText_100: Undefined base class 'RscTxtT' that is the error im getting anyone know how to fix? Link to comment Share on other sites More sharing options...
1Man Posted November 10, 2014 Report Share Posted November 10, 2014 Since its looking for Zupa's Dollars.paa how would I get this working with Souls Coin 2.0? Figured it out here is my player_paint.sqf and it does remove from the coins on the player. I removed coin location and img request private ["_txt","_coins","_vehicle"]; VehicleToPaint = _this select 3; ColourPrice = 7500; _vehicle = getText(configFile >> "cfgVehicles" >> (typeOf VehicleToPaint) >> "displayName"); createdialog "VehicleColourDialog"; _txt = format ["It will cost %1 to repaint your %3.",ColourPrice,_coins,_vehicle]; ((uiNamespace getVariable "VehicleColourDialog") displayCtrl 5703) ctrlSetStructuredText parseText _txt; Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now