Skip to content

Commit

Permalink
Merge pull request #4 from TheSudoYT/fix/INI-Settings-fix
Browse files Browse the repository at this point in the history
fix(game settings): Fixed an issue preventing PalWorldSettings.ini va…
  • Loading branch information
Josh-Tracy authored Jan 30, 2024
2 parents 5e3223b + 4be07ed commit c7737af
Showing 1 changed file with 1 addition and 62 deletions.
63 changes: 1 addition & 62 deletions modules/compute/templates/user_data_script.sh.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -70,68 +70,7 @@ if [[ ${use_custom_palworldsettings} == "false" ]]; then
mkdir -p /palworld-server/Pal/Saved/Config/LinuxServer/
cat > /palworld-server/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini <<EOF
[/Script/Pal.PalGameWorldSettings]
OptionSettings=(Difficulty="${difficulty}",
DayTimeSpeedRate=${day_time_speed_rate},
NightTimeSpeedRate=${night_time_speed_rate},
ExpRate=${exp_rate},
PalCaptureRate=${pal_capture_rate},
PalSpawnNumRate=${pal_spawn_num_rate},
PalDamageRateAttack=${pal_damage_rate_attack},
PalDamageRateDefense=${pal_damage_rate_defense},
PlayerDamageRateAttack=${player_damage_rate_attack},
PlayerDamageRateDefense=${player_damage_rate_defense},
PlayerStomachDecreaceRate=${player_stomach_decrease_rate},
PlayerStaminaDecreaceRate=${player_stamina_decrease_rate},
PlayerAutoHPRegeneRate=${player_auto_hp_regen_rate},
PlayerAutoHpRegeneRateInSleep=${player_auto_hp_regen_rate_in_sleep},
PalStomachDecreaceRate=${pal_stomach_decrease_rate},
PalStaminaDecreaceRate=${pal_stamina_decrease_rate},
PalAutoHPRegeneRate=${pal_auto_hp_regen_rate},
PalAutoHpRegeneRateInSleep=${pal_auto_hp_regene_rate_in_sleep},
BuildObjectDamageRate=${build_object_damage_rate},
BuildObjectDeteriorationDamageRate=${build_object_deterioration_damage_rate},
CollectionDropRate=${collection_drop_rate},
CollectionObjectHpRate=${collection_object_hp_rate},
CollectionObjectRespawnSpeedRate=${collection_object_respawn_speed_rate},
EnemyDropItemRate=${enemy_drop_item_rate},
DeathPenalty=${death_penalty},
bEnablePlayerToPlayerDamage=${enable_player_to_player_damage},
bEnableFriendlyFire=${enable_friendly_fire},
bEnableInvaderEnemy=${enable_invader_enemy},
bActiveUNKO=${active_unko},
bEnableAimAssistPad=${enable_aim_assist_pad},
bEnableAimAssistKeyboard=${enable_aim_assist_keyboard},
DropItemMaxNum=${drop_item_max_num},
DropItemMaxNum_UNKO=${drop_item_max_num_unko},
BaseCampMaxNum=${base_camp_max_num},
BaseCampWorkerMaxNum=${base_camp_worker_max_num},
DropItemAliveMaxHours=${drop_item_alive_max_hours},
bAutoResetGuildNoOnlinePlayers=${auto_reset_guild_no_online_players},
AutoResetGuildTimeNoOnlinePlayers=${auto_reset_guild_time_no_online_players},
GuildPlayerMaxNum=${guild_player_max_num},
PalEggDefaultHatchingTime=${pal_egg_default_hatching_time},
WorkSpeedRate=${work_speed_rate},
bIsMultiplay=${is_multiplay},
bIsPvP=${is_pvp},
bCanPickupOtherGuildDeathPenaltyDrop=${can_pickup_other_guild_death_penalty_drop},
bEnableNonLoginPenalty=${enable_non_login_penalty},
bEnableFastTravel=${enable_fast_travel},
bIsStartLocationSelectByMap=${is_start_location_select_by_map},
bExistPlayerAfterLogout=${exist_player_after_logout},
bEnableDefenseOtherGuildPlayer=${enable_defense_other_guild_player},
CoopPlayerMaxNum=${coop_player_max_num},
ServerPlayerMaxNum=${server_player_max_num},
ServerName="${server_name}",
ServerDescription="${server_description}",
AdminPassword="${admin_password}",
ServerPassword="${server_password}",
PublicPort=${public_port},
PublicIP="${public_ip}",
RCONEnabled=${enable_rcon},
RCONPort=${rcon_port},
Region="${region}",
bUseAuth=${use_auth},
BanListURL="${ban_list_url}")
OptionSettings=(Difficulty=${difficulty},DayTimeSpeedRate=${day_time_speed_rate},NightTimeSpeedRate=${night_time_speed_rate},ExpRate=${exp_rate},PalCaptureRate=${pal_capture_rate},PalSpawnNumRate=${pal_spawn_num_rate},PalDamageRateAttack=${pal_damage_rate_attack},PalDamageRateDefense=${pal_damage_rate_defense},PlayerDamageRateAttack=${player_damage_rate_attack},PlayerDamageRateDefense=${player_damage_rate_defense},PlayerStomachDecreaceRate=${player_stomach_decrease_rate},PlayerStaminaDecreaceRate=${player_stamina_decrease_rate},PlayerAutoHPRegeneRate=${player_auto_hp_regen_rate},PlayerAutoHpRegeneRateInSleep=${player_auto_hp_regen_rate_in_sleep},PalStomachDecreaceRate=${pal_stomach_decrease_rate},PalStaminaDecreaceRate=${pal_stamina_decrease_rate},PalAutoHPRegeneRate=${pal_auto_hp_regen_rate},PalAutoHpRegeneRateInSleep=${pal_auto_hp_regene_rate_in_sleep},BuildObjectDamageRate=${build_object_damage_rate},BuildObjectDeteriorationDamageRate=${build_object_deterioration_damage_rate},CollectionDropRate=${collection_drop_rate},CollectionObjectHpRate=${collection_object_hp_rate},CollectionObjectRespawnSpeedRate=${collection_object_respawn_speed_rate},EnemyDropItemRate=${enemy_drop_item_rate},DeathPenalty=${death_penalty},bEnablePlayerToPlayerDamage=${enable_player_to_player_damage},bEnableFriendlyFire=${enable_friendly_fire},bEnableInvaderEnemy=${enable_invader_enemy},bActiveUNKO=${active_unko},bEnableAimAssistPad=${enable_aim_assist_pad},bEnableAimAssistKeyboard=${enable_aim_assist_keyboard},DropItemMaxNum=${drop_item_max_num},DropItemMaxNum_UNKO=${drop_item_max_num_unko},BaseCampMaxNum=${base_camp_max_num},BaseCampWorkerMaxNum=${base_camp_worker_max_num},DropItemAliveMaxHours=${drop_item_alive_max_hours},bAutoResetGuildNoOnlinePlayers=${auto_reset_guild_no_online_players},AutoResetGuildTimeNoOnlinePlayers=${auto_reset_guild_time_no_online_players},GuildPlayerMaxNum=${guild_player_max_num},PalEggDefaultHatchingTime=${pal_egg_default_hatching_time},WorkSpeedRate=${work_speed_rate},bIsMultiplay=${is_multiplay},bIsPvP=${is_pvp},bCanPickupOtherGuildDeathPenaltyDrop=${can_pickup_other_guild_death_penalty_drop},bEnableNonLoginPenalty=${enable_non_login_penalty},bEnableFastTravel=${enable_fast_travel},bIsStartLocationSelectByMap=${is_start_location_select_by_map},bExistPlayerAfterLogout=${exist_player_after_logout},bEnableDefenseOtherGuildPlayer=${enable_defense_other_guild_player},CoopPlayerMaxNum=${coop_player_max_num},ServerPlayerMaxNum=${server_player_max_num},ServerName="${server_name}",ServerDescription="${server_description}",%{ if admin_password != "" ~}AdminPassword="${admin_password}",%{ else ~}AdminPassword="",%{ endif ~}%{ if server_password != "" ~}ServerPassword="${server_password}",%{ else ~}ServerPassword="",%{ endif ~}PublicPort=${public_port},%{ if public_ip != "" ~}PublicIP="${public_ip}",%{ else ~}PublicIP="",%{ endif ~}RCONEnabled=${enable_rcon},%{ if rcon_port != "" ~}RCONPort=${rcon_port},%{ else ~}RCONPort="",%{ endif ~}%{ if region != "" ~}Region="${region}",%{ else ~}Region="",%{ endif ~}bUseAuth=${use_auth},BanListURL="${ban_list_url}")
EOF
fi

Expand Down

0 comments on commit c7737af

Please sign in to comment.