Spawning items on my dedicated server

I can't seem to get items to spawn on my dedicated server. I've added my ID to the adminlist file on my server. I've enabled devcommands, but it if type in say "spawn Coins 100" it tells me "spawn is not a valid command in this context."

I'm just trying to spawn in some food for me and my buddies so we don't have to waste time gathering ingredients. We all work and have limited time to play, so I figured that would save some time.

I could always go to my own, solo world and bring food back from there, but I'm just wondering if I can do it all on the dedicated server.
9:13 pm, January 8, 2023
blindoctor 0 comments 0 likes

blindoctor replied to Spawning items on my dedicated server January 8, 2023 @ 1:30:29 pm PST

Originally posted by avatar.zero:
Originally posted by blindoctor:

Thank you. Now to go down the rabbit hole of figuring out how to add this to the server.

For most of the devcommands, you only need it client-side. It only needs to be applied to the server for devcommands that deal with time/timing and raid events.

Though, yeah, reading the directions is always a good idea in general anyways.

So I've done a bit of research and still can't really figure out how to get it on the server. Is there a simple solution to doing that? I assume I download the file and drop it into a specific folder on the server?

EDIT: Would that also require putting BepInEx on the server?
3:13 am, January 9, 2023
0 comments 0 likes

"Fascinating!" replied to Spawning items on my dedicated server January 8, 2023 @ 3:20:52 pm PST

Copy the entire modded bepinex folder and paste it into the main Valheim dedicated server folder. When updates happen, copy and paste those in manually too.


into here:
\Valheim dedicated server\

so it becomes:
\Valheim dedicated server\BepInEx
3:13 am, January 9, 2023
0 comments 0 likes

avatar.zero replied to Spawning items on my dedicated server January 8, 2023 @ 6:15:32 pm PST

Originally posted by blindoctor:
EDIT: Would that also require putting BepInEx on the server?

Yes, BepinEx provides the framework that allows mods to patch into Unity-based games and servers (like Valheim) and is a prerequisite for most such mods.
3:13 am, January 9, 2023
0 comments 0 likes

avatar.zero replied to Spawning items on my dedicated server January 8, 2023 @ 12:23:56 pm PST

Devcommands do not work on dedicated servers, period, without a mod - it's only available for single-player or when acting as the host of a multiplayer map through the client. Adding someone to the admin list just means that they have the power to kick or ban other players, among a few other things.
9:13 pm, January 8, 2023
0 comments 0 likes

blindoctor replied to Spawning items on my dedicated server January 8, 2023 @ 12:27:04 pm PST

You said without a mod? If you don't mind me asking, which mod might help with this?
9:13 pm, January 8, 2023
0 comments 0 likes

avatar.zero replied to Spawning items on my dedicated server January 8, 2023 @ 12:31:52 pm PST

Originally posted by blindoctor:
You said without a mod? If you don't mind me asking, which mod might help with this?

Server devcommands[valheim.thunderstore.io]

Updated just a couple of weeks ago. Just remember that the game is still being worked on - any given mod could break on any given update and IG/CS has no responsibility on making sure they stay compatible.
9:13 pm, January 8, 2023
0 comments 0 likes

blindoctor replied to Spawning items on my dedicated server January 8, 2023 @ 12:43:35 pm PST

Originally posted by avatar.zero:
Originally posted by blindoctor:
You said without a mod? If you don't mind me asking, which mod might help with this?

Server devcommands[valheim.thunderstore.io]

Updated just a couple of weeks ago. Just remember that the game is still being worked on - any given mod could break on any given update and IG/CS has no responsibility on making sure they stay compatible.

Thank you. Now to go down the rabbit hole of figuring out how to add this to the server.
9:13 pm, January 8, 2023
0 comments 0 likes

avatar.zero replied to Spawning items on my dedicated server January 8, 2023 @ 12:47:40 pm PST

Originally posted by blindoctor:
Originally posted by avatar.zero:

Server devcommands[valheim.thunderstore.io]

Updated just a couple of weeks ago. Just remember that the game is still being worked on - any given mod could break on any given update and IG/CS has no responsibility on making sure they stay compatible.

Thank you. Now to go down the rabbit hole of figuring out how to add this to the server.

For most of the devcommands, you only need it client-side. It only needs to be applied to the server for devcommands that deal with time/timing and raid events.

Though, yeah, reading the directions is always a good idea in general anyways.
9:13 pm, January 8, 2023
0 comments 0 likes