Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
  • Need help?

    Create a topic in the appropriate section
    Don't write everything in the chat!
  • Take a look at the marketplace

    There you can buy
    everything related to game servers
  • Don't want a ban?

    Please read our rules
    Don't disturb the order!
  • Sell or buy?

    Use services of the guarantor
    We will make your deal safe
  • 0
Helzi_Official

Клиент и серверный мод

Хочу сделать приватный мод, разделил на серверную и клиентскую часть, он просто не работает, разделил клиентскую на модельку и текстуру, серверную на скрипт.

Клиентский мод.

class CfgPatches 
{
	class Test_ModClient
    {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = 
		{
			"DZ_Data",
			"DZ_Scripts"
		};
	};
};
class CfgVehicles 
{
	class Inventory_Base;
	class garage_testmod : Inventory_Base
	{
		scope=2;
		displayName="Test";
		descriptionShort="Test";
		model="Test_ModClient\data\Controller.p3d";
		hiddenSelectionsTextures[] = {"Test_ModClient\data\Controller_co.paa"};
		hiddenSelectionsMaterials[]={"Test_ModClient\data\Controller.rvmat"};
		weight=3000;
		itemSize[]={1,2};
		itemInfo[]=
		{
			"Clothing",
			"Back"
		};
		class DamageSystem 
		{
			class GlobalHealth 
			{
				class Health 
				{
					hitpoints = 99999;
				};
			};
		};
		class Cargo 
		{
			itemsCargoSize[] = {1, 2};
			openable = 0;
			allowOwnedCargoManipulation = 1;
		};	
	};
};

Серверный

class CfgPatches 
{
	class Test_ModServer
    {
		units[] = {};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = 
		{
			"Test_ModClient"
		};
	};
};
class CfgMods
{
	class Test_ModServer
	{
		dir="TestModServer";
		name="TestModServer";
		credits="";
		author="";
		authorID="";
		version="1.0";
		extra=0;
		type="mod";
		dependencies[]=
		{
			"World"
		};
		class defs
		{
			class worldScriptModule
			{
				value="";
				files[]=
				{
					"Test_ModServer/scripts/4_World"
				};
			};
		};
	};
};

 

Edited by Helzi_Official (see edit history)

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

Не все скрипты можно запихнуть в серверную часть. особенно из 4_world

Тебе не кто точно не подскажет почему не работает твой мод так как ты приложил только конфиг

Мы не видем самого кода.

Share this post


Link to post
Share on other sites



  • 0

кстати таже история, сделал клиентскую и серверную часть, в итоге нет действия распоковать, а если не делить,  то всё работает, а именно есть действие распаковки предмета..

Share this post


Link to post
Share on other sites
  • 0
20.02.2023 в 18:56, Skar713 сказал:

Не все скрипты можно запихнуть в серверную часть. особенно из 4_world

Тебе не кто точно не подскажет почему не работает твой мод так как ты приложил только конфиг

Мы не видем самого кода.

А рецепты крафта можно запихнуть в серверный мод ? так же пытаюсь сделать сервер мод с рецептами пока не работает.

Share this post


Link to post
Share on other sites
  • 0
9 минут назад, alex_good_kaban сказал:

@WiLDman Только класс override void Do
Остальная часть должна быть на клиентской стороне

Спасибо понял. А я думал любые скрипты можно засунуть в сервер мод

Share this post


Link to post
Share on other sites
  • 0
2 часа назад, WiLDman сказал:

Спасибо понял. А я думал любые скрипты можно засунуть в сервер мод

скрипты ты можешь любые запихнуть, только применится в работе лишь та часть, которую игра читает в этот момент. Остальное для мебели будет.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you automaticly agree to our Guidelines and Privacy Policy.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.