Jump to content

How can i apply .PATCH file onto my server?


Dkocir

Recommended Posts

Posted

Hello again. I finally find some things on the internet. But i still dont know how to apply that ".patch" files to repair buggs.

Can you please tell me how to do it?

Posted

Since you only give meager information about your setup I can only assume what software / tools you might have available.

First of all save the file to your local disk.

Open git in a command promt window and navigate to your scripts folder within your server directory (server/src/bindings/scripts/) or, if available, right click on the scripts folder and press the menu entry "git bash here".

Afterwards execute

git apply --check path-to-your/SP_37_TrainingDummy.patch

to validate the patch. If no error occurs you can execute

git apply path-to-your/SP_37_TrainingDummy.patch

to apply the patch.

After applying the patch successfully you have to rebuild your scripts solution with your prefered C++ compiler.

Posted

My server is MANGOS... I cannot find the directory u writed..... I have Github and Git Shell installed on my

computer. My REPACK -----> MaNGOS 3 Super Repack. (Version 4.3.4). Can u please tell me how to

do that with MANGOS ? :(

Posted

to learn how to compile a core need not more as 5 mins =)

you clone the repo what you need to compile, than you open under /win/ folder the right VC file VC110 for Visual Studio 2012/2013 than wehn open switch build mode to release and press F7 thats arts works wehn done you have seld compiled source

PS: MaNGOS is a learning project not support for repacks so you can learn how to mangos or use repacks from xyz sites but than we cant help you

Posted

Oh man thats so cool , but i dont understand what are u saying.. :D I worked on C++ on visual basic .. I know how it works... :) U send me the link with the

tutorials and thats too unspecific.... Can u send me the link for help for compiling the repack with the easy way you said now ? :D :D :D :D :D .. Best would be

video.. :D ... :(

  • 3 weeks later...
Posted

Dkocir, I believe the way you said "I worked on C++ on visual basic" lead others to the misunderstanding that you were creating C++ programs using Visual Basic. Perhaps you meant to say Visual Studio, which does include Visual Basic? If not, then you're either very mistaken about what you're doing or you use VB and VC++ together to add inline C++ modules to your Visual Basic programs.

As for compiling your own MaNGOS server from source, it is very easy to learn. The hardest part is dealing with Cmake to create the proper compiler directives, or project file, for your version of Visual C++.

If you wish to add patches to your server this must be done as source code, before you compile it into a working server.

We will help you as much as we can, but encourage you to learn by also teaching yourself. This means doing your homework by studying the manuals and documents and at least trying to do things for yourself until you encounter a problem for which you really do need help. After all, if you cannot be bothered to read a little, then why should we bother to help?

Honestly, it's worth it. I felt like the King Of The World, the first time I compiled my own working server, and then logged into the game to see the world, running on my own computer! :o

As I learned more, I began to include patches that added lots of cool stuff or fixed parts of the game that were broken. By compiling and patching the server source, I also learned how things worked and could then find or fix problems much easier. This also helped me to administrate my server with greater skill and less work since I knew the working of the server. Because I did try my best to learn, it made my experience playing the game with friends better.

There was also one other advantage to learning MaNGOS you don't see mentioned often: As my knowledge grew, I was able to help others, who became friends that made my life richer. :)

Learning how to use Git is easier when you have plenty of tutorials and books. If you read our forum post, MaNGOS Standards And Practices: A Guide For Developers, there is plenty of good information and links for using and learning Git.

Although we do not support "repacks", we do offer our servers as fully compiled packages which you can download and we will support those, should you have problems.

I hope what I have said will get you started and look forward to seeing what you have learned as we help you with the hard questions you may have. Good luck! ;)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use