Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Regarding the use of console commands#1578

Answeredbykagikn
lucienlmy asked this question inQ&A
Discussion options

I have a question about how to use Start(filename) and Abort(filename). For example, if I have abc.dll in my scripts folder and I need to load it, I use Start(abc.dll), but it actually has no effect.So what format should I use to load the script?

You must be logged in to vote
Answered by kagiknJul 7, 2025

You should use the format likeStart("abd.dll") andStart("abd.cs"). You pass the full file name to that command, but.dll will be assumed if the passed string doesn't have the file extension. For.cs and.vb scripts, the file extension part is mandatory to specify. You can use both absolute and relative paths. So when you want to start the script with the pathscripts\abc\def.dll (assuming the script folder to load is namedscripts), you can start it withStart("abc\def.dll").

Replies: 1 comment 2 replies

Comment options

You should be able to start a script with theStart(string) command if the script to load isn't loaded after the initial startup or the last full domain reload. However, you can't really reload scripts that's already loaded with the same paths but different content without entirely reloading the domain with theReload() command or a reload keybind. That's because we have to use the sameAppDomain inorder to keep existing script compatibilities for scripts built against v3 and v2 APIs.

I must ask this, how to reproduceliterally no effect by executing theStart(string) command? I'm asking it because I want to know how that command behaves.
I can reproduce a entire process crash by calling that command with a file name that's already loaded after the initial startup or the last full domain reload (e.g. auto-loadabc.dll, callAbort("abc.dll"), and thenStart("abc.dll"). However, I don't consider things that crashes the entire process literally no effect, and I'll acculately say like "Start(string) crashes the game".

You must be logged in to vote
2 replies
@lucienlmy
Comment options

You should be able to start a script with theStart(string) command if the script to load isn't loaded after the initial startup or the last full domain reload. However, you can't really reload scripts that's already loaded with the same paths but different content without entirely reloading the domain with theReload() command or a reload keybind. That's because we have to use the sameAppDomain inorder to keep existing script compatibilities for scripts built against v3 and v2 APIs.

I must ask this, how to reproduceliterally no effect by executing theStart(string) command? I'm asking it because I want to know how that command behaves. I can reproduce a entire process crash by calling that command with a file name that's already loaded after the initial startup or the last full domain reload (e.g. auto-loadabc.dll, callAbort("abc.dll"), 和 thenStart("abc.dll"). However, I don't consider things that crashes the entire process literally no effect, 和 I'll acculately say like "Start(string) crashes the game".

Yes, directly using Start(string) after automatically loading abd.dll crashes the game. When I used Start(abd.dll) without loading abd.dll, the script wouldn't load. For example: Start("abd") or Start(abd.dll) or Start("abd.dll"), which format should be used? I found through testing that the "" symbols must be added, the dll doesn't need to be entered, and using Start("PlayCutsceneV") is effective.

@kagikn
Comment options

You should use the format likeStart("abd.dll") andStart("abd.cs"). You pass the full file name to that command, but.dll will be assumed if the passed string doesn't have the file extension. For.cs and.vb scripts, the file extension part is mandatory to specify. You can use both absolute and relative paths. So when you want to start the script with the pathscripts\abc\def.dll (assuming the script folder to load is namedscripts), you can start it withStart("abc\def.dll").

Answer selected bylucienlmy
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@lucienlmy@kagikn

[8]ページ先頭

©2009-2025 Movatter.jp