legoduded / palworld-worldoptions

A tool for creating WorldOption.sav and applying the PalWorldSettings.ini for dedicated servers
136 stars 14 forks source link

Error parsing #4

Closed xymeng16 closed 10 months ago

xymeng16 commented 10 months ago

Edited: I found where the bug is. I use "," in my ServerPassword and this will break the config.split(','). For now I just remove the "," and it works fine.

Thanks for this tools! But when I first try to use it. Some errors appeared:

Found settings
Found uesave
Error parsing
Something looks malformed in your config
Open a bug report with your config if issues persists

No more error info can be provided neither do I find any verbose output mode or debug information.

My PalWorldSettings.ini is pasted here:

; This configuration file is a sample of the default server settings.
; Changes to this file will NOT be reflected on the server.
; To change the server settings, modify Pal/Saved/Config/WindowsServer/PalWorldSettings.ini.
[/Script/Pal.PalGameWorldSettings]
OptionSettings=(Difficulty=None,DayTimeSpeedRate=1.000000,NightTimeSpeedRate=1.000000,ExpRate=3.000000,PalCaptureRate=3.000000,PalSpawnNumRate=2.000000,PalDamageRateAttack=0.400000,PalDamageRateDefense=1.500000,PlayerDamageRateAttack=2.000000,PlayerDamageRateDefense=0.100000,PlayerStomachDecreaceRate=0.400000,PlayerStaminaDecreaceRate=0.400000,PlayerAutoHPRegeneRate=2.000000,PlayerAutoHpRegeneRateInSleep=2.000000,PalStomachDecreaceRate=0.400000,PalStaminaDecreaceRate=0.400000,PalAutoHPRegeneRate=2.000000,PalAutoHpRegeneRateInSleep=2.000000,BuildObjectDamageRate=3.000000,BuildObjectDeteriorationDamageRate=3.000000,CollectionDropRate=3.000000,CollectionObjectHpRate=1.000000,CollectionObjectRespawnSpeedRate=3.000000,EnemyDropItemRate=3.000000,DeathPenalty=None,bEnablePlayerToPlayerDamage=False,bEnableFriendlyFire=False,bEnableInvaderEnemy=True,bActiveUNKO=False,bEnableAimAssistPad=True,bEnableAimAssistKeyboard=False,DropItemMaxNum=3000,DropItemMaxNum_UNKO=100,BaseCampMaxNum=128,BaseCampWorkerMaxNum=30,DropItemAliveMaxHours=1.000000,bAutoResetGuildNoOnlinePlayers=False,AutoResetGuildTimeNoOnlinePlayers=72.000000,GuildPlayerMaxNum=20,PalEggDefaultHatchingTime=0.100000,WorkSpeedRate=3.000000,bIsMultiplay=False,bIsPvP=False,bCanPickupOtherGuildDeathPenaltyDrop=False,bEnableNonLoginPenalty=True,bEnableFastTravel=True,bIsStartLocationSelectByMap=True,bExistPlayerAfterLogout=False,bEnableDefenseOtherGuildPlayer=False,CoopPlayerMaxNum=8,ServerPlayerMaxNum=16,ServerName="CDLDC Palworld",ServerDescription="",AdminPassword="pwd",ServerPassword="pwd",PublicPort=8211,PublicIP="",RCONEnabled=True,RCONPort=25575,Region="",bUseAuth=True,BanListURL="https://api.palworldgame.com/api/banlist.txt")

Thanks for your help!

legoduded commented 10 months ago

I improved the splitting of the values. Commas are supported in the string values now.