Jump to content


exe problems with tp2

exe tp2 problem

  • Please log in to reply
19 replies to this topic

#1 -Kimmuryiel-

-Kimmuryiel-
  • Guest

Posted 21 August 2013 - 05:13 PM

Hello, I am brand new to modding and thought I'd start off by creating a simple joinable NPC. I follow the tutorial "How to make an NPC is you are a noob" by Theacefes and I followed her tutorial literally word for word (except for with character name), but, when I run the exe file, it gives me an error that says

"In state 110, I expected one of these tokens:

[0] EOF

[15] MENU_STYLE

[19] UNINSTALL_ORDER

[38] ASK_EVERY_COMPONENT

[49] LOAD

[52] DEFINE_ACTION_MACRO

[61] ALWAYS

[119] ALLOW_MISSING

[123] SCRIPT_STYLE

[134] DEFINE_PATCH_MACRO

[141] MODDER

[145] VERSION

[239] NO_IF_EVAL_BUG

[243] AUTO_TRA

[298] QUICK_MENU

[314] LANGUAGE

[316] BEGIN

[324] README

Parse error <state 110> at ~~

 

[SETUP-AZURA.tp2\ PARSE ERROR at line4 column 1-12

Near Text: Azura

      GLR parse error

 

[SETUP-AZURA.TP2] ERROR at line 4 column 1-12

Near Text: Azura

      Parsing.Parse_error

ERROR: parsing [SETUP-AZURA.TP2]: Parsing.Parse_error

ERROR: problem parsing TP file [SETUP-AZURA.TP2]: Parsing.Parse_error

 

FATAL ERROR: Parsing.Parse_error"

 

 

 

 

 

 

This is what my tp2 file looks like (minus the various "SAY"s):

BACKUP ~Azura/backup~
AUTHOR ~Ninja Flibble (kimmuryiel@yahoo.com)

 

BEGIN ~Azura for BG2:SoA~
COPY ~Azura/AZURA.cre~ ~override/AZURA.cre~

 

SAY NAME1 ~Azura~
SAY NAME2 ~Azura~

 

(various "SAY"s go here)

 

COMPILE ~Azura/azura.d~
EXTEND_TOP ~AR0406.bcs~ ~Azura/ar0406.baf~

 

COPY ~Azura/FDNW1S.bmp~ ~override/FDNW1S.bmp~
  ~Azura/FDNW1L.bmp~ ~override/FDNW1L.bmp~

 

APPEND ~pdialog.2da~
~NF#AZUR NF#AZURP NF#AZURJ NF#AZURD NF#AZ25P NF#AZ25J NF#AZ25D NF#AZU25~
UNLESS ~NF#AZUR~
UNLESS ~25POST~

 

APPEND ~interdia.2da~
~NF#AZUR NF#AZURB NF#AZB25~
UNLESS ~NF#AZUR~
UNLESS ~25FILE~

 

 

 

 

Also...if anyone's interested in writing for me, I would appreciate it :D...I'm a horrible writer...



#2 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 21 August 2013 - 06:58 PM

Hello, I am brand new to modding and thought I'd start off by creating a simple joinable NPC. I follow the tutorial "How to make an NPC is you are a noob" by Theacefes and I followed her tutorial literally word for word (except for with character name), but, when I run the exe file, it gives me an error that says
"...
[SETUP-AZURA.tp2\ PARSE ERROR at line4 column 1-12
Near Text: Azura
      GLR parse error
 ..."

This means it's freaking out when it sees "Azura" on line 4. Why is it freaking out? Here's line 4.

BEGIN ~Azura for BG2:SoA~

It's fine. But the line before it?

AUTHOR ~Ninja Flibble (kimmuryiel@yahoo.com)

It's missing a ~ at the end.

So, WeiDU thinks your AUTHOR string is
~Ninja Flibble (kimmuryiel@yahoo.com)

BEGIN~
.

Azura comes right after, and WeiDU interprets it as a command that doesn't exist and barfs out an error message.



#3 -kimmuryiel-

-kimmuryiel-
  • Guest

Posted 21 August 2013 - 07:53 PM

thank you very much :) completely solve, well, THAT problem. I'll post more as more problems come up. I do appreciate the quick reply :)

That's my only problem with any kind of coding or scripting, how f**king picky it is. I do understand the pickiness, though.



#4 -kimmuryiel-

-kimmuryiel-
  • Guest

Posted 21 August 2013 - 11:14 PM

Next few problems that I'm can't figure out (probably because it's midnight and I've been working on it all day)
1: Placement. I can't get her to move anywhere except nearer to the wall. I want her over near the dwarf for the Illium quest. Here's my AR script:

  IF
  Global("AZURAExists","AR0406",0)
  THEN
  RESPONSE #100
  SetGlobal("AZURAExists","AR0406",1)
  CreateCreature("AZURA",[1483.1954],3)
  END

She spawns in the same location that Auren Aseph does, and, no matter how I change those values, she won't move to where I want her to (on the other side of the fire pit, where you find Lehtinen.) I've managed to make her move closer to the wall nearest her, but not the direction I want.

 

2: Fate Spirit summoning, can't figure that one out for the life of me. Tried using the fatesp script from SilverStar mod (with my character name subbed in), but it didn't work.

fatesp script:

  EXTEND_BOTTOM FATESP 6
    IF ~!Dead("NF#Azura")
  !GlobalGT("Silvermorph","GLOBAL",0)
  Global("SilverFMT","GLOBAL",0)
  !InMyArea("NF#Azura")
  Global("NF#AzuraSummoned","GLOBAL",0)~ THEN REPLY ~Bring me Azura, the Half-Drow Dark Ranger.~
   DO ~CreateVisualEffect("SPPORTAL",[1999.1228])
  Wait(2)
  CreateCreature("NF#Azura",[1999.1228],0)
  SetGlobal("NF#AzuraSummoned","GLOBAL",1)~ GOTO 8
  END
  I'm not sure how to compile this one in the tp2 script, either.

 

AR4500 script:

  SC
  CR
  CO
  TR
  16399 0 0 0 0 "GLOBALNF#AzuraSummoned" "" OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  TR
  TR
  6451 0 0 0 0 "" "" OB
  0 0 0 0 0 0 0 0 0 0 0 0 "NF#Azura"OB

  TR
  CO
  RS
  RE
  100AC
  30OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  2 0 0 0 0"GLOBALNF#AzuraSummoned" "" AC
  AC
  36OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  0 0 0 0 0"" "" AC
  RE
  RS
  CR
  CR
  CO
  TR
  16399 1 0 0 0 "GLOBALNF#AzuraSummoned" "" OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  TR
  TR
  16399 0 0 0 0 "GLOBALNF#AzuraSpawnPlane" "" OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  TR
  CO
  RS
  RE
  100AC
  272OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  0 1999 1218 0 0"SPPORTAL" "" AC
  AC
  63OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  2 0 0 0 0"" "" AC
  AC
  7OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  0 1999 1218 0 0"NF#Azura" "" AC
  AC
  259OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 "NF#Azura"OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  2250000 0 0 0 0"" "" AC
  AC
  30OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  OB
  0 0 0 0 0 0 0 0 0 0 0 0 ""OB
  1 0 0 0 0"GLOBALNF#AzuraSpawnPlane" "" AC
  RE
  RS
  CR
  SC
I don't really know how to explain how this one works -_-' Since it's not a "normal" character spwan like finding her in the Copper Coronet, I'm not entirely sure how this code should look.

 

3: Bodhi kidnap. I haven't tried anything for this one, but some tips would be helpful.

 

4: Epilogue. Obviously, I gotta have my epilogues.

 

I can't find tutorials for either 3 or 4. Unless their under a different title that I don't know so I can't put into google.

 

5: General ToB content, how do I tell BG2 to differentiate it from SoA.

 

I'll take any tips I can get to make this character awesome :) There are still two more that want me to do them....

 

Also, I am trying to add a subrace to the subrace mod by finnjo@suomi24.fi, but I'm running into the problem that I cannot read the .spl files. I've got everything working except actually giving my race advantages and disadvantages. I imagine I'd probably be able to figure it out if I could read the .spl files, but I can't.

 

Lastly, what's the etiquette on making my character banter with other people's mods? Do I always need permission, or is that only if I'm making a crossmod banter pack? I don't want to step on any toes ._.

 

Thank you very much in advance for all the help :)



#5 -kimmuryiel-

-kimmuryiel-
  • Guest

Posted 21 August 2013 - 11:15 PM

OH! and I can't figure out how to add a soundset >_>'



#6 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9200 posts

Posted 21 August 2013 - 11:18 PM

One tip I can definitely give quickly is do not use Silver Star as an example mod. It's very old and outdated, and last I checked, relatively buggy.

 

Try something newer; Adrian would be a good example, or Kulyok's Coran mod if you want something simpler.



#7 -kimmuryiel-

-kimmuryiel-
  • Guest

Posted 22 August 2013 - 11:01 AM

I don't have either of the mods you suggest, I'll have to get them. Any help with the other codes I'm looking for, oh, great K'aeloree?



#8 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 22 August 2013 - 11:56 AM

only problem with Adrian is the fact that, when I opened the script files is that they were all one big block instead of a bunch of smaller blocks. I'm guessing you didn't write them in notepad?



#9 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 22 August 2013 - 12:30 PM

only problem with Adrian is the fact that, when I opened the script files is that they were all one big block instead of a bunch of smaller blocks. I'm guessing you didn't write them in notepad?

You can open the files with Wordpad, MSWord or Notepad++ and see the structure... yes, I hate the fact too that people don't use ENTER correcty when they code stuff, but ....


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#10 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 22 August 2013 - 12:41 PM

  • MSWord does make it better...which is surprising, notepad is always better for writing code because windows command console can read those better (I also thought MSWord couldn't save in the formats required for the command console to read).
  • I'm still looking to actually know what scripting I need for, Bodhi kidnap, fate spirit, epilogues, moving her to be standing where I want her to, is putting "25" in the file name all I need to differentiate ToB and SoA content, and soundsets. Pretty much everything I was asking. I can't retrofit a Bodhi kidnap code if I don't know WHERE to find it. I appreciate what advice I've gotten so far, but it doesn't do much to help me continue in getting this mod ready for somewhere to host it.


#11 Mike1072

Mike1072
  • Modder
  • 539 posts

Posted 22 August 2013 - 03:39 PM

There's no better advice than to look at a good mod that does the same thing you want to do.

#12 Kaeloree

Kaeloree

    Head Molder

  • Administrator
  • 9200 posts

Posted 22 August 2013 - 04:20 PM

Yep -- and in taking the time to work out how mods do it (look at a couple and compare), you'll actually gain an understanding of what's going on, rather than just copying and pasting. :) It really is the best way to do it. 

 

The 25 suffix is about differentiating SoA and ToB files, yes. 

 

Really comb through the mod's files. The J (joined dialog) should have all scripted content. The B has all unscripted content (banters, primarily). 

 

Also look at the in-game files extensively--for example, to find out how epilogues work, look at a mod's epilogue 2DAs and how they handle that as well as AR6200.bcs. You'll need to do this in a program like Infinity Explorer or Near Infinity.



#13 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 22 August 2013 - 04:21 PM

Some of these mods, I have trouble reading like Saerileth it goes

"IF ~~ THEN BEGIN Saerileth Meetb1

SAY @8

++ @9 GOTO SaerilethMeetb1a

++ @10 GOTO SaerilethMeetb1b

++ @11 GOTO SaerilethMeetb1c

END"

 

I don't know what those @<number> meant. I can infer they are referring to dialog, but I don't know where to find said dialog.


Edited by kimmuryiel, 22 August 2013 - 07:33 PM.


#14 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 23 August 2013 - 11:07 AM

let's put it this way, the way I learn best is with visual examples. I followed a tutorial on making a joinable character and copied that word for word, now I know how to make a character and can even make her talk more than just with the opening "can I join your group" dialogue. If I don't know WHAT I'm looking at, then I can't determine it's function.

 

I know you are trying to help, but, for the way I learn, it is not conducive to helping me further my mods along.



#15 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 23 August 2013 - 11:40 AM

Some of these mods, I have trouble reading like Saerileth it goes

"IF ~~ THEN BEGIN Saerileth Meetb1

SAY @8

++ @9 GOTO SaerilethMeetb1a

++ @10 GOTO SaerilethMeetb1b

++ @11 GOTO SaerilethMeetb1c

END"

 

I don't know what those @<number> meant. I can infer they are referring to dialog, but I don't know where to find said dialog.

The texts are in a .tra file ... do you have any NPC creation guides ? Unfortunatly for you this is offline...


Edited by The Imp, 23 August 2013 - 11:41 AM.

Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#16 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 23 August 2013 - 01:55 PM

thank you. I have an NPC creation tutorial, but it's very basic; only how to script them to basically say "can I join the group?" and then join.

 

that NPC guide isn't even on the web archive T_T /cry



#17 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 23 August 2013 - 07:32 PM

For the life of me, I cannot figure out how Near Infinity adds soundsets to the cre file. I've looked at both Auren Aseph and Saerileth, and it...doesn't help worth a damn.


Edited by kimmuryiel, 23 August 2013 - 10:29 PM.


#18 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 24 August 2013 - 01:55 AM

For the life of me, I cannot figure out how Near Infinity adds soundsets to the cre file. I've looked at both Auren Aseph and Saerileth, and it...doesn't help worth a damn.

You assign strings and the strings have associated sounds. You're much better off doing it with WeiDU.



#19 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 24 August 2013 - 10:54 AM

thank you. XD



#20 kimmuryiel

kimmuryiel
  • Member
  • 24 posts

Posted 24 August 2013 - 12:08 PM

>_> literally, all I did was change the prefix from NF# to KFP
Installing [Azura for BG2:SoA]
Copying and patching 1 file ...
[Azura/creatures/AZURA.cre] loaded, 4156 bytes
ERROR: cannot convert SELECT_ACTION8 or %SELECT_ACTION8% to an integer
ERROR: [Azura/creatures/AZURA.cre] -> [override/AZURA.cre] Patching Failed (COPY) (Not_found)
Stopping installation because of error.

ERROR Installing [Azura for BG2:SoA], rolling back to previous state
Unable to Unlink [Azura/backup/0/OTHER.0]: Unix.Unix_error(1, "unlink", "Azura/backup/0/OTHER.0")
[Azura/backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   0 files for [SETUP-AZURA.TP2] component 0.
Uninstalled      0 files for [SETUP-AZURA.TP2] component 0.
Unable to Unlink [Azura/backup/0/READLN.0]: Unix.Unix_error(20, "unlink", "Azura/backup/0/READLN.0")
Unable to Unlink [Azura/backup/0/READLN.0.TEXT]: Unix.Unix_error(20, "unlink", "Azura/backup/0/READLN.0.TEXT")

and it didn't do this with A'temra, who is scripted the exact same way







Also tagged with one or more of these keywords: exe, tp2, problem