Closed: New Console Commands

Need something opened in the core for your mod, or even help with research?
Post Reply
User avatar
Interkarma
Posts: 3881
Joined: Sun Mar 22, 2015 1:51 am

Closed: New Console Commands

Post by Interkarma » Mon Mar 21, 2016 11:24 pm

There are a few new console commands that would be great to have.

GroundMe - For those unfortunate occasions where player might fall through environment. This doesn't happen often in Daggerfall Unity, but can be forced easily by pushing run speed to 1000+ and going for a sprint. The GroundMe command should place the player back on the ground at their current world coordinates and scrub all falling damage. In dungeons and interiors, it's probably easiest just to teleport player back to entrance marker. All the workings for this already exist in code, they just needs to be linked to a console command.

UnstickMe - Some of Daggerfall's geometry is pretty bad. For example, there's a cave block with a plane from a lower level sticking up through the ground of a higher level. The player gets stuck on this one-sided geometry every damn time and it would be awesome to have a command just to move player forwards a unit without pushing them through a wall or getting stuck somewhere else. This one is a little harder as the workings don't presently exist in code.

NoClip - Disable player's CharacterController, collision, and other physics, allowing them to freely fly around level steering by mouse-look. Coupled with the existing god mode toggle, this would be useful for getting around during testing.

User avatar
LypyL
Posts: 514
Joined: Sun Mar 22, 2015 3:48 am

Re: New Console Commands

Post by LypyL » Tue Mar 22, 2016 11:02 pm

I just added a new command that I had already been working on (it's adapted from the teleportation method from the Daggerfall Jet used in the demo...)

I could add the noclip changes I had before - they're hacky though :lol:
scrub all falling damage
How would you recommend accomplishing this?

User avatar
Interkarma
Posts: 3881
Joined: Sun Mar 22, 2015 1:51 am

Re: New Console Commands

Post by Interkarma » Wed Mar 23, 2016 1:15 am

LypyL wrote:I just added a new command that I had already been working on (it's adapted from the teleportation method from the Daggerfall Jet used in the demo...)
Awesome thank you! That will help out with the stuck issue.
LypyL wrote: I could add the noclip changes I had before - they're hacky though :lol:
All good, we can look at this later. None of the Odd Jobs are high priority stuff at the moment. :)
LypyL wrote:
scrub all falling damage
How would you recommend accomplishing this?
After grounding player, need to clear 'falling' bool in PlayerMotor. That's not currently exposed but a handy CancelFallingDamage() method or similar can do the job. Might also need to reset fallDistance to 0 and fallStartLevel to current transform.position.y. Happy to help if you would like to take this one on. :)

User avatar
LypyL
Posts: 514
Joined: Sun Mar 22, 2015 3:48 am

Re: New Console Commands

Post by LypyL » Wed Mar 23, 2016 11:13 pm

Interkarma wrote: After grounding player, need to clear 'falling' bool in PlayerMotor. That's not currently exposed but a handy CancelFallingDamage() method or similar can do the job. Might also need to reset fallDistance to 0 and fallStartLevel to current transform.position.y. Happy to help if you would like to take this one on. :)
Yeah I can take care of it, I just wasn't sure if you had a way of doing it that I missed, which wouldn't be the first time! ;)

User avatar
MasonFace
Posts: 102
Joined: Tue Nov 27, 2018 7:28 pm
Contact:

Re: Closed: New Console Commands

Post by MasonFace » Thu Jan 24, 2019 7:10 pm

Although this thread is closed, I thought of a couple of new console commands that would be handy to have if possible:

getTargetTextureID - Returns the name of the texture that that player is looking at.

getModelID - - Same as the above but for meshes.

screenshot - Self-explanatory, but it saves a screenshot to some folder.

I apologize if these commands already exist and I have somehow overlooked them.

User avatar
Hazelnut
Posts: 1128
Joined: Sat Aug 26, 2017 2:46 pm
Contact:

Re: Closed: New Console Commands

Post by Hazelnut » Thu Jan 24, 2019 7:25 pm

MasonFace wrote:
Thu Jan 24, 2019 7:10 pm
Although this thread is closed, I thought of a couple of new console commands that would be handy to have if possible:

getTargetTextureID - Returns the name of the texture that that player is looking at.

getModelID - - Same as the above but for meshes.

screenshot - Self-explanatory, but it saves a screenshot to some folder.

I apologize if these commands already exist and I have somehow overlooked them.
FYI, to get model ID you can currently check the log - click on any model and it will print the id in the log that looks like this:

Code: Select all

DaggerfallMesh [ID=41109] (UnityEngine.Transform)
Unless it's been combined into a large model, then the individual model ID is not availiable.

BansheeXYZ
Posts: 193
Joined: Fri Oct 23, 2015 8:19 pm

Re: Closed: New Console Commands

Post by BansheeXYZ » Sun Feb 17, 2019 9:09 am

I'd like to request a few console commands. Sometimes people report issues in a dungeon without posting a save (or we see them in a video playthrough). Need a way to get there.

RevealDungeons - reveals all dungeons on the world map and their interiors.
Tele2Floor - teleport to any floor tile in a dungeon by left-clicking it in the map viewer.

Post Reply