Jump to content

Tian318

Members
  • Posts

    512
  • Joined

  • Last visited

Everything posted by Tian318

  1. [nl] vrij simpel. Je roept een object aan genaamt ofz, zonder in het script aan te geven wat de ofz dan wel moet zijn. In andere worden je roept iets op wat niet bestaat, hierdoor geeft hij de fout. je kunt nou eenmaal niet iets oproepen wat niet bestaat. je zult de "ofz" een definitie moeten geven. en dan zou lijn 141 wel goed moeten zijn. [en] easy, You forgot to define the "ofz" tag, that way the script is calling out for something that does not exist. therefor making the script cause an error(you can't call what does not exist) You would need to define the "ofz" and then the line should work Wijziging: He sosi.script doet dit bijvoorbeeld door: const char PROTO_deconp[] = "mod:Prototypes/Vehicles/Fire Department/deconp.e4p"; Weet niet of jij de zelfde soort kan gebruiken... Maar je moet wel iets "creƫren" om het later op te roepen. Edit: The sosi.script uses defines like this: const char PROTO_deconp[] = "mod:Prototypes/Vehicles/Fire Department/deconp.e4p"; Not sure you could use a line like that. But you need to "create" the object before you call it.
  2. When i add the ; after the } on line 211. The script gives me a new error line: 142. This is the empty line after: 141 ofz->PushActionExecuteCommand(ACTION_APPEND,"bmaeinsatz_initialisierung",ofz,0,false); So that is the line you added, where something is wrong with it. Dunno what, the line looks ok to me,..are you sure that this: "bmaeinsatz_initialisierung" Is correctly spelled and all?
  3. that is what i thought first to.. but if you start the script at line 1: void FPPlaceUnits() { you would get a if/else to that part. if(ol1.GetNumObjects() > 0) { So the line 127 is not done with the script. All lines are part of the first part. and closes here: } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// }; (line 187) Although on the bottom line you could be correct bool OnLoad() { FPMSG_1(); FPPlaceUnits(); FPMSG_2(); Process::Kill(); return true; } there the ; behind the } is indeed missing. All other "void" are closed by }; but the bool is not. But that is not till line 211. and the script reports the error much sooner.
  4. line 127 is nothing,....(see pic) So you would have an error in the lines above it. Most times i have something like that(wrong error line) means i forgot to close an object, or function. So my guess would be there.
  5. Your welcome, Just be sure to also check the whole script. as the WLF is a cont. defined earlier in the script. Good luck. Merry X-mas
  6. Merry Xmas, Happy Hanukkah or what ever you are celebrating these 2 days, to all
  7. for the hundredth time. EM4 has a poly limit, but no mod has even reached near it. the number 5.000 has been thrown up as a max. and this has been done for a reason....keep smooth gameplay even on older/slower machines. As far as poly's go...i have inserted the high poly model from hoppah's Zmodeler tut with success in to the game. and can call out about 50 off those cars before my system will lag or lower frame-rate. So the poly limit is set so low, just for a smooth and good game play. And to all people that cry for a editor.. Ask yourself this: Why would you pay to buy a game, only so you can mod it? and if you have an answer to that. then ask yourself, why a editor instead off spending time and effort on it to learn to mod the hard way. not only models + skins, but scripts, new game play and so on. As far of the game,... screens are not so impressive,..way to much EM4 like for me. But who knows, first screens of EM2012 where not all that great either. As always, Time will tell.
  8. To sound very mystic and far eastern like "Nothing is impossible" If you have Win7 directX11 is default directX on your system. If you have a DirectX10 card, you will still run Direct11. But the important specs that make DirectX11, DirectX11 will not be available to you.
  9. Latest word would be that there is NO SDK for EM2012, nor will there ever be, Dunno on the release date. Have a good journey back home.
  10. We would also need a logfile(emergency4/911FR) It should be in the main folder of em4/911FR and is called "logfile.txt"
  11. i'm doing something i discurage ttony on. Running DirectX11 on a DirectX10 card.
  12. you should check the: "wlfloadup.script" and wlfunload.script scripts(NL mod alpha) if not mistaken. it has line to that like this: //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ //INFO: //[ENG]: WLF.SetMaxPassengers(3); = Max units in the container truck (can change if you changed in editor) //[ENG]: WLF.SetSpeed(9.0f); = Vehicle speed 9.0 is egal to 90 //[DE]: WLF.SetMaxPassengers(3); = Einheiten im container truck (kan man heir ander fals im editor geandert) //[DE]: WLF.SetSpeed(9.0f); = Fahrzeug speed 9.0 is gleich an 90 //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ WLF.SetMaxPassengers(3); WLF.SetSpeed(9.0f); int PlayerID = v.GetPlayerMP(); WLF.SetPlayerMP(PlayerID); PersonList passengers = v.GetPassengers(); for(int i = 0; i < passengers.GetNumPersons(); i++) { v.RemovePassenger(&passengers.GetPerson(i)); WLF.AddPassenger(&passengers.GetPerson(i)); } PersonList transports = c.GetTransports(); for(int i = 0; i < transports.GetNumPersons(); i++) { c.RemoveTransport(&transports.GetPerson(i)); WLF.AddTransport(&transports.GetPerson(i)); } v.PushActionWait(ACTION_APPEND, 0.1f); v.PushActionDeleteOwner(ACTION_NEWLIST); c.PushActionDeleteOwner(ACTION_NEWLIST); } };
  13. I'm sure that people would welcome it, as it is a nice variation to it. BUT again,..Building maps is very time consuming and hard. Draw a floor, Build the building models. Place all items and buildings etc on the map. Make paths Script curtain things(traffic lights and so on) Then pray it all works out, and is good... If not you need to "Bug" fix the map. Not sure how long it would take the fastest mapper to make a new map... but i can tell you that it won't be a day of work,.but rather week(s) of work.
  14. Tian318

    EM4

    Should be a yes. Both default games are the same. just the name and language in the game is different
  15. Lag can happen,..it is very depending on a lot of things. Settings, Free memory, Free memory on your GFX card and so on. If you are playing MP, the connection and speed of your internet will also matter is you have lag or not. The free memory is depending on what is running on the background of windows while you play a game(Virus scanners, Fire-walls, Codexs, Drivers, toolbars, Spybot searches, Host's and so on... So really no telling if your PC will lag any of those games. The specs of the pc you shown are very close to be minimum, so yes there is a big change that a game will lag, or have a low frame rate, but this is not a given item, with tweak programs you can increase your speed and so on,.. But that is a bit more advanced...if you overclock you can also decrease lag, speed up your Frames Per Second(FPS) About 30FPS is enough for smooth game play(as a video camera makes 30frames per second to make a movie). For games specially shooter and first person shooters play better with 40 to 60 frames per second. you could download a benchmark tool; Aquamark for example and see/test your specs and see your frame rates test at different settings(resolution, graphics). higher scores will mean beter game performance, low scores will mean worser game performance. you can see the site for the score levels, and what games will run nice at what score and so on. Before you "Benchmark" your pc, be sure to have all your drivers up to date, DirectX up to date(and best for your card, don't use DirectX9 on a DirectX10 card (or even worse) DirectX10 on a DirectX9 card.
  16. No offence but....emergency-planet.com that is this site:-) This is the forum attached to that site(or the otherway arround, witch ever you prefere) And the site is not down http://www.emergency-planet.com And you get the main page of it where you read on walktroughs of different levels from EM1 to EM4
  17. Dunno what you have done with your pc then I can run maffia II with a Nvidia 9800GT-Top 512MB (times)X2(SLI mode) incb. with IntelĀ©core2duo 3,0Ghz and 4GB DDR2-800 HyperX Memory(Kingston) on medium/High details(DirectX11, Creative sound DirectX11 on a Fatality MB)
  18. Deze mod gaat gewoon door. Al staat hij nu heel even op hold. Aangezien deze mod een eenmans mod is. En ik sinds kort ook de Essex Mod rebuild als een mans mod zal moeten doen. Zodra die rebuild weer af is, gaat deze ook weer verder. [EN] This mod is currently on hold, Due to getting the Essex mod also under my guard and doing it alone. When Essex Mod Rebuild is released this mod will also continue
  19. If somebody would dedicate time and effort to this then there would be multiplayer maps that are different. If there already is one out i donĀ“t know, not the most active on MP games. the sh*ty thing is that maps are hard and time consuming to make..
  20. EM4(911 First Responders): Minimum System Requirement 1,7 GHZ Processor 512 MB RAM Memory Microsoft Windows 98/Me/2000/XP CD-Rom drive Mouse (not able to rotate screen) DirectX 9 Compatible Soundcard DirectX 9 Compatible AGP Graphic Card Nvidia Geforce 3 or comparable Graphic Card With 3D Acceleration Graphic Card With 64 MB RAM 1 GB Free Disk Space A 500k connection to host games Recommended System: 2,5 GHZ Processor 1024 MB RAM Memory Microsoft Windows 2000/XP CD-Rom or a DVD drive A wheel mouse(to rotate your screen) DirectX 9 Compatible Soundcard DirectX 9 Compatible AGP Graphic Card. Nvidia Geforce 5 or comparable. Graphic Card With 3D Acceleration Graphic Card With 128 MB RAM 2 GB Free Disk Space A 1000k connection to host games So EM4. is a YES GTA San Andreas: Minimum System Requirement 1 GHz CPU 256 MB of RAM graphics card with 64 MB RAM 3.6 GB of free space on the hard disk Recommended System: Pentium 4 or AMD Athlon XP 384 MB RAM 128 MB graphics card An Audigy2 soundblaster gamepad are also recommended. Should also be a YES GTA IV: Minimum System Requirement Windows Vista - Service Pack 1 / XP - Service Pack 3 Intel Core 2 Duo 1.8Ghz, AMD Athlon X2 64 2.4Ghz 1.5GB 16GB Free Hard Drive Space 256MB NVIDIA 7900 / 256MB ATI X1900 Recommended System: Windows Vista - Service Pack 1 / XP - Service Pack 3 Processor: Intel Core 2 Quad 2.4Ghz, AMD Phenom X3 2.1Ghz Memory: 2 GB (Windows XP) 2.5 GB (Windows Vista) 18 GB Free Hard Drive Space Should also be a YES But just as Xplorer already said, it should be in low settings. Maffia II: Minimum System Requirement Windows XP/Vista/7 Intel Core 2 Duo @ 3.0 GHz / AMD Athlon 64 X2 3600+ 1.5 Gb 8 Gb free 512 Mb Ram nVidia GeForce 8600 / ATI Radeon HD 2600 DirectX Compatible 512MB NVIDIA 8600 / 512MB ATI 3870 Recommended System: Windows XP/Vista/7 Intel Core 2 Quad @ 2.5 Ghz / AMD Phenom X4 @ 2.5 Ghz 2 Gb 10 Gb free 1 Gb Ram nVidia GeForce 9800 GTX / ATI Radeon HD 3870 DirectX Compatible Should also be a YES Perhaps at Medium or High, not at very high(or higher options) Godfather 2: Minimum System Requirement Unknown to me, to lazy to find them Recommended System: Core 2 Duo 2.8 GHz 2 GB RAM 256 MB (GeForce 7600 or better) 9 GB HDD Windows XP SP2/Vista. Should also be a YES
  21. well i can't read Portuguese, but the way i see it you would need the 2nd tab, that you translated to "see"
  22. Yes right click on the file that is giving you problems. Select the option "Rename"(2nd option from below) the name(for example): Skin.dds and you would rename it to Skin.v3o If you can't see your file "extensions" then you would need to change the windows folder options; XP Operating System: in a folder Extra folder options "Tab"; Display Search for this line: "hide Extensions for known files" Check the box before: "hide Extensions for known files" off. Apply and close the tab. Vista en Seven Operating System: press on the keyboard on the "ALT" key in a folder. Extra Folder options "Tab"; Display Search for this line: "hide Extensions for known files" Check the box before: "hide Extensions for known files" off. Apply and close the tab. If done correctly the "extensions" of the files will be visable to you now. typing this because your picture has a time out on the image server After you have renamed the skin you can take the steps i described before. Don't forget to rename it back from Skin.v3o to Skin.dds Then you can open and modify it in your image editor.
  23. rename the extension of the file you can not open from: skin.DDS to skin.V3O Open the editor under "MOD" select unpack. unpack the skin.DDS file you renamed to skin.V3O file. Close the editor. Rename the skin file back from skin.V3O to skin.DDS And you can open the file in your editor (Skin is just a name, any name before the . will do it is after the . that is important that is the extension)
  24. [size="4"][b][u]Welcome to the tutorial to change all the XML files from Emergency 4.[/u][/b][/size] First: Why this tutorial?(from now on called "tut"). I noticed that a lot of people had major issues with one of the most easiest programming languages from the Emergency 4 games. Time and time copy and pasting of links of where people can find the info they need can become sometimes a big annoying thing to do for the people here. That is why i place with pleasure the link to the tut from Hoppah on how to add vehicles to the game. The tut from Hoppah is English: option=com_content&view=article&id=110%3Aadding-vehicles&catid=46%3Aemergency-4-modding&Itemid=35?=nl"]- Tut from Hoppah[/url] If you have read that, and you still not been able to figure it out, or you need the other files to be modded. Then i would invite you kindly to read the following toppic. Read it at ease, don't rush trough it, and learn it with a bit more effort from your site. [size="3"][b][u]The start: [/u][/b][/size] [b]XML[/b] is a programming language. This means that you can modify the game with relative easy coding, to please you more. (in my experience i found [b]XML[/b] to be one of the most easiest languages to program into the game. This because you can add things with almost normal human language. The language of [b]XML[/b] is also known for a very good database structure.(but i will not bore you with this) [size="1"]i will keep this tut strict for Emergency 4.(for other apps, programs the language can differ.)[/size] [b]XML[/b] Files are recognizable by the "extension" they carry, For example: [b][u].XML[/u][/b] or [b][u].xml[/u][/b] If you can't see your file "extensions" then you would need to change the windows folder options; [b]XP Operating System:[/b] [list=1] [*]in a folder [*]Extra [*]folder options [*]"Tab"; Display [*]Search for this line: "hide Extensions for known files" [*]Check the box before: "hide Extensions for known files" off. [*]Apply and close the tab. [/list] [b]Vista en Seven Operating System:[/b] [list=1] [*] press on the keyboard on the "ALT" key in a folder. [*]Extra [*]Folder options [*]"Tab"; Display [*]Search for this line: "hide Extensions for known files" [*]Check the box before: "hide Extensions for known files" off. [*]Apply and close the tab. [/list] If done correctly the "extensions" of the files will be visable to you now. [size="3"][b][u]What do we need?[/u][/b][/size] The beauty of [b]XML[/b] is that you can edit it with no heavy editor but just a plain simple text editor would do. Keep in mind that not all text editors would be fit to change [b]XML[/b] files, since some editors add a lot invisible codes to it, that will make the XML file to go bust, and no longer work for the game. Witch programs are usable then?: [list=1] [*]Notepad [*]Notepad ++ [*]Notepad 2 [/list] A simple editor is the best, since it is fast and clean of "hidden" codes since every pc has the default version of notepad we will start right away by adapting simple files from the game. [b][u]BUT before we do this we will make sure that we won't damage the game beond repair.[/u][/b] [list=1] [*]Start the Emergency 4 editor [*]Can be found under: Start -> Sixteen tons Entertainment -> Emergency 4 -> Emergency 4 editor"** [*]Go to "[u]M[/u]odifications". [*]Create a new mod [*]Give the mod a name [*]close the editor [/list] **you could not locate your editor? hold your peace, and leave the pc on the desktop please. To fix this we will make a shortcut on the desktop called: "Emergency 4 Editor" (without quotes) And we will set the target to: "C:\Program Files\sixteen tons entertainment\Emergency 4\EM4.exe" -editor or: "*your installed location*\Emergency 4\EM4.exe" -editor if you have installed the game customly. safe your work, and run the editor with this newly made shortcut. Now we will go to this folder: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Data\Specs*[/code] [size="1"]*default installation path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Data\Specs*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] In the folder Specs we need to [b][u]COPY[/u][/b] the following files: [list=1] [*]fp_params_endless.xml [*]freeplaybase.xml [*]portraits.xml [/list] To this folder: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name here*\Specs*[/code] [size="1"]*Default installation path.[/size] Did you installed Emergency 4 in a custom way? then look here: [code]..\Emergency 4\Mods\*your mod name here*\Specs*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] In the folder: "Specs" we will look for: "[u]fp_params_endless.[b]xml[/b][/u]"(oTo edit the challenge mode get this file: "[u]fp_params_challenge.[b]xml[/b][/u]") Open this file with notepad(or another clean simple editor that has been mentioned). (Right click on the file -> Open with..). And these lines will be the first thing you will see: (And as luck would have it, we need these exact lines to) [code]<freeplayparameters> <MinDurationBetweenEvents value = "30.0" /> <MaxIdleDuration value = "5.0" /> <Seed value="0"/> <BuyFactor value="10.0"/> <SellFactor value="0.5"/> <GlobalEventFrequencyFactor value="1.0"/> <TimeSpeedFactor value="1.0"/> <StartBudget value="75000"/> <MaxBudget value="160000"/> <Earnings value="30000"/> <SquadPriceGrowth value="30.0"/> <MaxParkingSpace value="35" /> <InitialEventFrequencyBoost value="100000.0"/> <InitialEventWaitDuration value="5.0"/> <starttime value="7:30"/>[/code] Short explaination on the codes and values. - [color="#006400"]<freeplayparameters>[/color] This line would let the game know that this is the file for the freeplay game. - [color="#006400"]<MinDurationBetweenEvents value = "30.0" />[/color] This is a timer variable, it shows you(and the game), the minimal time between events(on a freeplay game) the value represents minutes. - [color="#006400"]<MaxIdleDuration value = "5.0" />[/color] Is another time that will show you the maximum time that may pass between events. Time is in minutes - [color="#006400"]<Seed value="0"/>[/color] The seed value is a value on what the map should "seed"(fill) the map with items(a higher value would suggest more adding on the map) - [color="#006400"]<BuyFactor value="10.0"/>[/color] Is a Multiplyer, It takes the price out of a "Unit[b].xml[/b]" file And multiply's it with the value(10)(see unit.xml for more info on this line) - [color="#006400"]<SellFactor value="0.5"/>[/color] Is a Diversion, It dictates how much money you will get back after you sell a vehicle back to the system(the 0.5 means 50%) meaning you get 50% of the buying value back when you sell the vehicle back to the game - [color="#006400"]<GlobalEventFrequencyFactor value="1.0"/>[/color] How many times a "bigger" event should happen in the game - [color="#006400"]<TimeSpeedFactor value="1.0"/>[/color] How fast the game timer goes(higer for faster. use 0. to lower speed) - [color="#006400"]<StartBudget value="75000"/>[/color] Your starting game funds. - [color="#006400"]<MaxBudget value="160000"/>[/color] The [u]MAXIMUM{/u] amount of cash you can have to buy vehicles, send them out and hire the crews. - [color="#006400"]<Earnings value="30000"/>[/color] How many cash you will be getting every day at 12:00 - [color="#006400"]<SquadPriceGrowth value="30.0"/>[/color] A Multiplier, Who will dictate the growing of the price when you call out multiple units(crew) to the game at the same time. - [color="#006400"]<MaxParkingSpace value="35" />[/color] Maximum parking spaces at your base. - [color="#006400"]<InitialEventFrequencyBoost value="100000.0"/>[/color] A timer, Who dictates when your first event should accure - [color="#006400"]<InitialEventWaitDuration value="5.0"/>[/color] A timer that will set the Maximum time before the first event, and between the events is allowed for the game. - [color="#006400"]<starttime value="7:30"/>[/color] The time of the game start. With these codes you can already make many changes to your game play. Increase the bonus cash you get every day at 12:00. ("[color="#FF0000"]<Earnings value="30000"/>[/color]") Lower the price for the squads you need to call to the map. ("[color="#FF0000"]<SquadPriceGrowth value="30.0"/>[/color]") Increase your start budget. ("[color="#FF0000"]<StartBudget value="75000"/>[/color]") [b][u]SIDE NOTE![/u][/b] This value can't overwrite this one: "[color="#FF0000"]<MaxBudget value="160000"/>[/color]" (But no fear, just increase this budget also). Never enough space at the base to park all trucks you want? Increase this number: ("[color="#FF0000"]<MaxParkingSpace value="35" />[/color]") And you can increase you vehicle fleet With this short explanation, you can change the game already more to your liking. So lets go quickly to the rest of the file: [code] <Rating> <!-- Schwierigkeitsgrad (je hƶher desto schwerer)--> <UpperLimitEasy value = "35.0" /> <UpperLimitMedium value = "50.0" /> <UpperLimitHard value = "75.0" /> <!-- abbrechen wenn gesamtzustand im challengemode zu groƟ wird --> <ChallengeAbortRatingDifference value = "100.0" /> <!-- Einstellungen der Punkte Wenn auf 0, dann gibt es 0 Punkte wenn der gesamtzustand gleich dem UpperLimit ist. Bei negativen Werten gibt es mehr Punkte, bei positiven weniger Punkte --> <ScoreUpperLimitBonus value = "0.0" /> <!-- UpperLimit wird bei jedem Tick um diesen Wert erhƶht --> <TimeFactor value = "0.0" /> <Factor name="Burning Houses" value="15.0" /> <Factor name="Burning Objects" value="8.0" /> <Factor name="Gangsters" value="10.0" /> <Factor name="Injured Persons" value="8.0" /> <Factor name="Dead Persons" value="5.0" /> <Factor name="Contaminated Persons" value="10.0" /> </Rating> <!-- score --> <InitialScorePerMinute value="500.0"/> <InnocentPersonWoundedPermanentPenalty value="75.0"/> <InnocentPersonKilledPermanentPenalty value="90.0"/> <InnocentVehicleShotPermanentPenalty value="75.0"/> <RegeneratePermanentPenaltyPerMinute value="0.001"/> <MaxScoreStepPerMinute value="1.0"/> <!-- cheat penalties --> <!-- penalty as soon as x spawns where blocked within the last minute --> <!-- <CheatPenaltyMinSpawnsBlockedPerMinute value = "1"/> --> <!-- more spawns blocked than max are ignored --> <!-- <CheatPenaltyMaxSpawnsBlockedPerMinute value = "50"/> --> <!-- ratio of stopped vs. moving vehicles. All move it's 0 - all traffic blocked it's 1 --> <CheatPenaltyMinTrafficJamRatio value = "0.5"/> <!-- highest value cheat penalties can reach (between 0=none and 1) --> <CheatPenalityScaling value = ""/> <!-- no longer used, will now be calculated using the worth values of the events <BurningHousePenalty Basic="75.0" PerObject="0.0"/> <BurningObjectPenalty Basic="50.0" PerObject="0.0"/> <InjuredPersonPenalty Basic="75.0" PerObject="0.0"/> <ContaminatedPersonPenalty Basic="50.0" PerObject="0.0"/> <DeadPersonPenalty Basic="90.0" PerObject="0.0"/> <DestroyedVehiclesPenalty Basic="30.0" PerObject="0.0"/> <UnarmedGangsterPenalty Basic="75.0" PerObject="0.0"/> <ArmedGangsterPenalty Basic="90.0" PerObject="0.0"/> <HostagePenalty Basic="50.0" PerObject="0.0"/> [/code] Short explaination, Lines like these [b][u][color="#FF8C00"]<!-- Schwierigkeitsgrad (je hƶher desto schwerer)-->[/color][/u][/b] Are commend rules made by the creator of the script. These rules are not relevant to the game(the game will just read them, and disregard them) In short the other lines are [b]all[/b] Multipliers, Who will calculate based on time/health/survivors/damage the points you will earn Increase the values to earn more points On to the next part of the file. [code] <!-- misc --> <ContaminationRange value="10.0"/> <!-- in meter --> <TrainCycle value="240.0"/> <!-- in seconds -->[/code] - [color="#FF0000"]<ContaminationRange value="10.0"/>[/color] <!-- in meter --> How big a Contamination range can be(In meters 1meter = 3.28feet). - [color="#FF0000"]<TrainCycle value="240.0"/>[/color] <!-- in seconds --> in minutes the time that a train will run on the tracks(default 4minuten(240(sec):60(sec) =4(min)) On to the next part of the file. (this one is shortend in, cause one event, explains all the other events). [code] <!-- JH --> <EFPEventFall> <Enabled value = "1" /> <!-- AverageFrequency: average number of events per 10 minutes --> <AverageFrequency value = "0.6" /> <Worth value = "4.0" /> <SupervisorStart value = "ID_SUPERV_EVENT17" /> <SupervisorFinish value = "" /> </EFPEventFall>[/code] - [color="#008000"]<EFPEventFall>[/color] Is a name to indicate that this would be the event but also what kind of event: "EFPEvent" the command to indicate to the game that this is an event, and the player should be allerted. "Fall" the type of event.(Differs per event) - [color="#008000"]<Enabled value = "1" />[/color] with out going in to this to deep 0 = off, 1 = on, said in human tongue: Is this event allowed to happen in the freeplay game. - [color="#008000"]<AverageFrequency value = "0.6" />[/color] how big is the change that this event (fall) will happen in the game every 10minutes, IF there is no other event in progress. - [color="#008000"]<Worth value = "4.0" />[/color] How many points the event is worth(multiplyer) - [color="#008000"]<SupervisorStart value = "ID_SUPERV_EVENT17" />[/color] A script to the game, to show the supervisor in the bottom right corner to play a movie with sound, telling you what is going on. - [color="#008000"]<SupervisorFinish value = "" />[/color] What the supervisor should say when the event is finished(the default is "" Witch would mean in this case: Take no action(No movie/sound played). - [color="#008000"]</EFPEventFall>[/color] Closing tag of the event, without this line the game would not know when to quit the event and it will end up in a infinite loop and crash the game. Or the event FALL what cannot happen(since the code is incorrect) **NNOTE There are reports that is you disable a event(change 1 to 0) the game only will give you the start event, and then no events at all anymore. If this happens you only need to change back the "[color="#FF0000"]<Enabled value = "1" />[/color]" back to how it was(Did you change it to 0, then change it back to 1, was the value 0 and you made it 1, then change it back to 0). I'm currently looking for ways around this "error" in the script Next part of the file: [code] <cleanup> <wait min="300.0" max="600.0"/> <choppedtree safetyradius_nopeople="8.0" safetyradius_nofire="50.0"/> <killedperson safetyradius="20.0"/> <deleteobject safetyradius="20.0"/> <deletewreck safetyradius="20.0"/> <unburnobject safetyradius="100.0"/> <restoreposition safetyradius_source="10.0" safetyradius_destination="10.0"/> <sliceablecar waitmultiplier="5"/> </cleanup>[/code] Is pretty much self explaining. With what times/factors should the map refresh/seed/clean up itself. And the last part regards the weather of the game: [code] <climate initial="fair"> <weather name="fair" changeduration="15.0" minduration="60" maxduration="180"> <fog intensity="0.0" color="ffffff"/> <rain intensity="0.0"/> <storm intensity="0.0" speed="0.0"/> <flash frequencyfactor="0.0"/> <sound name=""/> <sound2 name=""/> <transition state="cloudy" weight="1.5"/> <transition state="misty" weight="0.7"/> </weather> <weather name="cloudy" changeduration="15.0" minduration="60" maxduration="180"> <fog intensity="0.3" color="7F7F7F"/> <rain intensity="0.0"/> <storm intensity="0.0" speed="0.0"/> <flash frequencyfactor="0.0"/> <sound name=""/> <sound2 name=""/> <transition state="fair" weight="1.0"/> <transition state="misty" weight="0.7"/> <transition state="light rain" weight="1.5"/> </weather> <weather name="misty" changeduration="7.0" minduration="30" maxduration="90"> <fog intensity="0.7" color="a0a0a0"/> <rain intensity="0.0"/> <storm intensity="0.0" speed="0.0"/> <flash frequencyfactor="0.0"/> <sound name=""/> <sound2 name=""/> <transition state="fair" weight="0.5"/> <transition state="cloudy" weight="1.0"/> <transition state="light rain" weight="1.0"/> </weather> <weather name="light rain" changeduration="15.0" minduration="60" maxduration="180"> <fog intensity="0.1" color="7F7F7F"/> <rain intensity="0.2"/> <storm intensity="0.1" speed="0.1"/> <flash frequencyfactor="0.0"/> <sound name=""/> <sound2 name=""/> <transition state="cloudy" weight="1.0"/> <transition state="misty" weight="0.7"/> <transition state="heavy rain" weight="1.0"/> <transition state="thunderstorm" weight="1.5"/> </weather> <weather name="heavy rain" changeduration="15.0" minduration="60" maxduration="180"> <fog intensity="0.3" color="7F7F7F"/> <rain intensity="0.5"/> <storm intensity="0.1" speed="0.2"/> <flash frequencyfactor="0.0"/> <sound name="mod:Audio/Ambient/rain01.wav"/> <sound2 name=""/> <transition state="misty" weight="0.7"/> <transition state="light rain" weight="1.0"/> <transition state="thunderstorm" weight="2.0"/> </weather> <weather name="thunderstorm" changeduration="15.0" minduration="60" maxduration="180"> <fog intensity="0.4" color="606060"/> <rain intensity="1.0"/> <storm intensity="0.5" speed="0.4"/> <flash frequencyfactor="1.0"/> <sound name="mod:Audio/Ambient/rain02.wav"/> <sound2 name="mod:Audio/Ambient/thunder02.wav"/> <transition state="heavy rain" weight="1.0"/> <transition state="light rain" weight="1.0"/> </weather> </climate>[/code] And it closes the code again: [code]</freeplayparameters>[/code] This last line is most important, if you forget this line, and run the game, the game will give you the error: That the game is damaged, posibly by a faulty modification to the game. So don't forget to add that line for sure. Only way to fix the error the game gives you, is by re-installing the game. Right, so you could by now already change some funny/interesting parts of the game. [size="3"][b][u]Freeplaybase.xml: [/u][/b][/size] Let's continue by: "Changing/Modifying the car park of the game". More info: [url="http://www.emergency-planet.com/index.php?option=com_content&view=article&id=110%3Aadding-vehicles&catid=46%3Aemergency-4-modding&Itemid=35?=nl"]- Tut from Hoppah[/url] [code]<freeplaybase> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/nef.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rtw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhc.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/itw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/rw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tlf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/gtf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dlk.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lpf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dekonp.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tfmb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/flb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgri.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr_t.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/asf.e4p" count="3" /> </freeplaybase>[/code] What you see is what you get(The garage of the game with the vehicles) This file includes the lines for the game, to let it know where the files for the cars are on the mod. as well as how many cars you have at the start of the game(Count value). ([b]Example[/b]) [code] <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" />[/code] Let me explain this one line in parts: [b][color="#FF8C00"]<vehicle[/color][/b] Tells that it is a vehicle. [b][color="#FF8C00"]prototype=[/color][/b] To find a prototype of a vehicle [b][color="#FF8C00"]"mod:[/color][/b] That it needs to be in the root folder of the game mods, where this file also is.* [b][color="#FF8C00"]Prototypes/Vehicles/Police/[/color][/b] The location from the [b][u]root[/u][/b] where the prototype can be found [b][color="#FF8C00"]stw.e4p"[/color][/b] Witch type of model the game should link with the line [b][color="#FF8C00"]count="3"[/color][/b] Gives you 3 cars of this type at the start of the game [b][color="#FF8C00"] />[/color][/b] Is the closing tag of the line, and lets the file/game know to continue to the next model. To add a new car you would need to have a new prototype file as well as the according .v3o(3d models) files for it, also the skin file and a folder in the unit folder. Read more: [url="http://www.emergency-planet.com/index.php?option=com_content&view=article&id=110%3Aadding-vehicles&catid=46%3Aemergency-4-modding&Itemid=35?=nl"] Tut from Hoppah[/url] This tutorial tells more on it. [b]It how ever start with the expactation that you already have got the:v3o(3d model) .e4p(prototype) .dds(skin) .xml(unit file)[/b] files And placed them on the right locations. So we will add the new car...we need to rewrite the code, or add new code to it. [b]Example[/b] (Lets add a new ambulance) [code]<vehicle prototype="mod:Prototypes/Vehicles/Ambulance/*new prototype*.e4p" count="3" />[/code] We will add this line to: "freeplaybase.[b]xml[/b] file. And we need to add this to the right place(For your own overview, but also for game performance) [code]<freeplaybase> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/nef.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rtw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhc.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/itw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/*new prototype*.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/rw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tlf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/gtf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dlk.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lpf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dekonp.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tfmb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/flb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgri.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr_t.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/asf.e4p" count="3" /> </freeplaybase>[/code] If you are replacing vehicles then do it like this: [code]<freeplaybase> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/*new prototype*.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rtw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/rhc.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Ambulance/itw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/rw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tlf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/gtf.e4p" count="2" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dlk.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lpf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/dekonp.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/tfmb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/lf.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/flb.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/stw.e4p" count="3" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/sw.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/phc.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/waw.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgri.e4p" count="1" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/fgr_t.e4p" count="0" /> <vehicle prototype="mod:Prototypes/Vehicles/TEC/asf.e4p" count="3" /> </freeplaybase>[/code] To add/replace police units use this line: [code] <vehicle prototype="mod:Prototypes/Vehicles/Police/*new prototype*.e4p" count="3" />[/code] To add/replace the Fire Department units, use this line: [code] <vehicle prototype="mod:Prototypes/Vehicles/Fire Department/*new prototype*.e4p" count="3" />[/code] To add/replace the "TEC" units, use this line:: [code] <vehicle prototype="mod:Prototypes/Vehicles/TEC/*new prototype*.e4p" count="3" />[/code] Safe the file, and there we go we have changed our car park in the game. I'm assuming that you have read [url="http://www.emergency-planet.com/index.php?option=com_content&view=article&id=110%3Aadding-vehicles&catid=46%3Aemergency-4-modding&Itemid=35?=nl"] Tut from Hoppah[/url] And did as told there, regarding making .e4p files and placing the other correctly. In this easy way you can modify/replace the entire car park for the game. Follow the K.I.S.S. rule: Keep It Simple Stupid to keep things easy for your self. [size="3"][b][u]portraits.[b]xml :[/b][/u][/b][/size] [code]<portraits> <!-- vehicles --> <portrait prototype="mod:Prototypes/Vehicles/Ambulance/nef.e4p" text="NEF" unit="NEF"/> <portrait prototype="mod:Prototypes/Vehicles/Ambulance/rtw.e4p" text="RTW" unit="RTW"/> <portrait prototype="mod:Prototypes/Vehicles/Ambulance/rhf.e4p" text="RHF" unit="RHF"/> <portrait prototype="mod:Prototypes/Vehicles/Ambulance/itw.e4p" text="ITW" unit="ITW"/> <portrait prototype="mod:Prototypes/Vehicles/Ambulance/rhc.e4p" text="RHC" unit="RHC"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/rw.e4p" text="RW" unit="RW"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/gtf.e4p" text="GTF" unit="GTF"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/tlf.e4p" text="TLF" unit="TLF"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/dlk.e4p" text="DLK" unit="DLK"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/lpf.e4p" text="LPF" unit="LPF"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/dekonp.e4p" text="DEKON" unit="DEKON"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/fmb.e4p" text="FMB" unit="FMB"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/tfmb.e4p" text="TFMB" unit="TFMB"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/flb.e4p" text="FLB" unit="FLB"/> <portrait prototype="mod:Prototypes/Vehicles/Fire Department/lf.e4p" text="LF" unit="LF"/> <portrait prototype="mod:Prototypes/Vehicles/Police/stw.e4p" text="STW" unit="STW"/> <portrait prototype="mod:Prototypes/Vehicles/Police/mtw.e4p" text="MTW" unit="MTW"/> <portrait prototype="mod:Prototypes/Vehicles/Police/sw.e4p" text="SW" unit="SW"/> <portrait prototype="mod:Prototypes/Vehicles/Police/waw.e4p" text="WAW" unit="WAW"/> <portrait prototype="mod:Prototypes/Vehicles/Police/gtw.e4p" text="GTW" unit="GTW"/> <portrait prototype="mod:Prototypes/Vehicles/Police/phc.e4p" text="PHC" unit="PHC"/> <portrait prototype="mod:Prototypes/Vehicles/Police/getawaycar.e4p" text="FLIGHT" unit="FLIGHT"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgri.e4p" text="EKW" unit="FGRI"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/asf.e4p" text="ASF" unit="ASF"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgr.e4p" text="FGRR" unit="FGRR"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgrb.e4p" text="FGRB" unit="FGRB"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgr_t.e4p" text="FGRT" unit="FGRT"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgr_rb_dozer.e4p" text="RL" unit="RL"/> <portrait prototype="mod:Prototypes/Vehicles/TEC/fgr_rb.e4p" text="TRL" unit="TRL"/> <!-- persons --> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_f.e4p" big="fem" unit="doctor" text="DOCTORF"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_m.e4p" big="male" unit="doctor" text="DOCTORM"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_upgraded_f.e4p" big="fem_up" unit="doctor" text="DOCTORF"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_upgraded_m.e4p" big="male_up" unit="doctor" text="DOCTORM"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_upgraded2_f.e4p" big="fem_up" unit="doctor" text="DOCTORF"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/doctor_upgraded2_m.e4p" big="male_up" unit="doctor" text="DOCTORM"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedic.e4p" big="norm" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedic_upgraded.e4p" big="up" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedic_upgraded2.e4p" big="up" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedicinjured.e4p" big="norm" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedic_upgradedinjured.e4p" big="up" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/paramedic_upgraded2injured.e4p" big="up" unit="paramedics" text="PARAMEDIC"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog.e4p" big="norm" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog_upgraded.e4p" big="up" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog_upgraded2.e4p" big="up" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/rescuedog.e4p" big="dog" unit="dog leader" text="DOG"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog.e4p_dog" big="norm_dog" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog_upgraded.e4p_dog" big="up_dog" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Ambulance/leaderrescuedog_upgraded2.e4p_dog" big="up_dog" unit="dog leader" text="DOGLEADER"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighternorm.e4p" big="norm" unit="firefighter" text="FWM"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighternorm_upgrade.e4p" big="up" unit="firefighter" text="FWM"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighternorm_upgrade2.e4p" big="up" unit="firefighter" text="FWM"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefightermask.e4p" big="norm" unit="firefightermask" text="FWMA"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefightermask_upgraded.e4p" big="up" unit="firefightermask" text="FWMA"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefightermask_upgraded2.e4p" big="up" unit="firefightermask" text="FWMA"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighterabc.e4p" big="norm" unit="firefighterabc" text="FWMABC"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighterabc_upgraded.e4p" big="up" unit="firefighterabc" text="FWMABC"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/firefighterabc_upgraded2.e4p" big="up" unit="firefighterabc" text="FWMABC"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/diver.e4p" big="norm" unit="diver" text="DIVER"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/diver_upgraded.e4p" big="up" unit="diver" text="DIVER"/> <portrait prototype="mod:Prototypes/Persons/Fire Department/diver_upgraded2.e4p" big="up" unit="diver" text="DIVER"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_m.e4p" big="male" unit="policeman" text="POLICEM"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_upgraded_m.e4p" big="male_up" unit="policeman" text="POLICEM"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_upgraded2_m.e4p" big="male_up" unit="policeman" text="POLICEM"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_f.e4p" big="fem" unit="policeman" text="POLICEF"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_upgraded_f.e4p" big="fem_up" unit="policeman" text="POLICEF"/> <portrait prototype="mod:Prototypes/Persons/Police/policeman_upgraded2_f.e4p" big="fem_up" unit="policeman" text="POLICEF"/> <portrait prototype="mod:Prototypes/Persons/Police/shooter.e4p" big="norm" unit="shooter" text="SHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/shooter_upgraded.e4p" big="up" unit="shooter" text="SHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/shooter_upgraded2.e4p" big="up" unit="shooter" text="SHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/sharpshooter.e4p" big="norm" unit="sharp shooter" text="SHARPSHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/sharpshooter_upgraded.e4p" big="up" unit="sharp shooter" text="SHARPSHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/sharpshooter_upgraded2.e4p" big="up" unit="sharp shooter" text="SHARPSHOOTER"/> <portrait prototype="mod:Prototypes/Persons/Police/scout.e4p" big="norm" unit="scout" text="SCOUT"/> <portrait prototype="mod:Prototypes/Persons/Police/scout_upgraded.e4p" big="up" unit="scout" text="SCOUT"/> <portrait prototype="mod:Prototypes/Persons/Police/scout_upgraded2.e4p" big="up" unit="scout" text="SCOUT"/> <portrait prototype="mod:Prototypes/Persons/Police/profiler.e4p" big="norm" unit="profiler" text="PROFILER"/> <portrait prototype="mod:Prototypes/Persons/Police/profiler_upgrade.e4p" big="up" unit="profiler" text="PROFILER"/> <portrait prototype="mod:Prototypes/Persons/Police/profiler_upgrade2.e4p" big="up" unit="profiler" text="PROFILER"/> <portrait prototype="mod:Prototypes/Persons/TEC/engineer.e4p" big="norm" unit="engineer" text="ENGINEER"/> <portrait prototype="mod:Prototypes/Persons/TEC/engineer_upgraded.e4p" big="up" unit="engineer" text="ENGINEER"/> <portrait prototype="mod:Prototypes/Persons/TEC/engineer_upgraded2.e4p" big="up" unit="engineer" text="ENGINEER"/> <!-- equipment --> <portrait prototype="FIREEXTINGUISHER" big="mod:UI/Game/equipmentimg/toolscar_fireex_big.dds" text="FIRE EXTINGUISHER"/> <portrait prototype="SHEARS" big="mod:UI/Game/equipmentimg/toolscar_metalcutter_big.dds" text="JAWS OF LIFE"/> <portrait prototype="CHAINSAW" big="mod:UI/Game/equipmentimg/toolscar_powersaw_big.dds" text="CHAIN SAW"/> <portrait prototype="FIREAXE" big="mod:UI/Game/equipmentimg/toolscar_axe_big.dds" text="FIREAXE"/> <portrait prototype="FIREHOSE" big="mod:UI/Game/equipmentimg/toolscar_firehose_big.dds" text="FIRE HOSE"/> <portrait prototype="FLASHGRENADE" big="mod:UI/Game/equipmentimg/toolscar_flashgrenade_big.dds" text="FLASH GRENADE"/> <portrait prototype="ROADBLOCK" big="mod:UI/Game/equipmentimg/toolscar_roadblock_big.dds" text="ROAD BLOCK"/> <portrait prototype="JUMPPAD" big="mod:UI/Game/equipmentimg/toolscar_jumppad_big.dds" text="JUMP PAD"/> <portrait prototype="PISTOL" big="mod:UI/Game/equipmentimg/toolscar_gun_big01.dds" text="PISTOL"/> <portrait prototype="REDIRECTSIGN" big="mod:UI/Game/equipmentimg/toolscar_scoop_big01.dds" text="REDIRECTSIGN"/> <portrait prototype="RIFLE" big="mod:UI/Game/equipmentimg/toolscar_rifle_big01.dds" text="RIFLE"/> </portraits>[/code] Thanks to the comment line we can easly see what we need to change and where. [color="#FF8C00"]<!-- vehicles -->[/color] This comment shows that we are in the vehicles area. [color="#FF8C00"]<!-- persons -->[/color] This comment shows that we are in the person(crew) area. [color="#FF8C00"]<!-- equipment -->[/color] This comment shows that we are in the Equipment area. Depeninding on what you want to change you need to be in one of the 3 areas to change it. [b][u]Be carefull[/b][/u], This file is linked to your: [u]unit.xml[/u] file. From this file you should remember some of the details (or keep the unit.xml file open so you can just read the details). To add a new vehicle: [code] <portrait prototype="mod:Prototypes/Vehicles/Ambulance/*new prototype*.e4p" text="*Unit.XML ID TAG*" unit="*Unit.xml ID TAG*"/>[/code] Adding new personel: [code] <portrait prototype="mod:Prototypes/Persons/Ambulance/*personeels prototype.e4p" big="*plaatje*" unit="Unit.XML ID TAG" text="Unit.xml ID TAG"/>[/code] Add new equipment: [code] <portrait prototype="*New name*" big="mod:UI/Game/equipmentimg/*New equipment.DDS" text="*New name*"/>[/code] Again the changes and info given here are closely with the:[url="http://www.emergency-planet.com/index.php?option=com_content&view=article&id=110%3Aadding-vehicles&catid=46%3Aemergency-4-modding&Itemid=35?=nl"] Tut from Hoppah[/url]. [size="3"][b][u]Unit.xml[/u][/b][/size] The "Unit.[b]XML[/b]" is not like the other files just in one folder. This is because every unit(car/personal/equipment) in the game uses it's own unique unit.[b]xml[/b] file. you can find the files in: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*Your mod name*\Units*[/code] [size="1"]*Default instaltion path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Mods\*your mod name*\Units*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] [b][u][color="#FF8C00"]<!--NOTE, if you do not use another mod or the default units from the game, you will need to make and place the files in the right place yourself!--!>[/color][/u][/b] Depending on what you need, you would need to be in differnt locations. If you are looking at:[code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name*\Units[/code] of [code]..\Emergency 4\Mods\*your mod name*\Units*[/code] voor then you can find the: Unit.[b]XML[/b] files; \Equipment \Personnel \Vehicles And each of the above folders need sub-folders. \Personnel has 4 sub-folders: "\Ambulance, \Fire Department, \Police, \TEC", And each of those sub folders has to have unit folders. \Vehicles heeft 4 sub-folders: "\Ambulance, \Fire Department, \Police, \TEC", And each of those sub folders has to have unit folders. The folder: \Equipment Does not need sub-folders, But starts straight away with the unit folders. Asuming you did all other steps right.. We will create our own unit folder now. [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name*\Units\Vehicles\Ambulance\*[/code] [size="1"]*Default installtion path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Mods\*your mod name*\Units\Vehicles\Ambulance\*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] In the folder from \Ambulance\ i create a new folder. The folder name starts with a number and the name. For tut uses i will call it: 001Test In the folder 001Test we need the following files; "big.dds, browser_cl.dds, browser_dis.dds, browser_on.dds, browser_ov.dds, icon_cl.dds, icon_on.dds, icon_ov.dds, [b]unit.xml[/b]" . you can download the .dds files(empty) from the download center of the forum. or by using the once from the game it self. The unit.xml file we can also copy from another pre existing model. A unit.xml file needs to have 2 "structures" to it. As is displayed by the next lines: [code]<unit id="MTW"> <campaign> <missions value="3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20"> <prototype name="mod:Prototypes/Vehicles/Police/mtw.e4p" /> <price value="500" /> <speed value="100" /> <space value="6" /> <loadspace value="4" /> <personnel> <unit id="POLICEMAN"> <defaultcount value="1" /> </unit> <unit id="PROFILER" /> <unit id="SHOOTER" /> <unit id="SCOUT" /> </personnel> <equipment> <unit id="ROAD BLOCK" /> </equipment> </missions> </campaign> <freeplay> <missions value="3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20 22"> <prototype name="mod:Prototypes/Vehicles/Police/mtw.e4p" /> <price value="500" /> <speed value="100" /> <space value="6" /> <loadspace value="4" /> <personnel> <unit id="POLICEMAN"> <defaultcount value="1" /> </unit> <unit id="PROFILER" /> <unit id="SHOOTER" /> <unit id="SCOUT" /> </personnel> <equipment> <unit id="ROAD BLOCK" /> </equipment> </missions> </freeplay> </unit>[/code] The first "Structure" is the campaign mode tags <campaign> </campaign>. The second "Structure" is offcourse: <freeplay></freeplay>. These two "Structures" can differ from one another. So you can make modded units for the freeplay but keep them original in the campaign or vise versa. or it has less equipment in the campaign, cost less and so on. The most important thing to know is that both "Structures" use the same "Legenda" to identify and make the unit playable in the game: Short explainantion of the legenda in the unit.xml file: [color="#FF0000"]<unit id="MTW"> This is the line that links the unit.xml file to the portraits.xml file(Very important line!!!) [u][b]Each Unit.xml file <unit id= ""> must be unique, so you can't have 2 cars called "Ambulance", or 2 personel called "doctor".[/color][/b][/u] [color="#FF8C00"]- <missions value="3 4 13 15 9 8 5 17 12 14 7 19 10 6 18 16 11 20">[/color] This line will tell the game for what missions the car/person is availble ("22" is the freeplay map). This line is also a main command line so the other commands can be added). [color="#FF8C00"]- <prototype name="mod:Prototypes/Vehicles/Police/mtw.e4p" />[/color] This line will let the file know where to find the prototype file of the game. [color="#FF8C00"]- <price value="500" />[/color] Basic price of the unit(This is the price witch will be multiplied by the mlltiplier in the "freeplaybase.xml" file. (Default setting is 10)So this unit should cost 5.000 credits to call it in the game. [color="#FF8C00"]- <speed value="100" />[/color] The speed in KM/H(1KM/h = MP/H you can change the value to a max off: 9.999.999KM/H(without ".") make the speed greater and the car will not come into the game. [color="#FF8C00"]- <space value="6" />[/color] How many personel the car can carry?(Max is 12) [color="#FF8C00"]- <loadspace value="4" />[/color] how many casulties the car can take(Max is 12) [color="#FF8C00"]- <personnel>[/color] Is the opening "tag" for the personel that is allowed in the car. [color="#FF8C00"]- <unit id="POLICEMAN">[/color] The type of personal that is in the car when you call it into the game. [color="#FF8C00"]- <defaultcount value="1" />[/color]how many of the above line personel is in the car when you call it. [color="#FF8C00"]- </unit>[/color] the closing tag for the default load of the car when calling it [color="#FF8C00"]- <unit id="PROFILER" />[/color] Additional personal unit that can be in the car [color="#FF8C00"]- <unit id="SHOOTER" />[/color] Additional personal unit that can be in the car [color="#FF8C00"]- <unit id="SCOUT" />[/color] Additional personal unit that can be in the car [color="#FF8C00"]- </personnel>[/color] Closing tag for the Personel that is allowed and by default in the car [color="#FF8C00"]- <equipment>[/color] Start of the equipment carried by it. [color="#FF8C00"]- <unit id="ROAD BLOCK" />[/color] Equipment in the car(NOTE, this also needs to be checked on in the editor under "TRAITS"). [color="#FF8C00"]- </equipment>[/color] The closing tag of the equipment allowed to carried. [color="#FF8C00"]- </missions>[/color] The main closing tag for the MAIN command(mission numbers, and all other info over the unit) If you are working in the: <campaign> </campaign> Then don't add 22 to the missions line! [size="3"][b][u]Soundtrack.xml [/u][/b][/size] Alright you can change the game to an extent, and add/change new units. And modify them to how you would like them to be. Lets move on to the sounds. [u][b]You need a: .mp3 .mp4 .wav .wmv To .ogg converter[/b][/u] Like this one: [url="http://download.cnet.com/Free-Mp3-Wma-Ogg-Converter/3000-2140_4-10793572.html"]Gratis .ogg converter[/url] You can modify the game a bit more to your liking by changing the music and sounds you here. You need this file: "Soundtrack.xml" And you can find that file here: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Data\Audio\Soundtracks*[/code] [size="1"]*Default instalation path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Data\Audio\Soundtracks*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] For yours and the games safty we will copy the entire folder(AUDIO): in the mod folder you made earlier. [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name*\*[/code] [size="1"]*Default instalation path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Mods\*your mod name*\*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] Making the folder link look like this: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name*\Audio*[/code] [size="1"]*Default instalation path.[/size]] Did you installed Emergency 4 customly: [code]..\Emergency 4\Mods\*your mod name*\Audio*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] If we open the soundtrack.xml now(Audio\Soundtracks\). We can see a lot of line and structures like this one: [code] <soundtracks> <soundtrack name="1"> <music id = "0" file="mod:Audio/Soundtracks/background_05.ogg" level="0.0" next="0"> <transition target="0.1" mode="start" /> <transition target="0.2" mode="start" /> <transition target="0.3" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "1" file="mod:Audio/Soundtracks/action_short_08.ogg" level="0.1" next="2"> <transition target="0.2" mode="start" /> <transition target="0.3" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "2" file="mod:Audio/Soundtracks/action_04.ogg" level="0.2" next="2"> <transition target="0.3" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.5" mode="fade_sync" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "3" file="mod:Audio/Soundtracks/action_short_07.ogg" level="0.3" next="prev"> <transition target="0.2" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "4" file="mod:Audio/Soundtracks/action_short_07.ogg" level="0.4" next="prev"> <transition target="0.2" mode="start" /> <transition target="0.3" mode="start" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "5" file="mod:Audio/Soundtracks/action_04_low.ogg" level="0.5" next="5"> <transition target="0.2" mode="start" /> <transition target="0.3" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.6" mode="start" /> <transition target="0.7" mode="start" /> </music> <music id = "6" file="mod:Audio/Soundtracks/mission_lost.ogg" level="0.6" next="stop"> </music> <music id = "7" file="mod:Audio/Soundtracks/mission_won.ogg" level="0.7" next="stop"> </music> </soundtrack> [/code] [u][b][size="1"]**NOTE: I'm only placing one structure here, even the file shows you more then one. This is because, if you can modify one structure the other need to be done in the same way as the first way.[/size][/b][/u] To start i will just explain the structure of the soundtrack.xml file: [color="#FF8C00"]<soundtracks>[/color] - Main command that also opens the soundtrack xml file. [color="#FF8C00"] <soundtrack name="1">[/color] - A unique soundtrack number, but this number is linked to a mission number. [color="#FF8C00"] <music id = "0" file="mod:Audio/Soundtracks/background_05.ogg" level="0.0" next="0">[/color] -[color="#FF0000"]<Music[/color] Is the openings command for what should be played at the start of the mission. [color="#FF0000"] id = "0" [/color] Is the ID number of the track that is playing", [color="#FF0000"]file="mod:Audio/Soundtracks/background_05.ogg"[/color] Location of the sound file, [color="#FF0000"]level="0.0"[/color]An indication of at what level it needs to be played(game progres) [color="#FF0000"]next="0">[/color] - Tells what the next song is that should be played(bassed on ID number) in this case the song will just repeat it self untill the "level" value changes to mach another line in the file. [color="#FF8C00"] <transition target="0.1" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] <transition target="0.2" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] <transition target="0.3" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] <transition target="0.4" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] <transition target="0.6" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] <transition target="0.7" mode="start" />[/color] - Sets a target, on when a level is progressing to change the sound to or when the event is starting(The higher value the further the mission is progressing, or the situation is growing out of hand) [color="#FF8C00"] </music>[/color] - Closing command for this spesific mission [color="#FF8C00"] </soundtrack>[/color] Main close command for the "string" of mission music [color="#FF0000"][size="1"]**NOTE For all targets: 0.1 means, if target 0.1 is reached/activated play music with: ID1 for 0.2 it just means: play music ID 2 and so on. As you can see the script can only increase it value of target and music ID 0(0.1,0.2,0.3,0.4,0.5,0.6,0.7)(these are there for the other songs/sound that can be played during the mission, depending on progress/situation control). As you go allong you can go 2 ways up or down(doing good, or badly). Doing good(i would think but not tested so far) the level would decrease for example from 0.3 to 0.2, If you are doing badly the level will increase and make it increase for example like 0 to 0.5[/size][/color] If we want to change the music that is playing on the background of a mission we would need to modify this line: [code] <music id = "0" file="mod:Audio/Soundtracks/background_05.ogg" level="0.0" next="0">[/code] We start the .ogg converter(read the program manual or help file, since i'm keeping this tut to XML and not the .ogg converter). And we convert a song to a .ogg file.(I will call it: *new.ogg*) We will save the we made(*new.ogg*) in the soundtrack folder: [code]C:\Program Files\sixteen tons entertainment\Emergency 4\Mods\*your mod name*\Audio\Soundtrack*[/code] [size="1"]*Default installation path.[/size] Did you installed Emergency 4 customly: [code]..\Emergency 4\Mods\*your mod name*\Audio\Soundtrack*[/code] [size="1"]*the ..\ is for the driver letter and folders you have installed the game to. (For example: D:\ or E:\ or D:\games\ or E:\games and so on and so on).[/size] After that we need to change the line in the sountrack.xml file [code] <music id = "0" file="mod:Audio/Soundtracks/*new.ogg*" level="0.0" next="0">[/code] If you would start mission 1 now, you will hear your song in the background. Since there are 20 missions the xml contains 20 structures(for each mission one). But for somebody who was bored and counted them, knows that there are 22 structures in the soundtrack.xml file So i will explain the last two now: The 21st structure is about the Tutorial level in Emergency 4 [code] <soundtrack name="tutorial"> <music id="0" file="mod:Audio/Soundtracks/background_03_low.ogg" level="0.0" next="0"> <transition target="0.1" mode="start" /> <transition target="0.2" mode="start" /> <transition target="0.4" mode="start" /> <transition target="0.5" mode="start" /> <transition target="0.6" mode="start" /> </music> </soundtrack> [/code] As you can see this is simulair to the mission soundtrack structure, and so further explaining should not be needed. Since you can change the mission sound, you can also change the tutorial sound. Then on to the 22nd and last structure: Freeplay [code] <soundtrack name="freeplay"> <music id="0" file="mod:Audio/Soundtracks/background_06.ogg" level="0.0" next="0" /> <music id="1" file="mod:Audio/Soundtracks/action_short_01.ogg" level="0.1" next="0" /> <music id="2" file="mod:Audio/Soundtracks/action_short_02.ogg" level="0.2" next="0" /> <music id="3" file="mod:Audio/Soundtracks/action_short_03.ogg" level="0.3" next="0" /> <music id="4" file="mod:Audio/Soundtracks/action_short_04.ogg" level="0.4" next="0" /> <music id="5" file="mod:Audio/Soundtracks/action_short_05.ogg" level="0.5" next="0" /> <music id="6" file="mod:Audio/Soundtracks/action_short_06.ogg" level="0.6" next="0" /> <music id="7" file="mod:Audio/Soundtracks/action_short_07.ogg" level="0.7" next="0" /> <music id="8" file="mod:Audio/Soundtracks/action_short_08.ogg" level="0.8" next="0" /> </soundtrack> [/code] Also this structure is almost simlair to the tutorial and mission sound structure. One big differance is that the freeplay does not works with targets...this would be imposible since you are playing a free game, and not a scripted mission. But this script uses events to base what music needs to be played. A event example would be: [code]<music id="4" file="mod:Audio/Soundtracks/action_short_04.ogg" level="0.4" next="0" />[/code] This line should be the seriousness of the event that is happening. And the right line is read and played acording to the event that is happening. When something serious is happening, a high level is added, when a small thing happens a low level will happen. When you start a game it will always play(since your level = 0.0 at start): [code]<music id="0" file="mod:Audio/Soundtracks/background_06.ogg" level="0.0" next="0" />[/code] As you can see, this background music is also in a loop, and it will keep playing itself untill interuped by a event. It will then play the level acordingly sound, and stop for a few seconds, when the event sound has been played the next="0" value behind each event will happen,and the soundtrack(level0.0) will be played again. [code]</soundtracks>[/code] [color="#FF8C00"]</soundtracks>[/color] - Main closing command for all the structures in the soundtrack.xml file You can make the game more your style by changing all the 9 lines of the music(just as i explained with the missions) I'm still looking for the right way to add more then one background music line to the file. so you don't always have to listen to the same old song time after time after time. So far no luck,... (For smartasses) [code] <soundtrack name="freeplay"> <music id="0" file="mod:Audio/Soundtracks/*new1.ogg*" level="0.0" next="9" /> <music id="1" file="mod:Audio/Soundtracks/action_short_01.ogg" level="0.1" next="0" /> <music id="2" file="mod:Audio/Soundtracks/action_short_02.ogg" level="0.2" next="0" /> <music id="3" file="mod:Audio/Soundtracks/action_short_03.ogg" level="0.3" next="0" /> <music id="4" file="mod:Audio/Soundtracks/action_short_04.ogg" level="0.4" next="0" /> <music id="5" file="mod:Audio/Soundtracks/action_short_05.ogg" level="0.5" next="0" /> <music id="6" file="mod:Audio/Soundtracks/action_short_06.ogg" level="0.6" next="0" /> <music id="7" file="mod:Audio/Soundtracks/action_short_07.ogg" level="0.7" next="0" /> <music id="8" file="mod:Audio/Soundtracks/action_short_08.ogg" level="0.8" next="0" /> <music id="9" file="mod:Audio/Soundtracks/*new2.ogg*" level="0.0" next="10" /> <music id="10" file="mod:Audio/Soundtracks/*new3.ogg*" level="0.0" next="11" /> <music id="11" file="mod:Audio/Soundtracks/*new4.ogg*" level="0.0" next="0" /> </soundtrack>[/code] Does not work. *Note *new.ogg* is just an example name. [u][b][color="#FF0000"][size="3"]Pay attention!; dThe songs you convert with the .ogg converter will keep copyright protected, when you add these songs to your mod, and you make the mod public you should remove the music files or you are commiting a crime.![/size] Unless you are the artist who created the song(s)[/color][/b][/u] [size="3"][b][u]Modifying Notifications: [/u][/b][/size] When a event is happening, the supervisor will allert you to that, by playing a small movie, spoken text and atext banner in the center top screen. To edit the movie you will need to use special software to make your own movies, or voice over programs. But this is not what this is tutorial is about, so you i won't go on with that. But you can with eas modify the text banner in the center-top screen when a event is happening, so it will display your custom event line. For this you need to be in: [code]..\Emergency 4\Data\Lang\en\*[/code] Or [code]..\Emergency 4\Data\Lang\de\*[/code] [size="1"]..\ Your installation folder[/size] And copy the file: "supervevents.xml" To the mod folder you made: [code]..\Emergency 4\Mod\**your mod name**\Lang\en\*[/code] [size="1"]..\ your installation[/size] If this folder does not exist, create it(2 to 3 folders). 1. Make a folder: "Lang" in the root folder of your mod (..\Emergency 4\Mod\**your mod name**) 2. In the folder: "Lang" you create 1 or 2 new folder named: "en" or/and "de" (..\Emergency 4\Mod\**your mod name**\Lang\) 3 So you will have these locations:(Depending on the language you plan to use) [code]..\Emergency 4\Data\Lang\en\**[/code] or/and [code]..\Emergency 4\Data\Lang\de\**[/code] [size="1"]..\ installation path[/size] In het mapje van jou keuze plaats je dan het bestand: "supervevents.xml" [size="1"](vFor the purpose of this tut i will be using the folder: "en")[/size] making my folder path look like this: [code]..\Emergency 4\Data\Lang\en\supervevents.xml[/code] If we open the supervevents.xml from our mod foler we will see the following XML structures: [code] <strings> <string name="ID_SUPERV_EVENT01">Attention - traffic accident! Attend to all casualties and take them away!</string> <string name="ID_SUPERV_EVENT02">Car theft! The suspect is fleeing! Arrest and take him away!</string> <string name="ID_SUPERV_EVENT03">Building on fire, caused by electrical appliance short-circuiting! Extinguish all fires and if necessary, treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT04">Person injured by faulty electrical appliance! Treat and remove!</string> <string name="ID_SUPERV_EVENT05">Short-circuit has caused building to catch fire; there are injured! Extinguish all fires, treat the casualties and take them away!</string> <string name="ID_SUPERV_EVENT06">An imploding TV set fire to a building! Extinguish all fires and if necessary, treat all casualties and transport them away!</string> <string name="ID_SUPERV_EVENT07">TV set imploded, injured present! Treat the casualties and take them away!</string> <string name="ID_SUPERV_EVENT08">Attention - house fire, due to an imploded TV set, there are injured! Extinguish all fires, attend to the casualties and take them away!</string> <string name="ID_SUPERV_EVENT09">Vehicle fire, caused by a technical defect! Extinguish the fire and if necessary, treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT10">Attention - rioting civilian! Arrest and remove! If necessary, treat any casualties and take them away!</string> <string name="ID_SUPERV_EVENT11">Unauthorised demonstration taking place! Arrest the demonstrators and take them away!</string> <string name="ID_SUPERV_EVENT12">Attention - arson in the operational area! Arrest the arsonist and take him away! Extinguish all fires!</string> <string name="ID_SUPERV_EVENT13">There are reports of a people being taken hostage in the operational area! Rescue them, and either neutralise the kidnappers or arrest and take them away!</string> <string name="ID_SUPERV_EVENT14">Bomb alert! The bomber is fleeing! Arrest and take him away! You also need to extinguish all fires and if necessary, treat any casualties!</string> <string name="ID_SUPERV_EVENT15">Rabies alert! Neutralise the infected animal, prevent the rabies from spreading! You will need to treat any victims and take them away!</string> <string name="ID_SUPERV_EVENT16">Earthquake alert! There are casualties and structural damage! Take care of the fires, attend to all casualties and take them away!</string> <string name="ID_SUPERV_EVENT17">Medical emergency, someone has fallen and is slightly injured. Treat and remove!</string> <string name="ID_SUPERV_EVENT18">Medical emergency, someone is suffering from shock! Treat and remove!</string> <string name="ID_SUPERV_EVENT19">Medical emergency, report of a circulatory collapse! Treat and take the victim away!</string> <string name="ID_SUPERV_EVENT20">There are reports of food poisoning! Treat the victim and take him away!</string> <string name="ID_SUPERV_EVENT21">Medical emergency, someone has suffered a severe heart attack! Treat and take the victim away!</string> <string name="ID_SUPERV_EVENT22">Someone has suffered a stroke! Treat immediately and take the victim away!</string> <string name="ID_SUPERV_EVENT23">Attention - an incident of shoplifting has been reported! The thief is escaping, arrest and take him away!</string> <string name="ID_SUPERV_EVENT24">Attention - we have a report of pick pocketing! The thief is escaping, arrest and take him away!</string> <string name="ID_SUPERV_EVENT25">Armed bank robbery! Arrest the suspects and take them away! If necessary, treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT26">Attention - we have received reports of a suicide attempt! Save the victim, treat and remove!</string> <string name="ID_SUPERV_EVENT27">Someone suicidal is threatening to jump off a building! Save them!</string> <string name="ID_SUPERV_EVENT28">Attention - there are reports of a fire. Probably caused by a discarded cigarette. Extinguish all fires!</string> <string name="ID_SUPERV_EVENT29">Fire, caused by negligent handling of flammable materials! Extinguish all fires!</string> <string name="ID_SUPERV_EVENT30">Fire, caused by a firework! Extinguish all fires!</string> <string name="ID_SUPERV_EVENT31">Fire, caused by a faulty electrical appliance! Take care of those fires!</string> <string name="ID_SUPERV_EVENT32">Exploded gas pipe! Extinguish all fires and if necessary, treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT33">A fire has been reported, cause unknown. Extinguish all fires!</string> <string name="ID_SUPERV_EVENT34">Fire, cause not known. Prevent the fire from spreading and extinguish it!</string> <string name="ID_SUPERV_EVENT35">Attention - fire! Caused by open flame! Extinguish all fires!</string> <string name="ID_SUPERV_EVENT36">Lightning strike! Check whether people have been injured or if fires have broken out!</string> <string name="ID_SUPERV_EVENT37">Traffic light failure due to technical defect! Repair the lights quickly, before there are any accidents!</string> <string name="ID_SUPERV_EVENT38">Technical defect in a level-crossing barrier! Quickly repair the barrier before there are any accidents!</string> <string name="ID_SUPERV_EVENT39">Attention - there are reports of a violent crime! Arrest the suspect and take him away! Treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT40">Attention - there is a person running amok in the operational area! Arrest or neutralise this person and take him away! And don't forget to treat those victims!</string> <string name="ID_SUPERV_EVENT41">Attention - bomb explosion! Fires have broken out!</string> <string name="ID_SUPERV_EVENT42">Explosion in the sewer system! Extinguish the fires!</string> <string name="ID_SUPERV_EVENT43">Attention - violent rioters are gathering! Arrest and remove!</string> <string name="ID_SUPERV_EVENT44">A forest fire has broken out! Stop it spreading and put out all the fires!</string> <string name="ID_SUPERV_EVENT45">There are reports of a traffic accident involving several vehicles! Treat all casualties and take them away!</string> <string name="ID_SUPERV_EVENT46">Attention - violent hooligans are gathering! Arrest and remove!</string> </strings> [/code] Again, i will only explain one line, since they are all the same. So once you can change one, you can change them all. [code]<string name="ID_SUPERV_EVENT01">Attention - traffic accident! Attend to all casualties and take them away!</string>[/code] [color="#FF8C00"]- <string[/color] A series of text/command/codes that make up a command for the game [color="#FF8C00"]- name="[/color] What is this called. [color="#FF8C00"]- ID_SUPERV_EVENT01">[/color] System name of the event. [color="#FF8C00"]- Attention - traffic accident! Attend to all casualties and take them away![/color] The message that will be played in the banner when the event happens. [color="#FF8C00"]</string>[/color] End of this command line To change the banner, all we need to do is: [code]<string name="ID_SUPERV_EVENT01">Look daddy a car drove into the supermarket, what do they think this is? The blues brothers?</string>[/code] If we replace the: SUPERV_EVENT01 with our new message, and the event would happen, the banner would show this: "Look daddy a car drove into the supermarket, what do they think this is? The blues brothers?" [b](4 Example lines to see how the file will look once you change it.)[/b] [code] <strings> <string name="ID_SUPERV_EVENT01">Look daddy a car drove into the supermarket, what do they think this is? The blues brothers?</string> <string name="ID_SUPERV_EVENT02">Car theft,....well don't just stand there laughing...do something!</string> <string name="ID_SUPERV_EVENT03">Building on fire,...i hope they are insured......</string> <string name="ID_SUPERV_EVENT04">Look that plane will land on the bunny farm,..is it X-mas already??</string> </strings> [/code] (This example has 4 b*llsh*t rules, just because i can do that ^_^) But it shows you that there is no limitation to the way you can change the text in the banner(just use normal plain letters and numbers). If you replace only some events, then DON'T remove the events you have not changed. If you do this you will most likly get the ID_... lines or it can make the game crash(unexpected error) or buggy/lagging.
  25. Tian318

    Animating 3D-Models

    [quote name='bmxchamp4' date='17 September 2010 - 06:45 PM'] Hello. I am COMPLETELY new to modding and I just want to play around with a few things to just get the basics down and what not. My first question is, what program would you use to COMPLETELY make a new model of a vehicle and give it your own look and what not. Would it be in a 3D editor program, or is there a way you can just do it all in the 911 First Responders Editor? Any and all answers are deeply appreciated [/quote] You would need to use/have Zmodeler, Google sketchup or 3DSMAX, Rhino what ever,... Make a model in the program any program that can save as 3vo or 3ds is good. if you only can export in 3ds you would need a converter,...Zmodeler is a good one for that... For that reason alone i would say,...just learn Z modeler,...Hoppah already has a good tut on that one. then you would need the editor to put your model in game add traits, commands and stuff
×
×
  • Create New...