Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
IAMBUDE committed Jan 16, 2022
1 parent d852f1e commit 68ecffe
Show file tree
Hide file tree
Showing 2,259 changed files with 9,597,318 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=false
49 changes: 49 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# building for kio since node v15 doesn't work :)
node_runtime/
build_with_runtime.bat

## JustEmuTarkov - Server
package-lock.json
ResourceHacker.ini
output
logs
events
[Pp]roject/[Uu]ser/[Cc]ache/
[Pp]roject/[Uu]ser/[Pp]rofiles/

## visual studio
.vs
.idea
slnx.sqlite
slnx-journal.sqlite

## nodejs
node_modules
node.exe
## if you dont want to push cache folders
user/cache
Server JET*
_Build
# ignore cache backup folder
user/cacheBak
coreMinified
DB_removable
Server.7z
Release
_mods
_core
coreMinify
!user/mods/
user/mods/*.7z
user/mods/*.zip
user/mods/*.rar
user/cache
db-propNextStructure/
## windows
desktop.ini
JET-Backend-Server.7z
src/____responses
Server-Icon.exe
Server-Uncompressed.exe
Server.exe
user/mods/*
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/core/main.js",
"cwd": "${workspaceFolder}",
"skipFiles": [
"<node_internals>/**"
]
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
MIT License Copyright (c) 2019 TheMaoci and JET-Team

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice (including the next
paragraph) shall be included in all copies or substantial portions of the
Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 changes: 24 additions & 0 deletions _build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
@echo off

node build/build.js
echo BUild completed Press key to continue with creatign build for release
pause
rmdir /q /s _Build
mkdir _Build
copy build\Server.exe _Build\
xcopy db _Build\db /E /I
xcopy res _Build\res /E /I
xcopy src _Build\src /E /I
xcopy user _Build\user /E /I

rmdir /q /s _Build\user\cache
mkdir _Build\user\cache
rmdir /q /s _Build\user\logs
mkdir _Build\user\logs

del /q _Build\user\mods\*.*
del /q _Build\user\profiles\*.7z
del /q _Build\user\profiles\*.zip

rmdir /q /s build\minified
pause
3 changes: 3 additions & 0 deletions _installDependencies.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off
echo Wait till it closes!!!!
npm install
5 changes: 5 additions & 0 deletions _removeCache.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@echo off
rmdir /q /s user\cache
mkdir user\cache
rmdir /q /s user\logs
mkdir user\logs
2 changes: 2 additions & 0 deletions _startServer.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node core/main.js
pause
33 changes: 33 additions & 0 deletions _tools/CreateNewAssortFromOlderOne.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const fs = require('fs');

const traders = [
"5a7c2eca46aef81a7ca2145d",
"5ac3b934156ae10c4430e83c",
"5c0647fdd443bc2504c2d371",
"54cb50c76803fa8b248b4571",
"54cb57776803fa99248b456e",
"579dc571d53a0658a154fbec",
"5935c25fb3acc3127c3d8cd9",
"58330581ace78e27b8b10cee"
]

for(const trader of traders){
console.log(trader);
let loadAssort = JSON.parse(fs.readFileSync("./"+trader+"/assort.json"));
for(const assortId in loadAssort){
for(let item in loadAssort[assortId].items)
{
if(typeof loadAssort[assortId].items[item].parentId != "undefined"){
if(loadAssort[assortId].items[item].parentId == "hideout"){

loadAssort[assortId].default = {};
loadAssort[assortId].default["unlimited"] = loadAssort[assortId].items[item].upd.UnlimitedCount;
loadAssort[assortId].default["stack"] = loadAssort[assortId].items[item].upd.StackObjectsCount;
delete loadAssort[assortId].items[item].upd;
}
}
}
}
fs.writeFileSync("./"+trader+"/assort_new.json", JSON.stringify(loadAssort));
}

Binary file not shown.
Loading

0 comments on commit 68ecffe

Please sign in to comment.