Earliest Scenario Start Date?

Please post here for questions and discussion about scenario design, art and sound modding and the game editor for WITP Admiral's Edition.

Moderators: wdolson, MOD_War-in-the-Pacific-Admirals-Edition

Post Reply
User avatar
Lasarian
Posts: 26
Joined: Thu Aug 29, 2013 4:38 pm

Earliest Scenario Start Date?

Post by Lasarian »

Quick question for the more seasoned modders here, what is the earliest possible campaign start date and for that matter latest end date that a scenario can have? And indeed the maximum turns (days?) as a result. I ask because I was under the impression that 7 dec 1941 was hardcoded in as was 1634 days (turns?), taking it to 28th May 1946. Yet I just modded a 'grand campaign' mod scenario start date and then started a game that kicks off months earlier and it doesnt seem to be a problem (other than most ships / units not being present due to their deployment dates in the editor still being december). So what gives? Has something changed or will the game just roll straight to dec 8th next turn? Thanks for clearing up the confusion. Cheers.
Alfred
Posts: 6683
Joined: Thu Sep 28, 2006 7:56 am

RE: Earliest Scenario Start Date?

Post by Alfred »

Nothing changed.  You just haven't given enough thought to all the problems which result.
 
You can type in any date into the editor as the start date.  Want to type in 1571, go ahead the editor won't stop you.  Try running the game though and you will come up against the hard coded issues.  The code interacts with the database.  So whilst you can alter the database values, if they are not "suitable" for the code, you hit a dead end.
 
Read this thread to get an idea of what you are up against.
 
http://www.matrixgames.com/forums/tm.asp?m=3090246&mpage=1&key=start%2Cdate&#3090246
 
Other threads provide additional details on the problems you will encounter.  Just do a search on "start date".
 
Bottom line if you want to make a playable mod which is based on what happened in the Pacific between 1941 and 1945, is the earliest start date is 7 December 1941.
 
Alfred
User avatar
Lasarian
Posts: 26
Joined: Thu Aug 29, 2013 4:38 pm

RE: Earliest Scenario Start Date?

Post by Lasarian »

Thanks, Alfred, understood. Wish I could get my hands on the source code and really 'mod' the game! Perhaps someday we'll get a more advanced codebase that's suitable for modding. Amazing how much has been accomplished regardless.
User avatar
wdolson
Posts: 7678
Joined: Tue Jun 27, 2006 9:56 pm
Location: Near Portland, OR

RE: Earliest Scenario Start Date?

Post by wdolson »

This game already lends itself to more modding than most games. The only game of this genre I can think of that might have more user mods is Steel Panthers.

As one of the people with the code base, it would take a fairly experienced programmer to grok what's there now. I have over 25 years and some things with the code still stump me. It's pretty complex.

Bill
WIS Development Team
User avatar
Lasarian
Posts: 26
Joined: Thu Aug 29, 2013 4:38 pm

RE: Earliest Scenario Start Date?

Post by Lasarian »

Controlling complexity is the essence of programming, as Kernighan would say. Sounds like it could have done with more design to achieve simplicity. C++ presumably? Not my fave.
User avatar
wdolson
Posts: 7678
Joined: Tue Jun 27, 2006 9:56 pm
Location: Near Portland, OR

RE: Earliest Scenario Start Date?

Post by wdolson »

Almost all serious game programming is done in C and C++. Most other languages are way too slow.

The deep history of this game dates back almost 15 years. 2X3 started this game with Beyond Valor, and it evolved through War Plan Orange, the original War in the Pacific and then finally the Admirals Edition. The code has been through a lot of evolution.

Bill
WIS Development Team
Post Reply

Return to “Scenario Design and Modding”