modeldefs as separate files in folder in pk3 work?

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
User avatar
camper
Posts: 115
Joined: Sun Feb 25, 2018 10:53 am
Location: Tatarstan

modeldefs as separate files in folder in pk3 work?

Post by camper »

For some reason, I can't use the recommendations specified in the modeldef help (https://zdoom.org/wiki/MODELDEF). That is, specify in the modeldef.txt file in the root directory:
#include "modeldefs/boxes.txt"
#include "modeldefs/cars.txt"
....
And then place the boxes.txt, cars.txt, modeldef_01.txt,..., modeldef_nn.txt files themselves in a separate folder 'modeldefs'. Does this work in principle or did I make a mistake in the code somewhere?
Generally speaking, I have not seen such an organization in the pk3 files that I have. In all these packs, all the modeldef.txt files are located in the root directory.

Return to “Scripting”