Torchmodders
Mod Projects => Help Wanted => Topic started by: Ings on July 07, 2018, 04:42:54 pm
-
So i made this mod https://steamcommunity.com/sharedfiles/filedetails/?id=1434575268
but its not working apparently. I run the game and add or remove mods to reset the maps and make new map scrolls load but the affixes are the same as the vanilla game.
All i did was edit the affixes from GUTS, i only changed the values :'(.
Also ther are no conflicting mods
-
Hey Ings. So the mod adds map scrolls? To some vendors? Why did u need to fiddle with affixes then?
Put another way: can u describe what u were going for, which files u worked with and what changes u made to them.
-
My goal was to change the value of the mapscrolls affixes.
I went to Media, affixes, levels, and modified the files. For example:
[AFFIX]
<STRING>NAME:MAP_PLAYER_EXP_BONUS_5
<INTEGER>RANK:0
<INTEGER>MIN_SPAWN_RANGE:0
<INTEGER>MAX_SPAWN_RANGE:999
<FLOAT>DURATION:0
<INTEGER>WEIGHT:0
<INTEGER>SLOTS_OCCUPY:0
[EFFECT]
<STRING>NAME:map_exp_5
<STRING>ACTIVATION:PASSIVE
<STRING>TYPE:XP GAIN BONUS
<BOOL>EXCLUSIVE:true
<FLOAT>MIN:5
<FLOAT>MAX:100
[/EFFECT]
[/AFFIX]
Originally MIN was set to 20 and MAX too.
The only thing i changed were those values, in every file of this folder
-
Hmmm ok. Ive never worked with level affixes before...
How are these affixes called? Like damage affixes are called from within skill DAT files - how about these? I guess the map calls them when it loads, but from which file and using what line of code, bcos there may be other settings affecting what ur trying to do...
-
I think i found it. In the code i posted previously, see how it calls effect type? In this case the type is "XP GAIN BONUS". So i went to Media, and found EFFECTSLIST.DAT. There found the effect called:
[EFFECT]
<STRING>EFFECT:KEFFECT_TYPE_XP_GAIN_BONUS
<STRING>NAME:XP GAIN BONUS
<TRANSLATE>GOODDES:[VALUE]% increase in the amount of experience gained
<TRANSLATE>GOODDESOT:[VALUE]% increase in the amount of experience gained for [DURATION]
<TRANSLATE>BADDES:[VALUE]% decrease in the amount of experience gained
<TRANSLATE>BADDESOT:[VALUE]% decrease in the amount of experience gained [DURATION]
<INTEGER>MINVAL:-100
<INTEGER>MAXVAL:100
<STRING>VALUE1:MIN
<STRING>VALUE2:MAX
<STRING>VALUE3:NA
<STRING>VALUE4:NA
<STRING>VALUE5:NA
<STRING>TYPE:Value
<INTEGER>DISPLAYPRECISION:0
<FLOAT>DISPLAYPRECISIONMAXVAL:0
<BOOL>AFFIX_MODIFIES:true
[/EFFECT]
Maybe i have to set DISPLAYPRECISION to 1, so it shows the correct values on the map scrolls instead of the default values? idk what else it could be
-
Wow ???. I think i found the answer randomly. I was going through old posts when i found this https://torchmodders.com/forums/guts-editor/variable-affix-ranges-on-unique-items/
He has a similar problem to me. I'll try with graphs
-
So i went again to Media, affixes, levels, and modified the affixes like this
[AFFIX]
<STRING>NAME:MAP_PLAYER_EXP_BONUS_5
<INTEGER>RANK:1
<INTEGER>MIN_SPAWN_RANGE:0
<INTEGER>MAX_SPAWN_RANGE:999
<FLOAT>DURATION:0
<INTEGER>WEIGHT:0
<INTEGER>SLOTS_OCCUPY:0
[EFFECT]
<STRING>NAME:map_exp_5
<STRING>ACTIVATION:PASSIVE
<STRING>TYPE:XP GAIN BONUS
<STRING>GRAPHOVERRIDE:PERCENT
<BOOL>EXCLUSIVE:true
<FLOAT>MIN:5
<FLOAT>MAX:80
[/EFFECT]
[/AFFIX]
the graph is like this
[LINE]
<STRING>NAME:Percent
<BOOL>CURVED:false
<STRING>DATATYPE:LINE
[POINT]
<FLOAT>X:1
<FLOAT>Y:100
[/POINT]
[POINT]
<FLOAT>X:2
<FLOAT>Y:100
[/POINT]
[POINT]
<FLOAT>X:3
<FLOAT>Y:100And so on
But the result were different than i expected: (http://oi67.tinypic.com/24gr809.jpg)
Im going to keep working on it
-
Soo yeah i did it, i didnt need to use graphs.
I re-published the mod. here it is https://steamcommunity.com/sharedfiles/filedetails/?id=1436649904 (https://steamcommunity.com/sharedfiles/filedetails/?id=1436649904)