![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
![]() |
#2176 |
Ace of the deep .
|
![]()
Installed the latest patcher .
Installed the carrier single mission test . The carrier got close enough to blast my sub out of the water with its guns . Never seen any planes . Strangly the carrier is see thru , almost invisible with light fog looking thru binos or uzo . Will do some more testing . |
![]() |
![]() |
![]() |
#2177 | |
Black Magic
![]() |
![]() Quote:
In the main game loop one of the functions it calls is Update_Everything_In_Mission (that's what I call it) passing the frame render time. This Update_Everything_In_Mission function calls other functions one of which is a mission engine function dealing with updating/creating new units (again passing frame render time). This function takes it's current timer value and adds the frame render time to it. Then it checks to see if current timer value >= 91.0. If not return. If so then update/process/add units. That explains the lag. Now I'm seeing if it's possible to either change this timer value from 91.0 to a smaller value (half) or force the update/process/add units even though it isn't time to do so. |
|
![]() |
![]() |
![]() |
#2178 | |
Navy Seal
![]() |
![]() Quote:
![]() As Sartoris pointed out, could be nice addition if our crew officers could die ![]() Resulting of the losse of all related/involved icons...
__________________
|
|
![]() |
![]() |
![]() |
#2179 |
Ocean Warrior
![]() |
![]()
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
![]() |
![]() |
![]() |
#2180 |
Ocean Warrior
![]() |
![]()
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
![]() |
![]() |
![]() |
#2181 |
Navy Seal
![]() |
![]()
Well, soon or later
![]() Seriously, captain can die ingame: game's over... But crew officers can only be wounded (is it correct? ![]()
__________________
|
![]() |
![]() |
![]() |
#2182 |
Black Magic
![]() |
![]() |
![]() |
![]() |
![]() |
#2183 |
Ocean Warrior
![]() |
![]()
Well, what could be the cause of death on-board the sub? your opinion?
__________________
. Where does human stupidity end? . ![]() ![]() El sueño de la razón produce monstruos © - and for some people awakening will be cruel |
![]() |
![]() |
![]() |
#2184 | |
Navy Seal
![]() |
![]()
Was meaning captain can die only when sub is dead, hull zero, but that's right crew also
![]() Quote:
When badly wounded, why not have a random factor opening death door? lol
__________________
|
|
![]() |
![]() |
![]() |
#2185 |
Ace of the deep .
|
![]()
Someone posted an animation once of the crew lying on the floor . I guess its a stock animation but needs to be scripted in by someone .
|
![]() |
![]() |
![]() |
#2186 |
Black Magic
![]() |
![]()
Fixed the delay in the spawning of new units (at least the ones I ask to be spawned)
![]() The devs appeared to make a little blunder in the code. They check to see if any new units need to be created in a function and some time later in that same function they check to see if any airstrikes need to be done. Airstrikes tell the game hey, I need some units created. Not until the previous function is called again (the one that actually creates the new units - 91.0 seconds later!) will they be created ![]() I'm a master at making things do what their not supposed to so I injected a little code to ensure my units are spawned instantly ![]() You may be asking what happens in that 91.0 seconds until they are actually created? Good question! The MissionEngine DLL handles this. There is a function so eloquently named Evolve that 'evolves' the unit (updating it's position and depth and other things) until it's actually created and displayed in the game. This is bad. Why? Let's say the aircraft is asked to be created travelling at 120 knots. How far will it move in 91.0 seconds? Pretty far. When the game actually creates and displays the unit (91.0) seconds later it's not where it was asked to be spawned - it's located at the 'evolved' position and depth. Sort of like cloaking ![]() Have a couple more things to finish up on and I'll be releasing a new version of the patcher (with revised carrier aircraft spawning patch). The revised patch reduces the time it takes for a carrier to launch aircraft when it detects a contact. Before it could take 91.0 seconds + (0xF X 91.0 seconds) before it would react - an EXTREMELY long time! I have it reduced to a maximum of 91.0 seconds (which is about right - contact is detected then aircraft are loaded onto the flight deck and scrambled after the contact). I'm thoroughly enjoying this patch (both in creating it and testing/playing it). It's so much fun and so cool to see a carrier WAY out on the horizon that has detected you scramble aircraft ![]() |
![]() |
![]() |
![]() |
#2187 |
Captain
![]() Join Date: May 2011
Posts: 489
Downloads: 106
Uploads: 0
|
![]()
Glad to hear there's a new version coming!
![]() |
![]() |
![]() |
![]() |
#2188 |
Admiral
![]() Join Date: Mar 2007
Posts: 2,200
Downloads: 172
Uploads: 0
|
![]()
Thank you
![]() ![]() ![]() |
![]() |
![]() |
![]() |
#2189 |
Black Magic
![]() |
![]()
Got everything coded in
![]() - the scrambled aircraft's speed is set to the aircraft's max speed - all waypoints of the aircraft are set to the aircraft's max speed - the aircraft is spawned at a height of 10m in a 250m radius around the carrier (thus making it look like it took off from the carrier deck) - thus multiple aircraft will spawn in different places around the carrier but all of them will spawn at the same height (10m) - depending on how the AI routines are handling the aircraft (IRAI) the unit will either climb to the altitude specified in it's first waypoint (some random value of 40m - can be +- 15m) or go to the altitude specified by the AI routines (IRAI) The spawned aircraft are given two waypoints: - waypoint 1 is the contact's current position when the aircraft was spawned - waypoint 2 is the carrier's current position when the aircraft was spawned (altitude set to 150m so you'll never see it being removed from game). Thus it tries to return home (somewhat - as realistic as I wanted it to be without excessive amount of code) This value in \data\Cfg\Airstrikes.cfg Logic Steps Between Air Sessions=15 determines when the game checks for airstrikes. What this value means is: - after 91.0 seconds X Logic Steps Between Air Sessions check to see if airstrikes need to happen. I changed this slightly in the fact that if ANY unit detects a contact (or it changes the contact it was following to a different one) then the game is forced to check for airstrikes immediately (for some upcoming patches and for this carrier airstrike patch ![]() If the aircraft have loadouts specified in their .cfg file then they will be applied (bombs or torpedoes) Here I was setting up for a shot on the carrier and it detected me at ~10.4kms out ![]() this guy means business!! Time to dive! Sometime later carrier launches another aircraft at me and he means business also! Crew hasn't detected this one yet... Intense! This is freakin awesome ![]() Currently just under 1Kb of new assembly code just for this patch! New version of patcher uploading shortly...having fun in my test mission currently ![]() Last edited by TheDarkWraith; 07-03-13 at 02:10 PM. |
![]() |
![]() |
![]() |
#2190 |
Black Magic
![]() |
![]()
Everything works flawlessly
![]() v1.0.121.0 released. See post #1 |
![]() |
![]() |
![]() |
|
|