Author Topic: [Solved] Problems updating my mod (metadata.yml is now mandatory)  (Read 9474 times)

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Hello:
I am the author of TEW, (The Endless War), and I have an important problem. I'm trying to update my mod, to the latest version of the exe, dated 23-1-2019, which includes random production, which I think I suggested at the time. The thing is, I get errors from the technology tree, the kind that doesn't recognize certain research, and I think I've found the key to the problem. I have all the research sections spread over hundreds of files, instead of just one, so I think the error comes from there. My question is, is there any simple way or program to copy sections of text from several rulesets, in this case, the mass research, and then paste it into a single txt, to create a single ruleset of research?
In the end I have been a victim of my own system, since doing what I propose manually, with more than four thousand folders, makes me very complicated and would take too long.
I'm sorry I haven't been more organized, the truth and the problems that this may have caused to other players, besides myself. Until now I had managed to solve the problems arising from each update, but this one surpasses me, since I can not continue to include the new modifications so incredible that come out periodically.
I hope to have explained myself, given that my English is not very good, which is another of the problems of the mod, although at the moment I would be interested in solving, if possible, this one. Very grateful for any help.
« Last Edit: February 11, 2023, 05:55:09 pm by Meridian »

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Problems updating my mod
« Reply #1 on: February 02, 2019, 08:31:07 pm »
Just get your shit together and turn your mod into something that at least resembles order.

I've seen your mod and I'm, telling you, this is righteous divine retribution, as well as your big chance to atone for this sin. ;)

Offline R1dO

  • Colonel
  • ****
  • Posts: 442
    • View Profile
Re: Problems updating my mod
« Reply #2 on: February 02, 2019, 08:39:05 pm »
Just copy and paste them into a single file.

Small tip:
You might want to stand on the shoulders of the giants before you.
e.g. download some known mods (I can recommend FMP and Area51 [1]) and learn from the way they have organized it. No need to reinvent good habits yourself.


[1] There are some other good mods as well, but those are the ones i've actually seen the research ruleset files.

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Problems updating my mod
« Reply #3 on: February 02, 2019, 08:41:25 pm »
Hello:
Yes, you're absolutely right. I am well employed by simple and pure stubbornness, and not having listened to those who came to warn me of it, but it was not out of arrogance but because I was convinced that it was a good way to work. Until now it had worked, and I didn't think this was going to happen, but I started working that way, and when I tried to rethink things, I had already gone too far.  Of course, I deserve all the reproaches, and I am willing to rectify, if anyone wants to or can help me.
Greetings.

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11721
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: Problems updating my mod
« Reply #4 on: February 02, 2019, 09:20:06 pm »
Unfortunately this is something you must do alone... This cannot be shared between people.
Just have patience, do it bit by bit, and check often if it works.
Use SupSuper's ruleset validator, it really helps with bugs.

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Problems updating my mod
« Reply #5 on: February 02, 2019, 09:34:36 pm »
Hello:
Yes, I agree. I don't ask anyone to do the work for me of course, if not if there was some way to fix so much mess in less time.
Well, thank you for everything. I'll get on it. We can take the matter for closed.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #6 on: February 02, 2019, 10:19:32 pm »
I'm trying to update my mod, to the latest version of the exe, dated 23-1-2019, which includes random production, which I think I suggested at the time.

For random production you need at least 31-1-2019, or later.

The thing is, I get errors from the technology tree, the kind that doesn't recognize certain research, and I think I've found the key to the problem. I have all the research sections spread over hundreds of files, instead of just one, so I think the error comes from there.

No, the problem is not in many files, you just have something missing somewhere, or some typos or similar.

If you want, upload the newest version of your mod somewhere.... then stop working on it for 1-2 days... until I send you a patch to fix the issues.

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Problems updating my mod
« Reply #7 on: February 03, 2019, 03:00:13 pm »
Hello, Meridian:
Thank you very much for your help. This is the latest version, along with the last exe of November 2018, with which it works. From there, I haven't been able to make it work.
And again, thank you very much.   :D
https://www.mediafire.com/file/th1jtyi4j1ouyh2/last_version.rar/file

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #8 on: February 03, 2019, 10:08:10 pm »
a/ All mods now require metadata.yml file. You are missing this file for all 4000+ mods you have.
b/ The IDs for the mods in options.cfg have changed, they are now lowercase. That's why most mods didn't load.

After adding the metadata.yml files and changing options.cfg to use lowercase mod names, your mods start successfully.

EDIT/Note: changing mod names to lowercase in options.cfg was necessary only because the real names are not specified in metadata.yml and the game guesses them from lowercase mod path. If the metadata.yml files contained correct names/IDs, the change of options.cfg would not be necessary.

c/ However, successful start was only because of lazy image loading. You still have many 24bit images in your mod... the game will crash as soon as it tries to load any of them. You need to convert all 24bit images into 8bit images (with appropriate palette). I didn't do that, I'll leave the job to you.


Attached are the files you need to upgrade your installation:
1/ first, replace your "standard" directory with the attached files (I made no changes to your mods, just added metadata.yml to each of them)
2/ second, upgrade OXCE (common, standard and exe) to this version (or later): https://lxnt.wtf/oxem/builds//Extended/Extended-5.2-b5dcebc3c-2019-01-31-win32.7z
3/ last, replace your options.cfg with the attached options.cfg

And start replacing all the 24bit images with 8bit images  (with appropriate palette) ...
Good luck.
« Last Edit: February 04, 2019, 12:07:34 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #9 on: February 04, 2019, 12:19:14 am »
And here are the 173 pictures that are not 8bit... there's probably a lot more, but the others are not used (as far as I can say).

Code: [Select]
Resources/AIRBUS/AIRBUS.png
Resources/Backgrounds/CodexBackground18000.png
Resources/Backgrounds/CodexBackground280.png
Resources/Backgrounds/CodexBackground40000.png
Resources/Backgrounds/CodexBackground531.png
Resources/Backgrounds/Factory.png
Resources/Backgrounds/note12.png
Resources/Backgrounds/satellite.png
Resources/Backgrounds/siberia.png
Resources/CommendationDecorations/award_0.png
Resources/CommendationDecorations/award_1.png
Resources/CommendationDecorations/award_2.png
Resources/CommendationDecorations/award_3.png
Resources/CommendationDecorations/award_4.png
Resources/CommendationDecorations/award_5.png
Resources/CommendationDecorations/award_6.png
Resources/CommendationDecorations/award_7.png
Resources/CommendationDecorations/award_8.png
Resources/CommendationDecorations/award_9.png
Resources/Commendations/medal_101.png
Resources/Commendations/medal_102.png
Resources/Commendations/medal_103.png
Resources/Commendations/medal_104.png
Resources/Commendations/medal_105.png
Resources/Commendations/medal_106.png
Resources/Commendations/medal_107.png
Resources/Commendations/medal_108.png
Resources/Commendations/medal_109.png
Resources/Commendations/medal_110.png
Resources/Commendations/medal_111.png
Resources/Commendations/medal_112.png
Resources/Commendations/medal_113.png
Resources/Commendations/medal_114.png
Resources/Commendations/medal_115.png
Resources/Commendations/medal_116.png
Resources/Commendations/medal_117.png
Resources/Commendations/medal_118.png
Resources/Commendations/medal_119.png
Resources/Commendations/medal_120.png
Resources/Commendations/medal_121.png
Resources/Commendations/medal_122.png
Resources/Commendations/medal_123.png
Resources/Commendations/medal_124.png
Resources/Commendations/medal_125.png
Resources/Commendations/medal_126.png
Resources/Commendations/medal_127.png
Resources/Commendations/medal_128.png
Resources/Commendations/medal_129.png
Resources/Commendations/medal_130.png
Resources/Commendations/medal_131.png
Resources/Commendations/medal_132.png
Resources/Commendations/medal_136.png
Resources/Commendations/medal_138.png
Resources/Commendations/medal_147.png
Resources/Commendations/medal_148.png
Resources/Commendations/medal_149.png
Resources/Commendations/medal_151.png
Resources/Commendations/medal_152.png
Resources/Commendations/medal_153.png
Resources/Commendations/medal_154.png
Resources/FinalModPack/CommendationDecorations/award_0.png
Resources/FinalModPack/CommendationDecorations/award_1.png
Resources/FinalModPack/CommendationDecorations/award_2.png
Resources/FinalModPack/CommendationDecorations/award_3.png
Resources/FinalModPack/CommendationDecorations/award_4.png
Resources/FinalModPack/CommendationDecorations/award_5.png
Resources/FinalModPack/CommendationDecorations/award_6.png
Resources/FinalModPack/CommendationDecorations/award_7.png
Resources/FinalModPack/CommendationDecorations/award_8.png
Resources/FinalModPack/CommendationDecorations/award_9.png
Resources/FinalModPack/Commendations/medal_101.png
Resources/FinalModPack/Commendations/medal_102.png
Resources/FinalModPack/Commendations/medal_103.png
Resources/FinalModPack/Commendations/medal_104.png
Resources/FinalModPack/Commendations/medal_105.png
Resources/FinalModPack/Commendations/medal_106.png
Resources/FinalModPack/Commendations/medal_107.png
Resources/FinalModPack/Commendations/medal_108.png
Resources/FinalModPack/Commendations/medal_109.png
Resources/FinalModPack/Commendations/medal_110.png
Resources/FinalModPack/Commendations/medal_111.png
Resources/FinalModPack/Commendations/medal_112.png
Resources/FinalModPack/Commendations/medal_113.png
Resources/FinalModPack/Commendations/medal_114.png
Resources/FinalModPack/Commendations/medal_115.png
Resources/FinalModPack/Commendations/medal_116.png
Resources/FinalModPack/Commendations/medal_117.png
Resources/FinalModPack/Commendations/medal_118.png
Resources/FinalModPack/Commendations/medal_119.png
Resources/FinalModPack/Commendations/medal_120.png
Resources/FinalModPack/Commendations/medal_121.png
Resources/FinalModPack/Commendations/medal_122.png
Resources/FinalModPack/Commendations/medal_123.png
Resources/FinalModPack/Commendations/medal_124.png
Resources/FinalModPack/Commendations/medal_125.png
Resources/FinalModPack/Commendations/medal_126.png
Resources/FinalModPack/Commendations/medal_127.png
Resources/FinalModPack/Commendations/medal_128.png
Resources/FinalModPack/Commendations/medal_129.png
Resources/FinalModPack/Commendations/medal_130.png
Resources/FinalModPack/Commendations/medal_131.png
Resources/FinalModPack/Commendations/medal_132.png
Resources/FinalModPack/Commendations/medal_136.png
Resources/FinalModPack/Commendations/medal_138.png
Resources/FinalModPack/Commendations/medal_147.png
Resources/FinalModPack/Commendations/medal_148.png
Resources/FinalModPack/Commendations/medal_149.png
Resources/FinalModPack/Commendations/medal_151.png
Resources/FinalModPack/Commendations/medal_152.png
Resources/FinalModPack/Commendations/medal_153.png
Resources/FinalModPack/Commendations/medal_154.png
Resources/FinalModPack/UfopediaTechPics/acid rain.png
Resources/FinalModPack/UfopediaTechPics/ACUATOID.png
Resources/FinalModPack/UfopediaTechPics/atomicbomb2.png
Resources/FinalModPack/UfopediaTechPics/AVONIUM.png
Resources/FinalModPack/UfopediaTechPics/BARONIES.png
Resources/FinalModPack/UfopediaTechPics/Biomechanical.png
Resources/FinalModPack/UfopediaTechPics/BROTHERHOOD.png
Resources/FinalModPack/UfopediaTechPics/CASE.png
Resources/FinalModPack/UfopediaTechPics/CHASER.png
Resources/FinalModPack/UfopediaTechPics/COMMUNE.png
Resources/FinalModPack/UfopediaTechPics/COND.png
Resources/FinalModPack/UfopediaTechPics/core2.png
Resources/FinalModPack/UfopediaTechPics/CRUSHER.png
Resources/FinalModPack/UfopediaTechPics/DESTROYER AUTOPSY.png
Resources/FinalModPack/UfopediaTechPics/DM.png
Resources/FinalModPack/UfopediaTechPics/DSWARM.png
Resources/FinalModPack/UfopediaTechPics/fighter pilot.png
Resources/FinalModPack/UfopediaTechPics/GAG.png
Resources/FinalModPack/UfopediaTechPics/GASCANNON.png
Resources/FinalModPack/UfopediaTechPics/gladiatorlizardmanufopedia.png
Resources/FinalModPack/UfopediaTechPics/govt.png
Resources/FinalModPack/UfopediaTechPics/GUARDAB.png
Resources/FinalModPack/UfopediaTechPics/GUARDAC.png
Resources/FinalModPack/UfopediaTechPics/guardad.png
Resources/FinalModPack/UfopediaTechPics/HYBORIAN EMPIRE.png
Resources/FinalModPack/UfopediaTechPics/informant.png
Resources/FinalModPack/UfopediaTechPics/LST.png
Resources/FinalModPack/UfopediaTechPics/MARK.png
Resources/FinalModPack/UfopediaTechPics/metal.png
Resources/FinalModPack/UfopediaTechPics/MISSILESB.png
Resources/FinalModPack/UfopediaTechPics/MRS.png
Resources/FinalModPack/UfopediaTechPics/MTRS.png
Resources/FinalModPack/UfopediaTechPics/oldrobot.png
Resources/FinalModPack/UfopediaTechPics/Origins.png
Resources/FinalModPack/UfopediaTechPics/probe.png
Resources/FinalModPack/UfopediaTechPics/QCMP.png
Resources/FinalModPack/UfopediaTechPics/Raid.png
Resources/FinalModPack/UfopediaTechPics/RC.png
Resources/FinalModPack/UfopediaTechPics/REFM.png
Resources/FinalModPack/UfopediaTechPics/ROBOTIC.png
Resources/FinalModPack/UfopediaTechPics/SANDWORM.png
Resources/FinalModPack/UfopediaTechPics/scorpion.png
Resources/FinalModPack/UfopediaTechPics/SOLAR.png
Resources/FinalModPack/UfopediaTechPics/SONICWEAPONS.png
Resources/FinalModPack/UfopediaTechPics/source.png
Resources/FinalModPack/UfopediaTechPics/steppe.png
Resources/FinalModPack/UfopediaTechPics/street.png
Resources/FinalModPack/UfopediaTechPics/SUBASTA.png
Resources/FinalModPack/UfopediaTechPics/TOXIC STATES.png
Resources/FinalModPack/UfopediaTechPics/treasure2.png
Resources/FinalModPack/UfopediaTechPics/tribal lands.png
Resources/FinalModPack/UfopediaTechPics/Veto Un.png
Resources/FinalModPack/UfopediaTechPics/wardances.png
Resources/FinalModPack/UfopediaTechPics/WEAPONDRONE.png
Resources/FinalModPack/UfopediaTechPics/XABIERARDA.png
Resources/FinalModPack/UfopediaTechPics/XECUTOR.png
Resources/GENETICSOLDIERE/inventory_GENETICSOLDIERE.png
Resources/HYPERIONSERVOARMOR/inventory_HYPERIONSERVOARMOR.png
Resources/ROBOTSUIT/inventory_ROBOTSUIT.png
Resources/Spicon/Spicon_chainwaw.png
Resources/Spicon/Spicon_robothit.png
Resources/terminator/Inventory/inventory_terminator.png

Also there is one picture missing: Resources/METALMIXTURE/inventory/METALMIXTURE_Corpse_Inv.gif
« Last Edit: February 04, 2019, 12:23:04 am by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #10 on: February 04, 2019, 11:19:44 am »
Also the following PNG files are not PNG files, they are GIF files... please rename.

Code: [Select]
Resources/EXTINCTIONDICIPLE_SOLDIER/EXTINCTIONDICIPLE_SOLDIER_corpse.png : incorrect PNG signature, it's no PNG or corrupted
Resources/FANATIC_SOLDIER/FANATIC_SOLDIER_corpse.png : incorrect PNG signature, it's no PNG or corrupted
Resources/FANATICB_SOLDIER/FANATICB_SOLDIER_corpse.png : incorrect PNG signature, it's no PNG or corrupted
Resources/PREACHER_SOLDIER/PREACHER_SOLDIER_corpse.png : incorrect PNG signature, it's no PNG or corrupted

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Problems updating my mod
« Reply #11 on: February 04, 2019, 06:45:38 pm »
Hello, Meridian:
Again, thank you so much for your help, patience, and for your time. If it is not too much to abuse I would like to give you one last consultation. I have the necessary set of pallets to change the incorrect images, but could you please tell me if there have been any different ones to the ones I have, if the ones I have, have they become outdated?
Thanks again.
« Last Edit: February 04, 2019, 06:47:15 pm by alinare »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #12 on: February 04, 2019, 07:55:47 pm »
I don't know what palettes you have.

The official ones are here: https://github.com/MeridianOXC/OpenXcom/tree/oxce-plus/bin/common/Palettes

Offline alinare

  • Colonel
  • ****
  • Posts: 128
    • View Profile
Re: Problems updating my mod
« Reply #13 on: February 04, 2019, 09:53:30 pm »
Hello:
Okay. They're the same. I've had a mistake. Thanks for everything.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9084
    • View Profile
Re: Problems updating my mod
« Reply #14 on: February 18, 2019, 12:43:56 am »
EDIT/Note: changing mod names to lowercase in options.cfg was necessary only because the real names are not specified in metadata.yml and the game guesses them from lowercase mod path. If the metadata.yml files contained correct names/IDs, the change of options.cfg would not be necessary.

Starting with OXCE 2019-02-17, the mod directories are not lowercased again.

Hope you still have your original options.cfg somewhere, you will need it again.