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)
-   -   [WIP] SH5 True Dynamic Campaign (https://www.subsim.com/radioroom/showthread.php?t=163229)

R-T-B 03-12-10 02:51 AM

Yes, extending the campaign is rather simple. Making anything of signifigance happen after 1943 is a bit harder, which is where all this coding comes in.

I'm nearly ready to release the demo. The allied AI is all but finished with it's testing. Thing is, then I have to code the actual part which takes the memory variables and edits a prebuilt "empty" campaign file I will provide with the proper events. I'm betting that will take the majority of the time, but at least you'll have a demo to play with between now and then, complete with source code (I retain rights, of course. ;) )

Watch this space!

reaper7 03-12-10 06:54 AM

Excellent R-T-B, this looks very interesting. Looking forward to a release. :up:

R-T-B 03-12-10 11:50 PM

Hey guys, just my evening update.

This is what it's doing now with all AI's enabled (still no actual surrender code though)

In this scenario, england declared war first, and Germany decided to skip invading Poland entirely:

Quote:

9/1/1940: ENG has declared war on ITA
9/2/1940: FRA has declared war on ITA
9/3/1940: AUS has declared war on ITA
9/4/1940: CAN has declared war on ITA
9/5/1940: NZL has declared war on ITA
9/5/1940: SOA has declared war on ITA
10/6/1940: GER has declared war on ENG
10/6/1940: GER has declared war on FRA
10/7/1940: GER has declared war on AUS
10/7/1940: DEN has declared war on GER
10/7/1940: DEN has declared war on ITA
10/8/1940: ICE has declared war on ITA
10/9/1940: NET has declared war on GER
10/9/1940: NET has declared war on ITA
10/10/1940: CAN has declared war on GER
10/11/1940: NZL has declared war on GER
10/12/1940: SOA has declared war on GER
11/13/1940: GER has declared war on ICE
11/14/1940: RUS has declared war on ENG
11/14/1940: RUS has declared war on FRA
11/14/1940: RUS has declared war on DEN
11/14/1940: BEL has declared war on RUS
11/14/1940: BEL has declared war on ITA
11/15/1940: ICE has declared war on RUS
11/15/1940: NOR has declared war on RUS
11/15/1940: NOR has declared war on ITA
11/16/1940: AUS has declared war on RUS
11/17/1940: CAN has declared war on RUS
11/18/1940: NZL has declared war on RUS
11/18/1940: SOA has declared war on RUS
12/18/1940: GER has declared war on BEL
12/19/1940: GER has declared war on NOR
12/20/1940: RUS has declared war on NET
9/21/1941: USA has declared war on GER
9/21/1941: USA has declared war on ITA
12/21/1941: USA has declared war on RUS
5/21/1942: MEX has declared war on ITA
10/22/1942: JAP has declared war on RUS
5/23/1943: POL has declared war on ITA
8/24/1943: POL has declared war on RUS
8/24/1943: SPA has declared war on ITA
9/24/1943: POL has declared war on GER
11/25/1943: SPA has declared war on RUS
12/26/1943: JAP has declared war on ITA
3/26/1944: ARG has declared war on GER
3/26/1944: ARG has declared war on ITA
5/26/1944: BRA has been the victim of a left wing coup!
5/26/1944: ROM has declared war on ITA
6/27/1944: ROM has declared war on RUS
8/28/1944: BRA has declared war on ITA
3/1/1945: ROM has declared war on GER
6/1/1945: GRE has declared war on ITA
8/2/1946: LIT has declared war on RUS
12/2/1946: LIT has declared war on ITA
1/3/1947: IRE has declared war on ITA
2/3/1947: IRE has declared war on GER
2/4/1947: PAN has declared war on GER
2/5/1947: PAN has declared war on ITA
3/5/1947: GRE has declared war on GER
3/6/1947: LIT has declared war on GER
4/6/1947: BRA has declared war on GRE
4/7/1947: BRA has declared war on IRE
4/8/1947: BRA has declared war on LIT
4/8/1947: CUB has declared war on GRE
4/9/1947: CUB has declared war on IRE
4/10/1947: IRE has declared war on RUS
4/11/1947: AUS has declared war on CUB
4/12/1947: CAN has declared war on CUB
4/12/1947: NZL has declared war on CUB
4/12/1947: SOA has declared war on CUB
5/13/1947: BRA has declared war on PAN
5/14/1947: BRA has declared war on ROM
5/15/1947: BRA has declared war on AUS
5/16/1947: CUB has declared war on LIT
5/16/1947: POL has declared war on GRE
5/17/1947: SPA has declared war on AUS
5/17/1947: SPA has declared war on CAN
5/18/1947: SPA has declared war on NZL
5/18/1947: SOA has declared war on SPA
6/18/1947: ENG has declared war on SPA
6/18/1947: FRA has declared war on BRA
6/19/1947: BRA has declared war on SPA
6/19/1947: GRE has declared war on SPA
6/20/1947: IRE has declared war on SPA
6/20/1947: LIT has declared war on SPA
6/21/1947: ROM has declared war on SPA
7/21/1947: RUS has declared war on ITA
8/22/1947: SPA has declared war on GER
10/22/1947: RUS has declared war on GRE
2/22/1948: ENG has declared war on GRE
2/23/1948: PAN has declared war on GRE
3/23/1948: MEX has declared war on GER
4/24/1948: CUB has declared war on MEX
4/25/1948: ROM has declared war on GRE
4/26/1948: SPA has declared war on MEX
5/27/1948: USA has declared war on SPA
7/28/1948: ARG has declared war on IRE
7/29/1948: ARG has declared war on AUS
7/29/1948: ARG has declared war on CAN
7/29/1948: GRE has declared war on ARG
7/29/1948: LIT has declared war on ARG
7/30/1948: POL has declared war on ARG
7/31/1948: POL has declared war on SPA
8/1/1948: ROM has declared war on ARG
8/1/1948: NZL has declared war on ARG
8/2/1948: SOA has declared war on ARG
9/2/1948: ENG has declared war on ARG
11/2/1948: JAP has declared war on AUS
11/3/1948: JAP has declared war on CAN
11/4/1948: JAP has declared war on NZL
11/5/1948: ENG has declared war on JAP
11/6/1948: GRE has declared war on JAP
11/7/1948: IRE has declared war on JAP
11/7/1948: LIT has declared war on JAP
11/7/1948: POL has declared war on JAP
11/8/1948: SOA has declared war on JAP
2/8/1949: ROM has declared war on IRE
2/8/1949: ROM has declared war on CAN
3/8/1949: USA has been the victim of a left wing coup!
3/8/1949: ENG has declared war on ROM
3/9/1949: LIT has declared war on ROM
5/9/1949: FRA has declared war on SPA
6/10/1949: USA has declared war on GRE
6/11/1949: USA has declared war on CAN
6/12/1949: IRE has declared war on USA
6/13/1949: AUS has declared war on USA
7/13/1949: ENG has declared war on USA
10/13/1949: FRA has declared war on JAP
11/14/1949: ARG has declared war on RUS
1/14/1950: ARG has declared war on MEX
2/15/1950: JAP has declared war on MEX
3/15/1950: JAP has declared war on GER
4/16/1950: PAN has declared war on IRE
5/17/1950: FRA has declared war on USA
5/17/1950: PAN has declared war on MEX
5/18/1950: ROM has declared war on MEX
6/19/1950: FRA has declared war on ARG
6/19/1950: MEX has declared war on GRE
6/20/1950: MEX has declared war on IRE
6/20/1950: MEX has declared war on AUS
6/21/1950: POL has declared war on MEX
6/21/1950: ROM has declared war on JAP
6/21/1950: CAN has declared war on MEX
7/22/1950: USA has declared war on MEX
7/22/1950: ENG has declared war on MEX
7/22/1950: FRA has declared war on MEX
7/23/1950: BEL has declared war on ENG
7/24/1950: IRE has declared war on ENG
7/24/1950: LIT has declared war on MEX
7/24/1950: NET has declared war on ENG
8/25/1950: RUS has declared war on MEX
8/26/1950: PAN has declared war on ENG
8/26/1950: POL has declared war on IRE
8/26/1950: AUS has declared war on PAN
8/27/1950: CAN has declared war on PAN
9/28/1950: FRA has declared war on PAN
9/29/1950: FRA has declared war on ROM
9/29/1950: ICE has declared war on FRA
9/29/1950: IRE has declared war on FRA
9/29/1950: NET has declared war on FRA
9/29/1950: NOR has declared war on FRA
9/30/1950: PAN has declared war on RUS
10/1/1950: POL has declared war on PAN
10/2/1950: ROM has declared war on PAN
11/3/1950: DEN has declared war on POL
11/3/1950: ICE has declared war on POL
11/4/1950: NET has declared war on POL
11/5/1950: NOR has declared war on POL
12/5/1950: USA has declared war on POL
This obviously is not very realistic, with all AIs enabled at the moment a system of alliances tends to make everyone go to war with everybody, regardless of relations. I'm working on it, just thought you'd like to get an idea of the state of things. Note at the end, you can't really tell who's on who's side anymore! It's pretty much for lack of a better term, downright insane.

Nightcloak 03-13-10 02:51 AM

might be a good idea to group contries into alliances but not right from the start
italy and japan wasnt axis from the beginning of WW2
just a thought tough

krupp_88mm 03-13-10 03:10 AM

i would like to see as well as a surrender option.. also possibly a capitualtion... maybe if the industrial score falls to far, then the country has a higher chance of capitulation, so a country might not be militarily defeated, but just exits the war, kind of like italy giving up when it knew its beans were cooked, or the possibility GB would give up the war, (it could be some sort of random roll every so often that would be based on how much the indistrial score is a fraction of the original starting number.. also say german takes over france.. i think a good idea to add frances industrial score to that of Germany at a reduced rate,.. of say 30-50%(random) the value when they surrender, with a random event trigger of pupet nation, that would add thier forces to your side and add them as an ally, instead of conquered).. complex i like it

another idea.. i think it would be pretty easy to add an attrition rate modifier between different countries.. for example the modifier would limit the rate of military attrition, maybe a very slow rate (20%?) for say USA vs Russia, but a faster rate for Germany vs France (120%?)... therefore we receive realistic military degradation, and not USA grinding the full might of its military halfway around the world.. much easier to invade a neighbor.. makes sense?

of course i think your main problem right now is controlling the runaway situation where every country enters war.. HOI has the same problem.. thier must be a reasonable solution to this/ need to add some chance for war to escalate / de-escalate randomly.. maybe a counter every month the war lasts 'war weariness' increases you could have several modifiers that effect 'war weariness' including the industrial score, the length of time at war, and the rate of military losses per month as a fraction of total military power.. with of course more random events added in... say war weariness gets to high.. two things could happen.. there could be a attrition rate modifier change.. where no USA vs russia is no longer 20% but drops to 10% because Americans are tired of the war.. or it could result in an armistace / capitulation / surrender roll.. to see if the war will end...

since transports affect industrial score, and warships might effect military score.. maybe troop transports could affect both attrition rate / military score... and tankers could affect industrial score and attrition rate as well... maybe attrition rate increases if one side starts to become weaker? could have an event trigger military landing, that increases attrition rate many many options.. (which would spawn maybe more enemy ships troop transports) many many options.. so many ideas lol

R-T-B 03-13-10 03:11 AM

Yeah, I need to do some edits to the code. The Axis needs to have it's dynamic changed so that Italy and Japan don't just follow suit right at the start of the war. Also, I need to break up some of the alliances so that the current "system of alliances" doesn't result in basically the whole world declaring war on itself. :)

As soon as I turned on the Allied AI, that's basically what happened. But it's easy enough to fix, I just don't have time right this evening. I'll likely have a fix up tomorrow.

Quote:

i would like to see as well as a surrender option.. also possibly a capitualtion... maybe if the industrial score falls to far, then the country has a higher chance of capitulation, so a country might not be militarily defeated, but just exits the war, kind of like italy giving up when it knew its beans were cooked, or the possibility GB would give up the war, (it could be some sort of random roll every so often that would be based on how much the indistrial score is a fraction of the original starting number.. also say german takes over france.. i think a good idea to add frances industrial score to that of Germany at a reduced rate,.. of say 30-50% the calue when they surrender, with a random event trigger of pupet nation, that would add thier forces to your side and add them as an ally, instead of conquered).. complex i like it

another idea.. i think it would be pretty easy to add an attrition rate modifier between different countries.. for example the modifier would limit the rate of military attrition, maybe a very big rate for say USA vs Russia, but a much lower rate for Germany vs France... therefore we receive realistic military degradation, and not USA grinding the full might of its military halfway around the world.. much easier to invade a neighbor.. makes sense?
All that but the military attrition bit is planned for a 1.0 release. In other words, it may take a bit, but it will have those features. :)

leipsfur 03-13-10 01:14 PM

Nice work! It's funny that poland is declaring war to germany :DL.

Will it be possible to influence the devlopment of the own country beyond the submarine? Like a HoI-SH5 mix?

R-T-B 03-13-10 07:32 PM

Quote:

Originally Posted by leipsfur (Post 1313184)
Nice work! It's funny that poland is declaring war to germany :DL.

Will it be possible to influence the devlopment of the own country beyond the submarine? Like a HoI-SH5 mix?

My original plan was to link the game Making History (A sort of hoi type game, just more open-ended and less known) to Silent Hunter and let it run as the simulation. Theoretically, this would let the player play as Germany and direct the army as well as play as a submarine. However, it has proved very diffilcult to get Making history or HoI2 to export appropriate log files that can be read by my program. IF anyone has any insight into how to get them to do that, the idea is still on the table, as my personal simulation is proving very diffilcult. :(

leipsfur 03-13-10 08:44 PM

What about converting save games from HoI into game data for SH5? I don't know what it's like in HoI2 but in HoI3 the save games are simply files with values for variables:
For example:
Code:

date="1944.8.2.12"
player="GER"
rebel=383
convoy=20239
theatre=377793
unit=71285
flags=
{
}
gameplaysettings=
{
    setgameplayoptions=
    {
2    }
}
id=
{
    id=78667
    type=4713
}
id=
{
    id=71341
    type=4714
}
rebel_faction=
{
    id=
    {
        id=365
        type=39
    }
    type="disgruntled_rabble"
    name="Disgruntled Rabble"
    country="GER"
    target="GER"
    independence="---"
    government="national_socialism"
    province=999
    provinces=
    {
        3192    }
}
rebel_faction=
{
    id=
    {
        id=378
        type=39
    }
    type="nationalist_rebels"
    name="Lithunian Nationalists"
    country="GER"
    target="GER"
    independence="LIT"
    government="national_socialism"
    province=1442
    army=
    {
        id=379
        type=39
    }
    provinces=
    {
        1442    }
}
1=
{
    owner="NOR"
    controller="GER"
    core="NOR"
    revolt_risk=1.000

But I would prefer to use HoI2 because HoI3 has still some performance issus (needs sometimes up to 2,5 GB of ram).

The only Problem is then refreshing the save games in equal time periods since i don't think HoI2 and SH5 don't use the same time compression multiplier. So SH5 or HoI has to wait for the other game to synchronise.

krupp_88mm 03-13-10 08:59 PM

http://www.mnstarfire.com/download/h...eReporter.html

check out this link i dont know but this might be useful for you

R-T-B 03-13-10 09:00 PM

Great news! I found a way to read the "Making History" game save files! This game is my personal preference, both because of it's low system requirements and the fact that history is represented acurately, but with no restrictions on the gameplay in the form of fixed events.

As far as syncronization is concerned, the player would simply run the game prior to playing, and play with the resulting war. You could either let a random war be generated, or jump in on occasion and play when you feel germany is being particularly stupid. :) I don't know about HoI2, but with Making History you can do this by starting a game and playing it out for a bit in grand stratedgy mode in between patrols, and then when going out on patrol playing as a submarine captain the AI will take over. This has the drawback of totally eliminating player input in the form of Silent Hunter sinkings however on the other hand, I really can't see a single submarine captain (no matter how good) really changing the outcome of the war.

I agree with you, I'd like to avoid HoI3 if at all possible due to the inherent issues. I'm going to start a poll however as to which players would prefer: Being able to effect the war as a submariner (no matter how insignifigant that effect may be), or having a truly dynamic campaign where you can play as Germany in a grand stratedgy mode.

Vikinger 03-13-10 09:43 PM

Quote:

Originally Posted by R-T-B (Post 1294549)
I decided to make all nations represented in game by any sort of thing "major" nations AI wise. This will require a bit of a rewrite but I think it's neccesary to produce authentic results.

Here's my new table. Please comment. 100 relations = OMG I LOVE YOU, -100 = very bad words are used to describe the other nation

http://i1020.photobucket.com/albums/...OD/Table-3.png

Thoughts? I sort of made a few up randomly, others came from Making History the video game. It's probably not the best, but we'll see how it runs soon. I'll also follow up with approximate industrial values (again, until I can find another source, taken from Making History. :/)

You do miss the neutral nations like the Swedish.

Lots of swedish ships was sunk during the war.

Sweden also shiped most of germanys steel they needed during the war. 80% came from sweden.
And we was neutral country.

later the british put up an ultimate to sweden to stop the shipping and sweden responded to dubble cross hitler.

We give you steel but it was bad quality and sweden informed the british navy when thos shipments was gona take place. Many cargo ships was sunk becuse of this dubble crossing, but it was the tool the swedish gouverment had to pay if we still wanted to stay neutral. swedeb was not that neutral during the war. Damn chickens in my eyes,,,

R-T-B 03-13-10 10:00 PM

Quote:

Originally Posted by Vikinger (Post 1314110)
You do miss the neutral nations like the Swedish.

Lots of swedish ships was sunk during the war.

Sweden also shiped most of germanys steel they needed during the war. 80% came from sweden.
And we was neutral country.

later the british put up an ultimate to sweden to stop the shipping and sweden responded to dubble cross hitler.

We give you steel but it was bad quality and sweden informed the british navy when thos shipments was gona take place. Many cargo ships was sunk becuse of this dubble crossing, but it was the tool the swedish gouverment had to pay if we still wanted to stay neutral. swedeb was not that neutral during the war. Damn chickens in my eyes,,,

Yeah, that table has seen some major revisions since then. Unfortunately, as of the moment Sweeden, finland, and other nations are not present in the game.

Sad, I know, but I didn't pick that country list, ubisoft did. I'm looking to fix it pretty soon though.

Vikinger 03-13-10 10:15 PM

Sounds good, :) No matter what country that will be in , i have fait in your project. And if you need any help just give shout. Hopefully i can contribute whit something.

Vikinger.

R-T-B 03-13-10 10:18 PM

Quote:

Originally Posted by Vikinger (Post 1314130)
Sounds good, :) No matter what country that will be in , i have fait in your project. And if you need any help just give shout. Hopefully i can contribute whit something.

Vikinger.

Just out of curiosity, what's everyone's oppinion on the question I edited into the opening post? I'm really curious as to whether I should start a complete rewrite to interface with Making History (my personal preference), or whether I should continue to fight with my current engine.

It'd be good to get some input before the moderators make this thread a poll.


All times are GMT -5. The time now is 11:13 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.