0.86.0 • Published 2 years ago

@ianpants/project-zomboid-server v0.86.0

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

project-zomboid-construct

This will provide a project zomboid server runnning on EC2. Server configs will be generated at synth. If you provide a file under assets/mods.txt you can use a space seperated Modname:ModID format to list server mods. See the current mod list in this repo. This way they will be downloaded and managed at server start.

It is assumed you have a VPC and HostedZone to hook into.

The stack will provide the following:

  • The four needed config files, and a systemd unit file
    • Generated by template (coming soon, more config)
  • MultiPartUserData
    • Install system dependencies
    • Install game via steamcmd
    • Create cdk assets from the files generated at synth
      • Add file commands (including unzip of main files) to UserData
    • Write, enable, and start a systemd unit file on start-server.sh
  • A subdomain on the provided HostedZone (server name is your domain name, without a ".com")
  • Steam ingress rules
  • If provided, IP address whitelisting for a set of users (required until NLB is finished)
  • An EC2 instance using all above

Note: As of this commit access is provided by IP address ingress rules. This will remain until I finish the networking portion.

Config Props

Requires config interfaces for the infrastructue and game itself:


export interface InfraConfig {
  region: string,
  keyName: string;
  role: iam.IRole,
  subdomain?: string,
  vpc: ec2.IVpc,
  sg: ec2.ISecurityGroup,
  hz: r53.IHostedZone,
  vol: ec2.IVolume,
  instancetype?: string,
}

export interface GameConfig {
  distdir: string,
  servername?: string,
  modFile?: Buffer,
  public?: Boolean;
  fresh?: boolean,
}

modFile

You can provide a list of mods. Place a file called mods.txt in assets/ to load it. Otherwise the below modlist will be used. This file must be in a certain format (below) to be properly parsed. Currently this pacakge has the following mods.txt file embedded. If you want to change it. Mods are included in ther server.ini file:


2503622437 SkillRecoveryJournal
2667899942 VFExpansion1
2701170568 ExtraMapSymbols 
2701170568 ExtraMapSymbolsUI
1910606509 CookingTime
1911229825 LearningTime
2039234811 RelaxingTime
1926311864 ClearingTime
2244879881 ExploringTime
1105347046 PZGate
1510950729 FRUsedCars 
1510950729 FRUsedCarsNRN
2489148104 87cruiser
2441990998 89def110
2529746725 EasyConfigChucked
2458631365 ExpandedHelicopterEvents
2756615186 rx7fc
1299328280 ToadTraits
2686972114 DylansZombieLoot
2695471997 myclothinguimod
2711057211 CleanDirt
2699828474 RebalancedPropMoving
2169435993 modoptions
2619072426 TheStar
2734705913 MapSymbolSizeSlider
2392709985 tsarslib
2478768005 TMC_Trolley

Altogether after deploy a player would be able to use sub.example.com on port 16261 and 8766 as well as necessary ports for Steam.

0.85.0

2 years ago

0.81.0

2 years ago

0.83.0

2 years ago

0.78.0

2 years ago

0.76.0

2 years ago

0.86.0

2 years ago

0.80.0

2 years ago

0.82.0

2 years ago

0.77.0

2 years ago

0.79.0

2 years ago

0.74.0

2 years ago

0.72.0

2 years ago

0.73.0

2 years ago

0.75.0

2 years ago

0.62.0

2 years ago

0.64.0

2 years ago

0.60.0

2 years ago

0.59.0

2 years ago

0.57.0

2 years ago

0.55.0

2 years ago

0.53.0

2 years ago

0.51.0

2 years ago

0.70.0

2 years ago

0.67.0

2 years ago

0.69.0

2 years ago

0.63.0

2 years ago

0.65.0

2 years ago

0.61.0

2 years ago

0.58.0

2 years ago

0.56.0

2 years ago

0.54.0

2 years ago

0.52.0

2 years ago

0.50.0

2 years ago

0.71.0

2 years ago

0.66.0

2 years ago

0.68.0

2 years ago

0.49.0

2 years ago

0.48.0

2 years ago

0.47.0

2 years ago

0.46.0

2 years ago

0.45.0

2 years ago

0.42.0

2 years ago

0.41.0

2 years ago

0.40.0

2 years ago

0.39.0

2 years ago

0.38.0

2 years ago

0.37.0

2 years ago

0.36.0

2 years ago

0.35.0

2 years ago

0.34.0

2 years ago

0.33.0

2 years ago

0.32.0

2 years ago

0.31.0

2 years ago

0.30.0

2 years ago

0.29.0

2 years ago

0.28.0

2 years ago

0.27.0

2 years ago

0.26.0

2 years ago

0.25.0

2 years ago

0.24.0

2 years ago

0.23.0

2 years ago

0.19.0

2 years ago

0.18.0

2 years ago

0.17.0

2 years ago

0.16.0

2 years ago

0.15.0

2 years ago

0.14.0

2 years ago

0.13.0

2 years ago

0.12.0

2 years ago

0.11.0

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago