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

Hey, so i had this running before the steam required release and was working fine.

 

Then did the update and the player id's changed to the steam ID. So, i didn't want to make drastic changes yet. 

 

What i did, worked for me, was just increase the limit to the characterid column in object_data with a sql command. Syntax for what you use can be found here: http://www.w3schools.com/sql/sql_alter.asp

 

If you received the "out of range" error. This is what i used. http://stackoverflow.com/questions/14284494/mysql-error-1264-out-of-range-value-for-column

 

Then all i had to do was delete the players plot pole with in game tools then give them a new one. Able to build fine and continue using this as before. 

 

ALTER TABLE object_data
MODIFY COLUMN  CharacterID varchar(25)
 
I did attempt to just link what was all ready built with the new steam ID and that didn't work as attended. Well it did alter the column but i wasn't able to build. 
 
SET sql_safe_updates=0;
UPDATE `object_data` SET `CharacterID`='new steam ID' WHERE `CharacterID`='old player ID';
 
This is just a quick fix but got the job done. Hope that helps anyone else trying to fix this. 
 
Good luck and thank you for the work here. 
 
-Detour. 
 
 
 
EDIT: I take it back, i just used the getPlayerUIDOld in place of anything that had getPlayerUID. Works great for right now till i complete the upgrade. 
Edited by Detour
Link to comment
Share on other sites

  • 2 weeks later...

Hello, 

I have been having a problem.  My problem is that when one player tries to tag the other, the names only show up as white like normal.  It only lets the first person tag and not the other.  I have read over all of the steps 3 times now but still will not work.

if there is anyone who could help, that would be awesome!

 

Thanks!

Link to comment
Share on other sites

  • 4 months later...

Having an issue installing this,

 

In step 6, you say to search for _CharID

 

But i do not have that in my updategui

 

 

This is my updateGui.sqf 

 

  Reveal hidden contents

Link to comment
Share on other sites

  On 12/8/2014 at 12:33 AM, ALKINDA said:

Having an issue installing this,

 

In step 6, you say to search for _CharID

 

But i do not have that in my updategui

 

 

This is my updateGui.sqf 

 

  Reveal hidden contents

Try     _playerUID

Link to comment
Share on other sites

  • 9 months later...
  • 8 months later...
  On 9/28/2015 at 2:13 PM, bFe said:

Does this work with 1.0.5.1?

Expand  

Just to reply to this in case anyone else has been wondering.  No it doesn't work due to an out of bounds exception with the PlayerUID being too long for the database. :( 
I have tried increasing the length and the data type for the objectID and CharacterID which doesn't work. 

Hive.ext Error:
HiveExt(0): [Error] Error executing |CHILD:308:19:CinderWall_DZ:0:76561198053773143:[300.73,[9633.21,10487,0.00143909],[[-0.859584,0.510994,0],[0,0,1]]]:[]:[]:0:96332104870065:|
 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



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