Jump to content


Photo

Parse error in Weidu on kit mod installation


7 replies to this topic

#1 Fochmarc

Fochmarc

    Modder

  • Members
  • 21 posts
  • Gender:Male
  • Location:Louisiana, US

Posted 10 December 2017 - 07:20 PM

Putting together a custom kit mod, and running through the Weidu installation, but I keep getting a weird Weidu Parse Error message.

 

Here's my TP2 File:

 

BACKUP ~Warder/backup~ // so WeiDU can uninstall
AUTHOR ~edited~ // contact address displayed if installation fails
 
 
BEGIN ~Warder Kit~
INCLUDE ~Warder/fl#add_kit_ee.tpa~
ADD_KIT ~Warder~
 
  // appended to CLASWEAP.2da
  ~Warder                1           1           1           1           1           1           1           1
~
 
  // appended column-wise to WEAPPROF.2da
  Warder 4 4 0 4 4 4 4 0 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 0 0 0 0 2 2 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
     
  // appended to ABCLASRQ.2da
  ~Warder                0       0       0       0       9       0~
 
  // appended to ABCLSMOD.2da
  ~Warder                0       0       0       0       0       0~
 
  // appended to ABDCDSRQ.2da
  ~Warder                0       0       0       0       17      0~
 
  // appended to ABDCSCRQ.2da
  ~Warder               0       0       0       0       15      0~
 
  // appended to ALIGNMNT.2da
  ~Warder               0       0       0       1       0       0       1       1       0~
 
  // appended to DUALCLAS.2da
  ~Warder                1       0       1       1       0       1~
 
  // path to your CLAB-style 2da file 
  ~Warder/Warder/CLABPA07.2da~
 
  // PC races and classes allowed to use this kit, from KITTABLE.2da
  ~K_P_H~
 
  // usability flags, added to the end of the KITLIST.2da entry
  ~0x00000008     6~
 
  // HLA table to use; see LUABBR.2da
  ~Pa0~
 
  // list of starting equipment for PCs starting in ToB. Appended column-wise to 25STWEAP.2da
  ~CHAN09 * HELM07 BAG20 RING06 RING31 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN4,2 POTN14,5 HAM07 SW1H27 STAF08~
 
  // Lower, mixed, and help kit names and descriptions, added to KITLIST.2da 
  SAY ~warder~
  SAY ~Warder~
  SAY ~WARDER: Warders are guardians, watching over august personages, holy sites, or travelers in need of a strong arm.  Warders train extensively in melee weapons, the better to stay close to their charges.  A Warder's dedication is without equal - they cannot be swayed from their duty, and will know no fear in accomplishing their missions.
 
Advantages: 
- Immune to charm, hold, and poison.
- May achieve Mastery (four slots) with all melee weapons.
- May achiveve Specialization (two slots) in any fighting style and allocate three slots in Two-Weapon Style.
- +1 to hit and damage rolls every five levels. 
 
Disadvantages:
- May not use ranged weapons.
~
 
 
and the Error message:
 


#2 CamDawg

CamDawg

    Just a simple country Hyper-Chicken

  • Gibberling Poobah
  • 9404 posts
  • Gender:Not Telling

Posted 10 December 2017 - 07:31 PM

I'm not seeing anything wrong in the syntax, but you're using an ancient version of WeiDU--grab the latest (v242) from the WeiDU forums.


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#3 Fochmarc

Fochmarc

    Modder

  • Members
  • 21 posts
  • Gender:Male
  • Location:Louisiana, US

Posted 10 December 2017 - 07:35 PM

I'm not seeing anything wrong in the syntax, but you're using an ancient version of WeiDU--grab the latest (v242) from the WeiDU forums.

 

That did at least change the error message:

 

https://imgur.com/a/0REx7

 

Editting for additional information:

 

All the files for the mod are loose in the BG:EE install folder.  Not contained in subfolders or anything else.


Edited by Fochmarc, 10 December 2017 - 07:38 PM.


#4 CamDawg

CamDawg

    Just a simple country Hyper-Chicken

  • Gibberling Poobah
  • 9404 posts
  • Gender:Not Telling

Posted 10 December 2017 - 07:41 PM

When in doubt, start checking tildes.

 

You're missing the opening tilde in front of the weapprof line in ADD_KIT; and the closing tilde for the clasweap line should probably be on the same line as everything else.


I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#5 Fochmarc

Fochmarc

    Modder

  • Members
  • 21 posts
  • Gender:Male
  • Location:Louisiana, US

Posted 10 December 2017 - 08:02 PM

When in doubt, start checking tildes.

 

You're missing the opening tilde in front of the weapprof line in ADD_KIT; and the closing tilde for the clasweap line should probably be on the same line as everything else.

It's always the silliest things that get us.  Thanks man, that was it.



#6 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6506 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 10 December 2017 - 10:05 PM

Well, it's opening and closing tilde... as they should be on the same row, so you start with a tilde and end on it in the same row.

As not doing so might give your tables extra rows, and that's bad.

As the tilde at the end of the CLASWEAP.2da is in the wrong row. Which then looks like it would starts the WEAPPROF.2da, but doesn't. And like said, the v185 doesn't support the EE games at all as there were no EE games when Weimer exited the moding scene at 2005.


Edited by Jarno Mikkola, 10 December 2017 - 10:09 PM.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.

#7 Mike1072

Mike1072
  • Gibberling Poobah
  • 2410 posts
  • Gender:Male
  • Location:Canada

Posted 10 December 2017 - 11:27 PM

I think they got it, Jarno.



#8 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 6506 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 10 December 2017 - 11:52 PM

I think they got it, Jarno.

The intention of the post was to reafferm to the reader that the code above if flawed in multiple ways. It's not just that the tildes are missing, but that they should be at the start and the end... not criscross lines and dimentions.
Cause if you do that and someone then utilizes a patch function via line counting, the patch fuction fails because this mod, not because it-itself is flawed.

But I guess that you don't like things to be clear and orderly. :undecided: Things not said will not be heard. 


Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.
Here's how to install all the ... mods you ever really could want to Infinity Engine games. I removed the stable word from there as Roxanne began to add BS mods that are likely to break compatibility from the BWS.



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users