Jump to content

Recommended Posts

Quick question to my fellow mission makers using custom persistence systems in MP : how easy is it to exclude objects from them?

 

Reason I'm asking this, following some of the stuff I had to work around with the new showcase for Remnant, I'm experimenting with a procedural system for static objects spawning. Right now I can see 2 neat applications for this :

- It greatly reduces the amount of data to keep in memory, as there's no need anymore to store positions, directions, object types etc in variables. 

- In MP that's a huge amount of objects that don't need to be saved. For instance, the same wreck will always spawn at a given position, with a given orientation at each server restart.

 

The whole system will be controlled by a "master seed" set in the module : you can set a number to obtain a persistent configuration (useful in MP), or set it to be randomised at each mission start (good for random SP experience). It will also offer the same level of customisation compared to the current modules, if not more. There're other applications on "smaller" scales too, like generation of persistent clutter on roads - all kind of things that would massively increase memory usage or data volume.

Any thoughts from server owners?

  • Like 3

Share this post


Link to post
Share on other sites
25 minutes ago, haleks said:

how easy is it to exclude objects from them?


Very easy depending upon the system you utilize. If you use GRAD they actually have a blacklisting system inside of the description.ext file so you simply just plop the object within the [];

 

Also, a cool thing about GRAD persistency is you can make it save spawned in objects “scripted stuff” or you can make it save all objects already placed within the editor. I prefer the ladder due to less of a hassle.

 

I’d definitely dip into GRAD if you’re curious on how they have their system setup mate 🙂

 

also all of the persistent items are loaded up on mission start much like playernamespace saves as well. 
 

https://github.com/gruppe-adler/grad-persistence/wiki/saving-objects

 

EDIT: I should also note to other MP mission makers as well, I have been running my dedicated server for almost 4 months or so now and I still have vehicles saved from 2 months ago in the SAME exact position where they were left, with the same amount of fuel, same inventories, etc… etc… This is after VERY many server restarts and even reboots, as well as mission updates. 
 

GRAD automatically loads everything even after you’ve just got done with updating objects on the map, scripts, or even loot configurations. This is why my go-to for persistency is now GRAD, it’s an absolute dream to work with and is also easily mix-able with the Ravage MP save system as well. Both systems together don’t skip a beat with saving, and there’s no “file size limitations” or corruption issues either. So if you’re looking for a save system to use even after your computer has been turned off and on again use GRAD. 

  • Thanks 1

Share this post


Link to post
Share on other sites

I can confirm @MuRaZorWitchKING post, Grads work great got myself few mission using Grad that we play sometimes, the server profile are few years old and it keep solid all the data (Vehicle, BaseBuilding, Crate Inventory), sometimes if the player make few comblicated structure with a lot of wall, plank.... and if there a lot of stuff that need to be saved few object are not saved/loaded properly there will be few static object with a small shifting.

 

Compared to an external data base, Grad is really easy to set up, so the people just need to put a mission on their server then play.

 

Personnaly for Ravage i use Grad for static object made by the player, crate and vehicle and the included Ravage persistence for player state without issue, i also modified the script to activate dynamic simulation on any loaded object, it make the server and player FPS much more stable on the long run.

 

The only issue (that can be solved) with Grad are the destroyed or damaged map building, so if you want something clean you must exclude all the damaged, destroyed and ruins building model classname if not at mission start Grad will load the damaged/destroyed building into his original building... So with ravage if you not plan to make a huge war on a village or a scripted bomb that destroy everything its not a big deal.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

So how would I go about tuning my loot to only the items I've put inside my Gearpool module? I am using this in my init.sqf to "blacklist" items but they're still showing themselves after afew searches in the dynamic loot

init.sqf:
 

waitUntil {!isNil "rvg_Items"};
sleep 1;//just to be safe, the gearpool script needs to be done first
_blacklisted_items = ["rvg_money",
"rvg_plasticBottleEmpty",
 "rvg_canteenEmpty",
 "rvg_canOpener",
 "rvg_plasticBottle",
 "rvg_plasticBottlePurified",
 "rvg_spirit",
 "rvg_franta",
 "rvg_beans",
 "rvg_bacon",
 "rvg_milk",
 "rvg_rice",
 "rvg_rustyCan",
 "rvg_hose",
 "rvg_guttingKnife",
 "rvg_purificationTablets",
 "rvg_rustyCanEmpty",
 "rvg_beansEmpty",
 "rvg_baconEmpty",
 "rvg_spiritEmpty",
 "rvg_frantaEmpty",
 "rvg_rustyCanEmpty",
 "rvg_beansEmpty",
 "rvg_baconEmpty",
 "rvg_spiritEmpty",
 "rvg_frantaEmpty",
 "rvg_matches",
 "rvg_canisterFuel_Empty",
 "rvg_canisterFuel",
 "rvg_Geiger",
 "rvg_docFolder",
 "rvg_antiRad",
 "rvg_sleepingBag_Blue",
 "rvg_foldedTent",
 "rvg_notepad",
 "rvg_docFolder",
 "rvg_rustyCanEmpty"];
_rvg_items = rvg_Items;
rvg_Items = _rvg_items - _blacklisted_items;
publicVariable "rvg_Items";

As well as this list for loot I WANT to spawn:

rvg_Items = [
"rvg_tire",
"rvg_flare",
"rvg_toolkit",
"G_her_GasMaskA",
"herl_eat_apple",
"herl_eat_bmr",
"herl_eat_smr",
"herl_eat_TABA",
"herl_eat_GB",
"herl_eat_Rice",
"herl_eat_CC",
"herl_eat_grilledM",
"herl_eat_Fish",
"herl_dri_milk",
"herl_dri_RedGul",
"herl_dri_Spirit",
"herl_dri_Franta",
"herl_dri_watera",
"herl_dri_Canteen",
"herl_u_bloodbag25",
"herl_u_bloodbag50",
"herl_u_bloodbag75",
"herl_u_bloodbag",
"herl_u_Knife",
"herl_o_saw",
"herl_u_hpack",
"herl_u_vitamins",
"herl_u_CFire",
"herl_u_bandage",
"herl_u_dsray",
"herl_u_petrol",
"herl_u_petrole",
"herl_u_diesel",
"herl_u_diesele",
"herl_u_cawater",
"herl_u_cawatere",
"herl_u_Canteen",
"herl_u_RawM",
"herl_u_antibiotic",
"herl_u_fm_radio",
"herl_o_CamoNet",
"herl_o_FoldingChair",
"herl_lighter",
"herl_matches",
"herl_copener",
"herl_ma_Canteen",
"herl_ma_dspray",
"herl_ma_fm_radio",
"herl_mb_pm",
"herl_mb_waterpur",
"herl_mb_battery",
"herl_mb_bandage",
"Her_Flashlight_01_F",
"herl_u_FirstAidKit"
];


Is the gearpool module conflicting this you think? The settings are identical.

:headscratch:

This is for my dedicated server too, and I'm testing via hosted LAN, once all is done I'll do a test run via my private dedi just to make sure.

Maybe plop all this into the initserver.sqf? 

Thanks again! 🙂 

 

EDIT: Please disregard, I got a different setup running! 😄
 

Share this post


Link to post
Share on other sites

Finally got my newest dedicated server patch rolling out yesterday, Heros survive really adds to the immersion for Ravage! Anyone looking to check it out feel free to join, server is up 24/7!
Just don't freeze to death! 😉  

If any of you do join let me know what you think, give me feedback / constructive criticism, always looking for stuff to improve on. 

Cheers! 🍻

https://discord.gg/r2aT3vp

  • Like 5

Share this post


Link to post
Share on other sites

I got a question about the clean up system provided by the mod Ravage, it delete all the weapon holder or only the one that are spawned by the ravage search loot feature ?

  • Like 1

Share this post


Link to post
Share on other sites

Hoping someone can help me with the zombie spawn structure black list feature.

 

I've started a Livonia mission with simple settings. Zombies are spawning at all the power lines. I've added all the powerline structures from Livonia to the blacklist, However they continue to spawn. I've formatted the array like the feature example shows.

 

Any ideas?

Share this post


Link to post
Share on other sites

I'd like to add a double-click action to something in inventory. I've found, in the ravage codebase, in /code/survival/inventory.sqf

while {true} do {//true still works after respawn, use alive if we need to reboot
	waituntil {!(isnull (finddisplay 602))};
	showCommandingMenu "";
	{
		((findDisplay 602) displayCtrl _x) ctrlSetEventHandler ["LBDblClick", "_this call fnc_gearLBDblClick"];
	} count [633, 638, 619];

If I'm reading that right, when the layer opens the inventory, this code closes it, then reopens it with fnc_gearLBDblClick as the doubleclick event handler. I suspect that means I *cant* add my own double click handler without overriding yours. Am I right about that?

 

If so, I guess I can try a scroll menu action.

Share this post


Link to post
Share on other sites
On 6/14/2021 at 11:16 PM, ernave said:

I'd like to add a double-click action to something in inventory. I've found, in the ravage codebase, in /code/survival/inventory.sqf


while {true} do {//true still works after respawn, use alive if we need to reboot
	waituntil {!(isnull (finddisplay 602))};
	showCommandingMenu "";
	{
		((findDisplay 602) displayCtrl _x) ctrlSetEventHandler ["LBDblClick", "_this call fnc_gearLBDblClick"];
	} count [633, 638, 619];

If I'm reading that right, when the layer opens the inventory, this code closes it, then reopens it with fnc_gearLBDblClick as the doubleclick event handler. I suspect that means I *cant* add my own double click handler without overriding yours. Am I right about that?

 

If so, I guess I can try a scroll menu action.

 

As far as I remember, it's not possible to add multiple ctrlEHs - but it's been a long time since I fiddled with it... I wonder how Mike Force handles that stuff by the way...

 

On 6/11/2021 at 4:23 AM, damsous said:

I got a question about the clean up system provided by the mod Ravage, it delete all the weapon holder or only the one that are spawned by the ravage search loot feature ?

If it's the Settings module, it does delete everything (unless there's a "owned" variable on it). Don't use it if you have doubts - Ravage-generated loot is virtually saved & cached anyways. 😉 

 

On 6/14/2021 at 9:42 AM, darkenraja said:

Hoping someone can help me with the zombie spawn structure black list feature.

 

I've started a Livonia mission with simple settings. Zombies are spawning at all the power lines. I've added all the powerline structures from Livonia to the blacklist, However they continue to spawn. I've formatted the array like the feature example shows.

 

Any ideas?

Are you sure you got the right classnames? Could be an issue with the way Ravage checks for object types (anything that doesn't inherit from the "static" class won't be detected)...

The zombie modules will be the first to be upgraded though, so that should not be an issue for long.

 

 

Speaking of upgrades... I'm facing a dilemma. Large chunks of the code are going to change, and if I want to keep retro compatibility with old scenarios, I reckon the best way to go will be to pack all the new stuff in separate PBOs, and have brand new modules pointing to new functions when necessary. Now that means duplicating some stuff, and since I don't want to confuse people, I'm probably going to hide the old modules as the new ones roll out : the old ones would be absent from 3den unless you are opening an old mission where there're present already.

Does that sound good to you guys? I can't think of a better solution right now...

  • Like 8

Share this post


Link to post
Share on other sites

May be a V2 mod and leave the current one as Legacy version?

 

Keep the new one lean n clean?

  • Like 1

Share this post


Link to post
Share on other sites
2 hours ago, haleks said:

Does that sound good to you guys? I can't think of a better solution right now...

 

Is there anyway to put sort of a mouse over hint on the newer modules something along the lines of "Use these V2 modules if you want Ravage 2.0 to be utilized, if you want the older version for legacy reasons utilize the base Ravage modules." Something like that?

Also, is Ravage 2.0 going to have a possible more in depth Gearpool tuner? Just curious as I still have some Ravage items spawn in my missions even with utilizing the sleep 5; before classing the items I want to be spawned into Ravage. Usually though, the sleep 5; DOES do it's job fairly well, so if not it isn't a big deal 😉

Keep up the good work mate, excited as hell for the new and improved and they'll definitely be put into the Dedicated ravage Server, and TBR. 

🍻

  • Like 2

Share this post


Link to post
Share on other sites
3 hours ago, haleks said:

I'm probably going to hide the old modules as the new ones roll out : the old ones would be absent from 3den unless you are opening an old mission where there're present already.

 

That sounds like a good plan. Personally, I don't care about the old modules if new ones are coming in. Pretty excited to see what they are.

Share this post


Link to post
Share on other sites

I think it would better if you had 2 versions and just depreciate the old one, but leave it on STEAM WORKSHOP for compatibility sake.

 

I hate it when a mod is updated, but an old mission is not and then it breaks it. Not all authors have the time to go and redo it as much as we would want them to. They have to split their time updating old missions or creating new ones.

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, Valken said:

They have to split their time updating old missions or creating new ones.


I just split my time into working on the dedicated server, I push updates almost daily... With some bugs it's right after I get off work too... :goodnight: 😂

Eventually I'll have to slow down a bit, but the Dedicated server as it sits currently even though it's far from completed I still think it's the farthest I've ever got editing my stuff. Low mod count, but high content count lol 

Speaking of Servers and such, if any of you guys run servers and want them shared I have an area where (if you want) I can post up your server info for others to join! Feel free to message me via steam or discord 😉 

I'm off to go scrounge up some antibiotics in the cold climate of Chernarus! For future possible zombie bites! 💊

:slayer:

 

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, MuRaZorWitchKING said:


I just split my time into working on the dedicated server, I push updates almost daily... With some bugs it's right after I get off work too... :goodnight: 😂

Eventually I'll have to slow down a bit, but the Dedicated server as it sits currently even though it's far from completed I still think it's the farthest I've ever got editing my stuff. Low mod count, but high content count lol

 

I think you, Donnie, CWR3 team and only a handful of people update their missions due to availability of time.

 

One of my favorite mission makers, Phantom, has incredible missions, but as soon as a mod updates, it breaks it and it eventually gets taken off SteamWorkShop, leading us to scramble to backup whatever "old" mods we have + the mission to be able to replay it.

 

So I rather have old missions + old mods be "available" than pulled off SWS as we now have lost ARMAHOLIC.

 

Great classics do not need to hide or die, it needs to be ARCHIVED! 😄

 

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×