aliens

Author Topic: OXCE (OpenXcom Extended) main thread  (Read 130148 times)

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6798
  • OXCE developer
    • View Profile
    • My Wiki
Re: OXCE (OpenXcom Extended) main thread
« Reply #765 on: March 13, 2021, 10:25:33 am »
New OXCE v7.0 is up.

2021-03-13
QoL:
- Extended geoscape/battlescape/inventory links: https://openxcom.org/forum/index.php/topic,9506.0.html
- Touch buttons -- BIG THANKS to robin for the artwork: https://openxcom.org/forum/index.php/topic,9507.0.html
- Renamed and reordered scale modes: https://openxcom.org/forum/index.php/topic,9508.0.html
- New Battle QoL (bigger selectors and quick search): https://openxcom.org/forum/index.php/topic,9510.0.html
- Simplified reordering of the base list (R-click): https://openxcom.org/forum/index.php/topic,4187.msg137203.html#msg137203
- Ability to reorder craft at base (R-click)
- User option for multi-slot battlescape autosaves: https://openxcom.org/forum/index.php/topic,9512.0.html
- User option for (mouse) thumb buttons support (`thumbButtons: true/false` in options.cfg)
- "Not equipped" item category in Craft Equipment UI

Features:
- Save info about special weapons: https://openxcom.org/forum/index.php/topic,9513.0.html
- Save info about loaded fixed weapons in equipment templates: https://openxcom.org/forum/index.php/topic,9514.0.html
- Fixed `maxRange: 1` weapons for 2x2 player units: https://openxcom.org/forum/index.php/topic,9515.0.html
- Check weapon maxRange in 3D: https://openxcom.org/forum/index.php/topic,6459.msg137222.html#msg137222

Modding:
- Extended psi attack experience gains: https://openxcom.org/forum/index.php/topic,4230.msg137247.html#msg137247
- Ability to prevent panic/MC per unit type, also unhardcoded berserk odds per unit type: https://openxcom.org/forum/index.php/topic,8704.msg136773.html#msg136773
- Support for battery-powered weapons: https://openxcom.org/forum/index.php/topic,9293.0.html
- Support for fixed craft weapons: https://openxcom.org/forum/index.php/topic,9047.0.html
- Pilot armors: https://openxcom.org/forum/index.php/topic,9313.0.html
- Adjusted sell prices based on difficulty: https://openxcom.org/forum/index.php/topic,6785.msg135883.html#msg135883
- Research gate to hire scientists/engineers (`hireScientistsUnlockResearch` and `hireEngineersUnlockResearch`)
- More retaliation mission options: https://openxcom.org/forum/index.php/topic,9496.msg137252.html#msg137252
- Ability to override autoNV setting per environment (attribute `ignoreAutoNightVisionUserSetting`)
- Ability to override scanner and probe action names (using existing `psiAttackName` attribute)
- Added `difficultyBasedRetaliationDelay` option again: https://openxcom.org/forum/index.php/topic,6586.msg136997.html#msg136997
- Reset ambient sounds on stage transition in multi-stage missions

Scripting:
- Added access to unit inventory: https://openxcom.org/forum/index.php/topic,5245.msg136806.html#msg136806
- Added syntax for loops

Bugfixes:
- Fixed compliant map block detection in the Reinforcements feature (when using `spawnBlockGroups`)
- Fixed/improved friendly kill tracking: https://openxcom.org/forum/index.php/topic,4595.msg135527.html#msg135527
- Fixed broken Korean fonts: https://openxcom.org/forum/index.php/topic,9486.0.html
- Ignore `LOSRequired` weapon flag when targeting allies and civilians (it's a workaround, LOS check doesn't work in these cases)

Download: https://openxcom.org/forum/index.php/topic,5258.0.html

Ruleset validator and wiki ruleset reference were updated.

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #766 on: March 13, 2021, 11:15:16 am »
Thank you for your work.

Offline Nilex

  • Colonel
  • ****
  • Posts: 263
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #767 on: March 13, 2021, 11:51:12 pm »
Great update from what my puny brain understands. I especially like base/craft reordering. Craft thingy actually wrote off an item from my own personal QoL wishlist. Base would probably end on it too had I played enough times to repeat base placing/purpose mistake so props for making those.

Couple of quick questions:
Is Craft reordering only a visual change (when looking at base layout) or does it also include functional reordering when intercept popup is pulled from Geoscape? For example when player wants to have Interceptors followed by Transports within same base listing. Cannot begin to explain how much extra time I spent building an extra hangar in another base just so I could transfer craft away & back again to fully reorder them.

From something I read (probably miss-read) on Discord a ~month ago: is NV a persistent on/off setting now, kept inside the save? Rather than depending on map lighting amount and being turned on/off (depending on threshold value in options) automatically when battle is started/reloaded.
Someone asked where NV setting was and you responded it will be replaced by something better, or something along those lines. Hoping it's an option I missed coz it would be of great use to me. Happens rarer now (since sweet spot treshold=9) but I still occasionally fight with auto-NV setting, turning it on or off manually because threshold value isn't universally viable in all situations. If on/off toggle is part of save then it'd sufficient to toggle it at start of battle and only if I don't already agree with what threshold decided.
I'm pushing my luck but maybe CTRL+END setting could override NV and vice-versa depending which was set last. It does look more beautiful than NV in some cases. Setting would also be persistent in battle saves until a new battle was started (not reloaded) where threshold would take priority. Well so much for being quick about it, sorry!

Offline Markus Ramikin

  • Captain
  • ***
  • Posts: 84
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #768 on: March 15, 2021, 12:48:47 am »
To add to the topic of mutual surprise changes in OXCE: for some extra fun, the situation from the savegame attached results in mutual surprise in OXC, but not in OXCE, the reverse of what I usually experience.

I confess myself confused.

(Not trying to rush you, Meridian, just figured if/when you get to examining the smoke vs sight range issue you might possibly find another datapoint useful. If not, ignore.)

Offline Pixel_Uart_HD

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #769 on: March 15, 2021, 04:08:54 pm »
All Hi Hi
Suggestion for improving the interface

Is it possible to render in the user's fashion
(on the battlefield screen) own buttons with the specified coordinates, Without using the built-in interface (Battlescape)

or by some other method?     Improved button graphics I would do myself   (Mode 640 x 400   basic frame)

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6798
  • OXCE developer
    • View Profile
    • My Wiki
Re: OXCE (OpenXcom Extended) main thread
« Reply #770 on: March 15, 2021, 04:45:16 pm »
You can change how the buttons look.

You cannot change what the buttons do, nor their position.

Offline Pixel_Uart_HD

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #771 on: March 15, 2021, 05:10:50 pm »
No need to change button functions
I wanted to change the coordinates and increase the size of the buttons, since the size of the displayed map is too large compared to the size of the panel (320x200 buttons interface). Is it really that hard to just fix 30 ...... 60 numbers

Offline Pixel_Uart_HD

  • Squaddie
  • *
  • Posts: 3
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #772 on: March 15, 2021, 06:16:43 pm »
ICONS.PCK   Battlescape icons

xracer

Quote
Control panel is basically done, i have added those last 2 little items for grenades quick access and reload  of course functionality for those would need to be added, although i have re-size the icons to give a little more space to the status bar, and to make it fir vanilla size.

if you think there is something else that need to be changed let me know, maybe we can gather every thing and make a "large" mod, I am tinkering with the rest of the GUI to make it fit a 640x400 but not simply 2x everything.

Althought right now i am focused on teh battlescape i think there isn't much that needs to be done there if the loadout screen is used then that covers basically everything, the rest of the GUIS such as the minimap, scanner, medikit will just be centered with the battlescape as background so that it looks like an actual window. Anything else i am missing? maybe i shoudl play the game and go over every GUI again

Rul file  syntax:    one button

  - type: ICONS.PCK
    singleImage: true
    width: 320
    height: 200
    files:
      0: Resources/DECALS/ICONS.png
  - type: KneelButton
    width: 32
    height: 32
    subX: 32
    subY: 16
    files:
      0: Resources/UnitUI/kneelButton.png
-------------------------------------------------------------------------
BattlescapeState.cpp   (Names All  buttons)

   rank                      icons
   rankTiny                icons
   btnUnitUp              icons
   btnUnitDown          icons
   btnMapUp              icons
   btnMapDown          icons
   btnShowMap          icons
   btnKneel                icons
   btnInventory          icons
   btnCenter               icons
   btnNextSoldier        icons
   btnNextStop           icons
   btnShowLayers        icons
   numLayers              icons
   btnHelp                   icons
   btnEndTurn             icons
   btnAbort                 icons
   btnStats                  icons
   txtName                  icons
   
   AvatarBackground

   numTimeUnits              icons
   numEnergy                  icons
   numHealth                   icons
   numMorale                   icons
   barTimeUnits                icons
   barEnergy                    icons
   barHealth                     icons
   barMorale                     icons
   imanaBarVisible

        barMana                                  icons
   
   btnReserveNone                       icons
   btnReserveSnap                       icons
   btnReserveAimed                      icons
   btnReserveAuto                        icons
   btnReserveKneel                       icons
   btnZeroTUs                              icons
   btnLeftHandItem                       icons          slot weapon
   btnRightHandItem                     icons

        btnVisibleUnit                   indicator unit (enemy)
        numVisibleUnit                 number enemy


// there is some cropping going on here, because the icons image is 320x200 while we only need the bottom of it.
   auto crop = icons->getCrop();
   crop.getCrop()->x = 0;
   crop.getCrop()->y = 200 - iconsHeight;
   crop.getCrop()->w = iconsWidth;
   crop.getCrop()->h = iconsHeight;

It might look like this
tweaked in a graphical editor

original aspect ratio for a resolution of 1024x640
« Last Edit: March 16, 2021, 09:08:19 am by Pixel_Uart_HD »

Offline Cowstle

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #773 on: March 18, 2021, 03:26:58 pm »
How do you define and set the extra damage types?

I see multiple mentions of them in the ruleset reference but no actual way to use them, and my searching was only able to find a mention that yes, they exist, but again nothing about how to use them.

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #774 on: March 19, 2021, 05:13:57 am »
I see multiple mentions of them in the ruleset reference but no actual way to use them, and my searching was only able to find a mention that yes, they exist, but again nothing about how to use them.

https://openxcom.org/forum/index.php/topic,6577.msg103384.html#msg103384

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #775 on: March 20, 2021, 09:38:38 pm »
Is there any means of additional reward with materials for a mission to a self-landed UFO?

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 2454
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #776 on: March 22, 2021, 10:42:55 am »
I recreantly add option to script to allow setting custom spawn units to any unit, it still have some corner cases but overall should work as expected.
This feature have to additional functionalities, you can set what faction of spawned unit will be, and if transformation will be instant or only when unit is stunned/killed

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #777 on: March 26, 2021, 04:56:53 pm »
Dear Meridian, could you expand the numeric value for the oxceAutoNightVisionThreshold option to 16?
What for? To enable and disable the Night Vision mode in battle. At least in the settings. And it would be better if there was another hotkey, but this is not necessary.
Backlighting with a "space" is enough for me, and with forced automation, the entire atmosphere of the original disappears in night battles.

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 6798
  • OXCE developer
    • View Profile
    • My Wiki
Re: OXCE (OpenXcom Extended) main thread
« Reply #778 on: March 26, 2021, 05:00:10 pm »
Dear Meridian, could you expand the numeric value for the oxceAutoNightVisionThreshold option to 16?
What for? To enable and disable the Night Vision mode in battle. At least in the settings. And it would be better if there was another hotkey, but this is not necessary.
Backlighting with a "space" is enough for me, and with forced automation, the entire atmosphere of the original disappears in night battles.

You can use value 15 to disable the night vision.

Values 16, 17, 18, and so on would only do the same as 15.

Offline Ethereal

  • Colonel
  • ****
  • Posts: 451
    • View Profile
Re: OXCE (OpenXcom Extended) main thread
« Reply #779 on: March 26, 2021, 05:23:13 pm »
Unfortunately, there are maps with 15 shading. And these are the settings of the original. Try it yourself.
UFO - UBASE, MARS.
TRTD - GRUNGE, ENTRY, ALSHIP, LEVEL, CRYPT.