Jump to content


Photo

Understanding some of the files and messing with values, (HAVE A LOOK AT WHAT I HAVE LEARNED, FEEL FREE TO ADD)


  • Please log in to reply
1 reply to this topic

#1 William Stapleford

William Stapleford

    Lieutenant

  • Members
  • 99 posts

Posted 11 September 2015 - 05:07 AM

From time and time I try and share what little knowledge i have learned from this game with other people.  I am by far not the best modder or even programmer here.  I know Frozenone has figured out far more but no longer has the time to share what he has learned.  So, i have decided to post some things that I have learned about what certain files do and where they are located.   Please feel free to post more information on this game and the little things that make it tick.  Anything else i find i will post as well.  
 
AGAIN CAUTION ..... MESSING WITH THESE FILES CAN MESS UP THE GAME AND CAUSE IT TO BE UNPLAYABLE. .....MAKE A BACKUP COPY OF THE FILE BEFORE EDITING IT...........YOU HAVE BEEN WARNED.......
 
==========================================================================================================================================================================================================================================================================================================================================
 
 
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\content\prefab---SPAWNPOINT
THIS FILE SEEMS TO BE A FILE THAT THE VEHPREFAB MUST BE IN DEPENDING ON WHAT THEY ARE FIRE, POLICE, EMS, ETC
THEY MUST HAVE AN ENTRY POINT AND AN EXIT POINT
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\gamedata\---EM5_ORDER_INFO
THIS FILE CONTAINS THE FOLDER ON THE DIFFERENT DEPARTMENTS AND EACH FILE DETERMINS HOW/WHO OWNS THAT VEHICLE IN THE .JSON 
 
FILE.  EXAMPLE TECH DEPARTMENT VEHICLES WILL HAVE "TECH" IN THE ORDERDEPARTMENT.  THIS ALSO SHOWS THE FILE FILE LOCATION 
 
FOR EACH SMALL AVATAR OR PIC OF THE UNIT PREFAB. UNITS CAN BE SWAPPED BY CHANGING WHAT DEPARTMENT THEY BELONG TO.
DEPARTMENTS INCLUDE:
"TECH"
"PoliceDepartment"
"FireDepartment"
"Ambulance"
 
THIS FILE ALSO INCLUDES THE UNIT COST AND ALSO SEEMS TO CONTROL THE SEATING AND WHO IS PHYSICALLY IN THE VEHICLE.  IT DOES 
 
NOT CONTAIN THE NUMBER FOR AVAILABLE UNITS IN THE HQ
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\gamedata\em5_unitpool\default\---STARTUP.JSON
THIS FILE CONTROLS THE GENERAL UNITS AVAILABLE PER MISSION AND FREEPLAY.  ALSO LIST WHAT UNITS BELONG TO WHAT DEPARTMENT.  
 
YOU CAN CHANGE THE AVAILABLE UNITS NUMBERS PER MISSION AND PER FREEPLAY EVENT.  IT IS CONTROLLED ALL THE WAY DOWN TO THE 
 
EXCACT MAP THEY ARE AVAILABLE IN.
CHANGE THE NUMBER BETWEEN THE "" FOR EXAMPLE "2" CHANGE THE TWO FOR A MAP AND WHEN THE GAME IS LOADED FOR THAT EXACT 
 
MISSION OR FREEPLAY MAP THE NUMBER YOU PUT WILL BE AVAILABLE.  
CAUTION MAKE BACKUPS OF ALL THESE ABOVE LISTED FILES BECAUSE IT CAN CRASH THE GAME SEVERLY AND CAUSE IT TO BE UNPLAYABLE. 
 
ALSO MAKE SURE THAT WHEN OPENING THE .JSON FILES THAT YOU UNSELECT THEY WINDOWS "OPEN WITH EVERYTIME" OPTION.  IF NOT THEN 
 
YOU WILL CAUSE ALL .JSON FILES TO SWITCH TO A NOTEPAD ICON AND COULD CAUSE THE GAME TO BE UNPLAYABLE. IF THAT HAPPENS YOU 
 
WILL NEED TO SEARCH ONLINE FOR HOW TO FIX YOUR REGISTRY TO UNSELECT THOSE FILES OR UNASSOCIATE THE FILES IN EXPLORER.
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\gamedata\em5_firematerial--
INSIDE THIS FOLDER IS A ANOTHER FOLDER CALLED DEFAULT
THIS .JSON FILE INSIDE SEEMS TO CONTROL ALL THE DATA IN THE GAME FOR FIRE SIMULATION AND BURN DATA.  LOOK AT SOME OF THE 
 
VALUES AND BURN TIMES.  I THINK ALL THE TIMES ARE IN SECONDS BUT UNSURE.  MESSING WITH THESE FILES CAN MAKE A CAR EXPLODE 
 
IN A FEW SECONDS AND CAUSE FLASH FIRES ALONG WITH FIRES THAT SPREAD MUCH QUICKER THEN DEFAULT TIMES.  
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\gamedata\em5_eventdensity\definitions
 
\DENSITY_COUNTER_VALUES.JSON
THIS FILES SEEMS TO CONTROL THE FREE PLAY EVENT COUNTERS.  CHANGING THE VALUES OF THE NUMBERS IN "" WILL CHANGE THE EVENT 
 
TYPE PROBABILITY.  SETTING IT TO "0" SEEMS TO STOP THE EVENT FROM OCCURING AT ALL.  THE HIGHER THE VALUE THE HIGHER THE 
 
CHANCE OF THE EVENT.  UNSURE OF WHAT THE MAX VALUE IS AT THIS TIME.
 
 
C:\Program Files (x86)\Steam\SteamApps\common\Emergency 5\data\em5\content\em5_spawngroup\default\---SPAWNGROUPS
THIS FILE CONTROLS HOW MANY PEOPLE, VEHICLES, ETC ARE DISPLAYED PER TIME OF DAY AND WEATHER.  CHANGING THE VALUES IN THIS 
 
VALUE WILL CHANGE HOW MANY CARS ARE OUT AT WHAT TIMES OF DAY.  YOU CAN REALLY CREATE A TON OF TRAFFIC AND PEOPLE BY 
 
MESSING WITH THESE VALUES.  TOO MANY AND THE GAME WILL CRASH / STUTTER / FREEZE ETC.  TAKES A HUGE TOLL ON THE PROCESSING 
 
POWER OF THE PC.
 
// "CivilVehiclesDefaultGroup" is the default spawn group for civil vehicles
"CivilVehiclesDefaultGroup":
{
// Spawn limit for this special spawn group is defined in the map properties
            "RelativeLimitByHour":
{
"0": "0.25",
"2": "0.15",
"4": "0.15",
"5": "0.6",
"6": "1.2",
"9": "1.0",
"12": "0.8",
"14": "1.0",
"16": "1.2",
"19": "1.0",
"20": "0.75",
"22": "0.5",
"24": "0.25"
},
            "RelativeLimitByRain":
{
"0.2": "1.0",
"0.9": "0.4"
}
},
 
 
 
THE FIRST NUMBER "0" IS THE TIME OF DAY THE SECOND VALUE IS THE VALUE OF HOW MUCH TRAFFIC WILL BE AT THAT TIME OF DAY.  IN 
 
MY EXAMPLE THE ".25" WILL HAVE SLIGHTLY MORE CIVIL TRAFFIC THEN "2" "0200" THIS WILL BE VERY SLIGHT TRAFFIC FLOW
LIMIT BY RAIN IS A VALUE THAT SEEMS TO CUT THE TRAFFIC LEVEL DOWN MORE WHEN RAINING.  NEVER SEEN THE ACTUAL EFFECT OF THIS 
 
NUMBER CHANGING AS OF NOW.
 
 
 
FOR NOW THIS IS ALL I HAVE, IF YOU SCREW UP AND MAKE WINDOWS EXPLORER OPEN ALL YOUR FILES YOU CAN SAVE ALOT OF FRUSTRATION 
 
BY FOLLOWING THE FOLLOWING STEPS TO FIX THE BAD ASSOCIATION.
CLICK START: IN SEARCH BOX TYPE REGEDIT
OPEN THE HKEY_CLASSES_ROOT AND FIND THE FILE ASSOCIATION .JSON  (RIGHT CLICK AND DELETE THAT FILE) ANSWER YES TO THE NEXT 
 
QUESTION
OPEN THE HKEY_CURRENT_USER 
THEN Software
THEN Microsoft
THEN Windows
THEN CURRENT VERSION
THEN EXPLORER
THEN FILEEXTS
THEN .JSON (THE FILE EXTENSION IN QUESTION IF NOT THE .JSON FILE)
RIGHT CLICK ON THIS KEY TOO AND DELETE IT.
 
YOU WILL NEED TO RESTART THE COMPUTER AFTER THIS, BUT ONCE RESTARTED IT SHOULD NO LONGER BE USING NOTEPAD OR ANY OTHER 
 
PROGRAM TO OPEN THE FILE AUTOMATICALLY.  INSTEAD YOU SHOULD NEED TO SELECT THE PROGRAM AGAIN.  THIS WORKS FOR WINDOWS 7.  
 
I'M NOT SURE ABOUT WINDOWS 8 OR 10 AT THIS TIME.
 
THE WHOLE KEY IS
(HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.json)
 
HOPE THIS INFORMATION CAN HELP A LITTLE FOR ANYONE THAT WANTS TO MESS WITH THE FILES AND SOME SETTINGS.  JUST REMEMBER 
 
THAT THE GAME FILES CAN BE CORRUPTED AND THE GAME CAN BECOME UNSTABLE AND UNPLAYABLE IF YOU MESS WITH THESE NUMBERS AND 
 
VALUES TOO MUCH.  YOU HAVE BEEN WARNED BUT I LEARNED ALOT BY MESSING WITH THEM AND RE-INSTALLING EM5 MANY TIMES LOL.
 
==========================================================================================================================================================================================================================================================================================================================================
 
 
Have a great day
 
William516
Bill
Delaware,USA
 
 
 


#2 Walker282

Walker282

    Lieutenant

  • Members
  • 67 posts
  • Gender:Male

Posted 12 September 2015 - 10:01 PM

Good info to know for the English modders.... Start creating our own maps and stuff to change default files... Now to learn how to unlock the models