Jump to content

how to edit .ini code


Recommended Posts

Posted

Hi everyone, I'v been using and searching mods for some days, and i found that some of them are support {F10} to save settings, so i wonder if I can edit the .ini config to enable the save function of those old mod packs, I tried to compare though, but it is quiet difficult to understand the code language?

Plz share your thoughts?

Posted

In general: minazukis mods have all these changeable costumes per toggle button.

My mods are can all be set to a certain state, so that they stay the same even after refreshing with F10.

My mods might not have so many options to change on the fly, but I think its more than enough, and people should be able to decide on things.

Posted

My old mod require this for me update. 

 

I will explain how I do, but my english is not great and I am not great programming.

I will use my old goldfish mod as example:

keta.rar

 

 

 

you can start if you add something like this at top of ini

[Constants]
global $color = 0

 

then you find [Key] section

you can add this underneath $color= 0, 1, 2

for example

 

[KeyTest]
Key = x
type = cycle
$color= 0, 1, 2

 

when you press x then $color will change 0 to 1 to 2

Spoiler

if you want you can change as this


[KeyX1]
Key = no_modifiers x 1
back = no_modifiers z 1
type = cycle
$color= 0, 1, 2

 

when you press x + 1 then $color will increase

if you press z+1 it will decrease

 

Then you go to section where texture is replaced

where it say

ps0 =

ps1 =

ps2 =

 

example:

[TextureOverrideTop]
hash = 8d24e66e
match_first_index = 13065
ps-t0 = ResourceCurrentColorTop

 

here you can see it will replace ps-t0 with ResourceCurrentColorTop

go back to [key] section and you will see the command list [CommandList] 

run = CommandList1, CommandList2, CommandList3, CommandList4, CommandList5, CommandList6

[CommandList1]
ResourceCurrentColorTop = ResourceTopCyan
ResourceCurrentColorTail = ResourceTailCyan
ResourceCurrentColorRibbons = ResourceRibbonsCyan
ResourceCurrentColorFrills = ResourceFrillsCyan

[CommandList2]
ResourceCurrentColorTop = ResourceTopBlue
ResourceCurrentColorTail = ResourceTailBlue
ResourceCurrentColorRibbons = ResourceRibbonsBlue
ResourceCurrentColorFrills = ResourceFrillsBlue

Here you can see the original mod will replace ResourceCurrentColorTop with ResourceTopCyan, and then ResourceTopBlue when you cycle.

Then you can go back to the ps0 section

 

[TextureOverrideTop]
hash = 8d24e66e
match_first_index = 13065
ps-t0 = ResourceCurrentColorTop

and you can add 'if'

 

[TextureOverrideTop]
hash = 8d24e66e
match_first_index = 13065
if $color == 0
	ps-t0 = ResourceTopCyan
elif $color == 1
	ps-t0 = ResourceTopBlue
endif

Now when you cycle the $color it will change and save when f10.

when you add more you just add more

elif $color == 2

elif $color == 3

elif $color == etc...

 

Now just have to do for all other sections where Resource is replaced

afterwards, you can delete the [commandlist]s and run lines

 

This will also work to hide clothing

example

[Constants]
global $hide = 0

[KeyX2]
Key = no_modifiers x 2
type = cycle
$hide= 0, 1

[TextureOverrideTop]
hash = 8d24e66e
match_first_index = 13065
ps-t0 = ResourceCurrentColorTop
if $hide == 1
	handling = skip
endif

Anyway, this is how I do. I hope this information help you. I will eventually update all my old mod to make more simple and work better. If a smart modder see any thing wrong or add suggestion please tell, I am not good modder.

 

 

Also I did not test this if it work LOL so please tell me if it does not.

I think for this mod it is better if rewrite all of ini

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...