ItsMods
Help Create plugins - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: Help Create plugins (/Thread-Help-Create-plugins.html)

Pages: 1 2 3 4 5


Create plugins - ltybcs - 01-01-2013

Hello.
I took the code from here: http://www.itsmods.com/forum/Thread-Release-Show-random-text-on-HUD-for-developers.html
Did everything as shown in the video here: http://www.itsmods.com/forum/Thread-How-to-compile-MW3-server-plugins-for-supernoobs.html
The resulting code: (Click to View)
The construction of solutions and displays an error when it writes that the build is successful and creates a plugin file.
Log building solutions: (Click to View)
At server startup, the plugin does not work
or just does not display the text.
I use Microsoft Visual Studio Express 2012.

Help the beginner, who than can, learn to make plugins for mw3 Blush

Advance sorry for my bad English, I from Russia and use Google translatorBig Grin



RE: Create plugins - Ich1994 - 01-01-2013

(01-01-2013, 14:30)ltybcs Wrote:
The construction of solutions and displays an error when it writes that the build is successful and creates a plugin file.
[spoiler=Log building solutions:] 1> ------ Build started: Project: randomtext, Configuration: Debug Any CPU ------
1> C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (1578,5): warning MSB3270: The disparity between the processor architecture of the project "MSIL", the construction of which is performed by the processor architecture and reference "addon "," x86 ". This discrepancy can lead to run-time errors. Try to change the target processor architecture for the project by using Configuration Manager to match processor architecture for the project, and links, or use the links from the dependence on the processor architecture, the appropriate target processor architecture project.
1> randomtext -> D: \ mw3server \ plugins \ randomtext.dll
========== Build: success: 1, error: 0, no change: 0, skipped: 0 ==========

How about thinking about to read the compiler error message?
'-.-

Build for x86 or ON a x86


RE: Create plugins - ltybcs - 01-01-2013

(01-01-2013, 15:08)Ich1994 Wrote:
(01-01-2013, 14:30)ltybcs Wrote:
The construction of solutions and displays an error when it writes that the build is successful and creates a plugin file.
[spoiler=Log building solutions:] 1> ------ Build started: Project: randomtext, Configuration: Debug Any CPU ------
1> C: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ Microsoft.Common.targets (1578,5): warning MSB3270: The disparity between the processor architecture of the project "MSIL", the construction of which is performed by the processor architecture and reference "addon "," x86 ". This discrepancy can lead to run-time errors. Try to change the target processor architecture for the project by using Configuration Manager to match processor architecture for the project, and links, or use the links from the dependence on the processor architecture, the appropriate target processor architecture project.
1> randomtext -> D: \ mw3server \ plugins \ randomtext.dll
========== Build: success: 1, error: 0, no change: 0, skipped: 0 ==========

How about thinking about to read the compiler error message?
'-.-

Build for x86 or ON a x86

In the Microsoft Visual Studio Express 2012 went to:
Building == Configuration Manager == Active solution platform == x86
Now the construction of solutions is normal:

1> ------ Rebuild All Files started: Project: randomtext, Configuration: Debug x86 ------
1> randomtext -> D:\mw3server\plugins\randomtext.dll
========== Rebuild All: success: 1, error: 0, skipped: 0 ==========

But the plugin still does not work or does not display text...


RE: Create plugins - ltybcs - 01-01-2013

(01-01-2013, 16:45)SirGravzy Wrote: did you set the framework at 3.0 ?
Got out a lot of errors (Click to View)
BUT THE PLUGIN WORKS!
Thank you very much!


RE: Create plugins - yokai134 - 01-01-2013

Remove all the Using X; that are from framework 4.0 as well as references that are for .Net 4.0

Where X is the assembly its referencing.


RE: Create plugins - ltybcs - 01-02-2013

Hello.
It's me again.
This time I have a question about the plugin Shop system for Infected gametype .
Maybe this question has been asked a million times, is explained in different variations, but I did not find it on the forum.
How to make a SQL database, so that points are not reset every time you turn off the server?
If you need the plugin code here: (Click to View)



RE: Create plugins - yokai134 - 01-03-2013

(01-02-2013, 10:19)ltybcs Wrote: Hello.
It's me again.
This time I have a question about the plugin Shop system for Infected gametype .
Maybe this question has been asked a million times, is explained in different variations, but I did not find it on the forum.
How to make a SQL database, so that points are not reset every time you turn off the server?
If you need the plugin code here: (Click to View)

Do you mean changing that mod to use a MySQL database?


RE: Create plugins - ltybcs - 01-03-2013

(01-03-2013, 04:53)yokai134 Wrote: Do you mean changing that mod to use a MySQL database?

I meant that I do not know how to create a SQL database that-be placed there is the number of points each player. But I have already solved this problem in another way, as described in this comment: http://www.itsmods.com/forum/Thread-Release-Shop-system-for-Infected-gametype.html?pid=93770#pid93770
And here is what I got: (Click to View)

Now I have another problem, does anyone know the code to add to the store of arms akimbo, and that when you climbed the fence guns continued firing?
And is there anyone have the code of the plugin that automatically sends a command to (at (Do not know how to spell in English)) connect to the server or change the map, without the person who sent the command?


RE: Create plugins - 99IRock - 01-03-2013

http://addon.teamsdk.com/

Check the Events
and there you have what you need :p


RE: Create plugins - ltybcs - 01-08-2013

I read, but I didn't find there responses to a pregoing question.

ltybcs Wrote:Somebody knows a code of a plugin which automatically sends a command to a chat in case of connection of the player to the server and card change, without involvement of that whom the command goes?

Somebody can help me with it?

And can anyone write a code sample plugin adds sending traps to build different bins, paths, etc?