Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 39

Thread: [CoD2] Install CoD2 on your VDS much faster!

  1. #11
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by Lonsofore View Post
    Well, can we identify server version somehow? (yea, 1.3 we can identify by gamestate, but what about 1.2?)
    The server version depends on the iwd's you upload + binary

  2. #12
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by Ni3ls View Post
    The server version depends on the iwd's you upload + binary
    I use my fs_game for 1.0 and 1.3. If I will use it for 1.2 too - how can I detect current game version?

  3. #13
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    I don't get you.
    1.0 is the basic version
    1.2 adds iw_15
    1.3 adds a different iw_15 + localized file

    So you can't use the same dir for 1.2 and 1.3

  4. #14
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    That's what I actually do. One directory - 2 (or more) servers.
    You can read more here: https://en.wikipedia.org/wiki/Ln_(Unix)

  5. #15
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    So you are saying that in the folder "main" you have all iwd's + all localized files from 1.3?
    And then in the fs_game you have the same mod for all 3 versions?

    If you also use that "main" both for 1.2 and 1.3 servers, the players from 1.2 have to download a big-ass iw_15.iwd because it's not the same on the client

  6. #16
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by Ni3ls View Post
    So you are saying that in the folder "main" you have all iwd's + all localized files from 1.3?
    And then in the fs_game you have the same mod for all 3 versions?

    If you also use that "main" both for 1.2 and 1.3 servers, the players from 1.2 have to download a big-ass iw_15.iwd because it's not the same on the client
    Let me show you my directories:
    cod2/main/1.0/ - all files from 1.0
    cod2/main/1.2/ - iw_15 from 1.2 and localized (I'm not sure about localized - IzNoGoD said something about it here)
    cod2/main/1.3/ - iw_15 from 1.3 (yea, it's different with 1.2) and localized
    cod2_1_0/main/ - here I linked cod2/main/1.0/
    cod2_1_2/main/ - here I linked cod2/main/1.0/ and cod2/main/1.2/
    cod2_1_3/main/ - here I linked cod2/main/1.0/ and cod2/main/1.3/

    So, now about fs_game. Let's imagine, that I have a server with fs_game = "killtube". So, what I have here:
    cod2/killtube/ - original fs_game with all files
    cod2_1_0/killtube - link to the first one
    cod2_1_2/killtube - link to the first one
    cod2_1_3/killtube - link to the first one
    So, if I wanna change all my servers, I just replace files once.

    And here I found getCvarFloat("shortversion"). Just forgot about it. So, IzNoGoD is right again and I'll delete my own cvar in next commit.


    And question to Killtube now: as I know, we use this to make our servers cracked. So, the question is: can we just turn it off with sv_cracked=0?
    Last edited by Lonsofore; 3rd May 2017 at 14:46.

  7. #17
    Brigadier General
    Join Date
    Dec 2012
    Posts
    1,012
    Thanks
    440
    Thanked 171 Times in 132 Posts
    Quote Originally Posted by Lonsofore View Post
    Let me show you my directories:
    cod2/main/1.0/ - all files from 1.0
    cod2/main/1.2/ - iw_15 from 1.2 and localized (I'm not sure about localized - IzNoGoD said something about it here)
    cod2/main/1.3/ - iw_15 from 1.3 (yea, it's different with 1.2) and localized
    cod2_1_0/main/ - here I linked cod2/main/1.0/
    cod2_1_2/main/ - here I linked cod2/main/1.0/ and cod2/main/1.2/
    cod2_1_3/main/ - here I linked cod2/main/1.0/ and cod2/main/1.3/

    So, now about fs_game. Let's imagine, that I have a server with fs_game = "killtube". So, what I have here:
    cod2/killtube/ - original fs_game with all files
    cod2_1_0/killtube - link to the first one
    cod2_1_2/killtube - link to the first one
    cod2_1_3/killtube - link to the first one
    So, if I wanna change all my servers, I just replace files once.

    And here I found getCvarFloat("shortversion"). Just forgot about it. So, IzNoGoD is right again and I'll delete my own cvar in next commit.


    And question to Killtube now: as I know, we use this to make our servers cracked. So, the question is: can we just turn it off with sv_cracked=0?
    Ah see I knew it wasn't just 1 folder. But as Izno said, no need for version checker. The binary will decide since it loads specific files.

    sv_cracked = 0 will turn it into a normal cracked server

  8. #18
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Update! :)

    Fixed almost all from this message.
    And also:
    + added dialog boxes
    + setup menu
    + now you can choose between lighttpd and apache2, when installing web server
    + torrent (now we can share main files each other! support it, please)
    + updated cod2_lnxded (thank you, Mitch)

    cod2_lnxded now:
    1.0: cod2_lnxded_1_0a
    1.2: cod2_lnxded_1_2c_patch_va_loc
    1.3: cod2_lnxded_1_3_patch_va_loc

    And some screenshots:
    Click image for larger version. 

Name:	42d96afebe4545f999f771314ff8b734[1].png 
Views:	70 
Size:	4.0 KB 
ID:	1341
    Click image for larger version. 

Name:	5ea65cb5f0aa478bbddd21aa27458945[1].png 
Views:	67 
Size:	8.3 KB 
ID:	1340
    Last edited by Lonsofore; 6th May 2017 at 22:19.

  9. The Following 3 Users Say Thank You to Lonsofore For This Useful Post:

    kung foo man (6th May 2017),voron00 (7th May 2017),YuriJurek (6th May 2017)

  10. #19
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Save over 1.5gig of disk space by replacing the localized_english 0-10 with this one file:localized_english_iw99.iwd

    You still gotto keep localized 11 though, but that's originally not part of 1.2 afaik. Doesn't hurt to include it though, fixes a tiny issue with the downloading message.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  11. The Following 3 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (7th May 2017),Lonsofore (7th May 2017),vesicant (9th April 2022)

  12. #20
    Private Lonsofore's Avatar
    Join Date
    Oct 2016
    Posts
    86
    Thanks
    82
    Thanked 38 Times in 25 Posts
    Quote Originally Posted by IzNoGoD View Post
    Save over 1.5gig of disk space by replacing the localized_english 0-10 with this one file:localized_english_iw99.iwd

    You still gotto keep localized 11 though, but that's originally not part of 1.2 afaik. Doesn't hurt to include it though, fixes a tiny issue with the downloading message.
    Wow, that's cool! Updated torrent and link with this file, thank you :)

Tags for this Thread

Posting Permissions

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