Jump to content

[Howto/Release] Tie PlayerUID To All Buildable Objects / Keep plot pole after death [No SQL Triggers] UPDATE 16/04/2014


Recommended Posts

Love this feature and very glad that you took the time to share with the community. Thanks for that. 

 

I am having something really strange that keeps me scratching my head. I followed the steps 1 by 1 and doubled checked but every time i build a plot pole it disappears! I can't build anything anywhere because the plot pole just vanishes. I do have OtterNas3 snap build. (  ) I might try to go full vanilla and try to add everything one by one, but that might be over kill!

 

I was able to build before the changes. Any ideas what would cause that to disappear? I know the OP doesn't want to support the mod so i was just asking to the public because i'm at a lose as to why this might happen. My RPT doesn't show any errors with any of the files that i modified.  Where can i put a diag_log to show me plot pole placement and player id/owner in the .rpt?

 

Any help would be greatly appreciated. Even just pointing in the right direction and i can figure it out from there. Don't normally post for help because i end up just researching and finding it out but this is very unique. 

 

Thank you again. 

 

My files: 

 

KRON_strings.sqf   ( http://pastebin.com/GYi7RdYJ )

 

player_updateGui.sqf ( http://pastebin.com/ih65bXD2 )

 

fn_damageActions.sqf ( http://pastebin.com/bP5tEW9T )

 

player_tagFriendly.sqf ( http://pastebin.com/kEXRKmsi )

 

remove.sqf ( http://pastebin.com/YVipd52d )

 

player_upgrade.sqf ( http://pastebin.com/Q2chAG4J )

 

player_buildingDowngrade.sqf ( http://pastebin.com/SuTj52ya )

 

player_build.sqf ( http://pastebin.com/ZYWFFAh3 )

 

compiles.sqf ( http://pastebin.com/kJeXUmsE )

 

my int.sqf has nul=[] execVM "KRON_Strings.sqf"; at the very bottom. 

i need your variables.sqf or are you running default?

Link to comment
Share on other sites

Love this feature and very glad that you took the time to share with the community. Thanks for that. 

 

I am having something really strange that keeps me scratching my head. I followed the steps 1 by 1 and doubled checked but every time i build a plot pole it disappears! I can't build anything anywhere because the plot pole just vanishes. I do have OtterNas3 snap build. (  ) I might try to go full vanilla and try to add everything one by one, but that might be over kill!

 

I was able to build before the changes. Any ideas what would cause that to disappear? I know the OP doesn't want to support the mod so i was just asking to the public because i'm at a lose as to why this might happen. My RPT doesn't show any errors with any of the files that i modified.  Where can i put a diag_log to show me plot pole placement and player id/owner in the .rpt?

 

Any help would be greatly appreciated. Even just pointing in the right direction and i can figure it out from there. Don't normally post for help because i end up just researching and finding it out but this is very unique. 

 

Thank you again. 

 

My files: 

 

KRON_strings.sqf   ( http://pastebin.com/GYi7RdYJ )

 

player_updateGui.sqf ( http://pastebin.com/ih65bXD2 )

 

fn_damageActions.sqf ( http://pastebin.com/bP5tEW9T )

 

player_tagFriendly.sqf ( http://pastebin.com/kEXRKmsi )

 

remove.sqf ( http://pastebin.com/YVipd52d )

 

player_upgrade.sqf ( http://pastebin.com/Q2chAG4J )

 

player_buildingDowngrade.sqf ( http://pastebin.com/SuTj52ya )

 

player_build.sqf ( http://pastebin.com/ZYWFFAh3 )

 

compiles.sqf ( http://pastebin.com/kJeXUmsE )

 

my int.sqf has nul=[] execVM "KRON_Strings.sqf"; at the very bottom. 

 

In the OP i have a 4 step guide to log from client to server, do step 1-3 and use this modified version of your player build (ignore step 4)

 

http://pastebin.com/1XgVNQQe

 

Try and build and then post your server RPT

Link to comment
Share on other sites

Thanks for responding so fast. I do have a custom variables for deploy bike I believe. I havent been home today because of family holiday parties. I will take a deeper look at this after work tomorrow.

I'm sure I missed something small. Was doing most of it super late and multi tasking!

Thanks for taken a look.

Link to comment
Share on other sites

go over step 1 to 8 again. if you still have no luck post

compiles.sqf

fn_damageActions.sqf

player_tagFriendly.sqf

 

ofc. the custom files

Cheers for the help dude.

It was me, i broke the fn_selfActions. Only found the issue once checking the client rpt log :P

Only other thing you could assist with if you don't mind ?

The option to remove items briefly worked then after a few days and many restarts the items no longer allow me to remove the item.

I have all the class names added into the variables as well as the remove variable.

 

Again Cheers :)

Link to comment
Share on other sites

Cheers for the help dude.

It was me, i broke the fn_selfActions. Only found the issue once checking the client rpt log :P

Only other thing you could assist with if you don't mind ?

The option to remove items briefly worked then after a few days and many restarts the items no longer allow me to remove the item.

I have all the class names added into the variables as well as the remove variable.

 

Again Cheers :)

 

Post your remove.sqf and your fn_selfAction and variables.sqf

 

 

Thanks for sharing this. Awesome job!!! Even with a custom player build, custom snap build and custom antihack this works without any problems so far. Really appreciate you taking the time to put the tutorial together. 

 

Your very welcome :) Creating the tutorial is the easy part, figuring out all steps that needed to be changed and how to get around the playerUIDs with letters in it, but thank god for the guy who created the KRON script

Link to comment
Share on other sites

Give me a few hours and i will go throug it while you wait and see if there is an error some where. not promising you that i will find it, but will give it a go

 

 

i need your variables.sqf or are you running default?

 

 

In the OP i have a 4 step guide to log from client to server, do step 1-3 and use this modified version of your player build (ignore step 4)

 

http://pastebin.com/1XgVNQQe

 

Try and build and then post your server RPT

 

 

So, my test server is really really messed up i found out! Some objects are not updating from dayz_code (my issue to handle). I moved to my other server and used my other directory and followed it all again, perfect! Worked wonderfully. I apologize for wasting your time, just a busy weekend. Thank you for your time and for sharing this. Can't wait to deploy to the live server!!

 

 

18:49:59 "Client To Server: ["WGLOG - Can Build on Plot: true"]"
18:50:19 "118 Active ground units"
18:50:19 "0 Active emplacement units"
18:50:19 "0 Active chopper patrol units (Crew)"
18:50:19 "0 Active vehicle patrol units (Crew)"
18:50:33 "Client To Server: ["WGLOG - Set CharacterID on object: _object 466ac100# 1059663: sign_one_leg_h.p3d with ID: *mine*"]"
18:50:33 "Client To Server: ["WGLOG - Writing to log: PlayerID *mine*, Object 466ac100# 1059663: sign_one_leg_h.p3d, Direction 64.8695, Location [9610.75,13330,0], Classname Plastic_Pole_EP1_DZ"]"
18:50:44 "Client To Server: ["WGLOG - Can Build on Plot: true"]"
18:51:22 "Client To Server: ["WGLOG - Set CharacterID on object: _object 464b0100# 1059975: cinder_wall_half.p3d with ID: *mine*"]"
18:51:22 "Client To Server: ["WGLOG - Writing to log: PlayerID *mine*, Object 464b0100# 1059975: cinder_wall_half.p3d, Direction 354.516, Location [9608.19,13331.9,0.442276], Classname CinderWallHalf_DZ"]"
18:51:39 "CLEANUP: INITIALIZING CLEANUP SCRIPT"
Link to comment
Share on other sites

Great work!

 

I (almost) followed the instructions and this works good as far as my testing went.

 

I noticed something in step 12 where you instruct how to modify player_buildingDowngrade.sqf. You do not tell people to add "_playerId" and "_found" to the private array at the top of the file. I'm not an experienced scripter, but it seems natural to do, so I added them. Was it an oversight, or is it by design?

Link to comment
Share on other sites

Updated Tutorial to add in the step mentioned in post 111, was also missing in step 9. Also changed a private variable name in the tutorial so when converting playerUID i'm only using the _playerUID variable where no variable was defined for playerUID. this is purely cosmetic and have no influence on how the script works, was just sick of looking at 2 different variable names that did eaxctly the same in different scripts

Link to comment
Share on other sites

Getting "unable to upgrade plot pole nearby" message when attempting to upgrade objects after applying this.
This is the first thing I've came across after replacing my plot poles.

EDIT: I was doing this very late and completely overlooked the fact that I was using snapbuild, if you are using snapbuild, make sure you're editing "snap_build/player_build.sqf".

Link to comment
Share on other sites

I guess I'll be going through the steps one by one again, as I have players telling me they can't remove anything they built with or without a plot pole. Ugh. Why can't they just include this in Epoch? Plot poles and buildling tied to a playerID is a bad idea.

 

Ugh. I went through step by step and actually did find a couple things different. I think maybe some instructions were changed since i installed it, but I have no option to remove anything I previously built and when putting down a new plot pole, then trying to build on it, it says I need a plot pole near by. I don't know what I did wrong. :(

 

I compared the characterID of the plot pole with that of my current character and they match.

Link to comment
Share on other sites

I've had a similar issues with the "unable to upgrade" issue. Make sure you are calling the correct modified file.

 

So, got back and check to make sure you have changed all the file locations. The process works great and i believe it is an excellent idea because it is a major pain getting to 5 out of 6 steps on removing your PP and your Toolbox breaking!!!

 

Make sure in your fn_selfAction.sqf you search for (ctrl f) player_upgrade.sqf and change to "custom\player_upgrade.sqf" if that is where you put it in the mission folder on your server. Same goes for remove.sqf. STEP 13.

 

For the player build make sure you have player_build = compile preprocessFileLineNumbers "custom\player_build.sqf"; in your complies. (STEP 4)

 

It is most likely something small. That is exactly what it was for me! Noticed i had the wrong folder called and boom upgrade, downgrade, remove etc worked fine.

 

Also do that very first process with publicEH.sqf so you can get an output in your .rpt like mine in the above post. See link below:

 

http://pastebin.com/1XgVNQQe

hope that helps.

 

Thanks again WGC!!

Link to comment
Share on other sites

Thanks for the reply. I've gone through the instructions several times. My player_build is in my snapbuilding folder because I use that, so I made the changes in that file. I'm a bit confused about the publicEH.sqf file. I'm not sure what is meant by "any where you want to log anything from the client to the server log you use this code".  I've changed the paths in all places. I'm getting frustrated because I know this works for others and I know it's something small on my end, but I can't find the problem. I've gone over this again and again and I simply don't know what is wrong.

Link to comment
Share on other sites

Again look at the pastebin i have there it shows where you can put the log to see it in your player build. I also have snap build and that is correct, i forgot about that. Just make sure the location is called in correctly.

 

line 457, 452 for example for log.

 

Just go slow with it. Took me a few times of going through it.

 

If you pastebin all your files you changed might be able to help, but won't be able to for awhile because i'm at work.

 

GL
 

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...