Jump to content

HashCookie

Member
  • Content Count

    3
  • Joined

  • Last visited

  • Medals

Everything posted by HashCookie

  1. Hey guys, So after crushing it down for a week i have finally come down to a working database. I cannot take all the credit because i scrapped and researched from many scripts. Credits to: Bullkanox, Gokitty1199, Mr.Jizz and of course Code34 However i must add, Gokitty1199, excellent videos detailing on the database, however i did find that dumping everything you put into init.sqf into initplayerlocal.sqf made it so then everyones data gets saved and read instead of the first person who joins the server only. Small change but other than that it works well. I cannot wait to get onto some of the other content you have made for scripting. As i said before im amateur at this so i expected to be blindfolded pinning the tail on the donkey and it helped me out immensely. I am posting the barebones of this so someone else like me doesnt have to dig around for a week trying to get something to work. initplayerlocal.sqf initserver.sqf createDatabase.sqf getData.sqf Autosave.sqf I might also add Ammobox persistancy aswell, fixed marcys3's script, it deleted all content when another player joins in. Just be sure that when you place down the ammobox, its contents are deleted. ammobox init load_box.sqf Save_box.sqf This had my mind in a jumble for a while so i really hope this helps out other people looking to do persistence with friends on their operations like me.
  2. Ahh! Even an amateur like me should have seen that. About to give it a go, thanks for the reply! Ohkk getting an error in expression now. I feel like its so close, just missing something... But even still i have to figure out why the database isnt fully overwriting, just adding to the data... 21:16:50 Error in expression <ame, "location", []]] call _db; _player setPos _read_db; sleep .001; _read_db => 21:16:50 Error position: <setPos _read_db; sleep .001; _read_db => 21:16:50 Error 0 elements provided, 3 expected 21:16:50 File C:\Users\ashst\Documents\Arma 3 - Other Profiles\[STD]Hash_Cookie\missions\[test].Tanoa\Load_Profile.sqf, line 24 21:16:50 Error in expression <me, "direction", []]] call _db; _player setDir _read_db; sleep .001; _read_db => 21:16:50 Error position: <setDir _read_db; sleep .001; _read_db => 21:16:50 Error setdir: Type Array, expected Number 21:16:50 File C:\Users\ashst\Documents\Arma 3 - Other Profiles\[STD]Hash_Cookie\missions\[test].Tanoa\Load_Profile.sqf, line 28
  3. Thanks for this Bullkanox, i'm pretty new to all of this and this is helping me in the right direction, however. When i try to use it, it wont load any of the locations, or loadout. It saves it all in the database however. Im just not sure on how else i can approach this. In my db i have [[STD]Hash_Cookie] location="[1303.9,3049.09,0.00126255]" [[STD]Hash_Cookie] direction="220.256" [[STD]Hash_Cookie] oxygen="1" [[STD]Hash_Cookie] health="0" [[STD]Hash_Cookie] getUnitLoadout="[,[],""],[],["PstlTool_Spotlight","","","",[],[],""],["U_MilitiaUniTShirt_G",[]],["V_LegStrapBag_black_F",[]],["B_AssaultPack_blk",[["5Rnd_792x57_Kar98",9,5]]],"H_Hat_Boonie_Cowboy","",[],["ItemMap","","","","tf_microdagr",""]]" [[STD]Hash_Cookie] location="[1269.97,3032.45,0.00135469]" [[STD]Hash_Cookie] direction="154.287" [[STD]Hash_Cookie] oxygen="1" [[STD]Hash_Cookie] health="0" [[STD]Hash_Cookie] getUnitLoadout="[["Bolt792x57_CZ550","","","",["5Rnd_792x57_Kar98",5],[],""],[],["PstlTool_Spotlight","","","",[],[],""],["U_MilitiaUniTShirt_G",[]],["V_LegStrapBag_black_F",[]],["B_AssaultPack_blk",[["5Rnd_792x57_Kar98",9,5]]],"H_Hat_Boonie_Cowboy","",[],["ItemMap","","","","tf_microdagr",""]]" I havent added anything to your script except changing the auto save to make it sooner so i can test it out, any help from anyone? Error that keeps coming up is on line 24 of load_profile, unexpected bool. I hope its not too newbie to ask for help :)
×