-
Content Count
412 -
Joined
-
Last visited
-
Medals
Everything posted by MuRaZorWitchKING
-
Sorry for reviving a very old thread but... For any of those looking to create a "data base" For saving the variables of this mod you can use playernamespace save to accomplish such. initplayerlocal.sqf: sleep 5; [] execVM "persistency db\savedb.sqf"; private ["_player"]; _player =_this select 0; waitUntil {!isNull _player}; //Heroes Survive persistentcy system: //Hunger if (isnil {profileNamespace getVariable "Her_L_Hunger"}) then { profileNamespace setVariable ["Her_L_Hunger", 100]; }; _profile = (profileNamespace getVariable "Her_L_Hunger"); Her_L_Hunger = _profile; //thirst if (isnil {profileNamespace getVariable "Her_L_Thirst"}) then { profileNamespace setVariable ["Her_L_Thirst", 100]; }; _profile = (profileNamespace getVariable "Her_L_Thirst"); Her_L_Thirst = _profile; //Temperature if (isnil {profileNamespace getVariable "Her_L_BodyTemp"}) then { profileNamespace setVariable ["Her_L_BodyTemp", 37]; }; _profile = (profileNamespace getVariable "Her_L_BodyTemp"); Her_L_BodyTemp = _profile; (optional) create a folder named "Persistency db" and place these two scripts inside of it. autosave.sqf: //Persistent Values: _Hunger = Her_L_Hunger; profileNamespace setVariable ["Her_L_Hunger", _Hunger]; sleep 0.1; _Thirst = Her_L_Thirst; profileNamespace setVariable ["Her_L_Thirst", _Thirst]; sleep 0.1; _TemperatureH = Her_L_BodyTemp; profileNamespace setVariable ["Her_L_BodyTemp", _TemperatureH]; savedb.sqf: [] spawn { waitUntil {!isNull(findDisplay 46)}; (findDisplay 46) displayAddEventHandler ["KeyDown", { if(_this select 1 == 1) //ESC key then { [] execVM "Persistency db\autosave.sqf"; }; }]; }; keep in mind this system saved upon ESC key being pressed, so if a player is leaving your server or session once they press "ESC" it should save these vars. Also, you should keep the sleeper because HS on scenario start / load it enforced starting parameters and can overwrite the playernamespace save. Thanks to @Sgt Bombadil and @pierriMGi for the help.
-
Need help with Playernamespace for Heroes Survive
MuRaZorWitchKING posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello all, I recently have started utilizing Heros Survive and am looking into Saving some important variables via playernamespace, as I'm going to be running it via a dedicated server. Any and all help is seriously appreciated as I think my error is possibly due to the fact that HS uses client side vars? @Sgt Bombadil was helping out, but we haven't figured it out yet. initplayerlocal.sqf: [] execVM "persistency db\savedb.sqf"; private ["_player"]; _player =_this select 0; waitUntil {!isNull _player}; if (isNil {profileNamespace getVariable "HALs_money_funds"}) then { profileNamespace setVariable ["HALs_money_funds", 0]; }; _profile = (profileNamespace getVariable "HALs_money_funds"); _player setVariable ["HALs_money_funds", _profile]; //Heroes Survive persistentcy system: //Hunger if (isNil {profileNamespace getVariable "Her_L_Hunger"}) then { profileNamespace setVariable ["Her_L_Hunger", 100]; }; _profile = (profileNamespace getVariable "Her_L_Hunger"); Her_L_Hunger = 100; //thirst if (isNil {profileNamespace getVariable "Her_L_Thirst"}) then { profileNamespace setVariable ["Her_L_Thirst", 100]; }; _profile = (profileNamespace getVariable "Her_L_Thirst"); Her_L_Thirst = 100; //Temperature if (isNil {profileNamespace getVariable "Her_L_BodyTemp"}) then { profileNamespace setVariable ["Her_L_BodyTemp", 37]; }; _profile = (profileNamespace getVariable "Her_L_BodyTemp"); Her_L_BodyTemp = 37; savedb.sqf: [] spawn { waitUntil {!isNull(findDisplay 46)}; (findDisplay 46) displayAddEventHandler ["KeyDown", { if(_this select 1 == 1) //esc key then { [] execVM "Persistency db\autosave.sqf"; }; }]; }; Autosave.sqf: _moneys = (player getVariable "HALs_money_funds"); profileNamespace setVariable ["HALs_money_funds", _moneys]; _Hunger = (player getVariable "Her_L_Hunger"); profileNamespace setVariable ["Her_L_Hunger", _Hunger]; _Thirst = (player getVariable "Her_L_Thirst"); profileNamespace setVariable ["Her_L_Thirst", _Thirst]; _TemperatureH = (player getVariable "Her_L_BodyTemp"); profileNamespace setVariable ["Her_L_BodyTemp", _TemperatureH]; HALs money is saving perfectly, it's only the "Her_L" vars that are not working properly. Thanks again- 4 replies
-
- scripts
- heros survive
-
(and 1 more)
Tagged with:
-
Need help with Playernamespace for Heroes Survive
MuRaZorWitchKING replied to MuRaZorWitchKING's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Okay, so putting a sleep 5; infront of the code fixes it... So our problem most likely lies within the Heros Survive mod itself. Because on scenario / mission start with profileNamespace loading I think since it loads immediately upon player login / join that the mod is essentially "overwriting" these variables with starting parameters. This may be the fix as I know of no other way to work through it, especially since the code enforces starting parameters even if you uncomment like so: //Her_L_Hunger=100; //Her_L_Thirst=100; //Her_L_BodyTemp=37; //Her_L_Money=0; These are in the settings file of HS... If I tune the sleep just right I can most likely get it to where player's won't even see the vars change. Unless there's some other way? Current "fixed code": initplayerlocal.sqf: sleep 5; [] execVM "persistency db\savedb.sqf"; private ["_player"]; _player =_this select 0; waitUntil {!isNull _player}; if (isNil {profileNamespace getVariable "HALs_money_funds"}) then { profileNamespace setVariable ["HALs_money_funds", 0]; }; _profile = (profileNamespace getVariable "HALs_money_funds"); _player setVariable ["HALs_money_funds", _profile]; //Heroes Survive persistentcy system: //Hunger if (isnil {profileNamespace getVariable "Her_L_Hunger"}) then { profileNamespace setVariable ["Her_L_Hunger", 100]; }; _profile = (profileNamespace getVariable "Her_L_Hunger"); Her_L_Hunger = _profile; //thirst if (isnil {profileNamespace getVariable "Her_L_Thirst"}) then { profileNamespace setVariable ["Her_L_Thirst", 100]; }; _profile = (profileNamespace getVariable "Her_L_Thirst"); Her_L_Thirst = _profile; //Temperature if (isnil {profileNamespace getVariable "Her_L_BodyTemp"}) then { profileNamespace setVariable ["Her_L_BodyTemp", 37]; }; _profile = (profileNamespace getVariable "Her_L_BodyTemp"); Her_L_BodyTemp = _profile;- 4 replies
-
- scripts
- heros survive
-
(and 1 more)
Tagged with:
-
Need help with Playernamespace for Heroes Survive
MuRaZorWitchKING replied to MuRaZorWitchKING's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So this within the debug returns the value of the players current status whether it be Temperature, hunger, thirst: In debug console: profileNameSpace getvariable ["Her_L_BodyTemp","not defined"]; I tested this via initplayerlocal.sqf: player setVariable["Saved_Loadout",getUnitLoadout player]; [] execVM "persistency db\savedb.sqf"; private ["_player"]; _player =_this select 0; waitUntil {!isNull _player}; if (isNil {profileNamespace getVariable "HALs_money_funds"}) then { profileNamespace setVariable ["HALs_money_funds", 0]; }; _profile = (profileNamespace getVariable "HALs_money_funds"); _player setVariable ["HALs_money_funds", _profile]; //Heroes Survive persistentcy system: //Hunger if (isNil {profileNamespace getVariable "Her_L_Hunger"}) then { profileNamespace setVariable ["Her_L_Hunger", "not defined"]; }; _profile = (profileNamespace getVariable "Her_L_Hunger"); Her_L_Hunger = _profile; //thirst if (isNil {profileNamespace getVariable "Her_L_Thirst"}) then { profileNamespace setVariable ["Her_L_Thirst", "not defined"]; }; _profile = (profileNamespace getVariable "Her_L_Thirst"); Her_L_Thirst = _profile; //Temperature if (isNil {profileNamespace getVariable "Her_L_BodyTemp"}) then { profileNamespace setVariable ["Her_L_BodyTemp", "not defined"]; }; _profile = (profileNamespace getVariable "Her_L_BodyTemp"); Her_L_BodyTemp = _profile; No syntax errors but still did not save Hmmm... 🤔- 4 replies
-
- scripts
- heros survive
-
(and 1 more)
Tagged with:
-
Need help with Playernamespace for Heroes Survive
MuRaZorWitchKING replied to MuRaZorWitchKING's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I will give this a go next time I’m on, thanks mate 🙂- 4 replies
-
- scripts
- heros survive
-
(and 1 more)
Tagged with:
-
So digging through some old folders and such I have loki’s lost key (of course) 😂 Some of Kronsky’s stuff support call it looks like and a bit of the old DaiZy stuff however the old DaiZy missions are still hosted on another site that has tons of old Arma 2 OA missions for DayZ SP gameplay. Ah yes it is still hosted by @kodabar it looks like DaiZy forums As for Arma 3 I have looks like 8 files of George’s work, as well as a good bit of @aliascartoons work as well. Along with tons of other stuff I’ll work on organizing the files a bit more before sending them to whoever will need them. 😉
-
I would start a crowd funding type thing now @Gunter Severloh I’m not sure if it’s going to turn into a bid war or not but if you get things started we can start the funding process. whether it be gofundme or patreon, whatever you think is right. This would also help with possible hardware costs for backups etc... Let me know! Glad to see everyone coming together as a community! This right here is why I wish we all weren’t so far away, I’d gladly share a beer with any of you. 🍻
-
This. This right here is what’s hitting me the worst right now. George was a very good friend of mine and even taught me a bit of sqf. I hope we can get it all back guys, I really do. If not, then in the end everything happens for a reason, but damn. This all still has happened so fast I’m still in awe in how to act, part of me still hopes that it’s just some sort of prank and that the next day when I check the forums I’ll see Dave Chappell’s face as a meme saying “Gotcha bitch!” Buttttt I seriously think we’re past that point. I’ll try to help as much as I can with this new Arma rising project, cause truly if we bring it back it’ll be like a damn Phoenix rising from the ashes.
-
DarkXess I think he’s on the forums? Can’t think of any others...
-
@Gunter Severloh You let me know ASAP if you get something working, I have a ton of George’s work that NEEDS to be put back up for the community to enjoy. Anything else I can find I will also send. We all need to come together to keep this history and wealth of knowledge available.
-
So we all just gonna sit here and act like Armaholic being shut down is no big deal? Armaholic, Gone...? I can’t believe it, it’s a piece of Arma history that’s now gone. All those scripts, knowledge, all of my good friend George Floros’ work... Damn.
-
There’s just no way... I’ve used this site for years. I still won’t believe it, this is nothing like foxhound who has helped countless mod creators alike share their work to the community of Arma. If it is true, Damn. Hell, I’d probably drop my 24/7 ravage server just to fund a site. Or atleast try to help you boys get something up and running, I have a small little stash of AH scripts / mods but I’ll gladly give them to help you guys keep the history going!
-
Lucky for you I have a private dedicated and a full blown live server 😉 Message me on Discord sometime and I can get you setup for testing 🤘
-
Yeah, I have a ton of stuff (a list actually) of stuff I need to re-add, or make additions to for The Burning Rain. @Hans(z) is actually currently working towards the next patch! As for recent projects I’ve been vested highly into the multiplayer scene, “Not Alone” has got a lot of love the past couple of months, and the dedicated server is running better than ever. If you want a laid back server to join where everyone is pretty much PVE feel free to join. 🙂 server info can be found under #game-servers tab 😉 https://discord.gg/r2aT3vp
-
I may add the DLC into the Ravage Dedicated server once it has Ravage support, supposedly it has melee? Base building, vehicle saving, lets go with some Vietnam shit 🤣🤣🤣 Which reminds me Haleks if you get time I’ve found some items that need tweaked for Ravage MP for dedicated server’s I’m sure EO has PM’d you about the gear stuff. Just hit me up in the Discord and we can discuss some of the minor bugs 😉
-
That is a very old thread lol 😆 if you want the newest system I have the files stashed in my discord, it now has it’s own UI and what not for a cleaner look, still needs a bit of work too, but it works for the time being. It has altitude settings, time if day settings, water, etc... Feel free to check it out! 🍻 https://discord.gg/r2aT3vp
-
Kindly disregard my last message, I got GRAD figured out, server is running excellent. @RZNUNKWN is enjoying it very much along with some of the other guys! If any of you want to join feel free! It’s a 40 slot so no shortcomings on player slots! 🙂 Link is in my profile here on the forums, and on my Steam profile 😉 hope y’all are doing well! 🤘
-
If anyone has some good hints & tips towards the usage of GRAD persistency I’d very much like to hear some of it! With my limited editing time for our 24/7 Ravage dedicated server it can be quite a pain to consistently push updates or even test newer settings. And this is a system I’d definitely like to get handled correctly, it’s already in the scenario just needs a good bit of tuning ;) Feel free to discuss on the WW Community discord or contact me on Steam, I’d very much like to hear from some of you! MRZ / TenuredCLOUD 🍻
-
Pop it into your init.sqf and I recommend a sleep infront of it as well. Good luck!
-
Some Ravage shenanigans with @ArteyFlow Was an absolute blast, even though Artey’s a pickpocket... 😂😂😂
-
Hell yeah man! Hope all is going well in these crazy times we’re living in! Any new retextures lately? 😉
-
Try this @UnDeaD. From the man himself Haleks: I recently used these to blacklist some Weapon items from NIArms and they seem to do the trick, Major thanks to Haleks for helping me out! These may or may not work for the gearpool items, as they seem to class weapons. I’m unsure, but you can give them a try while waiting for Haleks reply! 🙂 Cheers man 🍻
-
If you want a more simple approach you can add @GEORGE FLOROS GR UI script which with adding a small code can award players money upon killing zombies / bandits. There are other systems to choose from as well, just have to choose one that works out best for you! Cheers.
-
So I finally got around to posting up the Temperature system, it's not in Armaholic, but it is in my Discord server. If any of you mission editors want to snag the newest version check the "temperature-system" text channel. Any questions can be thrown my way and I will assist! I am also open to any edits, or re-adaptations of the system as it does need some work still. I am very happy to bring these files to the community and had no idea Discord allowed file upload / downloading. Also, If any of you want to join my development team let's get busy! Cheers! 🍻 ~ TenuredCLOUD / Razor https://discord.gg/wggwxH3FJ4
-
There are scripts for it, I forgot who wrote one for it awhile back but I have the files somewhere on my computer, gimme a shout on my Steam or Join my Discord and I’ll send you the bit of code. Cheers mate 🙂 EDIT: It was by Phronk, that’s right. Quick search brought it up, I believe it’s in Armaholic as well as the BI forums. Happy scripting!