forked from cleolibrary/CLEO4
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actual Mod Loader support #143
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MiranDMC
force-pushed
the
modl_loader_updates
branch
2 times, most recently
from
June 8, 2024 08:53
2d4acea
to
9575a5e
Compare
MiranDMC
force-pushed
the
modl_loader_updates
branch
8 times, most recently
from
June 14, 2024 17:18
0e32fb8
to
ba4d7bc
Compare
MiranDMC
force-pushed
the
modl_loader_updates
branch
2 times, most recently
from
June 17, 2024 07:33
1434dae
to
ffb6155
Compare
MiranDMC
force-pushed
the
modl_loader_updates
branch
2 times, most recently
from
June 28, 2024 14:51
a80c2b5
to
00df963
Compare
Script for testing: {$CLEO .cs}
nop
script_name "ml_test"
const dirpath = "cleo\test"
//const filepath = "cleo\ml_test.ini"
const filepath = "cleo\test\ml.ini"
add_text_label 'MLT' "ModLoader Tests:~n~1: file exists?~n~2: write ini~n~3: read ini~n~4: file delete~n~5: dir exists?~n~6: dir create~n~7: dir delete"
int i, j
while true
wait 0
if
not is_help_message_being_displayed
then
print_help_forever {key} 'MLT'
end
if
test_cheat "1"
then
if
does_file_exist {path} filepath
then
print_formatted_now {format} "does_file_exist '%s'~n~%s" {time} 100000 {args} filepath "true"
else
print_formatted_now {format} "does_file_exist '%s'~n~%s" {time} 100000 {args} filepath "false"
end
end
if
test_cheat "2"
then
i = get_game_timer
if
write_int_to_ini_file {value} i {path} filepath {section} "section" {key} "key"
then
print_formatted_now {format} "write_int_to_ini_file '%s'~n~%s : %d" {time} 100000 {args} filepath "ok" i
else
print_formatted_now {format} "write_int_to_ini_file '%s'~n~%s" {time} 100000 {args} filepath "failed"
end
end
if
test_cheat "3"
then
if
i = read_int_from_ini_file {path} filepath {section} "section" {key} "key"
then
print_formatted_now {format} "read_int_from_ini_file '%s'~n~%s : %d" {time} 100000 {args} filepath "ok" i
else
print_formatted_now {format} "read_int_from_ini_file '%s'~n~%s" {time} 100000 {args} filepath "failed"
end
end
if
test_cheat "4"
then
if
delete_file {fileName} filepath
then
print_formatted_now {format} "delete_file '%s'~n~%s" {time} 100000 {args} filepath "ok"
else
print_formatted_now {format} "delete_file '%s'~n~%s" {time} 100000 {args} filepath "failed"
end
end
if
test_cheat "5"
then
if
does_directory_exist {path} dirpath
then
print_formatted_now {format} "does_directory_exist '%s'~n~%s" {time} 100000 {args} dirpath "true"
else
print_formatted_now {format} "does_directory_exist '%s'~n~%s" {time} 100000 {args} dirpath "false"
end
end
if
test_cheat "6"
then
if
create_directory {path} dirpath
then
print_formatted_now {format} "create_directory '%s'~n~%s" {time} 100000 {args} dirpath "true"
else
print_formatted_now {format} "create_directory '%s'~n~%s" {time} 100000 {args} dirpath "false"
end
end
if
test_cheat "7"
then
if
delete_directory {fileName} dirpath {recursive} true
then
print_formatted_now {format} "delete_directory '%s'~n~%s" {time} 100000 {args} dirpath "ok"
else
print_formatted_now {format} "delete_directory '%s'~n~%s" {time} 100000 {args} dirpath "failed"
end
end
end
terminate_this_custom_script |
MiranDMC
force-pushed
the
modl_loader_updates
branch
5 times, most recently
from
September 13, 2024 00:40
88fb245
to
d2613fd
Compare
This reverts commit 3f917f1.
Script's ResolvePath renamed to not be conffused with CLEO_ResolvePath
MiranDMC
force-pushed
the
modl_loader_updates
branch
from
September 16, 2024 04:28
d2613fd
to
a1eca8f
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CLEO plugins extension changed to
.cleo5
. Legacy plugins with old filetype will still be injected and supported in legacy way by MLCreated ModLoader plugin monitoring installed mods and providing useful exports for CLEO.
Changed legacy plugins load order to not overwrite new plugins.
Fixed game hanging on close, due to audio plugin hacks made by ModLoader.
Fixes #62, fixes #141, fixes #186