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

Offline Shiroi Bara

  • Colonel
  • ****
  • Posts: 325
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #90 on: March 21, 2019, 01:04:01 pm »
Thank you for fast response and your answers.
There was a bug in psi attacks between versions 2019-01-03 and 2019-02-22.
If you have a version older than 2019-01-03 or newer than 2019-02-22, psi attacks work the same as in vanilla.
Otherwise, please upgrade.
That's responsibility of Area 51, not of OXCE.
Got it! Upgraded. Testing now.
By the way - double stats strings on newest version 5.3.2 (2019-03-18)
"cwmcwm" on screenshot:
« Last Edit: March 21, 2019, 01:31:56 pm by Shiroi Bara »

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8578
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #91 on: March 21, 2019, 03:06:34 pm »
Thank you for fast response and your answers.Got it! Upgraded. Testing now.
By the way - double stats strings on newest version 5.3.2 (2019-03-18)
"cwmcwm" on screenshot:


Look here: https://openxcom.org/forum/index.php/topic,5258.msg110802.html#msg110802

You have situation called BAD... please change to one of the situations called GOOD.

Offline Shiroi Bara

  • Colonel
  • ****
  • Posts: 325
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #92 on: March 21, 2019, 05:28:20 pm »
Some suggestions and questions about soldiers sorting order. Now we have a lot of options, like sort by accuracy, strength etc... But all of them has order from lower to higher. But I'm often like to use opposite  effect from higher to lower. Of course, I can do it manually, but may be option in future releases? Or it's already exists and I'm just missing it?

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8578
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #93 on: March 21, 2019, 05:34:37 pm »
Some suggestions and questions about soldiers sorting order. Now we have a lot of options, like sort by accuracy, strength etc... But all of them has order from lower to higher. But I'm often like to use opposite  effect from higher to lower. Of course, I can do it manually, but may be option in future releases? Or it's already exists and I'm just missing it?

Click = sort ascending
Shift+click = sort descending
Ctrl+click = don't sort, just show numbers

Offline Alex_D

  • Colonel
  • ****
  • Posts: 479
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #94 on: March 21, 2019, 08:50:19 pm »
A small request:
Can we have the option of transferring the loot after a battle always available? Say a button alongside with sell, score, exp?

Offline Nord

  • Commander
  • *****
  • Posts: 1623
  • The Gate is open.
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #95 on: March 22, 2019, 03:25:31 pm »
New OXCE v5.3 is up.
 - Added script support for stat bonuses, including:
  * Items: damageBonus, meleeBonus, accuracyMultiplier, meleeMultiplier, throwMultiplier, closeQuartersMultiplier
  * Armors: psiDefence, meleeDodge, recovery (time, energy, morale, health, stun)
Great. But where can i get more info about thi? Is there discussion, or maybe an example mod?

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3185
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #96 on: March 22, 2019, 03:37:30 pm »
Example of some dumb script:
Code: [Select]

armors:
  - type: STR_NONE_UC
    recovery:
      time: |
        unit.tuBonusStats bonus 50 10 0 0; #same as old `tu: [0.05, 0.01]`
        add bonus 5; #similar to old `flatOne: 5`
        limit_upper bonus 100; #impossible in old version, now TU will never reach more than 100 per turn
        return bonus;

There is too global version that affect all units/items:
Code: [Select]
extended:
  scripts:
    energyRecoveryBonusStats:
      - offset: 1
        code: |
          div bonus 2; #all units have only half energy regeneration
          return bonus;

Offline Nord

  • Commander
  • *****
  • Posts: 1623
  • The Gate is open.
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #97 on: March 25, 2019, 06:02:55 am »
It is great, indeed.
And how about item, increasing accuracy or damage, when stored in backpack?

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3185
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #98 on: March 25, 2019, 11:21:16 pm »
Inventory is still off limits for scripts, you have only access to left and right weapon.

Offline Alex_D

  • Colonel
  • ****
  • Posts: 479
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #99 on: March 26, 2019, 02:27:10 am »
Inventory is still off limits for scripts, you have only access to left and right weapon.

Maybe I missed the thread where it's explained, apologies if so. Where I can get a list of variables that can be modified by scripts and examples of use? Do I need to dig into the source code?

Offline Yankes

  • Moderator
  • Commander
  • ***
  • Posts: 3185
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #100 on: March 26, 2019, 09:23:05 pm »
if you run game with debug and verbatim or some thing like that, script engine will do full dump of all possible functions avaialbe in each script.

Offline Nord

  • Commander
  • *****
  • Posts: 1623
  • The Gate is open.
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #101 on: March 27, 2019, 08:28:16 am »
if you run game with debug and verbatim or some thing like that, script engine will do full dump of all possible functions avaialbe in each script.
Please, can you provide an example?

Offline Meridian

  • Global Moderator
  • Commander
  • ***
  • Posts: 8578
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #102 on: March 27, 2019, 10:44:37 am »
Please, can you provide an example?

full dump attached

Offline Nord

  • Commander
  • *****
  • Posts: 1623
  • The Gate is open.
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #103 on: March 27, 2019, 07:24:13 pm »
full dump attached
This is a great info. Many things to think of, thanks.

Offline Finnik

  • Colonel
  • ****
  • Posts: 483
  • Finnik#0257
    • View Profile
Re: OpenXcom Extended (OXCE) main thread
« Reply #104 on: March 28, 2019, 08:27:24 pm »