Need help with Python

正在查看此主题的用户

SO Right no I am working with the 1.152 module system, I was finally able to set python up straight well  kinda of. Right now I am getting errno 2, and its saying python cant open process_scripts.txt, Python cant open process_missions no such directory exist. etc. even though the files are there. What am I doing wrong?
 
Go through Lumos' tutorial step by step and see if you got everything right:

http://forums.taleworlds.com/index.php/topic,240255.0.html



PS: I think you have problems with this:
插入代码块:
# Point export_dir to the folder you will be keeping your module
# Make sure you use forward slashes (/) and NOT backward slashes (\)

[color=red]export_dir = "../WOTS/Modules/Native/"[/color]
#export_dir = "C:/Program Files/Mount&Blade/Modules/Native/"

This is in module_info and you need to set the path right to your new mod: export_dir = "C:/Program Files/Mount&Blade/Modules/my_new_mod/"
 
Ok, you have installed python, and extracted the module files. You then have to go to, computer settings>advance system setting > environmental variables > system variables > path > edit > paste this


C:\Windows\system32;C:\Python26


Then go to module_info.py and paste the directories of your mods module. Mine looks like this,


C:\Program Files (x86)\Steam\steamapps\common\mountblade warband\Modules




Paste that onto both of the things in module_info.py and change the backslash to forward, then run it and it should work,
 
It should have this / and not the \ when in modules_info.py.

插入代码块:
# 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/MyMod/"
 
Dawiduh 说:
It should have this / and not the \ when in modules_info.py.

插入代码块:
# 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/MyMod/"
Ya change the backslash to forward i said that. But thank you for your input. Oops appears i messed up. I fixed it.
 
ive already done the enviromental variables (IF I didnt it would say python not recognized.) I also pointed everything to my module directory
(export_dir = "C:/Program Files/Mount&Blade Warband/Modules/Native-Copy")

im still getting the errors which confuses me.
 
Try this thingie, already comes with Python bundled and everything configured by default. Also compiles faster:
插入代码块:
http://forums.taleworlds.com/index.php/topic,226612.0.html

Should work out of the box. Not as frustrating when you're just toying with it, for starters.
 
Basically im using the module system to add some osp into my mod, I tried doing it without it, it loads to the main menu but when starting a game it crashes when it says its loading the map file. Is that because I havent used the module system to export the files or is that a diffrent problem altogether.


anyway thanks for the help, im hoping this will work
 
后退
顶部 底部