Can't work with the Ressource Folder

正在查看此主题的用户

Kabalon

Regular
Hey Guys!

I just created a new map icon and well figured out how to use OpenBRF finally.
Now I wanted to add this new map icon into my Mods Ressource Folder.

The Readme.txt within tells me:

"You can place your resource (*.brf) files in this folder
and make the game read them by putting a load_module_resource
directive in module_info.txt"

actually I can't find any module_info.txt

only the module_info.py within the module system sounds familiar. and I added the "load_module_resource" to it - but Build_module.bat throws out this error when I try to make it that way:

    from module_info import *
  File "C:\Users\Charlie\Desktop\Bushproject\modulesystem\module_info.py", line
8, in <module>
    load_module_resource
NameError: name 'load_module_resource' is not defined



So what am I doing wrong??


greets Charlie


 
Ah Sorry guys :grin:

I'm a bit tired and didn't recognized that the directory for the resource folder must be defined here...a bit of thinking and I got it :wink:



load_module_resource = "C:/Warband/Modules/Cannibal/Resource/"


thats the way
 
Kabalon, for these kinds of questions, please do use the stickied Q&A thread rather than starting a new thread every time you get stuck.

Also, the load_module_resource = brf_file_name lines do not go in module_info.py  but in module.ini (the non-module system file with the compiled .txts) with the other load_resource declarations. I think that's why you were running into troubles here.
 
后退
顶部 底部