Jump to content

[v1.52 Modular Mod System] Some Map Assets Not Loading


kabill

Recommended Posts

I'm cross-posting this from the main bug forum as it probably applies to the community edition too and llunak might be the only person who is able to fix it.

---

I've been trying to make my random map packs compatible with the mod loading system so they can be made available on Steam. I've done the desert and the arctic one and these appear to work fine. However, when trying to make the farm one work, most of the submaps don't load and I can't fathom out why.

So far as I can tell, it's not an error with how the files have been set up. Indeed, there shouldn't need to be any changes made as it uses all custom assets so the game just needs to load them up. This is what has happened in the other two map packs and, as I say, it works with some of the submaps in the farm pack too.

The modinfo log file doesn't indicate anything useful. Indeed, it only displays output for the successfully loaded submaps and doesn't indicate anything about the others at all. It's as if it's simply not acknowledging that they need to be loaded. To be sure, I've checked the submaps that aren't loading against ones that are (in the farm map pack and others) and can't see any differences that would cause the issue.

Where I've gotten to is it being related either to folder names, or folder order or something like that. If I swap around the name of two submap folders so that one that previously wasn't loading is swapped with one that was, the game will load the previously not working submaps but not the ones that were working. E.g.:

RMP_Farm_Field loads fine. RMP_Farm_HeyField does not. If I change the folder names so that the hey field submaps are contained in the RMP_Farm_Field folder and the field submaps are in the RMP_Farm_HeyField folder then the hey field submaps load while the field ones don't.

This means it's not to do with the submap files (otherwise they still wouldn't work when reversed).

Some folder names work while some do not. For example:

The folder name RMP_Farm_XBuilding did not load when I tried it, but RMP_Farm_BuildingX did.

But other folders in the same layer group (i.e. ground, walls, props and buildings) also seem to make a difference. For example:

Two folders in the same layer group, RMP_Farm_Open and RMP_Farm_BuildingX, work fine when they are the only folders in the "ground" layer group. So too do RMP_Farm_Building and RMP_Farm_Field when they are the only folders in the group. However, put them all together in the same time and only the latter pair work while the former pair don't.

So the folder names seem to matter, but I can't produce anything more useful than this. Maybe it is enough to have a look at the code and figure out the problem, though?

Link to comment
Share on other sites

Just a curious question, are you misspelling hay as hey on purpose?

If by 'on purpose' you mean 'intentionally 'cause I can't spell', then yes.

Testcase?

I thought you might ask for that. I'll see if I have time this evening to send you the mod in question and I'll write up a series of tests that I did so you can work through them.

Link to comment
Share on other sites

If by 'on purpose' you mean 'intentionally 'cause I can't spell', then yes.

I thought you might ask for that. I'll see if I have time this evening to send you the mod in question and I'll write up a series of tests that I did so you can work through them.

Actually, I meant 'on purpose' as in 'for some reason, that's what the game expected' :-P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...