brianmiller / phvalheim-server

PhValheim backend server
GNU General Public License v2.0
28 stars 5 forks source link

Feature Enhancement: Make the defaultSeed appear in the world editor input field #6

Closed brianmiller closed 1 year ago

brianmiller commented 1 year ago

If a seed isn't provided during world creation, PhValheim uses the defaultSeed passed to the container on start.

We need to improve this to auto-populate the defaultSeed value in the HTML field and erase onClick, allowing you to enter the desired seed.

Z0ink5 commented 1 year ago

Good idea! I forget that it's actually using the pre-filled default seed if left blank. Either pre-fill the default seed or just have a description close by that says "If blank, default seed will be used" etc.

brianmiller commented 1 year ago

phvalheim-server >=2.5 now incorporates a bit of jquery/js to populate the "Seed" input text box on the new_world.php page. The textbox will now display the defaultSeed on first load and clear on first click. Subsequent clicks will not erase the text area.

Commit https://github.com/brianmiller/phvalheim-server/commit/8771f15ec91a862b66611cd5745b6b2c16b40a2e resolves this issue.