Home » MODDING HQ 1.13 » Flugente's Magika Workshop » Ongoing redesign: start options/ini/ingame options
Ongoing redesign: start options/ini/ingame options[message #354656] Sun, 02 September 2018 18:09 Go to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
We have a staggering amount of input data for the game. While this allows us to finetune the game to high degree, this can be more than a bit frightening.

One of my pet peeves is that options which control features are set in several locations:
  • Some options are set at the campaign start screen. They are stored in the savefiles and cannot be changed later on (apart from debugging or hex-editing).
  • Some options are set in the game options screen. They are read and written in the Profiles folder and are savegame-independent.
  • Most options are set in JA2_Options.ini or the myriad of other inis and xmls we have. They are savegame-independent.
We can further divide options into two types:
  • those that are used to set up savegame-stored data that cannnot be changed later on. This includes squad size, max number of team members, iron-man settings, long-term quest things... We could theoretically change the code so that all these can be altered as well (or we can already do so but don't want due to story-related reasons), but for now, let's just assume they cannot.
  • those that are used to control features that can be changed at any point in the game. This is the vast majority of options.
My pet peeve with this is that
  • we have options that set up savegame-stored data but are not set up at the campaign screen. As a result, changing them in the ini leaves us no choice but to throw an error (best example: MAX_NUMBER_PLAYER_MERCS in JA2_Options.ini).
  • we have options that can be changed at any point in time codewise (even ingame), but we cannot do so. Examples: Food, NCTH, improved interrupt system... half the start screen, really. As a result, if a player comes to the conclusion that he doesn't like the choice he made earlier, he has to start a new campaign or learn how to hack this.

Both things are bad and inconvenient. I aim to change that (whenever I have the energy to do so). To start with this, as of r8610 & GameDir r2442, the following options have been moved from the campaign start screen to JA2_Options.ini:
  • Max number of IMPs has been deleted as of r8622
  • Enemies drop all items (now DROP_ALL (Default: FALSE))
  • Merc Story Backgrounds (now BACKGROUNDS (Default: TRUE))
  • Food System (now FOOD (Default: FALSE))
  • Improved Interrupt System (now IMPROVED_INTERRUPT_SYSTEM (Default: TRUE))
  • Inventory Manipulation Costs AP (now INVENTORY_MANIPULATION_COSTS_AP (Default: FALSE))
  • New Chance to Hit System (now NCTH (Default: FALSE)) as of r8625
It now (r8610) looks like this:
https://i.imgur.com/tbgbmYE.png

I am fully aware that this might be controversial for some people. Though given that with most SCI releases there are options changed in the ini, I'm not that sure why adapting an existing campaign to a new ini should be an unusual effort.

As said, I will continue to move settings in this manner and will list these changes in this thread.

I am also aware that having some settings in the ini and some settings in DifficultySettings.xml is unusual. I've personally ranted more than a bit about that, no need to explain to me why you feel that is an odd design choice.

People who might want to complain about us having so many options everywhere might bear in mind that they are often the same people who request for more stuff to be externalised.

[Updated on: Sun, 30 September 2018 23:08]




You gotta wash your hands before picking up a baby. They can see the bacteria burning into their flesh.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Ongoing redesign: start options/ini/ingame options[message #354813 is a reply to message #354656] Tue, 11 September 2018 02:27 Go to previous messageGo to next message
kmoi

 
Messages:19
Registered:September 2013
Good,i like
Re: Ongoing redesign: start options/ini/ingame options[message #354901 is a reply to message #354813] Sat, 15 September 2018 19:38 Go to previous messageGo to next message
Parkan

 
Messages:451
Registered:April 2010
Location: Russia,Sevastopol

I hope in near future it will be possible to use more IMP mercs for example without editing mercprofiles.xml each new mod or each new big revision of 1.13...

Dreams,dreams.....



1.Serve the public trust
2.Protect the innocent
3.Uphold the law(c)Robocop
Re: Ongoing redesign: start options/ini/ingame options[message #355191 is a reply to message #354901] Sun, 30 September 2018 23:03 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
As of r8622, IMP slots are now purely defined by <Type>6</Type> in MercProfiles.xml. Removed MAX_IMP_CHARACTERS and IMP_XXX settings. That's right, we no longer have any IMP slot settings in MercProfiles.xml, all you need is to set which slot in principle can be an IMP slot and you can use it. I've taken the liberty of setting that on any other free slot in the trunk, which gives us ~29 possible IMP slots. big grin

This is the maximum liberty we can have with those slots. We have to define them somewhere. Why those slots weren't free to IMPs in the first place... no idea. It would have been possible in the old code as well (apart from the nonsensical max IMP at the starting screen I guess, which is now gone).

I briefly pondered also allowing slots with <Type>0</Type> to be IMPs - this would retroactively unlock those slots for IMPs in older saves - but for some reason I'm getting fragments of the xml-read profiles over unused slots in the savefile, so let's not go there for safety.



You gotta wash your hands before picking up a baby. They can see the bacteria burning into their flesh.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Ongoing redesign: start options/ini/ingame options[message #355192 is a reply to message #355191] Sun, 30 September 2018 23:05 Go to previous messageGo to next message
Flugente

 
Messages:3461
Registered:April 2009
Location: Germany
Also ,as of r8625, NCTh is no longer a gamestart option, but is instead set on/off in the JA2_Options.ini (NCTH = TRUE (Default: FALSE))



You gotta wash your hands before picking up a baby. They can see the bacteria burning into their flesh.

If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.


Re: Ongoing redesign: start options/ini/ingame options[message #357632 is a reply to message #354656] Sun, 07 July 2019 18:27 Go to previous messageGo to next message
Job3y

 
Messages:10
Registered:March 2017
Playing revision 8673, but no arrows in the inventory/attachments option selection, so i'm stuck on old/old. Any way to fix that? Mine looks the same as that but doesn't have the arrows on the section i mentioned

Edit: Nevermind, changing resolution seemed to fix the problem.

[Updated on: Sun, 07 July 2019 22:04]

Re: Ongoing redesign: start options/ini/ingame options[message #357936 is a reply to message #354656] Wed, 21 August 2019 22:35 Go to previous message
RollinStoner
Messages:1
Registered:August 2019
Hi, I'm trying to find the options for food and DROP_ALL and FOOD ini options talked about in the OP, but aside from the tactical food options I cant seem to find anything I opened the Ja2_Options.INI but found it to be exactly the same as the options offered in the ini editor. I am also having a problem with the Drassen counterattack being insanely overpowered, despite the the amount of enemies on the tactical screen being limited to 32, i have faced 40 and 50+ enemies attacking Drassen Mine, I love a heroic last stand as much as the next guy, but i'd like to move on now lol

Maybe someone could help me properly understand the differences between the sci and normal 1.13 versions? i'm fairly new to this and had to follow clues on steam while trying to get the game to first play, then, play at a speed that wouldn't bore a snail. So i followed some instructions that got me JA2_1.13_FullRelease_English_7435.exe installer, followed by 7609 update for that, Then i installed the 8684 SCI revision over the top of that, aside from the change to the start game options screen and the ability to chose your IMP mercs gear, i think the main thing i've noticed is the additional xml files that aren't present in the 1.13 mod, like difficultysettings, disease amongst others. I found these looking for away to turn off reinforcements after the first time i got pounded at drassen (though i now understand that this is largely due to the massive counterattack, but still seems to be bugging with me since it can have over 40 enemies on my screen).

So, in summary i guess:

Can someone...

1)Help find the options for enemies dropping all items and turning on food requirements
2)Help me figure out why i am getting more than the 32 enemy limit (I have checked it in the editor and the ini itself)
3)Take pity on me and explain the main differences between standard 1.13 and the current revision i am on? (8684)

It may also be worth noting that i have a JA_28689 zip folder in my downloads with no idea where i got it from, though i am sure it was somewhere on this site, it only contains .exes for the game, expansion and editor, as well as a changelog.

Anyway, any answers to these questions would be greatly appreciated, this was one of my favourite games growing up and it amazing to see it still alive, well and better than ever. You people truly do the work of the gods
Previous Topic: New feature: Intel
Goto Forum:
  


Current Time: Sat Aug 24 21:06:44 EEST 2019

Total time taken to generate the page: 0.01574 seconds