Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Start A New Moudle Script

Page: 1 of 1
 ace92
11-14-2006, 3:04 PM
#1
If i have a Start A New Moudle script and i've attached it to the "skip poroulge" brench in the dlg and saved it all what can be the possible things that made it not to work?
 tk102
11-14-2006, 5:58 PM
#2
Maybe you could post the .nss?
 ace92
11-15-2006, 12:51 PM
#3
sorry it's not in the CODE window i've got a problem with massage publisher anyway this is the script:

void main ()
{
StartNewModule("008ebo");
}
 tk102
11-15-2006, 1:04 PM
#4
Do you have a 008ebo.mod or 008ebo.rim file in your Modules folder?

(KotOR does not have a module named "008ebo" normally.)
 ace92
11-15-2006, 1:14 PM
#5
yes i have a 008ebo.mod,and i'm talkin about KOTOR 2 if it matters
 tk102
11-15-2006, 1:43 PM
#6
Ok.

First thing I would do is make sure your script is actually firing. You can do this by adding a debug function like SendMessageToPC.

void main()
{
SendMessageToPC(GetFirstPC(), "Trying to start 008ebo module");
StartNewModule("008ebo");
}
Compile that as your script and then check your Feedback page to see if the message "Trying to start 008ebo module" is listed. If it is not, then the problem is with the .dlg file.
 ace92
11-15-2006, 1:55 PM
#7
will it work although i attached to converstion?and where will the "Trying to start 008ebo module" will show up?
 tk102
11-15-2006, 2:31 PM
#8
will it work although i attached to converstion?Yes, the SendMessageToPC just writes text to your Feedback page, it doesn't interrupt the conversation (if that's what you meant).
and where will the "Trying to start 008ebo module" will show up?
check your Feedback page;)
That's the same place that the whereami armband writes its info (screenshot (http://img.photobucket.com/albums/v144/Darth333/wheream.jpg))
 ace92
11-15-2006, 2:34 PM
#9
but if the script is fireing shouldn't it like transer me to the moudle?
 tk102
11-15-2006, 2:55 PM
#10
Not necessarily. If there are problems with the module, the StartNewModule function will fail, but the SendMessageToPC should still write the text out.
 ace92
11-15-2006, 3:19 PM
#11
well it doesn't starts the new moudle i want nor write the message,what to do?
 tk102
11-15-2006, 3:22 PM
#12
Okay. Let's confirm the obvious:
1. The .nss has been successfully compiled to an .ncs file.
2. The .ncs is in your Override folder.
3. Your modified .dlg file is in the Override folder.

If all those are correct, perhaps you could post a screenshot of DLGEditor showing the dialog branch where you are trying to fire your script.
 ace92
11-15-2006, 3:44 PM
#13
ok then:
1)yep complied successfully.
2)yep it's in my override folder
3)yep his in the override folder
Page: 1 of 1