Author Topic: Error running openxcom  (Read 2994 times)

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Error running openxcom
« on: October 04, 2018, 12:28:47 am »
Greetings.
I am trying to execute my mod, with the last exe, 5.0 and it gives me this error:
The mod, in question is:
items:
  - type: Air Purifier
    size: 1.2
    costSell: 30000 
research:
  - name: Air Purifier
    cost: 5000
    points: 50
    dependencies:
      - STR_ALIEN_HABITAT
      - STR_CONFESSION_SECTOID_ENGINEER
      - Ufo Power Distribution
     
manufacture:
  - name: Air Purifier
    category: STR_EQUIPMENT
    requires:
      - Air Purifier
    space: 15
    time: 180
    cost: 25000
    requiredItems:
      Ferrite: 8
      Powerplant: 1
      Electronics Components: 5
   
ufopaedia:
  - id: Air Purifier
    type_id: 7
    section: STR_ALIEN_RESEARCH_UC
    requires:
      - Air Purifier
    image_id: APF.SPK
    text: An air purifier is a system that, as its name suggests, recycles and cleans the air, allowing a better habitability of closed and narrow spaces. This system is very suitable for our bases, commander, due to the fact that its facilities are mostly underground. The air purifier extracts the stale air, recycles it, filters the polluting particles and adds the components that may be necessary to make this air, again breathable. Thus, in this way, in a continuous cycle, the same air reserve is maintained, without having to install additional systems, to produce it or to pump it in the room.
    text_width: 160
extraSprites:
  - type: APF.SPK
    singleImage: true
    width: 320
    height: 200
    files:
      0: Resources/FinalModPack/UfopediaTechPics/APF.png

I think, that it may be related, with not having identified the object, in the strings. If someone can help me, I will be very grateful. Greetings.


Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Error running openxcom
« Reply #1 on: October 04, 2018, 01:07:57 am »
OXCE 5.0 and higher have more strict ruleset validation and will not allow using not defined objects.

In this case the item "Electronics Components" is not defined... but it is used as a required item for manufacture project "Air Purifier".

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Error running openxcom
« Reply #2 on: October 04, 2018, 12:14:46 pm »
Hello:
Thanks for answering. I do not understand how the object or item should be defined with the new set of rules. Electronic components is in another similar mod, apart. Could you clarify if it is not too much trouble, how should the list or ruleset be so that it is correct, with an example?
Thanks in advance.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Error running openxcom
« Reply #3 on: October 04, 2018, 01:04:37 pm »
The rules have not changed.
You probably have a mistake or typo somewhere.

Can you upload both of these mods so that I can have a look at them?

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Error running openxcom
« Reply #4 on: October 04, 2018, 04:47:56 pm »
Hello:
Of course. Here I leave a link with the two mods. Thanks in advance.

http://www.mediafire.com/file/malfvmmylh8h7lp/mods.rar/file

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Error running openxcom
« Reply #5 on: October 04, 2018, 05:22:35 pm »
Manufacture requires "Electronics Components", but item is defined as "Electronic components".

There are 2 typos:
1. The first word contains an extra "s" at the end
2. The second word has upper case "C" instead of lower case "c"

Code: [Select]
manufacture:
  - name: Air Purifier
    category: STR_EQUIPMENT
    requires:
      - Air Purifier
    space: 15
    time: 180
    cost: 25000
    requiredItems:
      Ferrite: 8
      Powerplant: 1
      Electronics Components: 5

Code: [Select]
items:
  - type: Electronic components
    requires:
      - Electronic components
    size: 0.4
    costSell: 12000
    weight: 2
    bigSprite: 100
    floorSprite: 200
    damageType: 0
    battleType: 0
    invWidth: 1
    invHeight: 1
    armor: 4
    recoveryPoints: 15
    recover: true
    listOrder: 4021

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Error running openxcom
« Reply #6 on: October 04, 2018, 06:07:13 pm »
Hello:
Thank you very much and apologies for the error.