-
Posts
963 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
Articles
Posts posted by DangerRuss
-
-
I might also recommend in your deploy and pack scripts you add a unique variable so players aren't able to repack any bicycle they come across, only one that has been deployed. Also I recommend having it placed directly in front of the player.For example in the deploy script
sleep 6; _Offset = [0,5,0]; //change how far from player vehicle spawns _worldPos = player modelToWorld _Offset; // spawn in front of player _object = "MMT_USMC" createVehicle (_worldPos); _object setVariable ["ObjectID", "1", true]; _object setVariable ["ObjectUID", "1", true]; _object setVariable ["Deployed", "1", true]; _degrees = getDir player; _object setDir _degrees; player reveal _object;
and in the pack script
if ((typeOf cursorTarget == "Old_bike_TK_INS_EP1" or typeOf cursorTarget == "MMT_USMC") and (cursorTarget getVariable ["Deployed", "0"] == "1")) then {
Now if someone could help me figure out a way to cancel the build by moving, lets say you suddenly change your mind or you're getting shot at and need to move... that would be spectacular. I have it working on my overwatch server but that uses a scroll wheel option to deploy. I can't seem to get it working on the right click script. Here's my deploy script
_weapons = [currentWeapon player] + (weapons player) + (magazines player); closeDialog 0; _toolbox = "ItemToolbox" in _weapons; if (!_toolbox) then { cutText [format["Missing Toolbox"], "PLAIN DOWN"]; } else { player removeAction s_player_deploybike; player playActionNow "Medic"; r_interrupt = false; player removeWeapon "ItemToolbox"; _dis=10; _sfx = "repair"; [player,_sfx,0,false,_dis] call dayz_zombieSpeak; [player,_dis,true,(getPosATL player)] spawn player_alertZombies; sleep 6; _Offset = [0,5,0]; //change how far from player vehicle spawns _worldPos = player modelToWorld _Offset; // spawn in front of player _object = "MMT_USMC" createVehicle (_worldPos); _object setVariable ["ObjectID", "1", true]; _object setVariable ["ObjectUID", "1", true]; _object setVariable ["Deployed", "1", true]; _degrees = getDir player; _object setDir _degrees; player reveal _object; cutText [format["Here's your bike you lazy bum!"], "PLAIN DOWN"]; r_interrupt = false; player switchMove ""; player playActionNow "stop"; sleep 10; cutText [format["Warning: Spawned bikes DO NOT SAVE after server restart! If you wish to keep it - deconstruct it!"], "PLAIN DOWN"]; };
-
Totally unrelated: infistar whitelists s_player_deploybike and s_player_packbike in its latest configs, which sounds a lot more logical than using s_player_deploybike2 imho.
infiSTAR also whitelists s_player_deploybike2 and has for some time.
-
I've been stumped on it for ages. :/Im not so sure wether you will have the time or if you could be bothered at all, but if I could contact you on skype for example to show you how I am installing it, maybe you'll be able to notice something that I am doing wrong? If you could that'd be awesome, my skype is on my Epoch profile.
Switched over to Zupas 3.0, possibly come back to this once and if I open another server.
I dont know how much help I would be either man. I simply installed this and it worked :-\
-
hi all,
this would be a nice script, if i ever get this to work...
1) i dont understand this with that macas right clickable system, many others use the custom right click actions 3.03. is there a workaround with this click system?
we have the WPDs-Action-Menu-master which contains also an modified ui_selectSlot.sqf.
2) i dont have a buildings folder in my dayz_server.pbo unpacked. should i make a new one for the weedfarm.sqf?
3) i dont have that system_functions.sqf, should i call it then from the missions init.sqf?
4) i never used the 3D map editor before, so will it enough to start with ctrl-e, choose chernarus, go to decided location, hit F5 to create a new vehicle, choose there under MAP_EU_plants,
select then your B b_betulaHumilis , place it there how many times i like and then save and close that?
or do i also need that Center, Unit, Group to create first? because it wont let me save the mission without that! if i do that, i will get alot of errors in my RPT /Hivelog regarding that created soldier...
thanks
cheers
Ok you're really new and really confused. So I'll try and help you the best I can.
1-2. Maca's right click system is pretty easy you're just making an edit in the ui_selectslot to tell it to look for the extra_rc.hpp among other things. In the extra_rc.hpp is where you are defining which item you right click, what it says when you right click on it, and directs to the script that you want to run when you right click on that item. In this case it would be Hemp, it would say "smoke weed" or whatever you want it to say, and direct to the SmokeWeed\smokeshit.sqf.. you can put those anywhere and name them anything so long as in the extra_rc.hpp you define it properly. So if you want to name the script farts.sqf and put it in the folder called smelly, you can certainly do so as long as in the extra_rc.hpp it looks like
class ExtraRc { class ItemKiloHemp { class smokeweed { text = "Smoke Weed"; script = "execVM 'smelly\farts.sqf'"; }; }; };
3. This is a typo in the instructions. He means server_functions.sqf and yes you do have one in your server PBO. In the server PBO there is a folder called init and inside the folder is server_functions.sqf
4. Forget the map editor part of the instructions because that is unnecessary to get the script working and just extra confusing for you at this point. BUT in the future when you want to convert something from the map editor to your server you can't just copy the sqf file exactly as it is you need to remove the center/group/unit part of the code and also the fluff at the bottom. You also need to add some things. Here is an example of what it should look like
if (isServer) then { _vehicle_1 = objNull; if (true) then { _this = createVehicle ["Land_Destroyer", [7081.4351, 2235.6873, 0.093513697], [], 0, "CAN_COLLIDE"]; _vehicle_1 = _this; _this setDir 82.911446; _this setVehicleInit "this setVectorUp [0,0,1];"; _this setPos [7081.4351, 2235.6873, 0.093513697]; }; _vehicle_2 = objNull; if (true) then { _this = createVehicle ["Land_Fregata", [7168.519, 2421.0925, -0.13990811], [], 0, "CAN_COLLIDE"]; _vehicle_2 = _this; _this setDir -38.434193; _this setVehicleInit "this setVectorUp [0,0,1];"; _this setPos [7168.519, 2421.0925, -0.13990811]; }; _vehicle_3 = objNull; if (true) then { _this = createVehicle ["Land_Fregata", [7063.1094, 2299.2778, 0.0078576207], [], 0, "CAN_COLLIDE"]; _vehicle_3 = _this; _this setDir 52.681232; _this setVehicleInit "this setVectorUp [0,0,1];"; _this setPos [7063.1094, 2299.2778, 0.0078576207]; }; };
Your best bet is to just copy paste this http://pastebin.com/juMsuJ1r and name it weedfarms.sqf. You should be able to just call this from the init.sqf in your mission file.
-
Well I had sent a ticket to them (Vilayer asking if they could change it for me, but I got the response that I am avaliable to do it myself. I've added them myself various times.
Dont really know what else the problem could be.
Honestly man I really think it's the dll's because this thing works right out of the box. But tbh if the DLL's weren't right I would suspect the server wouldn't even start so Im really quite stumped.
-
hello
i have a problem
when i login in my server
than i have the hud but i see only
humanity =Any
coins = Any
bank = Any
but nothing my coins or humanity or bank
can me one help to fix this problem ?
did you install this on a default server with nothing else installed first?
-
Sure have.
Images:
Edited for: Images added
Tired repairing everything, removing everything, cleaning the database, replacing the DLL files.
Nothing seems to work and I am getting the same errors over and over again. -.-
Any help would be greatly appreciated.
Are you running this on a dedicated box or are you using a host? If you're using a host like Vilayer, you need to ask permission to change the DLL files. If you dont have permission to change them, they wont' save. So even though you think you're updating the DLL's you're actually not. Thats all I can really think of because this worked right out of the box for me once I got permission from vilayer to change my DLL's.
-
-
you added the tables to the database? cashmoney and banking_data? you installed the hive.dll's in the correct locations?
-
This pack doesn't seem to work for me...
12:28:57 "EPOCH SERVERTRADE: Player: Aliighten (76561198165145706) sold a VWGolf in/at trader city Stary for 2500x Coins" 12:28:58 "DELETE: B 1-1-B:1 (Aliighten) REMOTE Deleted by UID: 62886780500244" 12:29:03 Error in expression <object getVariable[(_variable + "_CHK"),_vNew]; _result = _vNew - _vOld; _object> 12:29:03 Error position: <_vNew]; _result = _vNew - _vOld; _object> 12:29:03 Error Undefined variable in expression: _vnew 12:29:03 File z\addons\dayz_server\init\server_functions.sqf, line 549 12:29:03 Error in expression <_killsH,_killsB,_currentModel,_humanity,_cashMoney]; _key call server_hiveWrite;> 12:29:03 Error position: <_cashMoney]; _key call server_hiveWrite;> 12:29:03 Error Undefined variable in expression: _cashmoney 12:29:03 File z\addons\dayz_server\compile\server_playerSync.sqf, line 172 12:29:03 Error in expression <object getVariable[(_variable + "_CHK"),_vNew]; _result = _vNew - _vOld; _object>
Pretty sure I have ran everything correctly and followed the readme to the letter.
Any help will be good. :D
Items will be sold, then no money is given. I've spent some time trying to get my head around it, got no clue.
Just to rule this out, you installed this on a fresh server first with no other scripts installed?
-
P4L is fine, had it Live now for over 2 months without issue. These errors have been introduced from 2 of the new vector files.
You're having an issues with vectoring and P4L working together fine. The issue is caused by P4L. Im just gonna stay far away lol
-
still getting kicked for public variable restriction #3
Fix it... theres a million little tutorials on the internet on how to fix battleye kicks.
-
Your right DangerRuss. After looking at the 22 pages, I came across a way to do it. However it did not work. So I posted on that thread hoping to get it working. Forgot how much of a pain it is to sell guns 1 by 1 lol. You were right though the trader menus load faster and are very easy to add items to.
One question though, on the cfgservertrader there is no quantity. Does this mean that the servers will never run out of items?
Correct. They will never run out. For most servers this isn't an issue because when using the database they just had a query to auto update inventory anyway. It's just one less thing to worry about really.
Try removing the trade animations, trading is much quicker then, and really the animations are pointless.
-
Honestly I was told to avoid P4L like the plague. I have done so and I dont regret it. Everywhere I look people are having a really hard time with it not playing nice with other scripts. Good luck please post the fix if you find it
-
so, has anyone figured out a fix for the changing clothes issue? i mean it's not game breaking, but it is annoying.
to clarify, when player changes clothes, his wallet and bank wipe clean. player has to relog to regain his money.
That doesnt happen for me.
I guess it was fixed by the time I installed this but if you look at the
you can quickly find
-
ah the glorious game tracker rank! Im a bit sad seeing the total number of servers dropping so quickly :(
Also, damn you for making me click all of those spoilers! -
I'm sure theres a way to enter in worldspace and make it like a trader city. (You would be able to call it anything you like I Imagine) "You can not log out in a banking zone"..or whatever
Like when u join a fresh epoch map and it still wont let u log off in stary even though there isn't a safezone.
I can't help you with that sorry. I'm not that good with it yet, but I do have a friend I can ask so I'll post back tomorrow if I have anything for you
That's handled in the mission.sqm, the problem is my safe zone script also reads from the mission.sqm So if I add a sensor it'll automatically make it a safe zone.
-
Thanks DangerRuss and dansoe. It is now working. The only problem is trade from vehicle 2.0 script is now not working
Any ideas? If not I will post on that thread.
Thanks again mike
I believe that script looks to the database, and so it wont work.
-
This goes in the mission PBO. Think of it kind of like custom loot tables.
Try adding your
#include "custom\cfgServerTrader.hpp"
at the very top of your description.ext
Snap pro stays at the very bottom.
-
I'm unfamiliar with this dupe but couldn't it be fixed with the losing connection dupe fix that is used for safes?
This is what i used. From a post in early january. was confused by pervious posts this one helped me the best. The post from Syco
I believe Im actually already using that. I believe the problem is two fold. My banks are NPC's and not objects and Im not entirely sure they are "losing connection" when they dupe. I spectated a guy doing it and I couldn't exactly tell what he was doing but he definitely wasn't losing connection. I think he just logged to the lobby and back during a crucial moment. I think just preventing people from logging out (to the lobby) in a banker area, without making it a safe zone would be best.
-
Is there a way we could change this slightly so players also can not log off near bankers/atm's? Kids are disconnect duping coins at bankers on my server.
-
Kids on my server are disconnect duping at the bankers on my server. I'd be interested in knowing how to prevent them from logging out near bankers without making them safe zones.
Im already using this, so perhaps theres a way to adapt it?
-
but if it was in his server pbo then the guy didn't get it from his servers
Its completely possible to steal server PBO's
that debug monitor is somewhere else, most likely released, on another forum or in a mission file.
It could be that whoever stole it posted it somewhere. I just personally find it extremely coincidental that they're completely identical. dont you?
-
It was not in my mission file, I had it in my server.pbo
I have learned not to put anything in my mission
this
[TUTORIAL] Harvestable hemp, smoking weed, pot farms.
in A2: Epoch Mods (1.0.5.1)
Posted
1. Here is a copy of my ui_selectslot.sqf which uses Macas' right click system.
Try comparing it to yours it might help you understand better, or just use it.
3. You dont need a building folder. That is where they are telling you to place the script, so if you're following the instructions you would create one, BUT you dont have to do that.. Like I said earlier, you can call the folders whatever you want as long as you direct the paths correctly. You can make a folder called prettypinkbow and name the script chocolatemarshmallows.sqf for all it matters, as long as the paths reflect that.
4. I'll simplify this even further for you. Use my ui_selectslot.sqf that I pasted above.
Use this for your extra_rc.hpp
extra_rc.hpp
Use these files, put them in a folder called scripts. If you dont have a folder called scripts make one and put it in the root of your mission pbo.
hemp.sqf
smokeshit.sqf
weedfarms.sqf
and then open your init.sqf, at the very bottom below EVERYTHING else paste this