ilovemyhedgehogs questions page [WarBand]

正在查看此主题的用户

here is the error that comes up when i try to build with the module system
NameError: name export_dir is not defined
NameError: global name export_dir is not defined
 
mr.master 说:
Could you please post your export dir from the module_info ?


# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)


#export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/mynewmod"
 
Remove the #, everything behind a # is not considered as code, but as a comment.
 
You're supposed to change the bold area:
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = "C:/Program Files (x86)/Steam/steamapps/common/mountblade warband/Modules/Calradia extended"
#export_dir = "C:/Program Files/Mount&Blade/Modules/Native/"

The one with # in front is a comment, pointing to the native folder as default. Of course change your path right, that bold is
my path as steam user.

E: Ninja'd
 
Don't get rid of the rest, just change that one.

# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/mynewmod/"
#export_dir = "C:/Program Files/Mount&Blade/Modules/Native/"

Like this.

PS: I suggest that you study at least basics of Python syntax before messing up with the module system.

 
I did what you said now another error is there Oh No!
I0 Error: [errno 13] permission denied C:/Program Files <x86>/mount&blade warband/modules/mynewmod/postfx.txt
 
Double-check the path which you added earlier, that which points to your mod.
 
Elfy 说:
Don't get rid of the rest, just change that one.

# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

export_dir = export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/mynewmod/"
#export_dir = "C:/Program Files/Mount&Blade/Modules/Native/"

Like this.

PS: I suggest that you study at least basics of Python syntax before messing up with the module system.
is this supposed to have two export directs?
 
It only has one export directory, the other is a comment, because there is a # in front of it. The point of that is to have an example, so that folks can easily understand how it works/should look.

Do you happen to have Windows7? There seems to be some oddities with permissions and overwriting things. I am aware that there are more elegant solutions, but i just copy pasted my warband directory on the desktop and i could compile unto it there.

Edit: Sorry about that - definetely not correct to have export dir = export dir.
插入代码块:
export_dir = "C:/Users/Duh/Desktop/Mount&Blade Warband/Modules/Floris Expanded Mod Pack 2.4/"
 
Duh 说:
It only has one export directory, the other is a comment, because there is a # in front of it. The point of that is to have an example, so that folks can easily understand how it works/should look.
I mean where i highlighted my post in red
 
Yes, yes there is. Delete the other so it looks like this:

export_dir = "C:/Program Files (x86)/Mount&Blade Warband/Modules/mynewmod/"
 
后退
顶部 底部