Publish a place¶
Publishing uploads a place and the assets it uses to Luduvo, so players can join it. Until you publish, the place, its scripts and its imported meshes, textures and sounds exist only in the project folder on your computer.
Before you publish¶
- Test the place with Play, and with two or more players in the number box next to it, to check what each player sees. See Getting started.
- Stop any Play or Run session. Studio publishes the place you are editing, not a running test.
- Keep exactly one platform Menu in the place, unchanged. The publish dialog checks this and offers a fix:
- With no Menu, it says
Cannot publish: the place has no Menu.Click Add Menu, or add it with Home > Add > Platform > Menu. - With more than one, delete the extra copies.
- With a changed Menu, click Reset Menu, or select the Menu in the Outliner and choose Reset to Default.
- With the Menu inside an entity whose
Visibleis off, turnVisibleon or move the Menu out.
- With no Menu, it says
- Put server secrets, such as admin lists or reward rules, in
.server.luaumodules. Players download every plain.luaumodule and can read it; see Sharing code with require.
Publish a new place¶
- Choose File > Publish to Luduvo.... Studio asks you to sign in if you have not.
- If you own or manage places for any groups, select Personal or a group on the left.
- Open the New Place tab.
- Enter a Title of up to 100 characters and, if you like, a Description.
- To give the place a thumbnail, click Choose Image... under Thumbnail.
- Click Publish.
The dialog shows the upload progress and then Published "<title>" (#<id>). Studio stores the place ID in the project.
Update a published place¶
- Choose File > Publish to Luduvo.... If the project already has a place ID, Studio opens the Existing tab and selects its owner and place automatically; if that is the place you want, skip to step 3.
- If you own or manage places for any groups, select Personal or a group on the left. Open the Existing tab and select the place in the list.
- To replace the place's thumbnail, expand Replace thumbnail and click Choose Image....
- Click Publish.
Every publish adds a version to the place. Expand Version history to see each version with its number, date and size.
To go back to an earlier version, select the place, expand Version history, select the version and click Roll Back. After you confirm, that version becomes the live world again.
Which servers get an update¶
A game server downloads the live version of the place when it starts and runs that version until it shuts down. Servers that are already running keep the version they started with, and servers that start after you publish run the new version.
How assets are uploaded¶
Studio collects every mesh, texture, sound and animation that the place uses and asks Luduvo which of them it already has. It uploads only the missing files, and the dialog shows Uploading N of M. Studio records the server ID of each uploaded file in the project, even when the publish fails or you cancel it, so the next publish skips files that already went up.
Moderation reviews uploaded files:
- A file that moderation refused before it got a server ID stops the publish with
Moderation refused <file>. Remove it from the place before you publish. - An asset that already has a server ID and was refused later does not stop the publish. Players see nothing where the place uses it, and Output warns with the file name and selects the entities that use it.
Publish from the command bar¶
The command bar in the Output panel runs file.publish. With no argument it opens the publish dialog; with one, it publishes without the dialog:
file.publish <place id>publishes to that place.file.publish <title>publishes a new personal place with that title.