Ghrey-tutorial based NPC troubleshooting
#1
Posted 28 July 2004 - 10:25 PM
Unfortunately, I had accidentally given him a enemy/ally status of PC, and as soon as I spoke to him he said some default "you kicked me out" line, and walked away.
I then changed his enemy/ally status to "neutral", and did the same thing. This time that didn't happen. Instead, as soon as I entered the government district, the game froze.
I changed it back to PC, and the game froze again when I entered the government district.
What'd I do wrong?
Here's a copy of the area appending file:
IF
Global("BarghterExists","AR1000",0)
THEN
RESPONSE #100
SetGlobal("BarghterExists","AR1000",1)
CreateCreature("Barghter",[2902.1195],3)
END
#2
Posted 28 July 2004 - 11:35 PM
A couple of questions: Is your location in the save inside the Government District, or outside it?
Did you change the script, or anything else besides the .cre when it didn't work the first time?
Did you uninstall the mod before editing the .cre and then reinstalled the mod?
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#3
Posted 29 July 2004 - 12:20 AM
No, autosave from the slums.Is your location in the save inside the Government District, or outside it?
I don't think so.Did you change the script, or anything else besides the .cre when it didn't work the first time?
Yes.Did you uninstall the mod before editing the .cre and then reinstalled the mod?
Btw, I just think my I have spotted an error. The annotation of Ghry's tutorial has the following line:
EXTEND_BOTTOM ~AR1000.bcs~ ~VondoTheNPC\J#AR1000.bcs~
When I did that the first time (with changed file-names) it sayed "error loading VondoTheNPC\J#AR1000.bcs", and my NPC never appeared in the gov district.
I tried changing the end of the tp2 line to J#AR1000.baf, and the crash occured.
I just now realized that the compiling sent the .bcs file to the override! Was the line supposed to be perhaps:
EXTEND_BOTTOM ~AR1000.bcs~ ~override\J#AR1000.bcs~ ?
#4
Posted 29 July 2004 - 12:30 AM
However, you don't need to do that. It's enough to EXTEND_BOTTOM ~Ar0100.bcs~ ~Folder\script.baf~. You can see a previous post from me about that problem here.
You shouldn't use J#, however. That's Ghrey's prefix.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#5
Posted 29 July 2004 - 01:10 AM
I don't, nor do I use Vondo. I was just retaining the old names for the example.EXTEND_BOTTOM ~AR1000.bcs~ ~VondoTheNPC\J#AR1000.bcs~
I tried both corrected tp2 options, and the game still crashes. Here'a a copy of the updated tp2 file.
BACKUP ~BarTheNPC~ AUTHOR ~iscbrooks@yahoo.com~ BEGIN ~Barghter the Kensai.~ COMPILE ~BarTheNPC\JOBarghter.d~ USING ~~ COMPILE ~BarTheNPC\JOBarghter.baf~ USING~~ COPY ~BarTheNPC\Barghter.cre~ ~override\Barghter.cre~ SAY NAME1 ~Barghter~ SAY NAME2 ~Barghter~ WRITE_ASCII 0x34 ~MONTARS~ WRITE_ASCII 0x250 ~JOBarghter~ WRITE_ASCII 0x2CC ~JOBarghter~ WRITE_ASCII 0x280 ~Barghter~ EXTEND_BOTTOM ~AR1000.bcs~ ~BarTheNPC\BARAR.baf~ APPEND ~pdialog.2da~ ~Barghter JOBarghterP JOBarghterJ JOBarghterD~ UNLESS ~Barghter~
#6
Posted 29 July 2004 - 03:34 AM
APPEND ~pdialog.2da~
~Barghter JOBarghterP JOBarghterJ JOBarghterD~
UNLESS ~Barghter~
Your dialog/script file names are too long. They can only be 8 characters, so you should shorten those. I don't think that having dialog names that are too long would crash the game though.
I'd advise against using WRITE_ASCII for assigning dialog/script files. When you're editing your .cre file, just change them then.
#7
Posted 29 July 2004 - 04:33 AM
Truth be told, I didn't really understand those two and basically just copied them off the tutorial (changing the names to fit my prefixes and Char name).I'd advise against using WRITE_ASCII for assigning dialog/script files. When you're editing your .cre file, just change them then.
I changed the dialogs to JOBarghJ and JOBarghP. No difference.
#8
Posted 29 July 2004 - 10:09 AM
sebastian8987@edu.upplands-bro.se
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#9
Posted 31 July 2004 - 10:01 AM
Firstly, as mentioned, you shouldn't assign dialogue, deathvariable and scripts through WRITE_ASCII in the tp2. Your .cre file's already bad as it is:
DPLAYER3 - the script should go away.
Please unflag the (Export allowed).
I don't really know how to change the .cre file much, the changes I made being with shadowkeeper. I don't know how to unflag the export allowed, or provide alternatives for whatever it is WRITE_ASCII does.
#10
Posted 31 July 2004 - 10:32 AM
Use Near Inifinity to open your .cre-file. This should always be the way to edit your creatures. Using WRITE_ASCII is not recommended.Firstly, as mentioned, you shouldn't assign dialogue, deathvariable and scripts through WRITE_ASCII in the tp2. Your .cre file's already bad as it is:
DPLAYER3 - the script should go away.
Please unflag the (Export allowed).
I don't really know how to change the .cre file much, the changes I made being with shadowkeeper. I don't know how to unflag the export allowed, or provide alternatives for whatever it is WRITE_ASCII does.
Making changes with Shadowkeeper to something else but your savegames (i.e. modding with SK), is not recommended either.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#11
Posted 31 July 2004 - 03:10 PM
< jcompton > Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"
#12
Posted 01 August 2004 - 01:30 AM
It's nothing wrong, it's just that I personally don't recommend newbie modders to use a method much more complicated and difficult when there are other, easier means, to do the exact same thing.What's wrong with WRITE_ASCII? It's how I do several things...
No offence, Jerdol.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#13
Posted 01 August 2004 - 02:20 AM
Here's the new tp2 file, and the new .cre file:
BACKUP ~BarTheNPC~ AUTHOR ~iscbrooks@yahoo.com~ BEGIN ~Barghter the Kensai.~ COMPILE ~BarTheNPC\JOBarghter.d~ USING ~~ COMPILE ~BarTheNPC\JOBarghter.baf~ USING~~ COPY ~BarTheNPC\Barghter.cre~ ~override\Barghter.cre~ SAY NAME1 ~Barghter~ SAY NAME2 ~Barghter~ EXTEND_BOTTOM ~AR1000.bcs~ ~BarTheNPC\BARAR.baf~ APPEND ~pdialog.2da~ ~Barghter JOBargh JOBarghP JOBarghD~ UNLESS ~Barghter~ UNLESS ~25POST~ APPEND ~pdialog.2da~ ~Barghter JOBargh JOBarghP JOBarghD JOBar25P JOBar25J JOBar25D JOBar25~ UNLESS ~Barghter~ IF ~25POST~
Note that I didn't actually make the 25 files. I'd like to focus on just making it work for now, and making it TOB compatible later.
Attached Files
Edited by Jerdol, 01 August 2004 - 02:22 AM.
#14
Posted 01 August 2004 - 02:29 AM
Have you changed the .d-file, btw?
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#15
Posted 01 August 2004 - 06:42 AM
#16
Posted 01 August 2004 - 09:40 AM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner