AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Question about development... (https://forums.alliedmods.net/showthread.php?t=295793)

CrazY. 04-04-2017 18:54

Question about development...
 
Hello, I already did a game mode but I don't know the correct way to do. The correct is write all game mode in one plugin or each plugin with global game functions?

fysiks 04-04-2017 21:16

Re: Question about development...
 
What are you talking about?

EFFx 04-04-2017 21:40

Re: Question about development...
 
He meant a mod with 1 plugin with 5k of lines or 5 plugins with API?

CrazY. 04-04-2017 22:19

Re: Question about development...
 
Yes..

fysiks 04-04-2017 22:48

Re: Question about development...
 
You can do it however you like. It really depends on your end goal. If you are designing the plugin for yourself then you don't need to go through all the trouble of making a module system of plugins.

CrazY. 04-04-2017 23:40

Re: Question about development...
 
I think you dont understand my question.. sorry, my bad English.. Ok then, I want know if is correctly add all mode code in one plugin (zp 4.3 style) or separated (zp 5.0 style). Example: I have a plugin with a function to infect a player, I want give nightvision to this player when he is infected, the better way to do this is make a code of nightvision into the same plugin or make a external file that only will have the nightvision code.. Understand now?

HamletEagle 04-05-2017 00:06

Re: Question about development...
 
Quote:

Originally Posted by fysiks (Post 2509468)
You can do it however you like. It really depends on your end goal. If you are designing the plugin for yourself then you don't need to go through all the trouble of making a module system of plugins.

Understand now?

Depresie 04-05-2017 06:42

Re: Question about development...
 
It is all about what is more comfortable for you..

Creating your mod using multiple plugins

- Better workflow
- Readability
- Easier to debug
- Easier to fix

Creating your mod using one plugin

- More efficient for various reasons

In conclusion, it is more efficient resource wise to do it in one plugin, but it is more confusing, harder to debug and fix stuff

^SmileY 04-05-2017 07:15

Re: Question about development...
 
You need to see what a API does first. If you need to share functions with other players without a pain of open your 5k lines plugin, you shoud consider to use it.

CrazY. 04-05-2017 10:54

Re: Question about development...
 
Hmm.. ok, thanks!


All times are GMT -4. The time now is 18:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.