Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 51

  Click here to go to the first staff post in this thread.   Thread: Compiling and running a mod under Windows

  1. #1

    Exclamation Compiling and running a mod under Windows

    Hello all,

    Because the old "Compiling a mod under Windows" thread was not very well explained. i'm making a new one here now.
    I included a link with the source also, wich i uploaded myself. The things i edited was only the workspace files,
    as they are now directly openable in Visual Studo Express 2008.

    ===============================
    [COLOR="DarkRed"]On the bottom of this post i included some extra's![/COLOR]
    ===============================

    Also, maybe this is sometimes some 'childy' but i wanted to explain it as best, so even beginners can do it. (And we don't get extra extra extra questions about where a particular button is)
    I Also made a fast VIDEO show so if you don't know where to click or something you can just look at it and watch what you do wrong.
    http://www.youtube.com/watch?v=PFcQCkEw-qw - [COLOR="Red"]Watch in HD only![/COLOR]

    [COLOR="DarkRed"]If you already have Visual C++ Express Edition (2008) or Visual Studio you can Skip Step 1[/COLOR]

    ---------------------------------------------------------------------------------------------------

    [anchor]index[/anchor]INDEX:
    [anchorlink=#step1]Step 1) Downloading Visual Studio[/anchorlink]
    [anchorlink=#step2]Step 2) Getting the source[/anchorlink]
    [anchorlink=#step3]Step 3) Editing some code to test[/anchorlink]
    [anchorlink=#step4]Step 4) Building the source[/anchorlink]
    [anchorlink=#step5]Step 5) Packing up[/anchorlink]
    [anchorlink=#step6]Step 6) Going in-game[/anchorlink]
    [anchorlink=#extra1]Extra 1) Adding MP40 to ALLIES and THOMPSON to AXIS[/anchorlink]
    [anchorlink=#extra2]Extra 2) Getting ETPUB[/anchorlink]

    ---------------------------------------------------------------------------------------------------

    [anchor]step1[/anchor]Step 1) Downloading Visual Studio - [anchorlink=#index]To Top[/anchorlink]
    Download Visual C++ 2008 Express Edition here.http://www.microsoft.com/express/download/default.aspx
    Scroll down to the bottom and select language you like and press Download.

    Save it and run it (File is about 2,6MB).
    Just press overall next and accept license just as normal setup.

    There are 2 optional products: Microsoft Silverlight and SQL Server. I recommend NOT to install them by now, as you don't need them and it takes extra time.
    Now it's downloading all the needed stuff - Wich is around 92MB.

    After installing the installer asks if you want to register, it's not necessary now but it's an advice to do it because then you can use it for more then 30 days.

    Congratulations, you installed Visual Studio 2008

    ---------------------------------------------------------------------------------------------------

    [anchor]step2[/anchor]Step 2) Getting the source - [anchorlink=#index]To Top[/anchorlink]
    [COLOR="DarkRed"]When you are serious gonna make a mod, i recommend that you use the ETPUB source (found in Extra - 2) as this already contains killing sprees and much more. Also NoQuarter and Jaymod are build on it so [/COLOR]

    Download the Source HERE: http://www.unitedgamingresource.com/...WET_Source.zip
    This is 100% trustable file, it's just latests ET source but i converted it already to Studio 2008 files so you don't have to do the conversion.

    Extract the .ZIP anywhere you want, but a suggestion is NOT TO extract it in one of your ET directories.
    Open up /src/wolf.sln

    [COLOR="DarkRed"]Oke, you can skip Step 3 if you just want to go now with no modification, else i will make an example of changing a clip size from a MP40. It is recommended, as you can quickly see later or it worked out or not.[/COLOR]

    ---------------------------------------------------------------------------------------------------

    [anchor]step3[/anchor]Step 3) Editing some code to test - [anchorlink=#index]To Top[/anchorlink]
    Here I'm showing how to change the clip size from MP40 and Thompson to 32
    Expand cgame and then expand source files and search for bg_misc.c
    Press Control+G (Goto) and type 148. This will bring you directly to the line of the MP40 section.
    Change the numbers 30 to 32 there. May also do this in line 153 (Thompson)

    ---------------------------------------------------------------------------------------------------

    [anchor]step4[/anchor]Step 4) Building the source - [anchorlink=#index]To Top[/anchorlink]

    Press right mouse on Solution 'wolf' and press Build Solution. Just ignore all the warnings for now, those doesn't matter.

    Now you just made a DEBUG build, if you are releasing your mod set the build option to Release.

    ---------------------------------------------------------------------------------------------------

    [anchor]step5[/anchor]Step 5) Packing up - [anchorlink=#index]To Top[/anchorlink]
    Testing your mod, you first have to pack up 2 files. It can be done with winrar or any other program that supports packing of ZIP.
    The files to pack up are: cgame_mp_x86.dll and ui_mp_x86.dll those are both client files.
    The qagame_mp_x86.dll is a server file, you don't packup that file.
    Just change the extension from .zip to .pk3.
    Then just call it something like mymod.pk3 for now.

    Now go to your ET installation, although it's not recommend to use your ET-Play installation it's possible.
    Make a new directory, for example mymod.

    Place the mymod.pk3 and the qagame_mp_x86.dll in your mod folder.

    ---------------------------------------------------------------------------------------------------

    [anchor]step6[/anchor]Step 6) Going in-game - [anchorlink=#index]To Top[/anchorlink]
    I'm not gonna do it the hard way so: make a extra shortcut to ET.exe and give it an extra parameter: +set fs_game mymod where mymod is the folder where you placed in your mod.
    Then just press HOST GAME ans START SERVER.

    Just join a team now, if you did step 3 you see now that the clip size is 32 in stead of reguler 30.

    CONGRATULATIONS, You just build your own mod!

    ---------------------------------------------------------------------------------------------------
    [COLOR="DarkRed"]EXTRA'S[/COLOR]
    ---------------------------------------------------------------------------------------------------

    [anchor]extra1[/anchor]Extra 1) Adding MP40 to ALLIES and THOMPSON to AXIS - [anchorlink=#index]To Top[/anchorlink]
    Oke here i will explain how to add MP40 to Allies and Thompson to Axis, it's actually quite easy.
    At first, expand game, then expand source files and open up bg_classes.c

    Basicly under every WP_THOMPSON, add WP_MP40 and under every WP_MP40 in the next section add WP_THOMPSON.
    Compile everything and redo earlier steps.
    IN-game result is now this:
    http://gamemaps.nl/et/src/screenshot.png
    The code gets this:
    http://gamemaps.nl/et/src/bg_classes.c

    ---------------------------------------------------------------------------------------------------

    [anchor]extra2[/anchor]Extra 2) Getting ETPUB - [anchorlink=#index]To Top[/anchorlink]
    First install SVN: http://tortoisesvn.net/downloads,
    Then make a new folder, for example ETPUB en press right mouse button->SVN Checkout
    THen give this link: http://svn2.assembla.com/svn/etpub/trunk/

    Open src/wolf-vs2k8.sln and do the Build step again.
    Now goto the folder /Debug of /Release (Depending on what kind of build you made.
    And voila - There are the .dll's again!
    Don't forget to also include the etpub pk3 (client) and replace your dlls by them, else you have much missing files
    Last edited by Paul; 8th Mar 2010 at 16:58. Reason: new source download location!

  2. #2

    Re: Compiling and running a mod under Windows

    Nice work you got there scary. You found time off your ET Dutch project to write a tutorial for other new mod makers. It's alot more easier to understand then the earlier sticky. Hopefully this will get to be a sticky.
    Project: Wolf Records
    S&M Mapping - S&M Mapping

    Wolf: MP - Blog Of The Next Wolfenstein: Multiplayer

  3. #3
    Tapir Stalker nUllSkillZ's Avatar
    Join Date
    Jan 2004
    Location
    http://www.kronberg.de/
    Posts
    3,579
    Most Recent Awards:

    Re: Compiling and running a mod under Windows

    Thanks for the tutorial.

    As far as I know it's not possible to crosscompile for Linux under Windows.
    Whereas under Linux it's possible to compile the source for Linux and crosscompile the source for Windows.

  4. #4

    Re: Compiling and running a mod under Windows

    Yes under windows you actually CAN compile a .so
    I will make that later, it's really possible!.

  5. #5
    Answering machine stealth6's Avatar
    Join Date
    Aug 2007
    Location
    Uhm... Chair?
    Posts
    3,913
    Most Recent Awards:

    Re: Compiling and running a mod under Windows

    wow cool, I was thinking of trying some of this stuff so this will help alot thanks!

  6. #6

    Re: Compiling and running a mod under Windows

    Nice tutor!

  7. #7

    Re: Compiling and running a mod under Windows

    Some people asked so i will try to explain these things:
    How to compile ETPUB
    How to add mp40 to allies and visa-versa.
    Last edited by Paul; 11th Aug 2009 at 11:37.

  8. #8

    Re: Compiling and running a mod under Windows

    Awesome post. Will be waiting for more tutorials.

  9. #9

    Re: Compiling and running a mod under Windows

    I added the ETPUB Piece, i'm now cleaning up the thread a bit so it's more clear (parts).

  10. #10

    Re: Compiling and running a mod under Windows

    Quote Originally Posted by Scary View Post
    I added the ETPUB Piece, i'm now cleaning up the thread a bit so it's more clear (parts).
    Thank you for adding Etpub and thompson/mp40 thing on my request. Much appreciated. I am sure it will be helpful to many admins.

    Thanks once again.

  11. #11

    Re: Compiling and running a mod under Windows

    No problem, at your service

  12. #12
    Occasionally AFK
    Join Date
    Apr 2005
    Location
    't looks like a room
    Posts
    4,437
    Most Recent Awards:

    Re: Compiling and running a mod under Windows

    Quote Originally Posted by Scary View Post
    Yes under windows you actually CAN compile a .so
    I will make that later, it's really possible!.
    Ah, I guess you installed a full Cygwin installation then?
    "Respect is everything" - GTA2
    "Notheeeeeng is final." - Bongoboy

  13.   This is the last staff post in this thread.   #13
    Splash Damage Mascot Salteh's Avatar
    Join Date
    Dec 2002
    Location
    Delft, the Netherlands
    Posts
    1,481
    Most Recent Awards:

    Re: Compiling and running a mod under Windows

    The anchor links make it extra awesome!

  14. #14

    Re: Compiling and running a mod under Windows

    Quote Originally Posted by kamikazee View Post
    Ah, I guess you installed a full Cygwin installation then?
    No but, updated my thread.

    [COLOR="DarkRed"]THX TO SALTEH FOR MAKING A NEW FUNCTION![/COLOR]

  15. #15

    Re: Compiling and running a mod under Windows

    omg, now I see what you mean with anchors
    cool indeed and veeery handy
    <a href=http://stefanpiot.googlepages.com/ target=_blank>[</a><a href=http://stefanpiot.googlepages.com/ target=_blank>url=http://stefanpiot.googlepages.com]</a><a href=http://www.splashdamage.com/forums/image.php?type=sigpic&userid=9086&dateline=1243176568 target=_blank>http://www.splashdamage.com/forums/i...ine=1243176568</a><a href=http://stefanpiot.googlepages.com/ target=_blank>[</a><a href=http://stefanpiot.googlepages.com/ target=_blank>/url]</a>
    I <3 N - ( . ) ( . )
    I love entities
    Project: Wolf Records
    Map: Kha Ran Than
    Map: et_Carentan



  16. #16
    Occasionally AFK
    Join Date
    Apr 2005
    Location
    't looks like a room
    Posts
    4,437
    Most Recent Awards:

    Re: Compiling and running a mod under Windows

    Quote Originally Posted by Scary View Post
    No but, updated my thread.

    [COLOR="DarkRed"]THX TO SALTEH FOR MAKING A NEW FUNCTION![/COLOR]
    So where is your build-for-Linux tutorial, or did you mean something else?
    I'm just curious how you pulled it off, you see.
    "Respect is everything" - GTA2
    "Notheeeeeng is final." - Bongoboy

  17. #17

    Re: Compiling and running a mod under Windows

    Thanks! The tutorial worked flawlessly for me! I've only done the ammo change. Going to try extras now then figure out some other stuff

    thanks for taking time to make such great topic.

  18. #18

    Re: Compiling and running a mod under Windows

    Mp40/Thompson thing doesn't work for Etpub when I follow your tutorial. Is their anyway to fix it? Thing is i no matter what i choose mp40/thompson as an allies but i will only get thompson and as axis i will only get mp40 although it shows both in menu.

    Thanks.
    Last edited by hellreturn; 17th Aug 2009 at 17:54.

  19. #19

    Re: Compiling and running a mod under Windows

    Quote Originally Posted by Scary View Post
    Yes under windows you actually CAN compile a .so
    this is what I'm looking for

  20. #20

    Re: Compiling and running a mod under Windows

    I'm having same problem as hell monkey also with that mp40 and thompson not working with etpub. I'd also be looking forward to figure out how to compile .so under windows too

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •