maps_edits

Create a mod on JustEmuTarkov

Why making my changes as a mod ?

By using a mod for your changes, it make it easier for you to manage your edits, and avoid any issue with base DB files. That's for this reason we recommend you to make it as mod, for not overwritting base files. It will avoid you to loose them when you upgrade your server too.

The main topic.

Well, modding is simple : Overwritting loaded files by the one you added to your mod without editing the default one located in ServerDir/db/.
For now, not everything can be "modded", only these things can : Items,Bots loadouts,Hideout files,Assorts,Traders,Weather,locales,scripting,maps,.
  • Create your mod folder, the name need to match like this : author-name-Version depending on what you put in the server.config.json.
  • In this mod folder, create a file called mod.config.json and put the following code in :
    1
    {
    2
    "name": "NameOfTheMod",
    3
    "author": "AuthorOfTheMod",
    4
    "license": "Do you use a license ?",
    5
    "version": "1.0.0",
    6
    "dependencies": {},
    7
    "res": {},
    8
    "src":{
    9
    "callback":{},
    10
    "classes":{},
    11
    "responses":{}
    12
    },
    13
    "db": {
    14
    "locales": {
    15
    "en": {
    16
    "handbook": {
    17
    "<itemid>": "db/locales/en/handbook/<itemid>.json"
    18
    }
    19
    }
    20
    },
    21
    "items": {},
    22
    "assort": {
    23
    "ragfair": {
    24
    "barter":{},
    25
    "items":{},
    26
    "level":{}
    27
    }
    28
    },
    29
    "maps": {
    30
    "bigmap": {
    31
    "bosses":{},
    32
    "entries":{},
    33
    "exits":{},
    34
    "loot":{
    35
    "dynamic":{
    36
    "lootIDFolder":{
    37
    "lootfileName":"path/to/.json";
    38
    }
    39
    },
    40
    "forced":{},
    41
    "static":{}
    42
    },
    43
    "waves":{}
    44
    },
    45
    "develop": {
    46
    "bosses":{},
    47
    "entries":{},
    48
    "exits":{},
    49
    "loot":{
    50
    "dynamic":{},
    51
    "forced":{},
    52
    "static":{}
    53
    },
    54
    "waves":{}
    55
    },
    56
    "factory4_day": {
    57
    "bosses":{},
    58
    "entries":{},
    59
    "exits":{},
    60
    "loot":{
    61
    "dynamic":{},
    62
    "forced":{},
    63
    "static":{}
    64
    },
    65
    "waves":{}
    66
    },
    67
    "factory4_night": {
    68
    "bosses":{},
    69
    "entries":{},
    70
    "exits":{},
    71
    "loot":{
    72
    "dynamic":{},
    73
    "forced":{},
    74
    "static":{}
    75
    },
    76
    "waves":{}
    77
    },
    78
    "interchange": {
    79
    "bosses":{},
    80
    "entries":{},
    81
    "exits":{},
    82
    "loot":{
    83
    "dynamic":{},
    84
    "forced":{},
    85
    "static":{}
    86
    },
    87
    "waves":{}
    88
    },
    89
    "laboratory": {
    90
    "bosses":{},
    91
    "entries":{},
    92
    "exits":{},
    93
    "loot":{
    94
    "dynamic":{},
    95
    "forced":{},
    96
    "static":{}
    97
    },
    98
    "waves":{}
    99
    },
    100
    "rezervbase": {
    101
    "bosses":{},
    102
    "entries":{},
    103
    "exits":{},
    104
    "loot":{
    105
    "dynamic":{},
    106
    "forced":{},
    107
    "static":{}
    108
    },
    109
    "waves":{}
    110
    },
    111
    "shoreline": {
    112
    "bosses":{},
    113
    "entries":{},
    114
    "exits":{},
    115
    "loot":{
    116
    "dynamic":{},
    117
    "forced":{},
    118
    "static":{}
    119
    },
    120
    "waves":{}
    121
    },
    122
    "woods": {
    123
    "bosses":{},
    124
    "entries":{},
    125
    "exits":{},
    126
    "loot":{
    127
    "dynamic":{},
    128
    "forced":{},
    129
    "static":{}
    130
    },
    131
    "waves":{}
    132
    }
    133
    },
    134
    "traders": {},
    135
    "hideout": {
    136
    "areas": {
    137
    "NameOfTheFile": "db/path/to/the/file/it/should/be/the/same/as/the/db/folder/according/to/the/part/you/mod.json"
    138
    },
    139
    "production": {
    140
    "NameOfTheFile": "db/path/to/the/file/it/should/be/the/same/as/the/db/folder/according/to/the/part/you/mod.json"
    141
    },
    142
    "scavcase": {
    143
    "NameOfTheFile": "db/path/to/the/file/it/should/be/the/same/as/the/db/folder/according/to/the/part/you/mod.json"
    144
    }
    145
    },
    146
    "weather":{},
    147
    "bots": {
    148
    "bear": {
    149
    "appearance": {
    150
    "body": {},
    151
    "feet": {},
    152
    "hands": {},
    153
    "head": {},
    154
    "voice": {}
    155
    },
    156
    "experience": {},
    157
    "health": {},
    158
    "inventory": {},
    159
    "names": {}
    160
    },
    161
    "usec": {
    162
    "appearance": {
    163
    "body": {},
    164
    "feet": {},
    165
    "hands": {},
    166
    "head": {},
    167
    "voice": {}
    168
    },
    169
    "experience": {},
    170
    "health": {},
    171
    "inventory": {},
    172
    "names": {}
    173
    },
    174
    "assault": {
    175
    "appearance": {
    176
    "body": {},
    177
    "feet": {},
    178
    "hands": {},
    179
    "head": {},
    180
    "voice": {}
    181
    },
    182
    "experience": {},
    183
    "health": {},
    184
    "inventory": {},
    185
    "names": {}
    186
    },
    187
    "bossbully": {
    188
    "appearance": {
    189
    "body": {},
    190
    "feet": {},
    191
    "hands": {},
    192
    "head": {},
    193
    "voice": {}
    194
    },
    195
    "experience": {},
    196
    "health": {},
    197
    "inventory": {},
    198
    "names": {}
    199
    },
    200
    "bossgluhar": {
    201
    "appearance": {
    202
    "body": {},
    203
    "feet": {},
    204
    "hands": {},
    205
    "head": {},
    206
    "voice": {}
    207
    },
    208
    "experience": {},
    209
    "health": {},
    210
    "inventory": {},
    211
    "names": {}
    212
    },
    213
    "bosskilla": {
    214
    "appearance": {
    215
    "body": {},
    216
    "feet": {},
    217
    "hands": {},
    218
    "head": {},
    219
    "voice": {}
    220
    },
    221
    "experience": {},
    222
    "health": {},
    223
    "inventory": {},
    224
    "names": {}
    225
    },
    226
    "bosskojaniy": {
    227
    "appearance": {
    228
    "body": {},
    229
    "feet": {},
    230
    "hands": {},
    231
    "head": {},
    232
    "voice": {}
    233
    },
    234
    "experience": {},
    235
    "health": {},
    236
    "inventory": {},
    237
    "names": {}
    238
    },
    239
    "followerbully": {
    240
    "appearance": {
    241
    "body": {},
    242
    "feet": {},
    243
    "hands": {},
    244
    "head": {},
    245
    "voice": {}
    246
    },
    247
    "experience": {},
    248
    "health": {},
    249
    "inventory": {},
    250
    "names": {}
    251
    },
    252
    "followergluharassault": {
    253
    "appearance": {
    254
    "body": {},
    255
    "feet": {},
    256
    "hands": {},
    257
    "head": {},
    258
    "voice": {}
    259
    },
    260
    "experience": {},
    261
    "health": {},
    262
    "inventory": {},
    263
    "names": {}
    264
    },
    265
    "followergluharscout": {
    266
    "appearance": {
    267
    "body": {},
    268
    "feet": {},
    269
    "hands": {},
    270
    "head": {},
    271
    "voice": {}
    272
    },
    273
    "experience": {},
    274
    "health": {},
    275
    "inventory": {},
    276
    "names": {}
    277
    },
    278
    "followergluharsecurity": {
    279
    "appearance": {
    280
    "body": {},
    281
    "feet": {},
    282
    "hands": {},
    283
    "head": {},
    284
    "voice": {}
    285
    },
    286
    "experience": {},
    287
    "health": {},
    288
    "inventory": {},
    289
    "names": {}
    290
    },
    291
    "followerkojaniy": {
    292
    "appearance": {
    293
    "body": {},
    294
    "feet": {},
    295
    "hands": {},
    296
    "head": {},
    297
    "voice": {}
    298
    },
    299
    "experience": {},
    300
    "health": {},
    301
    "inventory": {},
    302
    "names": {}
    303
    },
    304
    "marksman": {
    305
    "appearance": {
    306
    "body": {},
    307
    "feet": {},
    308
    "hands": {},
    309
    "head": {},
    310
    "voice": {}
    311
    },
    312
    "experience": {},
    313
    "health": {},
    314
    "inventory": {},
    315
    "names": {}
    316
    },
    317
    "pmcbot": {
    318
    "appearance": {
    319
    "body": {},
    320
    "feet": {},
    321
    "hands": {},
    322
    "head": {},
    323
    "voice": {}
    324
    },
    325
    "experience": {},
    326
    "health": {},
    327
    "inventory": {},
    328
    "names": {}
    329
    }
    330
    }
    331
    }
    332
    }
    Copied!
    Some explanations :
    Note that you now have 3 main "folders". src,res,db:
src is made for adding scripts mods to the game, everything that is in /src/ folder. res is made for adding or editing games images (traders images for exemple), everything that is in /res/ folder. db is made for edit or add servers items, quest, locale and so on, everything that is in /db/ folder.
As you can see, there's the filepath for each moddable part, we will edit this part when we have edited what we want, for our case, it's an item. I want to edit my sicc item case to have more slots, the item ID is : 5d235bb686f77443f4331278. So i copy the file 5d235bb686f77443f4331278.json in ServerDir/db/items and i paste it in ServerDir/user/mods/Author-MyModName-version/db/items/. The file path must be the same as where you copy the file you want to mod.
  • I open my file up with any IDE, i prefer VScodium personnaly, and make my changes. After that i save and close the file.
  • Now that i edited my file, i go back to my mod.config.json and i go into the items brackets for adding my item. For me it will looks like this :
    1
    "db": {
    2
    "items": {
    3
    "5d235bb686f77443f4331278": "db/items/5d235bb686f77443f4331278.json"
    4
    },
    Copied!
  • Save your mod.config.json and start the server. It should recache and your mod is working ! Good job comrade !

The end

Good job, you made your first mod for JustEmuTarkov, all other parts to be modded work the same way. Just reproduce it with the desired part !

Thanks

Thanks to @InNoHurryToCode for making modding possible on JustEmuTarkov !

Official links

Discord link: https://discord.gg/JnJEev4​
Last modified 1yr ago