NPC problem

正在查看此主题的用户

Pug

Veteran
Is it possible to program an NPC's face to look a certain way? I know you can use face edit mode and copy the code into the Module script, but I can't use Python to compile because to do that I need to make Python the path variable, and if I do that my Wireless LAN assistant doesn't work.

Do I have to add Python to the existing Path variable, e.g. putting a semicolon on the end of the exisiting one and just adding "C:\Python"?
 
Use Janus' build_module.bat that doesn't require mucking with path.

http://forums.taleworlds.com/index.php/topic,8707.msg168467.html#msg168467
 
Additionally, you can add the path variable instead of removing the older one.

Just add this line exactly before your current path variable:
插入代码块:
C:\Python24\.;

If you delete older one and add only the Python path, you lose your other path variables needed for some programs to run correctly.
 
Ah, that explains a lot. Also, in Armagan's thorough guides, I found he actually said to append Python to the current Path variables, not delete the old ones and add a new one :oops:
 
Yep; I noticed that.

To clarify more; path variables let you enable some folders as global, that is they become folders whose contents are accessible eveywhere.

If you use "Run" command in windows, you probably use commands like "cmd" or "regedit". Actually, regedit.exe and cmd.exe are in folders \Windows\ and \Windows\system32\, respectively. Of course, it also affects command prompt. Ever used "ping" command before? ping.exe is in \Windows\system32\ folder, too.

So, when you append Python's path to your variables, you enable python to execute in a path different from its original, e.g. \ModuleSystem\ folder. (In fact, if you view the contents of build_module.bat, it only lets python to execute scripts starting with process_ prefix without defining the folder)

To examine the path variables deeper, just add one of your own folders as a variable, and see that its contents are accesible everywhere.

End of the lesson  :razz:
 
后退
顶部 底部