Jump to content

c_spawn won't work will ur world include cave


KAMIQSY
  • Closed

c_spawn won't work will ur world include cave

bug rebuild step

1. build a new world and set cave on

2.c_spawn anything u want

3.the thing u want will show on map, but cant pick up

 


Steps to Reproduce
bug rebuild step 1. build a new world and set cave on 2.c_spawn anything u want 3.the thing u want will show on map, but cant pick up



User Feedback


@KAMIQSY, welcome to the forums.

The difference between hosting a single-level (forest only) world and multi-level (forest and caves) world is that in single-level world you are the server, so the debug console is indeed running on server, thus c_spawn works as expected.
When hosting a multi-level world, due to technical limitations, two server processes are started in the background, one for each level. You become the client of (one of) them, so the debug console runs on your client, not on the server, thus c_spawn runs on your end, not on the server, so the entity spawned can not be interacted with.

Based on your description, you ran the command in the client mode and it worked as expected, i.e. the entity couldn't be interacted with.

If you are an admin of the server (and in this case you are, since you are hosting the world), pressing CTRL in the debug console screen will switch between local client mode and remote server mode. A text will show up indicating which mode it is currently in. Make sure it says Remote when you intend to run the command remotely on the server.
 

Share this comment


Link to comment
Share on other sites

problem is if I use those command in Remote mode, there is only graphic show on the map, but cant use or pick up...

 

@Muche

thx for u reply, but am still looking for more help

 

Edited by KAMIQSY

Share this comment


Link to comment
Share on other sites

@KAMIQSY, that's weird.

What prefab are trying to spawn? Does this happen with only one prefab or all of them?

Does the Remote mode toggle when pressing CTRL? When pasting command into the debug console via CTRL+V it will toggle, so one has to make sure it is correct when submitting the command.

Does the client log say it sent the command and server log it received the command?
Does sending something simple, like print("My test print"), print it correctly in the server log?

Edited by Muche

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...