DayZ
sGunplay
Dette emnet er blitt låst
Basi Rubicundis 24. aug. 2022 kl. 23.30
Shoulder Rifles Only Compatibility?
Dear Maker.

Sorry, didn't fit in a comment.

I have a question, maybe the solution is simple. I would use it in conjunction with the "Shoulder Rifles Only" mod: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2794597957&searchtext=shoulder

But I get the following error message:
dzr_shoulder_weapons_only/3_game/dayzgame.c(166): unknown type 'SGameConfig'

This is what the file in question looks like:

class dzr_swo_config_data_class
{
//CONFIG
ref array<string> Items;
bool AllowOnlyWithBackpack;

void dzr_swo_config_data_class (){

AllowOnlyWithBackpack = false;

Items = new array<string >;

Items.Insert("Shovel");
ect...
Items.Insert("marlin");

};

};

modded class DayZGame {

protected ref dzr_swo_config_data_class dzr_swo_config_data;

dzr_swo_config_data_class SwoModConfig(string source = "not specified") {

if(dzr_swo_config_data){
//Print("DayZGame sends ModConfig AllowOnlyWithBackpack: "+dzr_swo_config_data.AllowOnlyWithBackpack);
return dzr_swo_config_data;
}
return null;
}

void SwoSaveConfigOnServer(ref dzr_swo_config_data_class new_config) {
Print("Config saved");
dzr_swo_config_data = new_config;
}
};

Is it possible to avoid the error?

ThankYou!
< >
Viser 15 av 5 kommentarer
simonvic  [utvikler] 25. aug. 2022 kl. 7.50 
Opprinnelig skrevet av Basi Rubicundis:

heyo :)

are you loading sFramework too? It's required for sGunplay to work
Basi Rubicundis 25. aug. 2022 kl. 8.17 
Wow! You answered me very quickly! Thanks!
You are kind, master!

So...

Yes, I just realized that now. :D I added it quickly!
But... Now I have the "Unknown type PPSHRecoil" error. It conflicts with the DearIsle mod, but this not posible... I think I'm still missing something. XD Does it need any background mod besides the Framework?
Basi Rubicundis 25. aug. 2022 kl. 8.25 
Good. It has a conflict with a mod. I'll find it and delete it. I need this, at any cost. :D
I solve it. I'll write down here which mode it doesn't work with. :)
Basi Rubicundis 25. aug. 2022 kl. 11.09 
I am an idiot.
I activated the MMIO patch, but in the end I didn't even install it on the server. Don't even bother with me. It only took me a day to figure this out. :D

Thank you for your willingness to help! :)

This mod is the best! <3
simonvic  [utvikler] 27. aug. 2022 kl. 3.42 
awesome! Happy to help :)
< >
Viser 15 av 5 kommentarer
Per side: 1530 50