DayZ
sGunplay
This topic has been locked
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://steamcommunity.com/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!
< >
Showing 1-5 of 5 comments
simonvic  [developer] Aug 25, 2022 @ 7:50am 
Originally posted by Basi Rubicundis:

heyo :)

are you loading sFramework too? It's required for sGunplay to work
Basi Rubicundis Aug 25, 2022 @ 8:17am 
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 Aug 25, 2022 @ 8:25am 
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 Aug 25, 2022 @ 11:09am 
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  [developer] Aug 27, 2022 @ 3:42am 
awesome! Happy to help :)
< >
Showing 1-5 of 5 comments
Per page: 1530 50