SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH5 Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=249)
-   -   [REL] Open Horizons II (https://www.subsim.com/radioroom/showthread.php?t=189818)

TheDarkWraith 05-27-12 10:05 AM

Quote:

Originally Posted by Trevally. (Post 1889813)
Install this and start a new campaign.
When in the bunker go straight to patrol - no briefing

There will be a marker on the map just north of Kiel - go there
when 10km away - you will get a message to reqest resupply
get radio man to do that and head for tanker (new map marker will appear. this is the tanker spawning).

Another map marker will show the second resupply area after you refuel
https://rapidshare.com/files/2740261...supply_test.7z

I can see everything - where it spawns the unit, get the current position, etc. :DL

TheDarkWraith 05-27-12 10:18 AM

Quote:

Originally Posted by Trevally. (Post 1889813)
Install this and start a new campaign.
When in the bunker go straight to patrol - no briefing

There will be a marker on the map just north of Kiel - go there
when 10km away - you will get a message to reqest resupply
get radio man to do that and head for tanker (new map marker will appear. this is the tanker spawning).

Another map marker will show the second resupply area after you refuel
https://rapidshare.com/files/2740261...supply_test.7z

Tried selecting no mission and selecting a mission. Don't see any marker on the map north of Kiel :hmmm:

EDIT:

Disregard - user error with ZipGenius :88)

TheDarkWraith 05-27-12 10:45 AM

Looks like I found what determines whether resupply available or not. A call is made into SimData to see if resupply available. The return value is tested and if 0 then you are denied resupply. Tracking down what makes the return value be 0 now. I can always override the return value check so you can always get a resupply :yep:

TheDarkWraith 05-27-12 11:08 AM

Ok, now I understand what's going on. The game only gives you one resupply. I'm trying to track down what sets the memory address for the number of resupplies currently.

Now the question is how many resupplies should you be granted? I think you should be able to request as many as you want if there are resupply points available. Now maybe we should add a random % chance that the resupply ship has no resupplies and thus you are denied :06:

EDIT:

I'm going to release a patch that will let you resupply if a resupply point is shown on the map. Give me a few...

gap 05-27-12 11:31 AM

Thank you TDW and Trevally :yeah:
and sorry for the intrusion...

Quote:

Originally Posted by TheDarkWraith (Post 1889853)
Ok, now I understand what's going on. The game only gives you one resupply. I'm trying to track down what sets the memory address for the number of resupplies currently.

Now the question is how many resupplies should you be granted? I think you should be able to request as many as you want if there are resupply points available. Now maybe we should add a random % chance that the resupply ship has no resupplies and thus you are denied :06:

It would be good!
I wonder if the same could be done for bases: it is, being given limited or no resupplies at all after docking. This, coupled with the ability to dock at more than one base at any given time, would add a third dimension to this campaign, forcing us to move from base to base, and exposing us to the risk of being attacked by enemy submarines during the short passages (as often happended during Operation Monsun), not to mention the waste of time!

Trevally. 05-27-12 11:33 AM

Quote:

Originally Posted by TheDarkWraith (Post 1889853)
I'm going to release a patch that will let you resupply if a resupply point is shown on the map. Give me a few...

:yeah:Great work TDW:sunny:

TheDarkWraith 05-27-12 11:36 AM

Quote:

Originally Posted by Trevally. (Post 1889860)
:yeah:Great work TDW:sunny:

It's available in my patches thread :up:

A side note: you probably already know this but don't place resupply points close to land. The first resupply spawned on land and the game immediately killed it :dead:

TheDarkWraith 05-27-12 11:38 AM

Quote:

Originally Posted by gap (Post 1889859)
It would be good!
I wonder if the same could be done for bases: it is, being given limited or no resupplies at all after docking. This, coupled with the ability to dock at more than one base at any given time, would add a third dimension to this campaign, forcing us to move from base to base, and exposing us to the risk of being attacked by enemy submarines during the short passages (as often happended during Operation Monsun), not to mention the waste of time!

I like the idea :yeah: Have to find the function that's called when you ask for resupply at bases :yep:

Trevally. 05-27-12 11:38 AM

Quote:

Originally Posted by TheDarkWraith (Post 1889864)
It's available in my patches thread :up:

A side note: you probably already know this but don't place resupply points close to land. The first resupply spawned on land and the game immediately killed it :dead:

:Kaleun_Cheers:

volodya61 05-27-12 11:49 AM

So, we don't need the Patch1 anymore?

Trevally. 05-27-12 11:55 AM

Quote:

Originally Posted by volodya61 (Post 1889875)
So, we don't need the Patch1 anymore?

No - patch one should be removed:up:
I will remove the link.

If you have started MG - you may want to start again - sorry:oops:

TheDarkWraith 05-27-12 11:58 AM

Quote:

Originally Posted by Trevally. (Post 1889877)
No - patch one should be removed:up:
I will remove the link.

If you have started MG - you may want to start again - sorry:oops:

Verify the patch I made works first :yep: I see no reason why it wouldn't but it's always best to verify :up:

I know it works in the campaign test I did and that should be all the proof needed but better to be safe than sorry (especially when restarting campaigns!) :DL

Trevally. 05-27-12 12:06 PM

Quote:

Originally Posted by TheDarkWraith (Post 1889878)
Verify the patch I made works first :yep: I see no reason why it wouldn't but it's always best to verify :up:

I know it works in the campaign test I did and that should be all the proof needed but better to be safe than sorry (especially when restarting campaigns!) :DL

Wise words - I will test in new start MG using silentotto:up:

TheDarkWraith 05-27-12 12:21 PM

Quote:

Originally Posted by Trevally. (Post 1889884)
Wise words - I will test in new start MG using silentotto:up:

You know what the great thing about these little side projects I take on is? The excellent side benefits that usually reveal themselves. This little project exposed perfect assembly code for how to spawn a unit :rock: Now let's see if I can spawn wolfpacks on demand :hmmm:

Sartoris 05-27-12 12:47 PM

Quote:

Originally Posted by TheDarkWraith (Post 1889888)
You know what the great thing about these little side projects I take on is? The excellent side benefits that usually reveal themselves. This little project exposed perfect assembly code for how to spawn a unit :rock: Now let's see if I can spawn wolfpacks on demand :hmmm:

Wow, that would be amazing!:yeah:


All times are GMT -5. The time now is 09:52 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.