The Lost Cities

The Lost Cities

59M Downloads

Server generator options

Seth0067 opened this issue ยท 21 comments

commented

Can't seem to get a server up with a worldgen variant type (chisel, tallbuildings, realistic etc)

I added the string you mentionedin the description:
generator-options={"profile":"nodamage"}

When the server ruins, the server properties file is regenerated with an extra character:
generator-options={"profile":"nodamage"}

I'm assuming this may be the problem... ?

commented

Fortunately, this branch hasn't been closed yet. I came here for a solution. Tried "this and that".
These worked for me (the version is 1.12.2 forge):

generator-settings={"profile"\:"chisel"}
level-type=LOSTCITIES

@ubergarm, "BOP" means "Biomes O plenty". So it is redundant unless you have it.

Thanks everyone here. Your posts are very helpful!

commented

Also can you show me profile_mycustomprofile.cfg?

commented

What is your server.properties BEFORE the server starts? What are you putting there?

commented

My custom profile that I created (mashup of chisel + tall buildings) is not working for me due to the insertion of the slash before the colon in the generator-settings when the server starts; the generated lost-city uses the default profile instead.

modpack Direwolf20-1.12.2 v1.2.0

Seems to be related to #37

My server.properties (after the server starts):
generator-settings={"profile"\:"mycustomprofile"}

The profile_mycustomprofile.cfg is a copy of profile_chisel.cfg with some edits.

And the added profile in general.cfg:

    S:profiles <
        default
        nodamage
        rarecities
        onlycities
        tallbuildings
        safe
        ancient
        wasteland
        chisel
        atlantis
        realistic
        mycustomprofile
     >
commented

Yes,
I also have lostcities logging/debug enabled if you want it - see general.cfg below. I didn't see anything in the logs related server.properties or generator-settings (ctrl+f, did not read the whole log file) but let me know if you think it would help. Server is running Ubuntu 16.04.3 LTS, java 1.8.0_151.

Before (not running):
server.properties
generator-settings={"profile":"mycustomprofile"}

After (world load complete):
server.properties
generator-settings={"profile"\:"mycustomprofile"}

config/lostcities/profile_mycustomprofile.cfg: https://gist.github.com/jkirkpatrick/1a13cff3db293f06bba2859de19d1a0a

Workaround (custom profile works as expected):
server.properties
generator-settings=
config/lostcities/general.cfg
S:dimensionProfile=mycustomprofile

config/lostcities/general.cfg: https://gist.github.com/jkirkpatrick/d5cf56cfef06b57548ee92a36adc2bc6

commented

I'm having the same issue with the \ character introducing itself into my server.properties file. I have not created a custom profile. I've also not been able to get level-type={"lostcities_bop"} to function correctly either.

commented

Got the server to function properly. I'm not sure if this will fix others as well but fingers crossed it works for y'all. The field in server.properties named 'level-type' is case sensitive, so when I put in lostcities_bop as lowercase it never generated the proper world. All caps worked. I also didn't have to put in the {" "} around the LOSTCITIES_BOP.

The ' \ ' still appears in my generator-settings but it seems to work just fine after testing a few of the different profiles.

EDIT: Was just reading through the server.properties wiki entry here and for level-name it states, "Characters such as ' (apostrophe) may need to be escaped by adding a backslash before them." It sounds like that's what happening to our generator-settings field. The colon is a special character and so the game puts a backslash in front of it.

commented

I did try your solution but it didn't work or I messed it up.
Edit: I tried SpartanSamuel's solution again and it worked. I don't know what I changed but thank you anyways!

commented

Currently having the smae problem. I'll have the generation setting set to
generator-options={"profile":"lostcities_bop"}
but after I run my server it becomes
generator-options={"profile" \ :"lostcities_bop"} (there aren't any spaces between the \ and the " : )
Nothing in BOP or lost cities is generated in the world

commented

Read my most recent comment. It's my solution to the issue and I hope it works for you as well.

commented

It may have to do with keyboard layout and/or OS.
Like, for example, Enter is keycode 13, but some OS/keyboard combinations interpret that as "Linebreak, Carriage return", where as others just do "Carriage return" (which notepad doesn't know what to do with when it reads a file that was made in an OS where Enter just does the one character and not both; this results in the file just being on one continuous line when read by Windows Notepad).

It could be that Seth's ":" key has a hidden character associated with it, which the parser doesn't know how to handle and replaces with a "/"?

commented

What extra character? I don't see a difference?

commented

The character is an "(backslash)" betwen the "profile" and the ":"

I typed this in the message interface above, but when i update the comment, the character dissappears.

commented

here's a screen of the server.properties file so you can see the output. was trying to use the chisel profile for world gen.

image

commented

Ok that's strange. I know people have managed to do this so not sure what's wrong. That should work...

commented

Anyway - after more monkeying around with this in the AM, I created a new profile and mashed up a bunch of different parameters i'd been using from all of the current profiles and had the server pull this new one. I think its pulling correctly, but the server properties file still carries that backslash.

commented

I thought of the key/hidden character thing too, but when i cut and paste the value from the game description, run the server, and then open the server/properties file, the backslash character is still generated within the file.

commented

Updated to say that the server world created seems correct in terms of buildings and explosions, but I designated the worldStyle as "chisel" but I am not seeing chisel buildings generated (smooth concrete for highway, concrete block buildings, etc)

I've included a paste for the new "udk" config I made.

udk.cfg

commented

I'll check it out

commented

any clue as to why yet cause im getting this too on two different computers

edit
it changed it to generator-settings={profile:ancient} but works anyways

commented

Thanks for documenting your solution, @SpartanSamuel !
To get Lost Cities to generate on a new world on forge server I had to do the following:

  1. Install Biomes O Plenty (didn't work without it)
  2. Add these two lines to my server.properties file:
generator-settings={"profile"\:"chisel"}
level-type=LOSTCITIES_BOP

It would crash complaining about no biomes o plenty even if I used level type of LOSTCITIES

Anyway, works good now! Ship it!